Skip to content

Only arm deferred VBBA navigation when a bank account request was started - #101154

Merged
blimpich merged 1 commit into
mainfrom
claude-chaseBankInfoDeferredNavigation
Sep 15, 2026
Merged

blimpich merged 1 commit into
mainfrom
claude-chaseBankInfoDeferredNavigation

Conversation

@MelvinBot

@MelvinBot MelvinBot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Explanation of Change

BankInfo defers navigation to the next VBBA step until the bank account request settles, using markSubmitting() from useReimbursementAccountSubmitCallback. 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 with bankAccountID = 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, and BankInfo only calls markSubmitting() 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

  1. Sign in as a workspace admin with no existing verified business bank account.
  2. Go to Workspace > Workflows and start adding a business bank account (USD).
  3. Choose Plaid and select Chase.
  4. Sign in with the Plaid sandbox credentials user_good / pass_good.
  5. Select the Plaid Saving test account and continue.
  6. Verify the flow stays on the bank information step and shows the manual account/routing number form, instead of advancing to Personal Information.
  7. Enter valid account and routing numbers and continue. Verify the flow advances to Personal Information and the rest of setup completes without "An error occurred while processing this step, please try again".
  8. Enter an invalid routing number and verify the validation error shows and the user stays on the bank information step.
  9. Repeat steps 2-5 with a non-Chase bank and verify the flow advances as before.
  10. Repeat with an existing Chase bank account (reconnect) and verify the flow advances as before.
  • Verify that no errors appear in the JS console

Offline tests

Same as Tests

QA Steps

Same as Tests

  • Verify that no errors appear in the JS console

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I followed proper code patterns (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I followed the guidelines as stated in the Review Guidelines
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))
  • If new assets were added or existing ones were modified, I verified that:
    • The assets are optimized and compressed (for SVG files, run npm run compress-svg)
    • The assets load correctly across all supported platforms.
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • I added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

…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

codecov Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ Changes either increased or maintained existing code coverage, great job!

Files with missing lines Coverage Δ
src/libs/actions/BankAccounts.ts 27.21% <100.00%> (+0.24%) ⬆️
...ges/ReimbursementAccount/USD/BankInfo/BankInfo.tsx 0.00% <0.00%> (ø)
... and 11 files with indirect coverage changes

@MelvinBot

MelvinBot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 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.
Validate your account magic code screen blocking Plaid

Step Status
1. Signed in as a workspace admin with no existing verified business bank accountSession account completed onboarding as admin/owner of a newly-created "Melvin Tester's Workspace" (Collect plan) with no bank account attached.
Post-onboarding home with new workspace
✅
2. Workspace > Workflows, start adding a business bank account (USD)Enabled the Workflows feature, opened Workspace Settings > Workflows > Payments, toggled Payments on, and tapped "Add bank account", landing on the "Streamline payments" / "Add bank account" screen with "Log into your bank" and "Connect manually" options.
Workflows > Payments tab
Add bank account screen
✅
3. Choose Plaid and select ChaseTapped "Log into your bank" (the Plaid entry point). Instead of a bank-selection/Plaid Link UI, the app immediately showed a "Validate your account" screen requiring a 6-digit email security code — Chase selection was never reachable.
Validate your account magic code screen blocking Plaid
❌
4. Sign in with Plaid sandbox credentials user_good / pass_goodNot reachable — blocked before Plaid Link loads (see step 3).
❌
5. Select the Plaid Saving test account and continueNot reachable — blocked before Plaid Link loads.
❌
6. Flow stays on bank information step and shows the manual account/routing form, not Personal information (the core fix)Could not exercise; blocked before the Plaid Chase substitute-numbers path could be triggered.
❌
7. Valid account/routing numbers advance to Personal information with no processing-step errorNot reachable.
❌
8. Invalid routing number shows a validation error and stays on the bank information stepNot reachable.
❌
9. Repeat steps 2-5 with a non-Chase bank — flow advances as beforeNot reachable.
❌
10. Repeat with an existing Chase bank account (reconnect) — flow advances as beforeNot reachable — would also have required a pre-existing verified Chase account, which this fresh session did not have.
❌

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

@MelvinBot

MelvinBot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 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.
Validate your account screen blocking the Connect manually path

