Skip to content

[Due for payment 2025-11-06] [$250] Upgrade the delete workspace flow to a non-blocking UI pattern #73440

Closed

Description

@blimpich

Problem

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.
  1. Go to the workspaces page
  2. Click on the kebab menu
  3. Click Delete

OR

  1. Go to the workspace settings > Overview
  2. Click Delete

Expected Result:

Online

  1. User clicks Delete
  2. A centered alert modal appears:
Delete workspace

You can’t delete the workspace until the end of the annual subscription term.

[Got it] 

Image


Offline

  1. User clicks Delete
  2. The workspace is optimistically deleted (i.e appears at 50% opacity & strikethrough on the Workspaces page)
  3. User comes back online
  4. The RBR dismissible message is added in-line that reads: "You can’t delete the workspace until the end of the annual subscription term."
  5. User dismisses the error message and it disappears

Image

Image

cc: @trjExpensify

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021981759486700878032
  • Upwork Job ID: 1981759486700878032
  • Last Price Increase: 2025-10-24
  • Automatic offers:
    • situchan | Contributor | 109276802
Issue OwnerCurrent Issue Owner: @zanyrenney

Activity

  1. self-assigned this
    on Oct 24, 2025
  2. added
    External
    Daily
    Bug
    on Oct 24, 2025
  3. 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
  4. melvin-bot commented on Oct 24, 2025

    @melvin-bot
  5. added
    Help Wanted
    on Oct 24, 2025
  6. melvin-bot commented on Oct 24, 2025

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 (External)

  7. melvin-bot commented on Oct 24, 2025

    @melvin-bot

    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.

  8. removed
    Help Wanted
    on Oct 24, 2025
  9. blimpich commented on Oct 24, 2025

    @blimpich
    ContributorAuthor

    Assigning this task to @shubham1206agra, talked to them in DM about this issue and created it specifically for them.

  10. 10 remaining items

  11. added
    Weekly
    Awaiting Payment
    and removed
    Weekly
    on Oct 30, 2025
  12. 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
  13. removed
    Reviewing
    on Oct 30, 2025
  14. melvin-bot commented on Oct 30, 2025

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  15. melvin-bot commented on Oct 30, 2025

    @melvin-bot

    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:

  16. melvin-bot commented on Oct 30, 2025

    @melvin-bot

    @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]

  17. situchan commented on Nov 3, 2025

    @situchan
    Contributor

    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:

    1. Go to workspace lists page
    2. Click the Delete workspace button in three dot menu
    3. The confirmation alert modal appears
    4. Click Delete to confirm
    5. The Delete button in the modal shows a loading spinner waiting on a response from the API to confirm
    6. [Failure] Verify that modal is displayed explaining the reason they can’t delete the workspace
    7. [Success] Verify that the workspace is deleted and disappears from the list
    8. Go to workspace overview page
    9. Repeat steps 2 - 5
    10. [Failure] Verify that modal is displayed explaining the reason they can’t delete the workspace
    11. [Success] Go back to workspaces list page and Verify that the workspace is deleted and disappears from the list

    Offline tests:

    1. Go to workspace lists page
    2. Go offline.
    3. Click the Delete workspace button in three dot menu
    4. The confirmation alert modal appears
    5. Click Delete to confirm
    6. Verify that the workspace is being shown as striked out.
    7. Go back online.
    8. [Failure] We show the RBR below the workspace list item explaining the reason they can’t delete the workspace
    9. [Success] The workspace is deleted and disappears from the list
    10. Go to workspace overview page
    11. Repeat steps 2 - 5
    12. Verify that the we go back to the workspace list page.
    13. Go online again.
    14. [Failure] We show the RBR below the workspace list item explaining the reason they can’t delete the workspace
    15. [Success] The workspace is deleted and disappears from the list

    Do we agree 👍 or 👎

  18. added
    Daily
    and removed
    Weekly
    on Nov 5, 2025
  19. zanyrenney commented on Nov 7, 2025

    @zanyrenney
    Contributor

    Payment

    @shubham1206agra requires payment through NewDot Manual Requests - please request $250
    @situchan requires payment automatic offer (Contributor) - $250 paid on upwork.

  20. garrettmknight commented on Dec 1, 2025

    @garrettmknight
    Contributor

    $250 approved for @shubham1206agra

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyEngineeringExternal

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions