hackforla / hackforla/HomeUniteUs

Contact Information component

Open
#683 1 comment 0 reactions 0 assignees View on GitHub
Complexity: Small dependency enhancement p-Feature: Profile Guest Role: Front End size: 2pt
Dominant language
Python
Stars
45
Forks
22
Avg merge
15d 1h
Merged PRs (30d)
1

Description

### Dependency
Awaiting updated user story and design

### Overview
We need to finalize the Contact Information component.

For this, you will have to work off the `feat/generated-profile` branch.

Screenshot 2024-04-23 at 6 09 01 PM

The trickiest part of this is the validation of the "What is the best way to contact you question?". The user can only select email if the email field is filled in and valid and the user can only select phone if the phone field is filled in and valid. I think there are a few ways we can approach this:

1. We can make the contact information section a component with a custom validation schema for it.
2. We can render the email and phone number fields like we normally would make the radio group a component and use the values from the email and phone number fields to do some custom validation.
3. Another way I'm not currently seeing. Always open to suggestions and whoever takes this can play around with a different approach.

### Action Items
The action items will depend on the approach you decide to take to complete this task.

### Resources/Instructions
https://www.figma.com/file/BNWqZk8SHKbtN1nw8BB7VM/HUU-Everything-Figma-Nov-2022?type=design&node-id=11664-68090&mode=design&t=IekRfD8VxWN7bKYK-4

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.