hackforla / HomeUniteUs

We're working with community non-profits who have a Host Home or empty bedrooms initiative to develop a workflow management tool to make the process scalable (across all providers), reduce institutional bias, and effectively capture data.
https://homeunite.us/
GNU General Public License v2.0
39 stars 21 forks source link

682 pets component #707

Closed johnwroge closed 5 months ago

johnwroge commented 5 months ago

Closes #682

What changes did you make?

I added a 'pets' type to the FieldTypes type definition, updated the IntakeProfile directory to include a case of 'pets' to display the form elements, added the field to profile.ts file in the services directory, and built an additional pets field component 'AdditionalPetsField' which allows the user to add/remove pets. This component contains a search bar and is limiited to a group of pets and can updated to include other pets as necessary.

Rationale behind the changes?

The intake profile section needs a pets component for guests so they can add any pets they own to their intake profile. This will help coordinators make appropriate matches with hosts who may/may not have preferences for pets.

Testing done for these changes

Tests were run in the app directory with all test cases passing.

What did you learn or can share that is new?(optional)

I learned about representing form components in an alternative way.

Screenshots of Proposed Changes Of The Website (if any, please do not screen shot code changes)

Visuals before changes are applied 325033528-041c485b-ad7d-4a08-be5b-29b76857cd85 ![image](Paste_Your_Image_Link_Here_After_Attaching_Files)
Visuals after changes are applied ![image](Paste_Your_Image_Link_Here_After_Attaching_Files) Screen Shot 2024-06-02 at 2 06 19 PM Screen Shot 2024-06-02 at 2 07 02 PM