-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Corrected regression from issue 21838 #23780
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
lastValidatedValues
until 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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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