You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2025-11-06] [$250] Upgrade the delete workspace flow to a non-blocking UI pattern #73440
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributor
We updated the error pattern for when we delete workspaces in this recent PR: #64015. However we made it into a blocking pattern because it was difficult to figure out how to make it a non-blocking pattern for offline flows. Making the workspace deletion flow a blocking pattern makes the app less usable for users with bad internet connections, hindering our ability to attract a large user base and compete.
Solution
Make the pattern a non-blocking pattern.
Behavior
Pre-requisites:
User owns a workspace with three purchases and an annual subscription that has not expired.
Go to the workspaces page
Click on the kebab menu
Click Delete
OR
Go to the workspace settings > Overview
Click Delete
Expected Result:
Online
User clicks Delete
A centered alert modal appears:
Delete workspace
You can’t delete the workspace until the end of the annual subscription term.
[Got it]
Offline
User clicks Delete
The workspace is optimistically deleted (i.e appears at 50% opacity & strikethrough on the Workspaces page)
User comes back online
The RBR dismissible message is added in-line that reads: "You can’t delete the workspace until the end of the annual subscription term."
User dismisses the error message and it disappears
changed the title [-]Upgrade the delete workspace flow to a non-blocking UI pattern[/-][+][$250] Upgrade the delete workspace flow to a non-blocking UI pattern[/+]on Oct 24, 2025
changed the title [-][$250] Upgrade the delete workspace flow to a non-blocking UI pattern[/-][+][Due for payment 2025-11-06] [$250] Upgrade the delete workspace flow to a non-blocking UI pattern[/+]on Oct 30, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.2.40-1 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@shubham1206agra / @situchan@zanyrenney The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: N/A New feature
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Precondition:
User owns a workspace with three purchases and an annual subscription that has not expired.
Test:
Go to workspace lists page
Click the Delete workspace button in three dot menu
The confirmation alert modal appears
Click Delete to confirm
The Delete button in the modal shows a loading spinner waiting on a response from the API to confirm
[Failure] Verify that modal is displayed explaining the reason they can’t delete the workspace
[Success] Verify that the workspace is deleted and disappears from the list
Go to workspace overview page
Repeat steps 2 - 5
[Failure] Verify that modal is displayed explaining the reason they can’t delete the workspace
[Success] Go back to workspaces list page and Verify that the workspace is deleted and disappears from the list
Offline tests:
Go to workspace lists page
Go offline.
Click the Delete workspace button in three dot menu
The confirmation alert modal appears
Click Delete to confirm
Verify that the workspace is being shown as striked out.
Go back online.
[Failure] We show the RBR below the workspace list item explaining the reason they can’t delete the workspace
[Success] The workspace is deleted and disappears from the list
Go to workspace overview page
Repeat steps 2 - 5
Verify that the we go back to the workspace list page.
Go online again.
[Failure] We show the RBR below the workspace list item explaining the reason they can’t delete the workspace
[Success] The workspace is deleted and disappears from the list
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributor
Activity
[-]Upgrade the delete workspace flow to a non-blocking UI pattern[/-][+][$250] Upgrade the delete workspace flow to a non-blocking UI pattern[/+]melvin-bot commentedon Oct 24, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021981759486700878032
melvin-bot commentedon Oct 24, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 (
External)melvin-bot commentedon Oct 24, 2025
Triggered auto assignment to @zanyrenney (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.blimpich commentedon Oct 24, 2025
Assigning this task to @shubham1206agra, talked to them in DM about this issue and created it specifically for them.
10 remaining items
[-][$250] Upgrade the delete workspace flow to a non-blocking UI pattern[/-][+][Due for payment 2025-11-06] [$250] Upgrade the delete workspace flow to a non-blocking UI pattern[/+]melvin-bot commentedon Oct 30, 2025
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Oct 30, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.2.40-1 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2025-11-06. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Oct 30, 2025
@shubham1206agra / @situchan @zanyrenney The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
situchan commentedon Nov 3, 2025
BugZero Checklist:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: N/A New feature
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Precondition:
User owns a workspace with three purchases and an annual subscription that has not expired.
Test:
Offline tests:
Do we agree 👍 or 👎
zanyrenney commentedon Nov 7, 2025
Payment
@shubham1206agra requires payment through NewDot Manual Requests - please request $250
@situchan requires payment automatic offer (Contributor) - $250 paid on upwork.
garrettmknight commentedon Dec 1, 2025
$250 approved for @shubham1206agra