-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Show first & last name length errors on front end #5963
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few small linting errors, but the rest lgtm
Responded & resolved comments, fixed eslint issues, back on track! Looks like iOS e2e failing is due to this: https://expensify.slack.com/archives/C01GTK53T8Q/p1634754414008400 |
…engthErrorsOnFrontEnd
Tests passed! 💪 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good - had one more small comment for clarity!
Updated! 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 nice!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by @nickmurray47 in version: 1.1.8-10 🚀
|
🚀 Deployed to production by @roryabraham in version: 1.1.10-2 🚀
|
Details
Idea coming from here: #5091 (comment) - we're starting to standardize showing input errors when submitting the form - validating on the front end instead of on the back-end. This speeds up users seeing errors and prevents some unnecessary API calls.
Related Issues
Related to: #5091
Tests
Profile page:
2. Open your profile page (Settings -> Profile)
3. Add a first & last name over 50 characters (ex:
012345678901234567890123456789012345678901234567890
)4. Try to save the form, verify you see red outlined fields & errors under each
-
5. Change your first name to be between 0 and 50 characters
6. Resubmit the form, verify you only see the last name field with red outline & error underneath
7. Change your last name to be between 0 and 50 characters
8. Resubmit the form, verify there's no errors and you see the success growl
Request call page:
QA Steps
Same as above
Tested On
Screenshots
Web
Profile Page:

Request a call:
Screen.Recording.2021-10-20.at.11.47.05.AM.mov
Mobile Web
Profile Page:

Request a call:
Screen.Recording.2021-10-20.at.12.20.57.PM.mov
Desktop
Profile Page:

Request a call:
Screen.Recording.2021-10-20.at.12.06.21.PM.mov
iOS
Profile Page:

Request a call:
Screen.Recording.2021-10-20.at.12.17.39.PM.mov
Android
Profile Page:

Request a call:
Screen.Recording.2021-10-20.at.12.09.58.PM.mov