Improve new form validation#28821
Conversation
|
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
|
@kowczarz @luacmartins is this a regression or new PR? Does this require a C+ Review? |
|
@Santhosh-Sellavel yes, we spotted an issue with validation after previous changes. The second question is to @luacmartins |
luacmartins
left a comment
There was a problem hiding this comment.
LGTM! I see that most of the logic is identical to what we currently do for Form.js
|
@luacmartins should we re-assign a C+ from #27025, or current C+ can proceed with the review? |
|
@Santhosh-Sellavel are you able to review this one today or @thesahindia since you reviewed the original PR too |
|
Sorry, I can't get to it today! |
|
Np! Gonna reassign to @situchan to get this merged and unblock the refactor PRs. |
|
Please fix conflict |
…lidation # Conflicts: # src/components/Form/FormProvider.js
|
@situchan I was already after hours, but now it's fixed |
|
@situchan are you available to review this PR today? |
|
reviewing now |
I can't reproduce it iOS screen recordingSimulator.Screen.Recording.-.iPhone.15.Pro.-.2023-10-13.at.12.05.35_H.265.mp4 |
@situchan Done |
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chromemchrome.movMobile Web - Safarimsafari.movDesktopdesktop.moviOSios.movAndroidandroid.mov |
|
✋ 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/luacmartins in version: 1.3.84-0 🚀
|
Performance Comparison Report 📊Significant Changes To Duration
Show details
Meaningless Changes To DurationShow entries
Show details
|
|
@Expensify/mobile-deployers 📣 Please look into this performance regression as it's a deploy blocker. |
|
we're ignoring e2e tests |
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.3.84-10 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.3.84-10 🚀
|
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 1.3.85-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.3.85-4 🚀
|


Details
Fixed Issues
$ #25397
Tests
Offline tests
QA Steps
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
web_H.265.mp4
Mobile Web - Chrome
android.web_H.265.mp4
Mobile Web - Safari
ios.web_H.265.mp4
Desktop
desktop_H.265.mp4
iOS
ios.native_H.265.mp4
Android
android.native_H.265.mp4