-
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
fix: ignore other actions if navigation in progress in menu Items #28338
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, |
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.
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 |
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.
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 <[email protected]>
…pes.js Co-authored-by: Monil Bhavsar <[email protected]>
Co-authored-by: Monil Bhavsar <[email protected]>
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 👀 |
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.
retested - works well.
CC. @MonilBhavsar
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👋 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
link for github url is missed here during refractor
Causing this issue - #32965
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.
No excuses.. i messed up here😅
Details
Fixed Issues
$ #27384
PROPOSAL: #27384 (comment)
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-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