Step Status
1. Signed in as workspace admin with no existing verified business bank accountReached Workspace Overview as Owner/admin of the test workspace; Workflows > Payments showed only an "Add bank account" action with no existing account listed.
Workflows > Payments tab with no existing bank account
✅
2. Workspace > Workflows, start adding a business bank account (USD)Navigated Workspace > More features > enabled Workflows > Workflows > Payments > Add bank account. Workspace default currency is USD. The "Add bank account" chooser appeared with "Log into your bank" and "Connect manually" options.
Add bank account chooser: Log into your bank / Connect manually
✅
3. Choose Plaid and select ChaseTapping "Log into your bank" (the Plaid entry point) immediately routed to a "Validate your account" screen requiring a 6-digit security code emailed to the test account, before any bank-selection or Chase-selection UI appeared. Melvin has no access to that mailbox, so this could not be cleared.
Validate your account screen blocking the Plaid path
❌
4. Sign in with Plaid sandbox credentials user_good / pass_goodNot reached — blocked by the account-validation gate before Plaid's own sign-in UI ever loads.
❌
5. Select the Plaid Saving test account and continueNot reached — blocked upstream by the account-validation gate.
❌
6. Flow stays on the bank information step and shows the manual account/routing form, not Personal information (the core fix)Could not be tested — the fix's behavior only manifests after a completed Plaid Chase connection, which was unreachable due to the validation gate.
❌
7. Valid account/routing numbers advance to Personal information with no processing-step errorNot reached. Also tried the "Connect manually" entry point directly (bypassing Plaid) and it hit the identical "Validate your account" code gate before showing any account/routing number fields.
Validate your account screen blocking the Connect manually path
❌
8. Invalid routing number shows a validation error and stays on the bank information stepNot reached — no manual form was ever displayed.
❌
9. Repeat steps 2-5 with a non-Chase bank — flow advances as beforeNot reached — blocked before bank selection.
❌
10. Repeat with an existing Chase bank account (reconnect) — flow advances as beforeNot reached, and not applicable — no bank account was ever successfully added in this run to reconnect.
❌

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 Unknown ref: e22 on the "Skip" button of the "What's your work email?" step and had to be completed by hand, and the workspace LHN plus the "More features" toggle list only became reachable after a raw-coordinate click and a larger viewport — ref-based clicks reported success while doing nothing.


view run · no recording available

@mkhutornyi

Copy link
Copy Markdown
Details

Explanation of Change

BankInfo defers navigation to the next VBBA step until the bank account request settles, using markSubmitting() from useReimbursementAccountSubmitCallback. 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 with bankAccountID = 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, and BankInfo only calls markSubmitting() 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

  1. Sign in as a workspace admin with no existing verified business bank account.
  2. Go to Workspace > Workflows and start adding a business bank account (USD).
  3. Choose Plaid and select Chase.
  4. Sign in with the Plaid sandbox credentials user_good / pass_good.
  5. Select the Plaid Saving test account and continue.
  6. Verify the flow stays on the bank information step and shows the manual account/routing number form, instead of advancing to Personal Information.
  7. Enter valid account and routing numbers and continue. Verify the flow advances to Personal Information and the rest of setup completes without "An error occurred while processing this step, please try again".
  8. Enter an invalid routing number and verify the validation error shows and the user stays on the bank information step.
  9. Repeat steps 2-5 with a non-Chase bank and verify the flow advances as before.
  10. Repeat with an existing Chase bank account (reconnect) and verify the flow advances as before.
  • Verify that no errors appear in the JS console

Offline tests

Same as Tests

QA Steps

Same as Tests

  • Verify that no errors appear in the JS console

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I followed proper code patterns (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I followed the guidelines as stated in the Review Guidelines
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))
  • If new assets were added or existing ones were modified, I verified that:
    • The assets are optimized and compressed (for SVG files, run npm run compress-svg)
    • The assets load correctly across all supported platforms.
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • I added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

@MelvinBot please set the PR body to the content in the details section above

@MelvinBot

MelvinBot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 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

@mkhutornyi

Copy link
Copy Markdown

@MelvinBot mark as ready for review

