Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add validation messages for Account settings page #290

Open
30 tasks done
daria-kostiuk opened this issue Apr 4, 2023 · 0 comments · Fixed by #342
Open
30 tasks done

Add validation messages for Account settings page #290

daria-kostiuk opened this issue Apr 4, 2023 · 0 comments · Fixed by #342
Assignees
Labels
frontend Frontend work W4 Week 4 W5 Week 5
Milestone

Comments

@daria-kostiuk
Copy link
Collaborator

daria-kostiuk commented Apr 4, 2023

Required fields: first name and last name.

First name and last name fields

can accept:

  • lowercase latin letters
  • uppercase latin letters
  • digits
  • hyphen (not first or last)

validation messages:

  • empty: First name is required (for first name field), Last name is required (for last name field)
  • less than 2 characters: Minimum length is 2 characters
  • more than 30 characters: Maximum length is 30 characters
  • hyphen (first or last) and all other characters: Incorrect character

Email field

can accept:

The local part:

  • lowercase latin letters
  • uppercase latin letters
  • digits
  • special characters
  • dot (cannot be first or last character, or repeated unless quoted)

The domain part:

  • lowercase latin letters
  • uppercase latin letters
  • digits
  • hyphen (not first or last)
  • dot (cannot be first or last character)

validation messages:

  • empty: E-mail is required
  • local part less than 1 character: Invalid e-mail address
  • local part more than 15 characters: Invalid e-mail address
  • dot first or last in local part: Invalid e-mail address
  • domain part less than 3 characters: Invalid e-mail address
  • domain part more than 15 characters: Invalid e-mail address
  • without dot in domain part: Invalid e-mail address
  • dot first or last in domain part: Invalid e-mail address
  • hyphen first or last in domain part: Invalid e-mail address
  • without @: Invalid e-mail address
  • 2 or more @: Invalid e-mail address

Date of birth

  • the user can't select a future date, only the past
@daria-kostiuk daria-kostiuk added frontend Frontend work W4 Week 4 labels Apr 4, 2023
@daria-kostiuk daria-kostiuk added this to the Release 4.0 milestone Apr 4, 2023
@daria-kostiuk daria-kostiuk self-assigned this Apr 4, 2023
@TarasMavrovich TarasMavrovich self-assigned this Apr 4, 2023
@daria-kostiuk daria-kostiuk changed the title Add validation messages for Account setting page Add validation messages for Account settings page Apr 4, 2023
@TarasMavrovich TarasMavrovich moved this from Todo to In Progress in bsa-winter-2022-2023-smartspend Apr 4, 2023
@TarasMavrovich TarasMavrovich moved this from In Progress to Code Review in bsa-winter-2022-2023-smartspend Apr 6, 2023
@Vitaliy-Kalenichenko Vitaliy-Kalenichenko moved this from Code Review to In Progress in bsa-winter-2022-2023-smartspend Apr 6, 2023
@jhoneysoup jhoneysoup added the W5 Week 5 label Apr 11, 2023
@jhoneysoup jhoneysoup modified the milestones: Release 4.0, Release 5.0 Apr 11, 2023
@TarasMavrovich TarasMavrovich moved this from In Progress to Code Review in bsa-winter-2022-2023-smartspend Apr 11, 2023
@github-project-automation github-project-automation bot moved this from Code Review to Done in bsa-winter-2022-2023-smartspend Apr 12, 2023
@daria-kostiuk daria-kostiuk moved this from Done to To be Tested in bsa-winter-2022-2023-smartspend Apr 12, 2023
@daria-kostiuk daria-kostiuk reopened this Apr 13, 2023
@daria-kostiuk daria-kostiuk moved this from To be Tested to In Progress in bsa-winter-2022-2023-smartspend Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Frontend work W4 Week 4 W5 Week 5
Projects
3 participants