Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

Disables the project removal button when a project has any workspaces, matching the backend validation logic.

Changes

  • Remove project button is disabled when project has any workspaces (>0)
  • Shows explanatory tooltip:
    • "Delete workspace first" (for 1 workspace)
    • "Delete all N workspaces first" (for multiple)
  • Button uses aria-disabled and cursor-not-allowed styling when disabled
  • Updated storybook test to verify disabled state

Generated with mux • Model: anthropic:claude-opus-4-5 • Thinking: high

- Remove project button is now disabled when project has any workspaces
- Shows explanatory tooltip: 'Delete workspace first' (1) or 'Delete all N workspaces first' (N)
- Button uses aria-disabled and cursor-not-allowed styling when disabled
- Updated storybook test to verify disabled state instead of backend error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant