Repository navigation
[Payment due @truph01] Offer to take over all of the owner's workspaces when transferring ownership - #106103
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 |
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.
|
|
@allgandalf Please let me know once it is ready to review. Thanks! |
|
Please start your review, |
|
@QichenZhu 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. |
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / SafariScreen.Recording.2026-11-11.at.14.45.15.mov |
|
@allgandalf How can I add a test payment card to reproduce this issue? AFAIK, we need a real card unless I use your development environment. |
|
can you try using the cards here? https://docs.stripe.com/testing |
|
This is waiting on auth now I believe |
|
@truph01 since we changed the data storage here, could you do one last review please? |
|
@truph01 back to you |
|
@truph01 did you test this on native platforms too ? i don't see those recordings in your checklist, I have not tested all cases on native, can you please do so and update the c+ checklist please |
@allgandalf I tried before, but I don't have an account that can test this on native. In native, |
|
@truph01 so there is no way to test this on native? |
|
Looks like there are no native specific changes here, so lets get this one merged |
Dismissing toms review since that was from 3 weeks ago
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 JS00001 has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/JS00001 in version: 9.5.56-0 🚀
|
|
Help site update needed — the new bulk takeover workflow makes “you must transfer one workspace at a time” incorrect. Created Explain taking over multiple workspaces together as a draft, labeled @allgandalf, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.5.56-2 🚀
Bundle Size Analysis (Sentry): |
|
🤖 Payment issue created: #108575 |
Explanation of Change
When you take over a workspace and you're an admin on all of the owner's paid workspaces, the transfer flow now asks if you want just this one or all of them.
CheckBulkTransferPolicyBillingOwnersaves which ones can move together inbillingTakeoverPolicies, and picking all callsQueueBulkTransferPolicyBillingOwner. If the owner is on an annual subscription, the step also says how much yours grows, since their last workspace takes it over.Overview and the Workspaces list no longer call
requestWorkspaceOwnerChangebefore opening the page, since the page already does it on mount and the transfer was sent twice.Needs https://github.com/Expensify/Auth/pull/27050 and https://github.com/Expensify/Web-Expensify/pull/58877 deployed first.
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/692007
PROPOSAL:
Tests
Transfer owner.Take over workspacesstep shows and names user A.Yes, all 2and verify the success page says you'll be the owner of all 2 workspaces in a few minutes. Verify user B owns both workspaces after a minute.No, just this oneand verify only that workspace moves to user B.Transfer owneron one of user A's workspaces and verifyDuplicate subscription alertshows like before.Yes, all 2and verify user B owns both workspaces after a minute.Offline tests
Transfer owneras in test 2. Verify the flow skips the new step and continues with this workspace only.QA Steps
Same as tests.
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
MacOS: Chrome / Safari
take-over-all-workspaces-web.mp4