Skip to content

Include a warning alert in the confirmation modal when deleting a workspace with pending changes #15669

@gtsiolis

Description

@gtsiolis

Problem to solve

When a workspace contains (pending) changes (uncommitted files or unpushed commits) there's a indication on the workspaces list there are changes.

When a user tries to delete a workspace from the dashboard, they get a confirmation modal. However, there's no clear indication whether the associated workspace contains pending changes (uncommitted files or unpushed commits).

A customer is interested in this feature request, see relevant discussion (internal).

Proposal

A good MVC could be to include a warning alert in the confirmation modal when deleting a workspace with pending changes.

Workspace with changes BEFORE AFTER
Screenshot 2023-01-10 at 5 51 03 PM (2) Screenshot 2023-01-10 at 5 51 08 PM (2) Screenshot 2023-01-10 at 8 04 12 PM (2)

Risks

However, when reopening a stopped workspace with changes there's no clear indication that there are pending changes and users can still delete the workspace from the more actions menu. ❗

Stopped workspace with changes Reopened workspace with changes
Screenshot 2023-01-10 at 8 04 21 PM (2) Screenshot 2023-01-10 at 8 07 00 PM (2)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    In Validation

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions