-
Notifications
You must be signed in to change notification settings - Fork 3.5k
fix: dispatch pop always at the root state #20815
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: dispatch pop always at the root state #20815
Conversation
|
@WoLewicki could you link the issue? |
|
It comes from this thread: https://expensify.slack.com/archives/C01GTK53T8Q/p1686126333958959 |
|
Adding a recording as requested by @mountiny. As the issue (read slack conv for more context) is discovered during the refactoring of money request page here, I have provided a recording that applying the fix from this PR solves the navigation issue in my PR. Before: Screen.Recording.2023-06-15.at.23.45.58.movAfter: Screen.Recording.2023-06-16.at.00.22.58.mov |
|
@bernhardoj thanks for sharing the recordings. |
mountiny
left a 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 tests well!
Reviewer Checklist
Screenshots/VideosWebUploading Screen Recording 2023-06-15 at 18.26.30.mp4… Mobile Web - ChromeHad issues with running android locally unrelated to this change Mobile Web - SafariScreen.Recording.2023-06-15.at.18.29.05.movDesktopUploading Screen Recording 2023-06-15 at 18.27.40.mp4… iOSUploading Screen Recording 2023-06-15 at 18.30.51.mov… AndroidHad issues with running android locally unrelated to this change |
|
@eVoloshchak sorry for the ping, went ahead with the checklist @grgia all yours |
grgia
left a 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.
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. |
|
🚀 Deployed to staging by https://github.com/grgia in version: 1.3.29-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.29-11 🚀
|
Details
Quick fix to always dispatch dismissing modal on the root navigator. It worked correctly so far because probably we always had one route in the deeper stack, so dismissing it dismissed the whole navigator. Also a fix for default actions on
HeaderWithBackButtonin order not to pass the event as argument for those actions.Fixed Issues
$ #20834
Tests
Change
shouldShowCloseButtontotrueby default inHeaderWithBackButtonand check in all screens of RHP that the whole stack is dismissed properly.Offline tests
N/A
QA Steps
Same as tests
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
Nagranie.z.ekranu.2023-06-15.o.17.53.40.mov
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android