fix: #88963 - fallback to split navigator's default route when there's no existingFirstRoute#89080
Conversation
…en no existingFirstRoute
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@ZhenjaHorbach Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp2026-04-28.16.29.04.movAndroid: mWeb ChromeNA iOS: HybridApp2026-04-28.16.29.04.moviOS: mWeb SafariNA MacOS: Chrome / SafariNA |
|
LGTM! |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 @luacmartins has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Cherry-picked to staging by https://github.com/luacmartins in version: 9.3.64-9 🚀
Bundle Size Analysis (Sentry): |
|
I reviewed the changes in this PR. It fixes a navigation bug where the back button didn't work after sharing an image via the native share sheet on a cold start. The change is purely internal — it adjusts navigation state computation in No help site changes are required. This is a behind-the-scenes navigation fix with no impact on user-facing features, settings, terminology, or workflows documented in |
|
🚀 Cherry-picked to staging by https://github.com/luacmartins in version: 9.3.64-10 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
When the app cold-starts via the native share intent, the placeholder
REPORTS_SPLIT_NAVIGATORtab has no nested routes. After sharing,revealRouteBeforeDismissingModal->REPLACE_FULLSCREEN_UNDER_RHPproduced a tab state of[REPORT]with nothing to pop back to, so the back button did nothing. InhandleReplaceFullscreenUnderRHPwe now fall back to the split navigator's default sidebar route (e.g.INBOX) viaSPLIT_TO_SIDEBARwhen the existing tab has no first route, restoring[INBOX, REPORT]and a working back button.Fixed Issues
$ #88963
PROPOSAL: #88963 (comment)
Tests
Android & iOS only:
Offline tests
N/A — change is purely navigation-state computation, no API/Onyx interaction.
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))npm run compress-svg)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
Screen_Recording_20260428_125127_Expensify.Dev.mp4
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari