Repository navigation
Disable deposit account collection optimistically when payments turned off - #105334
arosiclair merged 2 commits into
Conversation
|
@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] |
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fcddf868f3
ℹ️ 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".
| }); | ||
| } | ||
|
|
||
| // Turning payments off also stops collecting employee bank details and clears the reimbursement countries |
There was a problem hiding this comment.
Explain why the deposit settings follow payments
This comment only paraphrases the REIMBURSEMENT_NO condition and the two assignments immediately below it, so it violates the required comment-why standard and will be flagged by the repository's inline reviewer. Remove it or state the non-obvious invariant, such as that the API clears these fields server-side and the optimistic cache must mirror that behavior.
AGENTS.md reference: AGENTS.md:L7-L10
Useful? React with 👍 / 👎.
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safariw.mp4e.mp4 |
|
🚧 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.28-4 🚀
|
|
Hi @dukenv0307. How can we enable the collectDepositAccounts beta? Is an Expensifail account ok to use? |
|
@IuliiaHerets You can enable it in
|
|
🚀 Deployed to staging by https://github.com/arosiclair in version: 9.5.30-0 🚀
|
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.5.30-0 🚀
Bundle Size Analysis (Sentry): |

Explanation of Change
setWorkspaceReimbursement now optimistically sets isCollectDepositAccountsEnabled: false and clears reimbursement.countries when the choice is None (reimburseNo)
Fixed Issues
$ #96084
PROPOSAL:
Tests
Precondition:
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-29.at.10.51.38.mov