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

683 contact information #753

Closed johnwroge closed 2 months ago

johnwroge commented 3 months ago

Closes #683

What changes did you make?

Rationale behind the changes?

The preferred contact method was needed in the contact information component and email and phone number needed to be verified based on format.

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

The regex expression used to validate email and phone does not follow best practices, but can be updated to include a separate validation library if needed. I tried accessing the field ids using hooks (useState, useRef, useEffect), however it didn't work so the linked fields were a workaround. This can be updated later if we have a fixed field id in that section.

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

Visuals before changes are applied Screen Shot 2024-08-18 at 9 56 21 PM
Visuals after changes are applied Screen Shot 2024-08-18 at 9 26 41 PM Screen Shot 2024-08-18 at 9 27 38 PM Screen Shot 2024-08-18 at 9 27 24 PM