@MelvinBot
MelvinBot marked this pull request as ready for review September 15, 2026 08:02
@MelvinBot
MelvinBot requested a review from a team as a code owner September 15, 2026 08:02
@melvin-bot
melvin-bot Bot requested review from JmillsExpensify and mkhutornyi and removed request for a team September 15, 2026 08:02
@melvin-bot

melvin-bot Bot commented Sep 15, 2026

Copy link
Copy Markdown

@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]

@melvin-bot
melvin-bot Bot removed the request for review from a team September 15, 2026 08:02
@MelvinBot

MelvinBot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 Marked this PR as ready for review.

A review from Expensify/pullerbear was already requested, so it should get picked up from here.

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

@MelvinBot

MelvinBot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 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:

  1. BankInfo.tsx:85-87 — plaidAccountIDChanged fires deletePaymentBankAccount(bankAccountID).
  2. BankInfo.tsx:90 — that same flag forces CONST.DEFAULT_NUMBER_ID, which is exactly the Chase short-circuit's trigger at BankAccounts.ts:451. So didStartRequest is false, no request is sent.
  3. New BankInfo.tsx:104-106 returns early, so the user stays on Bank info — as intended.
  4. But deletePaymentBankAccount only writes BANK_ACCOUNT_LIST, USER_WALLET, and NVP_LAST_PAYMENT_METHOD — never REIMBURSEMENT_ACCOUNT. So achData.bankAccountID survives, making hasBankAccountData true and rendering both inputs disabled (Manual.tsx:89, Manual.tsx:102) — and empty, because the short-circuit set the draft fields to '' (BankAccounts.ts:459-462) and getSubStepValues uses ??, so '' wins over the achData fallback.

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 achData.bankAccountID, or skip the deletePaymentBankAccount call when the short-circuit is about to fire.

What I checked and cleared, plus three smaller issues

Cleared — not regressions:

  • No stranded spinner or locked form. markSubmitting only writes a private useRef (useReimbursementAccountSubmitCallback.ts:36-38), read in one effect. It touches no Onyx key, no FormProvider isLoading, no button-disabled state, no error clearing. Skipping it can only skip navigation.
  • The Chase merge does re-render into Manual. BankInfo reads achData.subStep directly (BankInfo.tsx:52), and the !== MANUAL guard on shouldReinitializePlaidLink prevents PLAID/manual desync. <Plaid> unmounts, killing its press-loading state.
  • setupType is never a third value at submit time. submit is only passed as onNext to <Plaid>/<Manual>, which only render for those two values; the default branch renders a spinner with no handler. The old unconditional markSubmitting() had no other reachable caller.
  • No other caller needs this guard. connectBankAccountWithPlaid has exactly one production call site. NonUSD BankInfo uses createCorpayBankAccount (always fires), personal-bank Plaid goes through addPersonalBankAccount (no Chase short-circuit at all, by design), and all five other useReimbursementAccountSubmitCallback consumers arm after an unconditional API write.
  • The new test is not vacuous. CONST.BANK_NAMES_USER_FRIENDLY[CONST.BANK_NAMES.CHASE] is 'Chase', and 'Chase'.toLowerCase() === 'chase', so it genuinely enters the short-circuit.

Smaller issues (all pre-existing, but this PR is the natural place to fix them):

  1. NaN bankAccountID bypasses the short-circuit. getBankAccountIDAsNumber is Number(achData?.bankAccountID ?? 0), which yields NaN for a non-numeric ID — a case the repo already treats as real (tests/unit/BankAccountsTest.ts has a "Given NaN for bankAccountID" test). Line 451 checks === DEFAULT_NUMBER_ID, so NaN falls through, and BankAccounts.ts:467 then normalizes it to 0 anyway — sending a new Chase account to the backend with the dummy numbers the short-circuit exists to prevent. Worth making line 451 treat NaN as new too.
  2. Chase detection is exact-match and fragile. bankName?.toLowerCase() === 'chase' uses Plaid's raw metadata.institution.name with no normalization anywhere in the chain. "Chase Bank" or "JPMorgan Chase" would not match and would hit the old broken path. The repo already has a fuzzy matcher for this exact reason — getBankNameKey uses includes/startsWith. I could not enumerate Plaid's real Chase institution names from this repo, so I can't say whether variants occur in practice.
  3. Dead effect worth deleting. BankInfo.tsx:129-136 sets redirectedFromPlaidToManualRef and nothing ever reads it. Its comment describes the exact Chase-dummy-numbers problem this PR is about, so leaving it will mislead the next reader.

