Skip to content

feat(api,ui): showcase workspace lifecycle deletion (DELETE endpoint + panel action) #404

@w7-mgfcode

Description

@w7-mgfcode

Summary

The showcase-workspace initiative (#389) shipped keep/restore/replay, but showcase_workspace rows accumulate with no way to remove them — flagged as the top functional gap in the post-E5 audit and documented in RUNBOOKS as "no DELETE endpoint yet".

Scope

Backend

Frontend

  • Per-row Delete action on the /showcase Saved-workspaces panel behind a confirmation dialog whose copy makes metadata-only deletion explicit; list refreshes on success; errors surface via the existing toast pattern.

Docs

  • RUNBOOKS § Showcase workspace: lifecycle modes, deletion semantics, accumulation note, explicit out-of-scope list.
  • DOMAIN_MODEL showcase_workspace aggregate: stored metadata, pipeline-run relationship, metadata-only-deletion invariant.
  • API_CONTRACTS: new endpoint row.

Out of scope (explicit)

  • Advanced seed config on /showcase
  • Export bundles under artifacts/showcase/<workspace>/
  • replayed_from provenance migration
  • RAG event / approval-decision capture
  • Full phase-level interactive configuration

Acceptance criteria

  • 204 delete success + 404 missing route tests (unit + integration)
  • Integration proof that soft-referenced objects survive deletion
  • Frontend tests: delete button renders, confirmation copy is metadata-only-clear, success refreshes the list, failure surfaces an error
  • No new migration; no weakened tests; all five validation gates green

Metadata

Metadata

Assignees

No one assigned

    Labels

    featNew feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions