[Refactor] WorkspaceNewRoomPage Form + Fix From nested children from class component#13713
Conversation
|
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
|
@Gonals Looks like this pr should be assigned to @puneetlath and @mollfpr |
Reviewer Checklist
Screenshots/VideosWeb13713.Web.movMobile Web - Chrome13713.mWeb-Android.movMobile Web - Safari13713.mWeb-iOS.movDesktop13713.Desktop.moviOS13713.iOS.movAndroid13713.Android.mov |
|
Test online and offline with the HT account working well! Just need to resolve a comment #13713 (comment) |
mollfpr
left a comment
There was a problem hiding this comment.
LGTM and test well 👍
All your's @puneetlath
puneetlath
left a comment
There was a problem hiding this comment.
Just a couple of small comments. Mostly looks good!
|
Congrats, that’s your 5th PR merged! 🎉 Do you know about the ContributorPlus role? It’s an opportunity to earn more in the Expensify Open Source community. Keep up the great work - thanks! |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Performance Comparison Report 📊Significant Changes To DurationThere are no entries Meaningless Changes To DurationShow entries
Show details
|
|
🚀 Deployed to staging by @puneetlath in version: 1.2.43-0 🚀
|
|
🚀 Deployed to production by @chiragsalian in version: 1.2.43-1 🚀
|
|
|
||
| return ( | ||
| <ScreenWrapper onTransitionEnd={this.focusRoomNameInput}> | ||
| <ScreenWrapper> |
There was a problem hiding this comment.
Is there any reason to remove auto focus here?
There was a problem hiding this comment.
I feel like we had a convo about this, but I don't recall why it was done. @fedirjh do you?
There was a problem hiding this comment.
Is there any reason to remove auto focus here?
That workaround doesn’t work with the Form component , the Form override input’s ref here , then every passed ref will be undefined.
ref: node => this.inputRefs[inputID] = node,
Details
Form.js.Form.jsto detect nested children inside custom class component.Fixed Issues
#13524
PROPOSAL: #13524 (comment)
Tests / QA Steps
Test 1
Test 2
Please enter a room namefix the errorsTest Room(Any value with Uppercase and space)is replaced with underscore_Offline tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)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.Screenshots/Videos
Web
WorkspaceNewRoomPage Page - Refactored
WorkspaceNewRoomPage.mov
ReportSettingsPage - Not Refactored
Screen.Recording.2022-12-19.at.10.29.15.PM.mov
Mobile Web - Chrome
Mobile Web - Safari
Desktop
Screen.Recording.2022-12-19.at.10.55.40.PM.mov
iOS
Simulator.Screen.Recording.-.iPhone.13.-.2022-12-19.at.23.19.58.mp4
Android
Android.mov