Repository navigation
Conversation
|
Hey, I noticed you changed If you want to automatically generate translations for other locales, an Expensify employee will have to:
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 --helpTypically, you'd want to translate only what you changed by running |
|
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
8fdf510 to
38dab70
Compare
grgia
left a comment
There was a problem hiding this comment.
Command: UpdateWiseOnboardingAdditionalData
AUTH: https://github.com/Expensify/Auth/pull/25410
WEB: https://github.com/Expensify/Web-Expensify/pull/57403
A few Auth requirements for this PR, plus notes for when saving is wired up.
For this PR
-
Keep Next and Confirm. The current buttons are correct: DynamicForm’s Next on each page and Confirm on the last page, consistent with the App’s other multi-step flows. We can reassess the Save convo in https://github.com/Expensify/Expensify/issues/692487
-
The business page needs all twelve fields.
UpdateWiseOnboardingAdditionalData(Auth#25410) requires these exact keys forstep: 'business':companyName companyTaxID website addressStreet addressCity addressState addressZipCode addressCountry companyType companyRole industryCategories descriptionPlease add the missing account details as read-only, prefilled rows. Use the bank account’s exact field names above, including the individual address keys.
addressCountry: a fixed, read-onlyUSrow for this form.companyType: a select, prefilled fromincorporationTypewhere it maps cleanly to LLC, Corp, or Sole Proprietorship. Otherwise, leave it for the admin to select.
-
Prefill from
reimbursementAccount.achData. The owner’sachDatacontains the company details. The sharedbankAccountListentry does not containcompanyName,companyTaxID, orwebsite. Also,accountData.addressNameis the account nickname, so it cannot supply the legal company name. -
Page keys correspond to Auth steps. Auth supports
businesstoday. Support for a separaterepresentativestep will come in a follow-up. The phone and ID document fields are already on the right page.
When saving is wired up
Each page submits one call on Next, or Confirm on the final page:
UpdateWiseOnboardingAdditionalData(bankAccountID, step, inputs)
Files go as request files. Web uploads them and passes their keys.
Auth supplies the additional KYC pages after the business page is saved. The App does not fetch or compute the requirements:
- Submit the business page with
step: 'business'. - Merge the response into
reimbursementAccount. - Read
reimbursementAccount.achData.wise.kycRequirements. - For each requirement with
requestedBy: 'EXPENSIFY', append the matching page fromkycRequirementLayouts.tsafter the profile pages. - Submit each additional page through the same command, using its requirement
keyasstep.
For example, Auth may return:
{
"achData": {
"wise": {
"kycRequirements": [
{
"key": "BUSINESS_SOURCE_OF_WEALTH_INFO",
"state": "NOT_PROVIDED",
"isHostedOnly": false,
"requestedBy": "EXPENSIFY"
}
]
}
}
}That page would submit with step: 'BUSINESS_SOURCE_OF_WEALTH_INFO'.
Before the first business save, there is no requirements list and no additional KYC pages. The list is empty for most businesses. Always read it from reimbursementAccount.
getWiseOnboardingForm and kycRequirementLayouts.ts in #103979 show the expected shape.
|
Note this comment @mikolajpochec #104486 (comment) |
|
@ZhenjaHorbach 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] |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
| function getIndustryCategoryOptions(): DynamicFormFieldOption[] { | ||
| return CONST.WISE.INDUSTRY_CATEGORIES.map((key) => { | ||
| const words = key.toLowerCase().replaceAll('_', ' '); | ||
| return {key, label: words.charAt(0).toUpperCase() + words.slice(1)}; |
There was a problem hiding this comment.
❌ CONSISTENCY-7 (docs)
The label of each industry category option is built at runtime by title-casing the CONST.WISE.INDUSTRY_CATEGORIES key (e.g. SOFTWARE_DEVELOPMENT_PUBLISHING → Software development publishing). These labels are user-visible picker options, but they are produced as hardcoded English rather than routed through the localization system, so they will not be translated for non-English users.
Add the category names to src/languages/* and resolve each label through translate(...) using a per-category translation key instead of de-camelCasing the constant:
function getIndustryCategoryOptions(translate: LocalizedTranslate): DynamicFormFieldOption[] {
return CONST.WISE.INDUSTRY_CATEGORIES.map((key) => ({
key,
label: translate(`walletPage.wiseOnboarding.business.industryCategory.${key}`),
}));
}Reviewed at: 1aebf3e | Please rate this suggestion with 👍 or 👎 to help us improve! Reactions are used to monitor reviewer efficiency.
There was a problem hiding this comment.
I'll add translations
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 38dab70fd2
ℹ️ 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".
| return ( | ||
| <DynamicFormFlow | ||
| schema={US} | ||
| formID={ONYXKEYS.FORMS.WISE_BUSINESS_ONBOARDING_FORM} |
There was a problem hiding this comment.
Isolate onboarding drafts by bank account
When a user starts onboarding account A, backs out, and then starts account B, this constant form ID reuses the same draft; getMissingPrefill refreshes only companyName, leaving A's companyRole, industryCategories, and description silently filled for B. Since eligible accounts can belong to different businesses, associate the draft with bankAccountID or clear the company-specific answers when the account changes.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
The draft is now tied to bankAccountID. Opening the form for another bank account starts it over
|
🚧 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.
|
Otherwise, looking solid! |
Screen.Recording.2026-10-23.at.08.11.20.movNAB: Maybe let's add |
| layout="pages" | ||
| maxFileSize={CONST.API_ATTACHMENT_VALIDATIONS.MAX_SIZE} | ||
| buildRoute={(pageName, action) => createDynamicRoute(DYNAMIC_ROUTES.WISE_BUSINESS_ONBOARDING.getRoute(pageName, action), introPath)} | ||
| shouldReplaceRoute |
There was a problem hiding this comment.
I wonder if we should use this prop, with this option enabled we cannot go back using the browser back button:
Screen.Recording.2026-10-23.at.08.40.14.mov
| const US: DynamicFormSchema = { | ||
| pages: [ | ||
| { | ||
| key: 'representative', | ||
| titleKey: 'walletPage.wiseOnboarding.representative.title', | ||
| descriptionKey: 'walletPage.wiseOnboarding.representative.description', |
There was a problem hiding this comment.
Maybe, let's write pages as separate objects, it'll be more readable
|
@joekaufmanexpensify there's some extra info that wise needs to confirm that may impact the design per #104741 (comment) let's sync & confirm with wise so we're on the same page See here we need to include a few more business inputs for the payload than our initial mock.
Most should be prefilled with drafts from existing info so the customer should only need to confirm. |
|
🚧 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.
…-create-initial-intake-form
|
Retested, feedback:
|
|
If we want to address these in a follow-up PR, that is fine with me. 👍 |
|
Let's link all the threads to address in follow up issues in this gh issue- https://github.com/Expensify/Expensify/issues/692491 |
|
Works for me 👍 |
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Approving since we're handling the items i flagged in a follow up issue
grgia
left a comment
There was a problem hiding this comment.
Approving, let's unblock the remaining pieces of this flow
|
🎯 @ZhenjaHorbach, thanks for reviewing and testing this PR! 🎉 A payment issue will be created for your review once this PR is deployed to production. If payment is not needed (e.g., regression PR review fix etc), react with 👎 to this comment to prevent the payment issue from being created. |
|
Let's merge then! |
|
🚧 grgia 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/grgia in version: 9.5.25-0 🚀
|
|
No help site update is needed: the new Wise business onboarding form, its banners, and the intro page are all gated behind the |
|
Deploy Blocker #105344 was identified to be related to this PR. |
|
@mikolajpochec Applause does not have wisereimbursements beta account and we validated only in the Web since not possible to run the snippet in native apps |
|
@kavimuru no QA is required for the wise project for now |
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.5.25-2 🚀
Bundle Size Analysis (Sentry): |






Explanation of Change
This PR adds the Wise business onboarding form for US bank accounts, behind the
wiseReimbursementsbeta.Important
Stacked on #104105 (DynamicForm accessibility), which is not merged at the time of writing.
Note
Of the issue's goals, this PR does not persist the answers with
UpdateWiseOnboardingAdditionalData. They stay in the form draft on the device.Get started on the intro page opens Business representative, Business info, Confirm and Accept terms. The first three are a
DynamicFormFlowbuilt fromWise/forms/US.ts. The representative is prefilled from Profile > Private. The business page shows the company's legal name, tax ID, website and address as read-only rows from the bank account's details, which the page loads withOpenReimbursementAccountPage, and the company type is preselected from its incorporation type. Confirm on the terms page closes the flow.It also brings fixes to
DynamicForm:Points I'd like to discuss
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/692493
PROPOSAL:
Tests
The flow needs an account on the
wiseReimbursementsbeta with an eligible bank account (USD, business, open, not on Corpay).Please expand this if you don't have access to such an account:
Without an account on the beta
Paste this in the browser console (web) or run it through the JS debugger (native):
123-45-6789as the SSN and press Next123456789, upload an image as the ID and press NextOffline tests
QA Steps
Same as tests, with an account on the
wiseReimbursementsbeta and a USD business bank account that is not on Corpay.PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari