Fix employee lands on wallet page after adding PBA from expense details page#85212
Conversation
|
🚧 @mjasikowski has triggered a test Expensify/App build. You can view the workflow run here. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 829f7e7dbf
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| SCREENS.SETTINGS.REPORT_CARD_LOST_OR_DAMAGED_CONFIRM_MAGIC_CODE, | ||
| SCREENS.SETTINGS.WALLET.PERSONAL_CARD_WARNING, | ||
| SCREENS.SETTINGS.WALLET.PERSONAL_CARD_UPGRADE, | ||
| SCREENS.SETTINGS.ADD_US_BANK_ACCOUNT, | ||
| ], |
There was a problem hiding this comment.
Keep Add US bank account linked to Settings fullscreen
Removing this relation drops SCREENS.SETTINGS.ADD_US_BANK_ACCOUNT from RHP_TO_SETTINGS, so opening or refreshing settings/wallet/add-us-bank-account without an existing fullscreen route can no longer resolve to Settings in getMatchingFullScreenRoute(). In getAdaptedStateFromPath(), that route then falls back to REPORTS_SPLIT_NAVIGATOR for right-modals, which makes the success Continue handling in AddPersonalBankAccountPage behave like a report-origin flow and return users to inbox/report instead of Wallet.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Since add-us-bank-account can be accessed from almost any tab, the screen underneath this RHP needs to remain the same one we navigated from. I mistakenly moved this to settings, assuming the underlying screen only sets after a refresh, but it turns out it changes immediately. Because of this, I've reverted the changes back to the original behavior
This comment has been minimized.
This comment has been minimized.
|
Let's merge and CP to staging |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
|
🚧 @mjasikowski 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! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
@mjasikowski @collectioneur Our tester, while checking this issue using the current ad-hoc build faced with the infinite loading when the confirm is clicked on the
Bug7102110_1773410821427.ScreenRecording_03-13-2026_09-51-47_1.mp4 |
|
Hi @IuliiaHerets, I'm happy to help look into this on Monday, but just a heads-up that this might not be related to my PR. I was migrating another page and didn't touch the button logic. I can definitely help investigate on Monday to see what's going on, but it feels like it could just be a random lag 🙂 |
…x-db-dynamic-routes (cherry picked from commit 463f3e6) (cherry-picked to staging by luacmartins)
|
🚀 Cherry-picked to staging by https://github.com/mjasikowski in version: 9.3.37-4 🚀
|
|
User redirected to expense details page and not to wallet, Win 11/Chrome, 9.3.37-8 Recording.2529.mp4 |
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.3.37-10 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/mjasikowski in version: 9.3.38-0 🚀
|
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.3.38-4 🚀
|
|
@collectioneur Did you have a chance to check it?
|
|
Hi @IuliiaHerets, yes, I've been testing this out, but I haven't managed to reproduce this bug 😞 Screen.Recording.2026-03-17.at.16.53.53.mov |
|
@collectioneur QA team still can reproduce this issue on build v9.3.37-0 PR:85212 Ad-Hoc screenrecording_03-17-2026_13-23-26_1.mp4 |
|
@IuliiaHerets I believe I’ve tracked down the root cause of this issue Screen.Recording.2026-03-18.at.10.40.43.movHere is what it looks like after: Screen.Recording.2026-03-18.at.11.12.26.movThat PR was already reverted on main via PR #85198, so this bug is now resolved on main as well |

deploy blocker when adding us-bank-account
Explanation of Change
Removed
SCREENS.SETTINGS.ADD_US_BANK_ACCOUNTfrom the SETTINGS_TO_RHP config inSETTINGS_TO_RHP.ts. When adding a PBA from the expense details page, this screen was incorrectly mapped to the wallet root, causing the app to navigate back to the wallet page instead of the expense details page after tapping Continue. The fix ensures correct back navigation to the originating screen (expense details) when the Add Bank Account flow is completed from that context.Fixed Issues
$ #85191
Tests
Precondition:
Steps:
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))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-03-13.at.11.14.57.mov