Skip to content

Improve "Failed to remove project" error when only archived workspaces exist #2491

@blinkagent

Description

@blinkagent

Problem

When a user tries to delete a project that has no active workspaces but has archived workspaces, the error message says:

Cannot remove project with active workspaces. Please remove all N workspace(s) first.

This is misleading because the workspaces aren't "active" — they're archived. The user has no clear path forward from the error alert.

Suggested Improvements

  1. Update the error text to distinguish between active and archived workspaces (e.g. "Cannot remove project. Please delete N archived workspace(s) first.")
  2. Include a link/button in the alert that navigates the user to the archived workspaces view where they can permanently delete them

Context

The root cause is in src/node/services/projectService.ts — the removal check uses projectConfig.workspaces.length > 0 which counts all workspaces regardless of archived status.

Related: #1266


Created on behalf of @tracyjohnsonux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions