generated from hackforla/.github-hackforla-base-repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 97
Open
Labels
Epic/OverviewContains a list of other issues or an overview of issueContains a list of other issues or an overview of issuecomplexity: mediumfeature: Form Validationrole: Front Endsize: 0.25ptCan be done in 1.5 hours or lessCan be done in 1.5 hours or less
Milestone
Description
Overview
Outline of steps to integrate react-hook-form's validation more seamlessly, so that we write cleaner, more reusable code, with a single way of achieving form validaiton across the project.
Context
Validation has been a sticking point for this project, but thanks to the hard work of the devs on this team we're moving towards having this portion of our app handled. We've still got a bit to go, this issue is going to outline the steps to take to integrate react-hook-form's validation more seamlessly.
Action Items
- Create ValidatedTextField component #1482
- Move simpleInput to it's own data.js object #1483
- Remove duplicates of simpleInput other places in the app eg
addProjcetandeditProject - Replace the above with import of simpleInput
- Remove duplicates of simpleInput other places in the app eg
- Adapt ValidatedTextField to accept custom validation functions #1484
- Merge validation functions made by @evanyang1
- Potentially adapt validation functions to fit react-hook-form validate format
- Adapt simpleInput to contain a validations array that will be consumed by ValidatedTextField
- Adapt simpleInput and ValidatedText field to accept helper form fields eg radio buttons
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Epic/OverviewContains a list of other issues or an overview of issueContains a list of other issues or an overview of issuecomplexity: mediumfeature: Form Validationrole: Front Endsize: 0.25ptCan be done in 1.5 hours or lessCan be done in 1.5 hours or less
Type
Projects
Status
Epic Issues