Name the required deposit currency in the waiting-for-submitter-account next step - #94786
Name the required deposit currency in the waiting-for-submitter-account next step#94786ShridharGoel wants to merge 10 commits into
Conversation
…nt next step When the backend next step includes requiredDepositCurrency (set when a submitter's deposit account is the wrong currency for direct reimbursement), render "add a USD bank account" instead of the generic "add a bank account". Falls back to the generic copy when the field is absent.
|
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 ts-node ./scripts/generateTranslations.ts --helpTypically, you'd want to translate only what you changed by running |
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@Eskalifer1 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] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 335a281f6e
ℹ️ 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".
|
@trjExpensify Can you help with running the translations workflow? |
|
Hi! I will review it on Monday |
|
@codex review |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. 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". |
Reviewer Checklist
Screenshots/Videos |
🦜 Polyglot Parrot! 🦜Squawk! Looks like you added some shiny new English strings. Allow me to parrot them back to you in other tongues: The diff is too large to include in this comment (98KB), so I've created a gist for you: 📋 View the translation diff here 📋 Note You can apply these changes to your branch by copying the patch to your clipboard, then running |
trjExpensify
left a comment
There was a problem hiding this comment.
Nice lil' improvement. 👍





Explanation of Change
When a workspace reimburses directly into a deposit account (e.g. a USD Bancorp bank account), the submitter's deposit account must be in the matching currency. When it isn't, the report's next step is "Waiting for [submitter] to add a bank account" — but it never said which currency was required.
The backend now sends a
requiredDepositCurrencyvalue on the next step for this case. This PR renders it, so the message reads "Waiting for [submitter] to add a USD bank account" instead of the generic copy. When the field is absent (e.g. the submitter has no deposit account at all), the copy stays generic.Changes:
requiredDepositCurrencyto theReportNextStepOnyx type.buildNextStepMessagepasses it to thewaitingForSubmitterAccounttranslation.en.ts/es.tsrender "add a {currency} bank account" when the currency is present, otherwise the generic copy.This is the NewDot half of the backend work in Auth#22421, which sets the field.
Fixed Issues
$ #93938, https://github.com/Expensify/Expensify/issues/644032
PROPOSAL:
Tests
Offline tests
QA Steps
Same as the Tests above.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, 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.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
MacOS: Chrome / Safari