[No QA] Fix - Add bank account forward path ignores shouldSetUpUSBankAccount - #99729
Conversation
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e1398fa677
ℹ️ 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".
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
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". |
|
@aimane-chnaif 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: HybridAppAndroid: mWeb ChromeiOS: HybridAppios.moviOS: mWeb SafariMacOS: Chrome / Safariweb.movweb2.mov |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
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". |
Review: LGTM 👍The change does exactly what issue #98069 asked for (option 1: mirror the flag in the forward path), and it's correctly scoped. I found no correctness bugs — only small nits below. I also confirmed the flow is still unreachable in production: Nits (non-blocking)
What I verifiedThe Precedence matches the action.
CI: all checks green except Automated test run — could not execute the PR stepsI tried to run the documented test steps on web. They're not runnable in this harness: steps 1/3/5 need Result: fail (harness limitation, not a PR signal).
The unit tests in this PR cover the same five branches, so the behaviour is exercised — just not end-to-end. |
No regression foundI checked all three changed surfaces. Every input reachable from app code produces the exact same route before and after.
The One thing worth acting on: the new branch is dead code
That's pre-existing, not caused by this PR, and it's what Two nits
What else I ruled outNavigation / stack behaviour. All four screens live in the same Missing
React Compiler. No ignore/seatbelt entry for this file; the change adds only plain
CI: all checks green except Automated web test — partial (blocked on magic code)Result: partial — the reachable entry point works and correctly gates on validation, but the flow couldn't be driven past the magic code (no mail access to the test inbox, and no dev bypass code exists in the App source).
|



Explanation of Change
The
add-bank-accountverify page now mirrors theshouldSetUpUSBankAccountflag fromopenPersonalBankAccountSetupViewvia a query param and forwards to the US bank account flow after validation, so the post-verification path can no longer silently diverge from where a validated user is sent directly.Fixed Issues
$ #98069
PROPOSAL:
Tests
Important
The flow is unreachable by user (as issue states). Following test steps can be forced on web.
Open app in web browser
Use unvalidated account or paste
Onyx.merge('account', {validated: false});in the consolePaste
/add-bank-account/verify-account?shouldSkipPurposeSelection=true&shouldSetUpUSBankAccount=trueurlVerify that the "Verify account" magic-code RHP is shown.
Validate with magic code or paste
Onyx.merge('account', {validated: true);in the consoleVerify that the app forwards to
/settings/wallet/add-us-bank-account(US bank account flow)Repeat step 2
Paste
/add-bank-account/verify-account?shouldSkipPurposeSelection=trueurl (w/oshouldSetUpUSBankAccount)Validate with magic code or paste
Onyx.merge('account', {validated: true);in the consoleVerify app forwards to
/settings/wallet/add-bank-account/countryOffline tests
N/A
QA Steps
N/A
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, 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.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Details
MacOS: Chrome / Safari
Screen.Recording.2026-08-28.at.13.33.29.mov