Redirect back to wallet after account successfully added#82621
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
I have some problems with recordings of other platforms, but I don't want to block the PR for that |
|
@dominictb 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] |
PR ReviewChange: Single-line modification in InternationalDepositAccountContent.tsx that skips backTo navigation when backTo contains ROUTES.SETTINGS_BANK_ACCOUNT_PURPOSE, falling through to the switch that routes to SETTINGS_WALLET. Suggestions
Neither suggestion is blocking — the current fix works correctly for the reported issue. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2964a9be8b
ℹ️ 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".
| if (backTo && !backTo.includes(ROUTES.SETTINGS_BANK_ACCOUNT_PURPOSE)) { | ||
| Navigation.goBack(backTo); |
There was a problem hiding this comment.
Scope bank-account-purpose bypass to success exit only
This condition now skips Navigation.goBack(backTo) whenever backTo points to SETTINGS_BANK_ACCOUNT_PURPOSE, but goBack() is also used by handleBackButtonPress on the first substep (country selector), not just on success. In that flow, pressing back/cancel now sends users to Wallet instead of returning to the purpose screen they came from, so they lose the ability to back out and choose a different purpose without restarting the flow.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
and strict equality doesn't work here as backTo param gets additional / at the beginning, ROUTE doesn't include /
|
If this requires C+ review, I can help as @dominictb's moved to backend team |
|
This is related to an existing project @dominictb is finishing up before fully offboarding to backend |
|
🚧 @joekaufmanexpensify has triggered a test Expensify/App build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
|
The changes in the PR would mean we couldn't go back to the purpose page in personal bank account flow: Screen.Recording.2026-02-18.at.00.02.15.movThat is inconsistent with BBA flow. |
|
Hm, yeah that should work the same way for both. Navigating back from the country list should drop you on the purpose page. |
|
🚧 @joekaufmanexpensify 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! 🧪🧪
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2026-02-18.at.16.32.24.mov |
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Works well from a product perspective 👍
|
all yours @srikarparsi |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 @srikarparsi 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! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/srikarparsi in version: 9.3.22-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.3.22-4 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.3.22-4 🚀
|
Explanation of Change
Fixed Issues
$ #82610
PROPOSAL: -
Tests
Prerequisites: at least one workspace (owned)
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
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
Screen.Recording.2026-02-17.at.09.36.29.mp4
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2026-02-17.at.09.10.08.mp4