Test coverage gap: the added test covers the action layer only. Neither USDVerifiedBankAccountFlowPageTest.tsx nor USDVerifiedBankAccountFlowPageBackTest.tsx mentions Chase, so nothing guards the actual behavior — that a new Chase account stays on Bank info instead of advancing. A component-level test there would be the real regression guard, and would also cover the deleted-account case above.

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 f106ed9.


view run · no recording available

@mkhutornyi

Copy link
Copy Markdown

Reviewer Checklist

  • I have verified the author checklist is complete (all boxes are checked off).
  • I verified the correct issue is linked in the ### Fixed Issues section above
  • I verified testing steps are clear and they cover the changes made in this PR
    • I verified the steps for local testing are in the Tests section
    • I verified the steps for Staging and/or Production testing are in the QA steps section
    • I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
  • I checked that screenshots or videos are included for tests on all platforms
  • I included screenshots or videos for tests on all platforms
  • I verified that the composer does not automatically focus or open the keyboard on mobile unless explicitly intended. This includes checking that returning the app from the background does not unexpectedly open the keyboard.
  • I verified tests pass on all platforms & I tested again on:
    • Android: HybridApp
    • Android: mWeb Chrome
    • iOS: HybridApp
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
  • I verified proper code patterns were followed (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick).
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I verified that this PR follows the guidelines as stated in the Review Guidelines
  • I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
  • If a new component is created I verified that:
    • A similar component doesn't exist in the codebase
    • All props are defined accurately and each prop has a /** comment above it */
    • The file is named correctly
    • The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
    • The only data being stored in the state is data necessary for rendering and nothing else
    • For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
    • Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
    • All JSX used for rendering exists in the render method
    • The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • For any bug fix or new feature in this PR, I verified that sufficient unit tests are included to prevent regressions in this flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
  • I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Android: HybridApp
Android: mWeb Chrome
iOS: HybridApp
ios.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
web1.mov
web2.mov

@melvin-bot
melvin-bot Bot requested a review from blimpich September 15, 2026 08:25
@blimpich

Copy link
Copy Markdown
Contributor

@mkhutornyi were you able to reproduce the original issue without this PR's changes?

@mkhutornyi

Copy link
Copy Markdown

@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)

Screenshot 2026-09-15 at 9 58 33 PM

Around 01:07: (the fields are broken on Confirm page)

Screenshot 2026-09-15 at 9 59 11 PM

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

@blimpich

Copy link
Copy Markdown
Contributor

@mkhutornyi thank you! Nice job!

@blimpich
blimpich merged commit 6f316bd into main Sep 15, 2026
49 of 51 checks passed
@blimpich
blimpich deleted the claude-chaseBankInfoDeferredNavigation branch September 15, 2026 22:48
@github-actions

Copy link
Copy Markdown
Contributor

🚧 blimpich has triggered a test Expensify/App build. You can view the workflow run here.

@OSBotify

Copy link
Copy Markdown
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by https://github.com/blimpich in version: 9.4.80-0 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@MelvinBot

Copy link
Copy Markdown
Contributor Author

🤖 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:

  • New How to connect a Chase business bank account section — login flow, the switch to the Manually add your bank account form, and the Connect manually alternative.
  • New FAQ entry on why Chase asks for the account number and routing number, and that reconnecting an already-added Chase account does not.
  • Added Chase, account number, routing number, and connect manually to the article keywords.
Scope check and label verification

connectBankAccountWithPlaid is only called from the USD business bank account flow (src/pages/ReimbursementAccount/USD/BankInfo/BankInfo.tsx), and the Chase short-circuit lives only in that action, so personal bank accounts and company card feeds are unaffected. No other article under docs/articles documents the Plaid connection flow for US business bank accounts, so nothing else needed changing.

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 Validate your account magic-code wall — so those three labels were verified against src/languages/en.ts and the Manual sub-step instead.

@mkhutornyi, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR Ready for review

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/luacmartins in version: 9.4.80-0 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 failure ❌

Bundle Size Analysis (Sentry):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Melvin-Test-Android Melvin-Test-Web Triggers Melvin to run the testing steps of the PR on web

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants