HomeUniteUs icon indicating copy to clipboard operation
HomeUniteUs copied to clipboard

Registration flow - Client side validation

Open arshiamasih opened this issue 5 years ago • 3 comments

Overview

Apply client-side validation to forms for responsive user experience when data would not be accepted by the webservice

Actions

Using the existing component library, create the Form components for Host Details including the following input fields with appropriate validation

Refer to the Hi Fi Prototype diagram on the following Figma board: https://www.figma.com/file/5uXe3GeE99l16uBf5hucWb/Home-Unite-Us?node-id=542%3A180

  • [x] Host Bio/Information
    • [x] Formik Validation: First Name, Last Name not blank
    • [x] Formik Validation: Birth date is valid (i.e. date less than current date)
  • [x] Host Bio/Address
    • [x] Formik Validation: Street Address 1 not blank
    • [x] Formik Validation: City, State and Zip not blank
  • [x] Contact/Information
    • [x] Formik Validation: Email is valid
    • [x] Custom Validation: At least one Phone Number is provided
    • [x] Formik Validation: Phone number is valid, if provided

arshiamasih avatar May 17 '20 03:05 arshiamasih

@HassenH1 Update for iteration #2 of registration user flow:

Using the existing component library, create the Form components for Host Details including the following input fields with appropriate validation

Refer to the Hi Fi Prototype diagram on the following Figma board: https://www.figma.com/file/5uXe3GeE99l16uBf5hucWb/Home-Unite-Us?node-id=542%3A180

  • [x] Host Bio/Information
    • [x] Formik Validation: First Name, Last Name not blank
    • [x] Formik Validation: Birth date is valid (i.e. date less than current date)
  • [x] Host Bio/Address
    • [x] Formik Validation: Street Address 1 not blank
    • [x] Formik Validation: City, State and Zip not blank
  • [x] Contact/Information
    • [x] Formik Validation: Email is valid
    • [x] Custom Validation: At least one Phone Number is provided
    • [x] Formik Validation: Phone number is valid, if provided

tylerthome avatar Jul 25 '20 21:07 tylerthome

I will be push a PR soon I just have to complete Draggable component for the ordering the best contact information section

HassenH1 avatar Aug 01 '20 01:08 HassenH1

@tylerthome could you check to see if we can close this issue?

quyenvhle avatar Aug 02 '21 23:08 quyenvhle