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.
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
![image](Paste_Your_Image_Link_Here_After_Attaching_Files)
Visuals after changes are applied
![image](Paste_Your_Image_Link_Here_After_Attaching_Files)
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
![image](Paste_Your_Image_Link_Here_After_Attaching_Files)Visuals after changes are applied
![image](Paste_Your_Image_Link_Here_After_Attaching_Files)