-
Notifications
You must be signed in to change notification settings - Fork 3k
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
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. |
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 |
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
HeaderWithBackButton
in order not to pass the event as argument for those actions.Fixed Issues
$ #20834
Tests
Change
shouldShowCloseButton
totrue
by default inHeaderWithBackButton
and 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 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
Nagranie.z.ekranu.2023-06-15.o.17.53.40.mov
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android