Fix issue #88965: RHP anchoring on wrong tab for dynamic routes when RHP exists below current TAB_NAVIGATOR#89096
Conversation
… over stacked TAB_NAVIGATOR
Codecov Report✅ All modified and coverable lines are covered by tests.
... and 263 files with indirect coverage changes 🚀 New features to boost your workflow:
|
|
@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: HybridAppScreen.Recording.2026-04-29.at.22.29.05.movAndroid: mWeb ChromeScreen.Recording.2026-04-29.at.22.13.57.moviOS: HybridAppios.moviOS: mWeb SafarimSafari.movMacOS: Chrome / SafariScreen.Recording.2026-04-29.at.22.03.29.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. |
|
🚧 @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/arosiclair in version: 9.3.64-16 🚀
Bundle Size Analysis (Sentry): |
|
I reviewed the changes in this PR. The fix is entirely within No help site changes are required. This is an internal navigation stack fix with no impact on user-facing features, workflows, settings labels, or product terminology documented in |
Explanation of Change
When the navigation stack interleaves stacked
TAB_NAVIGATORs with aRIGHT_MODAL_NAVIGATOR(e.g. Inbox > open expense report > enter workspace settings) opening a dynamic RHP route dispatches aNAVIGATEtoRIGHT_MODAL_NAVIGATOR; React Navigation'sStackRouterresolves that by popping back to the existing RHP, dropping the focusedTAB_NAVIGATORabove it and anchoring the new RHP on the wrong tab.The fix narrows the existing
!isDynamicRouteexception inlinkToso that when anotherRIGHT_MODAL_NAVIGATORalready sits below the focused route, the action is converted toPUSHinstead. This causes the new RHP to land above the current tab, preserving the stacked-tab structure.Fixed Issues
$ #88965
Tests
Offline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand 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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2026-04-28.at.14.54.37.mov