Repository navigation
Only arm deferred VBBA navigation when a bank account request was started - #101154
Conversation
…s started The new Chase Plaid flow switches the user to manual entry without sending a request, but BankInfo armed its deferred submit callback unconditionally. That advanced the user to personal information with bankAccountID 0, which reset the in-progress VBBA state and left Onfido with an empty token. Co-authored-by: mkhutornyi <mkhutornyi@users.noreply.github.com>
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
🤖 Android test steps verification results: ❌ fail Setup (admin, fresh workspace, Payments workflow enabled, Add-bank-account entry reached) succeeded on standalone Android NewDot, but the Plaid/Chase flow under test (steps 3-10) is blocked by a mandatory email magic-code validation screen that Melvin cannot clear. The behavior this PR changes cannot be verified in the Melvin CI environment: enabling bank-account connection on a fresh test workspace requires a one-time email-code account validation that Melvin has no inbox to satisfy. Steps 3-10 need a human tester, or a test account validated before the run. Note: the session was handed off as ready, but the app was actually mid-onboarding ("What's your name?"). Onboarding was completed as setup ("Track expenses for my business", name "Melvin Tester"), which auto-created the workspace used above. view run · no recording available |
|
🤖 Web test steps verification results: ❌ fail Blocked before the PR's fix could be exercised: adding a bank account (Plaid or manual) requires an email-delivered account-validation code that Melvin cannot retrieve, so Chase/Plaid substitute-number behavior (steps 4-10) was never reached. This matches the Android run: the fix under test sits entirely behind a one-time email account-validation code that Melvin cannot retrieve. Re-running needs a test account that is already email-validated, or a way to inject the validation code. Two environment notes, unrelated to this PR: the prestarted onboarding replay diverged with view run · no recording available |
DetailsExplanation of Change
For a new Chase account, Plaid returns substitute account and routing numbers, so This change makes Behavior is unchanged for manual submissions, non-Chase new accounts, and existing-account Chase reconnects — all of those start a request and still advance as before. Fixed Issues$ #101128 Tests
Offline testsSame as Tests QA StepsSame as Tests
PR Author Checklist
@MelvinBot please set the PR body to the content in the details section above |
|
🤖 Updated the PR body to the content you provided. The description, Fixed Issues link, Tests, Offline tests, QA Steps, and the fully-checked PR Author Checklist are now in place. The old AI Tests note and the empty Screenshots/Videos section were removed, since they weren't in the content you gave. view run · no recording available |
|
@MelvinBot mark as ready for review |
|
@mkhutornyi 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] |
|
🤖 Marked this PR as ready for review. A review from One thing to flag: neither the Android nor the web test run could exercise the actual fix — both were blocked by the email account-validation code required before adding a bank account. The Chase/Plaid substitute-number behavior still needs a human pass. view run · no recording available |
|
🤖 The core fix is correct, but it turns one pre-existing path into a dead end the user can't escape. Blocking regression — existing Chase account + user picks a different Plaid account. The user's bank account gets deleted, no request replaces it, and they're now parked on a form they cannot fill. Trace:
Result: two disabled, empty, required inputs. Next fails validation forever, and their bank account is already gone. Before this PR they were navigated away (broken differently); now they're trapped. This is step 10 of your own test plan, so it's likely to be hit in review. Suggested fix: have the Chase short-circuit also clear What I checked and cleared, plus three smaller issuesCleared — not regressions:
Smaller issues (all pre-existing, but this PR is the natural place to fix them):
Test coverage gap: the added test covers the action layer only. Neither Runtime verification is still blocked: both the Android and web runs on this PR hit the email account-validation code required before adding a bank account, so none of this was confirmed in a running app. Everything above is from code reading at view run · no recording available |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppios.moviOS: mWeb SafariMacOS: Chrome / Safariweb1.movweb2.mov |
|
@mkhutornyi were you able to reproduce the original issue without this PR's changes? |
yes I exactly reproduced with Chase selection. Around 00:35: (blank routing number and account number brielfy shows)
Around 01:07: (the fields are broken on Confirm page)
And then from 01:33, it's quite buggy. (Entering Onfido step, and then fails) Screen.Recording.2026-09-15.at.9.55.24.PM.mov |
|
@mkhutornyi thank you! Nice job! |
|
🚧 blimpich has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/blimpich in version: 9.4.80-0 🚀
|
|
🤖 Yes — a help site update is required, and I opened a draft PR for it: Docs updates for E/A#101154 Chase business bank accounts require manual entry Why: this PR makes the new-Chase Plaid path stay on the bank information step and render the manual account/routing form. The help site never documented that, so a user who logs into Chase while adding a US business bank account has no article explaining why they are suddenly asked to type in their account and routing numbers. What changed in docs/articles/new-expensify/wallet-and-payments/Connect-a-Business-Bank-Account.md:
Scope check and label verification
Labels used in the article were checked against the running App and the source strings: Add bank account, Log into your bank, Connect manually (confirmed on screen in the Workflows → Payments → Add bank account flow), plus Manually add your bank account, Account number, and Routing number from the bank info step. I could not reach the manual entry screen in the live session — both connection paths hit the @mkhutornyi, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR |
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.4.80-0 🚀
Bundle Size Analysis (Sentry): |










Explanation of Change
BankInfodefers navigation to the next VBBA step until the bank account request settles, usingmarkSubmitting()fromuseReimbursementAccountSubmitCallback. That call sat outside the branch that fires the request, so it armed the deferred navigation even when no request was made.For a new Chase account, Plaid returns substitute account and routing numbers, so
connectBankAccountWithPlaid()deliberately sends nothing and switches the user to manual entry instead. Because navigation was armed anyway, the user was pushed to Personal Information withbankAccountID = 0. The backend could not find a bank account row, reset the in-progress VBBA state including the Onfido token, and the App then launched identity verification with an empty token — surfacing "An error occurred while processing this step, please try again" on the date of birth step.This change makes
connectBankAccountWithPlaid()return whether it actually started a backend request, andBankInfoonly callsmarkSubmitting()when a request was started. The new-Chase case now stays on the bank information step so the manual account/routing form renders, which is what the legacy backend already does with Chase's substitute numbers.Behavior is unchanged for manual submissions, non-Chase new accounts, and existing-account Chase reconnects — all of those start a request and still advance as before.
Fixed Issues
$ #101128
Tests
user_good/pass_good.Plaid Savingtest account and continue.Offline tests
Same as Tests
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)Avatar, 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.