Refactor form component#27025
Conversation
d8a81a7 to
b6c8a62
Compare
|
@thesahindia 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] |
Co-authored-by: Carlos Martins <luacmartins@gmail.com>
luacmartins
left a comment
There was a problem hiding this comment.
Looking good. Thanks for the changes. Just one comment left from my end.
|
@thesahindia could you please check the PR as well? |
db20f09 to
ce80fef
Compare
|
Tested well! But it looks like we still have one console error. Screen.Recording.2023-09-22.at.3.26.34.AM.mov |
|
@luacmartins @thesahindia FIY: from Monday I will be OOO for a week, so if we won't finish today we will need to wait one more week. |
|
@kowczarz did you get a chance to look at the console error @thesahindia pointed out here |
@thesahindia that's not connecteed with my PR. The root of the problem is in our fork of |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-09-16.at.2.29.47.AM.movMobile Web - ChromeScreen.Recording.2023-09-22.at.11.11.27.PM.movMobile Web - SafariScreen.Recording.2023-09-22.at.3.24.29.AM.movDesktopScreen.Recording.2023-09-22.at.11.07.42.PM.moviOSScreen.Recording.2023-09-22.at.3.24.29.AM.movAndroidScreen.Recording.2023-09-22.at.11.09.14.PM.mov |
luacmartins
left a comment
There was a problem hiding this comment.
LGTM! Thanks for working on this!
|
✋ 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.74-0 🚀
|
| <InputWrapper | ||
| InputComponent={TextInput} |
There was a problem hiding this comment.
This works. But wouldn't it prevent prop intellisense.
There was a problem hiding this comment.
As soon as we will introduce TypeScript (migration is in progress) it certainly won't be a problem, because we can create a simple generic that will handle the props properly.
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 1.3.74-3 🚀
|
| {...rest} | ||
| onSubmit={submit} | ||
| inputRefs={inputRefs} | ||
| errors={errors} |
There was a problem hiding this comment.
We forgot to pass a prop enabledWhenOffline which caused #28148
| containerStyles={[styles.mh0, styles.mt5, styles.flex1]} | ||
| enabledWhenOffline={enabledWhenOffline} | ||
| isSubmitActionDangerous={isSubmitActionDangerous} | ||
| disablePressOnEnter |
There was a problem hiding this comment.
@kowczarz @thesahindia Is there any reason for using disablePressOnEnter here? Does this fix any bug?
Details
Fixed Issues
$ #25397
PROPOSAL: #25397 (comment)
Tests
;causes errorsOffline tests
;causes errorsQA Steps
;causes errorsPR 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.mov
Mobile Web - Chrome
android.web.mov
Mobile Web - Safari
ios.web.mp4
Desktop
desktop.mov
iOS
ios.native.mp4
Android
android.native.mov