Skip to content

[Wise] Create Initial Intake Form - #104696

Closed
mikolajpochec wants to merge 1 commit into
Expensify:mainfrom
software-mansion-labs:@mikolajpochec/wise-intake-form
Closed

mikolajpochec wants to merge 1 commit into
Expensify:mainfrom
software-mansion-labs:@mikolajpochec/wise-intake-form

Conversation

@mikolajpochec

@mikolajpochec mikolajpochec commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Explanation of Change

This PR adds the Wise business onboarding form for US bank accounts, behind the wiseReimbursements beta. It replaces my earlier draft, #104486. As agreed on Slack, the form comes first and UpdateWiseOnboardingAdditionalData is wired in the next PR, so nothing here waits for Auth.

Get started on the intro page opens Business representative, Business info, Confirm and Accept terms. The first three are a DynamicFormFlow built from Wise/forms/US.ts. The representative is prefilled from Profile > Private and the legal business name from the bank account. No command is called yet, so Confirm on the terms page closes the flow.

This is the first screen on DynamicFormFlow, so it brings four small fixes to it: Android's back button goes back one page instead of closing the flow, a reopened flow never shows the previous visit's SSN, multiline answers fit on one line on the confirmation page, and multiline fields grow with their text.


Points I'd like to discuss

Differences from the mockups
  • Next instead of Save. The doc says "Save will take the user to..." on every page. The pages use DynamicForm's Next, and Confirm on the last one, like the other multi-step flows in the App.
  • Pickers. Role and industry use our standard pickers, a row that opens a list, as the doc asks ("our standard drop down"). The mockup draws a bordered field with a down arrow, which the App has no component for.
  • Industry category takes several values, as the doc says ("Multiple values can be selected"). The mockup shows one.
  • No "I don't have a Social Security Number or ITIN" link yet. It needs a new link-style field in DynamicForm, so it comes in its own PR on top of this one.
Not in this PR
  • Page saves and resume (UpdateWiseOnboardingAdditionalData), in the next PR
  • Submit and its errors, the hosted form kickout, Wise's embedded page and the status pages
  • Enhanced due diligence

Fixed Issues

$ https://github.com/Expensify/Expensify/issues/692493
PROPOSAL:

Tests

The flow needs the beta and an eligible bank account (USD, business, open, not on Corpay). On dev, paste this in the browser console (web) or run it through the JS debugger (native) to get both:

Onyx.merge('betaOverrides', {wiseReimbursements: true});
Onyx.merge('bankAccountList', {'9053192': {accountType: 'bankAccount', bankCurrency: 'USD', bankCountry: 'US', title: 'Boulder Development Inc.', description: 'Account ending in 1234', methodID: 9053192, accountData: {bankAccountID: 9053192, addressName: 'Boulder Development Inc.', accountNumber: 'XXXX1234', state: 'OPEN', type: 'BUSINESS', additionalData: {currency: 'USD', country: 'US'}}}});
  1. Fill Profile > Private with a legal name, phone number, date of birth and address
  2. Go to Account > Wallet and press Get started on the "Pay people worldwide" banner, then Get started on the intro page
  3. Verify that the representative page shows your legal name, phone number, date of birth and address prefilled
  4. Type 123-45-6789 as the SSN and press Next
  5. Verify that the SSN shows "Invalid format. Example: 123456789", and the ID field "This field is required"
  6. Type 123456789, upload an image as the ID and press Next
  7. Verify that the business info page shows "Boulder Development Inc." as a row you cannot edit
  8. Press Next with nothing filled and verify that role, industry and description show "This field is required"
  9. Pick a role and two industry categories, type a description over two lines, and verify that the description grows with the text
  10. Press Next and verify that the confirmation page lists every answer, with the SSN masked and the description on one line
  11. Press the role row, change it, press Confirm, and verify that the confirmation page shows the new role
  12. Press Confirm, then Confirm on the terms page with one box unticked
  13. Verify that "Please accept all of the terms to continue." shows and Confirm stays usable
  14. Tick all three boxes and press Confirm, and verify that the flow closes
  15. Open the flow again and verify that it resumes with your answers except the SSN
  16. On Android, press the back button on the business info page and verify that it goes to the representative page, not the intro
  17. Repeat steps 2-3 from Workspaces > a workspace > Workflows > Payments, using its banner
  • Verify that no errors appear in the JS console

Offline tests

  1. Go offline on the representative page
  2. Fill the representative and business info pages and go through to the terms page
  3. Verify that every page works offline, since nothing is sent to the server yet
  4. Verify that Confirm on the terms page is disabled offline

QA Steps

Same as tests, with an account on the wiseReimbursements beta and a USD business bank account that is not on Corpay.

  • 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 verified any copy / text that was added to the app 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 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 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.
  • If the PR adds or modifies the UI:
    • I asked an AI agent to review the changes for accessibility issues and addressed its findings.
    • I tested with a screen reader (VoiceOver on macOS) and verified all new/changed elements are reachable with a logical focus order.
    • I verified all new/changed elements have meaningful accessible names and roles.
    • I verified state changes are announced (e.g. checked/unchecked, expanded/collapsed, selected).
  • 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.

Screenshots/Videos

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari

@melvin-bot

melvin-bot Bot commented Oct 22, 2026

Copy link
Copy Markdown

Hey, I noticed you changed src/languages/en.ts in a PR from a fork. For security reasons, translations are not generated automatically for PRs from forks.

If you want to automatically generate translations for other locales, an Expensify employee will have to:

  1. Look at the code and make sure there are no malicious changes.
  2. Run the Generate static translations GitHub workflow. If you have write access and the K2 extension, you can simply click: [this button]

Alternatively, if you are an external contributor, you can run the translation script locally with your own OpenAI API key. To learn more, try running:

npx bun ./scripts/generateTranslations.ts --help

Typically, you'd want to translate only what you changed by running npx bun ./scripts/generateTranslations.ts --compare-ref main

@mikolajpochec mikolajpochec changed the title Add Wise business onboarding intake form [Wise] Create Initial Intake Form Oct 22, 2026
@codecov

codecov Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codecov Report

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

Files with missing lines Coverage Δ
src/CONST/index.ts 95.90% <ø> (ø)
src/ROUTES.ts 34.16% <100.00%> (+1.34%) ⬆️
src/SCREENS.ts 100.00% <ø> (ø)
src/components/DynamicForm/index.tsx 92.59% <100.00%> (+0.22%) ⬆️
...components/DynamicForm/renderers/textRenderers.tsx 96.96% <100.00%> (+0.09%) ⬆️
...nents/DynamicForm/utils/formatDynamicFieldValue.ts 97.50% <100.00%> (+0.13%) ⬆️
src/libs/CountryUtils.ts 94.11% <100.00%> (+2.45%) ⬆️
src/libs/Navigation/linkingConfig/config.ts 62.50% <ø> (ø)
...ile/PersonalDetails/PrivatePersonalDetailsPage.tsx 0.00% <ø> (ø)
...Reimbursements/Wise/WiseBusinessOnboardingPage.tsx 100.00% <100.00%> (ø)
... and 6 more
... and 369 files with indirect coverage changes

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant