Repository navigation
[Navigation] iOS - Blank page appears when moving from distance rates settings to More features page - #56870
Conversation
…ettings to More features page
| Navigation.dismissModal(); | ||
| Navigation.isNavigationReady().then(() => Navigation.goBack(ROUTES.WORKSPACE_MORE_FEATURES.getRoute(policyID))); | ||
| navigateAfterInteraction(() => Navigation.goBack(ROUTES.WORKSPACE_MORE_FEATURES.getRoute(policyID))); |
There was a problem hiding this comment.
I think we could just directly navigate to ROUTES.WORKSPACE_MORE_FEATURES. like in other places.
Not sure why
Navigation.dismissModal(); was added, tried to track it but couldn't find a reason. Seems to work perfectly fine without a delay.
There was a problem hiding this comment.
I also cannot think of a reason why we should simiss and navigate, so maybe we could just do that @WojtekBoman what do you think?
There was a problem hiding this comment.
What should happen after navigating back from the More features page? Should we open RHP containing the link that we used? If so, using navigate will be a good solution. If we don't want to go back to the RHP, we need to dismiss it first. I'm attaching a video showing how it works in TagSettings
Screen.Recording.2025-02-17.at.09.07.34.mov
Btw, my solution must be adjusted, I checked it on web and it doesn't work correctly. Once you reply, I'll adjust the PR
There was a problem hiding this comment.
I think how it looks in the video is correct
There was a problem hiding this comment.
Ok, I'll adjust it in a moment :)
There was a problem hiding this comment.
I fixed that, but I noticed one thing. On mobile platforms when going back we need to go through the sidebar page. It's expected behaviour because we pushed a new split navigator. However, I see that maybe we should adjust this behavior to be able to push the split navigator without a sidebar page as it would be useful to fix other issues like:
- [Due for payment 2025-03-21] [Due for payment 2025-03-03] iOS- Reports- App returns to Inbox instead of expense report after editing expense from Report #56801
- [HOLD for payment 2025-04-14] [Navigation][HIGH] Chat - User lands on inbox before being redirected to new created chat or group. #56799
But, I wouldn't hold this issue until we fix that. Could you merge this one and create a new issue for me with adjustments to the split behavior where I can fix all these issues globally?
Here's a video showing how it behaves on native platforms
Screen.Recording.2025-02-17.at.09.56.03.mov
There was a problem hiding this comment.
Sounds good, can you please fix the ESLint in this file, we not cping and its a small change
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-02-18.at.4.20.42.in.the.afternoon.movAndroid: mWeb ChromeScreen.Recording.2025-02-17.at.11.42.17.at.night.moviOS: NativeScreen.Recording.2025-02-17.at.11.58.05.at.night.moviOS: mWeb SafariScreen.Recording.2025-02-17.at.11.46.30.at.night.movMacOS: Chrome / SafariScreen.Recording.2025-02-17.at.11.36.54.at.night.movMacOS: DesktopScreen.Recording.2025-02-17.at.11.49.48.at.night.mov |
|
✋ 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/mountiny in version: 9.1.1-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.1.1-6 🚀
|
Explanation of Change
This PR fixes navigating after dismissing modal in
src/pages/workspace/distanceRates/PolicyDistanceRatesSettingsPage.tsx.After fixing:
Screen.Recording.2025-02-17.at.13.11.39.mov
Fixed Issues
$ #56809
PROPOSAL:
Tests
Precondition:
Offline tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop