fix: ignore other actions if navigation in progress in menu Items#28338
Conversation
|
Hi @robertKozik, i have added some comments, can you take a look at code change i have added video for ios will add for rest once code changes looks good to you, |
robertKozik
left a comment
There was a problem hiding this comment.
The diff is really messy due to import shuffle from your commits - please do something with it. Apart from that few suggestions, mainly use useMemo for option mappings
|
Thanks for reviewing and providing feedback. I'll make changes. |
|
Hii @robertKozik, made some change mind giving a quick look? |
|
I'm OOO for today - will review early tomorrow |
|
gentle bump @robertKozik |
robertKozik
left a comment
There was a problem hiding this comment.
The last one I think. You've removed passing onyx state about the modal, but there is still used inside the memo. I'll start filling reviewer checklist
|
Also could you fill in your (authors) checklist, provide test steps and resolve conflicts @ishpaul777 ? |
|
i'll resolve the conflicts and clean up the code in a while. Thanks for the reviewing again. |
src/components/HeaderWithBackButton/headerWithBackButtonPropTypes.js
Outdated
Show resolved
Hide resolved
src/components/HeaderWithBackButton/headerWithBackButtonPropTypes.js
Outdated
Show resolved
Hide resolved
…pes.js Co-authored-by: Monil Bhavsar <monilbhavsar25@gmail.com>
…pes.js Co-authored-by: Monil Bhavsar <monilbhavsar25@gmail.com>
Co-authored-by: Monil Bhavsar <monilbhavsar25@gmail.com>
|
Update: one outstanding thread that needs to be resolved #28338 (comment). Looks good overall. |
…thub.com/ishpaul777/App into fix/quickly-pressing-different-menuitems
|
@MonilBhavsar The fix was simpler than i thought, we no longer wrap the modal opening action in singleExecution and this solves the blinking issue, Can you review again please. @robertKozik |
|
Great, thank you! 😄 Did you test on all platforms? Let's be careful as it affects most of the navigation items in the App. |
|
sorry for delay, Done with the testing everthing works as expected on my side on all platforms. @robertKozik @MonilBhavsar |
|
gentle bump @MonilBhavsar |
|
There are conflicts to resolve. |
|
Sureee, I'm on it 👀 |
robertKozik
left a comment
There was a problem hiding this comment.
retested - works well.
CC. @MonilBhavsar
MonilBhavsar
left a comment
There was a problem hiding this comment.
Thanks! Looks good and works well 🚀
|
✋ 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/MonilBhavsar in version: 1.3.91-0 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.3.91-8 🚀
|
| const [isDownloadButtonActive, temporarilyDisableDownloadButton] = useThrottledButtonState(); | ||
| const {translate} = useLocalize(); | ||
| const {isKeyboardShown} = useKeyboardState(); | ||
| const waitForNavigate = useWaitForNavigation(); |
There was a problem hiding this comment.
👋 coming from #30636
The hooks here cause an error in the storybook for component HeaderWithBackButton.
| iconRight: Expensicons.NewWindow, | ||
| action: () => { | ||
| Link.openExternalLink(CONST.GITHUB_URL); | ||
| }, |
There was a problem hiding this comment.
link for github url is missed here during refractor
Causing this issue - #32965
There was a problem hiding this comment.
No excuses.. i messed up here😅
Details
Fixed Issues
$ #27384
PROPOSAL: #27384 (comment)
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
Screen.Recording.2023-10-16.at.7.02.42.PM-1.mov
Mobile Web - Chrome
VIDEO-2023-10-16-19-40-58.mov
Mobile Web - Safari
RPReplay_Final1697459265.mov
Desktop
Screen.Recording.2023-10-16.at.9.18.27.PM-1.mov
iOS
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2023-10-16.at.17.20.49.mov
Android
Screen.Recording.2023-10-16.at.5.22.36.PM-1.mov