Context menu item Class Component Refactor#22733
Conversation
|
@Santhosh-Sellavel 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] |
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chromeandroid-web.movMobile Web - Safariios-web.movDesktopdesktop.moviOSios.movAndroidandroid.mov |
narefyev91
left a comment
There was a problem hiding this comment.
LGTM!
🎀 👀 🎀 C+ reviewed
|
Sorry did not get to this fast enough. There's some conflicts now 🥲 |
# Conflicts: # src/components/ContextMenuItem.js
|
@marcaaron conflicts solved |
# Conflicts: # src/components/ContextMenuItem.js
|
@marcaaron new conflicts solved |
marcaaron
left a comment
There was a problem hiding this comment.
LGTM, thanks for the quick work on this one!
|
@marcaaron looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
I think the above comment is an error. All the tests passed AFAICT. |
|
✋ 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/marcaaron in version: 1.3.42-20 🚀
|
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.3.42-26 🚀
|
|
🚀 Deployed to staging by https://github.com/marcaaron in version: 1.3.44-0 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.3.44-2 🚀
|
Details
the function
triggerPressAndUpdateSuccessis worth to wrap it with anuseCallbackbecauseGenericPressableuses theonPressas a dependency for anuseCallbackso it is better to pass a stable function.Fixed Issues
$ #16130
PROPOSAL: -
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
contextMenu_chrome.mp4
contextMenu_safari.mp4
Mobile Web - Chrome
Not working
Mobile Web - Safari
contextMenu_iosSafari.mp4
Desktop
contextMenu_desktop.mp4
iOS
contextMenu_ios.mp4
Android
contextMenu_android.mp4