Repository navigation
Send the workspace's card program when settling the balance and saving the settlement frequency - #102938
Conversation
Codex Review Summary: ❌ FailedThis 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. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
🚧 madmax330 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/madmax330 in version: 9.5.53-0 🚀
|
|
No help site update needed — this fixes existing card settlement and frequency-saving actions for UK/EU workspaces without introducing a new workflow or making existing instructions incorrect. |
|
@KioCoan @joekaufmanexpensify How can we connect to a Corpay settlement account? It looks like Applause doesn't have the ability to add one ourselves. Could this one please be validated internally or clarify how we should proceed? |
|
I think this has to be internal QA. Happy to take it this morning. |
|
I tested changing from daily to monthly settlement on a UK feed and confirmed it is working. It will take a few days to test the settle balance portion, though, because I need to run an actual test transaction, wait for it to post, and then try and settle the balance. Also slightly complicated by the fact that I'm going to be out of office the rest of the week for Thanksgiving in the U.S. @madmax330 do you think that's okay for the settle balance portion of this PR, basically to go out to prod, and then me testing the settle balance portion manually early next week? |
|
Looks like it's late for Maxence and this is blocking. The changes look pretty straight forward and low risk to me, so I think we're safe to proceed. Checking this one off |
Yeah that should be fine |
|
🚀 Deployed to production by https://github.com/arosiclair in version: 9.5.53-3 🚀
Bundle Size Analysis (Sentry): |
1 similar comment
|
🚀 Deployed to production by https://github.com/arosiclair in version: 9.5.53-3 🚀
Bundle Size Analysis (Sentry): |
|
Update: I ran a test transaction today, just waiting for it to post, and then I will test the early balance settle on the UK feed. |

Explanation of Change
feedCountry: US, and the settlement frequency save sent no program, so the backend assumed US. For UK/EU workspaces both failed on the server: Settle balance did nothing, and Monthly looked saved but the server stayed on daily.getCardProgramKey), the same key the optimistic Onyx writes already use. Settle balance leaves it out when no program is detected, so the backend picks the provisioned one, as Expensify Classic does.feedCountry, and the monthly UK/EU billing fix (Auth#25168) is in production.Fixed Issues
#100419
Tests
npx jest tests/actions/CardSettlementFrequencyTest.ts tests/ui/WorkspaceCardsListLabelTest.tsx tests/ui/WorkspaceSettlementFrequencyPageTest.tsxand verify all tests pass.UpdateCardSettlementFrequencyrequest carriesfeedCountry=GBand Monthly is still selected after a reload.Domain_QueueExpensifyCardForBillingrequest carriesfeedCountry=GB, and the button is replaced by "Balance will be settled on".USorCURRENT) is sent and nothing else changes.Offline tests
N/A
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, 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