Skip to content

Other Pets component #682

@erikguntner

Description

@erikguntner

Dependency

  • Awaiting updated design

Overview

Implement the "Pets" component for the Intake profile.

Screenshot 2024-04-23 at 5 46 15 PM

You'll have to work off the feat/generated-profile branch so make sure to check it out and pull in the most up-to-date changes.

Action Items

  • Add a "pets" type to the FieldTypes type definition.
  • Add a case to the switch statement that renders fields
  • Add the field to the /src/utils/test/db/profile.ts in the "Other Guests/Pets section"
  • Build the pets field component:
    • Create a component that renders a field for a user to type in a pet
    • The field has a button that allows the user to add another pet
    • Add a button to delete pets
    • Add custom validation if necessary

Resources/Instructions

The AdditionalGuestsField could be a good reference to how to approach building this, but you will have to make some tweaks. You may have to define the data as an array of object so here is some info from Formik on how to handle that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Complexity: SmallIssue has detailed instructions to resolve and the task is simple.Role: Front EndSection: 2Related to Major Flows Section 2: Application & Onboarding ProcessdependencyIssues that are being blocked by another issue or other thing that needs to be completed firstenhancementNew feature or requestp-Feature: Profile Guestsize: 2ptCan be done in 7-12 hours

    Type

    No type

    Projects

    Status

    Ice Box

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions