-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Corrected regression from issue 21838 #23780
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
Conversation
|
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
|
@eVoloshchak Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
Ping @eVoloshchak, would be great if you could take a look a this |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-08-01.at.17.49.17.movMobile Web - Chromescreen-20230801-183558.mp4Mobile Web - SafariScreen.Recording.2023-08-01.at.18.36.22.movDesktopScreen.Recording.2023-08-01.at.18.37.00.moviOSScreen.Recording.2023-08-01.at.18.25.20.movAndroidscreen-20230801-183311.mp4 |
|
✋ 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 https://github.com/techievivek in version: 1.3.49-0 🚀
|
|
🚀 Deployed to staging by https://github.com/techievivek in version: 1.3.50-0 🚀
|
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.3.49-3 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.50-3 🚀
|
Details
A regression from PR #23306
The problem is that only errors for touched inputs are shown, so we should not set
lastValidatedValuesuntil at least one input has been touched. Otherwise validation will be skipped right after the input has been touched.https://github.com/joh42/expensify-app/blob/fix/21838-regression/src/components/Form.js#L144-L153
Fixed Issues
$ #21838
PROPOSAL: #21838 (comment)
Tests
Test 1
Username: user_good
Password: pass_good
Test 2
;)Offline tests
Same as tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Web
Test 1Screen.Recording.2023-07-28.at.12.14.35.mov
Test 2
Screen.Recording.2023-07-28.at.12.09.51.mov
Mobile Web - Chrome
Test 1
Screen.Recording.2023-07-28.at.12.57.05.mov
Test 2
Screen.Recording.2023-07-28.at.12.57.46.mov
Mobile Web - Safari
Test 1
Screen.Recording.2023-07-28.at.12.20.39.mov
Test 2
Screen.Recording.2023-07-28.at.12.17.41.mov
Desktop
Test 1
Screen.Recording.2023-07-28.at.13.03.32.mov
Test 2
Screen.Recording.2023-07-28.at.13.04.14.mov
iOS
Test 1
Screen.Recording.2023-07-28.at.12.34.35.mov
Test 2
Screen.Recording.2023-07-28.at.12.32.54.mov
Android
Test 1
Screen.Recording.2023-07-28.at.12.46.02.mov
Test 2
Screen.Recording.2023-07-28.at.12.47.16.mov