-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and test well 👍
All your's @puneetlath
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 🚀
|
const visibilityOptions = _.map(_.values(CONST.REPORT.VISIBILITY), visibilityOption => ({ | ||
label: this.props.translate(`newRoomPage.visibilityOptions.${visibilityOption}`), | ||
value: visibilityOption, | ||
description: this.props.translate(`newRoomPage.${visibilityOption}Description`), | ||
})); | ||
|
||
return ( | ||
<ScreenWrapper onTransitionEnd={this.focusRoomNameInput}> | ||
<ScreenWrapper> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any reason to remove auto focus here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.js
to detect nested children inside custom class component.Fixed Issues
#13524
PROPOSAL: #13524 (comment)
Tests / QA Steps
Test 1
Test 2
Please enter a room name
fix the errors
Test Room
(Any value with Uppercase and space)_
Offline tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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.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