-
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
migrate InitialSettingsPage to function component #16281 #22153
migrate InitialSettingsPage to function component #16281 #22153
Conversation
@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] |
Hi, @thesahindia This PR is ready for your reivew. Thanks. |
Hi, @thesahindia I just fixed conflict. please check. Thanks. |
Hi, @thesahindia @rushatgabhane Could you check this PR. Thanks. |
@yh-0218 Can you please run the lint and tests locally before I start the review? |
|
||
getMenuItem(item, index) { | ||
const keyTitle = item.translationKey ? this.props.translate(item.translationKey) : item.title; | ||
const getMenuItem = (item, index) => { |
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.
and this one too. Basically when we have methods that will affect the render, are dependent on the props and not on internal state, we can wrap them with useMemo
.
@yh-0218 Also can you please add |
Hi, @mananjadhav I just updated code. please review my PR. Thanks. |
@yh-0218 Can you please add |
@mananjadhav please check this. Thanks. Screen.Recording.2023-07-24.at.3.26.34.PM.mov |
Hello @mananjadhav Please review my PR. thanks. |
@yh-0218 PR changes look good, I am currently testing this. |
@mananjadhav sorry. I updated code. please check. thanks. |
Hi, @mananjadhav How about my PR? |
Reviewer Checklist
Screenshots/VideosWebweb-initial-settings-page.movMobile Web - Chromemweb-chrome-initial-settings-page.movMobile Web - Safarimweb-safari-initial-settings-page.movDesktopdesktop-initial-settings-page.moviOSios-initial-settings-page.movAndroidandroid-initial-settings-page.mov |
Thanks for the patience here @yh-0218. I've finished the checklist. @danieldoglas All yours. 🎀 👀 🎀 C+ Reviewed. |
✋ 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/danieldoglas in version: 1.3.47-0 🚀
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.3.47-6 🚀
|
Details
Refactor InitialSettingsPage.js to functional component
Fixed Issues
$ #16281
Tests
Offline tests
QA Steps
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
Screen.Recording.2023-06-29.at.6.31.02.PM.mov
Mobile Web - Chrome
Screen.Recording.2023-06-29.at.8.00.10.PM.mov
Mobile Web - Safari
Screen.Recording.2023-06-29.at.8.07.03.PM.mov
Desktop
Screen.Recording.2023-06-29.at.8.09.13.PM.mov
iOS
Screen.Recording.2023-06-29.at.8.04.43.PM.mov
Android
Screen.Recording.2023-06-29.at.7.52.32.PM.mov