Duplicate workspace - #67412
Conversation
# Conflicts: # src/types/onyx/index.ts
|
|
# Conflicts: # src/pages/workspace/WorkspacesListRow.tsx
|
Demo (BE still working on API integration): Screen.Recording.2025-08-06.at.15.45.03.mov |
|
I will record all videos tomorrow - when API will be ready and reachable. |
|
@DylanDylann 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] |
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #67289 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
The rest looks fine |
yeah - copy is in place |
# Conflicts: # src/libs/actions/Policy/Policy.ts # src/types/onyx/index.ts
stitesExpensify
left a comment
There was a problem hiding this comment.
Long PR but it all looks great, nice job!
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/stitesExpensify in version: 9.1.98-0 🚀
|
[CP Staging] Revert #67412 "Duplicate workspace"
|
Another blocker here |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.1.98-12 🚀
|
|
🚀 Deployed to staging by https://github.com/stitesExpensify in version: 9.1.99-0 🚀
|
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.1.99-11 🚀
|
| areCategoriesEnabled: isCategoriesOptionSelected, | ||
| areTagsEnabled: isTagsOptionSelected, | ||
| areDistanceRatesEnabled: isCustomUnitsOptionSelected, | ||
| areInvoicesEnabled: isInvoicesOptionSelected, |
There was a problem hiding this comment.
This PR built the optimistic duplicated policy by spreading the entire source policy while turning on invoices, but never reset the per‑workspace invoice object:
// invoice (companyName / companyWebsite / Stripe bankAccount) is inherited from the source — this is the bug
So the duplicate inherited the source's invoice.companyName/companyWebsite, hasInvoicingDetails() returned true, the company‑info step was skipped, and SendInvoice ran against a workspace that was never provisioned for invoicing → the "unexpected error".
We fixed this by adding invoice: undefined here.
Regression Issue: Invoice created via duplicate workspace shows error.
Explanation of Change
New feature from OldDot - Duplicate workspace
Fixed Issues
$ #67289
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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
Android: Native
Android: mWeb Chrome
android-web.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-web.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov