Repository navigation
Add a time sensitive task for setting up a deposit account - #100059
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 |
|
The failing test is unrelated |
|
@bernhardoj 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: 78701ec4da
ℹ️ 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".
|
@dukenv0307 the description and QA test looks mixed up with another PR? |
| @@ -148,6 +151,10 @@ function useTimeSensitiveItems(): React.ReactNode[] { | |||
| if (shouldShowAddBankAccount) { | |||
| items.push(<AddBankAccount key="add-bank-account" />); | |||
| } | |||
| // Priority 5b: Add a deposit account so a workspace with reimbursements enabled can pay the user. | |||
| if (shouldShowAddDepositAccount && !shouldShowAddBankAccount) { | |||
There was a problem hiding this comment.
Why don't we show if shouldShowAddBankAccount is true?
There was a problem hiding this comment.
Becuase a queued reimbursement comes from a reimbursement-enabled policy, both conditions are usually true together, and both open the same Wallet -> Add bank account flow. Showing both would be two near-identical rows to the same destination, so I let the queued-reimbursement row take priority.
There was a problem hiding this comment.
I see. Wdyt of putting it in an else if block?
if (shouldShowAddBankAccount) {
// AddBankAccount
} else if (shouldShowAddDepositAccount) {
// AddDepositAccount
}
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safariweb.23.05.14.mp4 |
|
@dukenv0307 also you have failing checks |
bernhardoj
left a comment
There was a problem hiding this comment.
LGTM! I think we can merge this without waiting for the international deposit account PR?
|
will raise the followup PR |
|
The failing check is unrelated. @bernhardoj could you please review this PR again? |
|
@MelvinBot Is the ts check fixed on main? |
|
No, it isn't fixed on Three
The field became required in Thread report drafts explicitly through the split-transaction update flow. I didn't find an open PR that fixes it. The fix is to add |
|
@arosiclair could you please take a look as well? |
arosiclair
left a comment
There was a problem hiding this comment.
@dukenv0307 seems like there's a bunch of accidental changes in this PR
|
@arosiclair my bad, not sure why it happened. I updated the PR 🙏 |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
| const goBack = () => { | ||
| clearDraftValues(ONYXKEYS.FORMS.COLLECT_DEPOSIT_ACCOUNT_FORM); | ||
| Navigation.goBack(ROUTES.SETTINGS_WALLET); | ||
| Navigation.goBack(backTo ?? ROUTES.SETTINGS_WALLET); |
There was a problem hiding this comment.
| Navigation.goBack(backTo ?? ROUTES.SETTINGS_WALLET); | |
| Navigation.goBack(); |
Would this "just work" without specifying any route? backTo is deprecated so we should avoid adding another instance of that. See here.
There was a problem hiding this comment.
Yep, looks good and works well. I Updated @arosiclair
There was a problem hiding this comment.
Nice, can we remove all of the other backTo references as well?
There was a problem hiding this comment.
@arosiclair I think we should keep backTo in other places since we're using it to preserve the background component.
By default, the Wallet page is the background of settings/wallet/collect-deposit-account/country. If we open it from Home page, then we need to use backTo=Home to ensure the Home page remains the background
There was a problem hiding this comment.
Doing it properly needs Dynamic Routes with per-entry base paths, which is a really big refactor. Should we do that 🤔 ?
There was a problem hiding this comment.
By default, the Wallet page is the background of settings/wallet/collect-deposit-account/country. If we open it from Home page, then we need to use backTo=Home to ensure the Home page remains the background
Just tested this without backTo and the behavior seems fine for now. It just navigates to the flow with the wallet screen in the background. Using dynamic routes is the better approach, but we can implement that in a follow up instead.
There was a problem hiding this comment.
@arosiclair Agree. I removed backTo, can you check it again?
|
🚧 arosiclair 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/arosiclair in version: 9.5.14-0 🚀
|
|
🚀 Deployed to production by https://github.com/grgia in version: 9.5.14-3 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
Show an "Add deposit account" time-sensitive task on Home for members of a collecting workspace who have no deposit account, with Fix opening the collect-deposit-account flow back to Home.
Fixed Issues
$ #96083
PROPOSAL:
Tests
Offline tests
Same as above
QA Steps
Same as above
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.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2026-10-09.at.10.26.20.mov