Skip to content

feat(web): dedicated /console/deleted-workspaces page#830

Merged
xarmian merged 1 commit into
mainfrom
feat/console-deleted-workspaces
Jul 6, 2026
Merged

feat(web): dedicated /console/deleted-workspaces page#830
xarmian merged 1 commit into
mainfrom
feat/console-deleted-workspaces

Conversation

@xarmian

@xarmian xarmian commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

What

Adds a dedicated /console/deleted-workspaces page: a full-page table of the caller's soft-deleted workspaces with columns for name, deleted date, days left (until permanent purge), and a per-row Restore action. Restore calls api.workspaces.restore(slug), removes the row on success, and shows a success toast. Includes loading, error (with retry), and empty ("No recently deleted workspaces") states.

Also wires a "Deleted workspaces" link into the console layout nav (web/src/routes/console/+layout.svelte), matching the existing nav-item style.

Why

Users who soft-delete a workspace need a discoverable way to recover it before the purge window closes. This surfaces the existing api.workspaces.listDeleted() / restore() endpoints (TASK-1970/1971) in the console.

Notes

  • Svelte 5 runes; matches existing /console/* page conventions (states, .btn, badges).
  • Days-left renders as "N days left", "1 day left", or "Permanently deleted soon" (0), with a warning accent when the window is low (<= 3 days).
  • Gate: npm run check → 0 errors. Codex review: CLEAN.

Closes TASK-1975

https://claude.ai/code/session_01HxBkAMiFBtCRJ2tKSCt3ST

Add a full-page table of the caller's soft-deleted workspaces
(name, deleted date, days-left, Restore per row) backed by
api.workspaces.listDeleted / restore. Restore removes the row and
toasts success; loading/error/empty states included. Wire a
"Deleted workspaces" link into the console layout nav.

Closes TASK-1975

Claude-Session: https://claude.ai/code/session_01HxBkAMiFBtCRJ2tKSCt3ST
@xarmian xarmian merged commit 727deb2 into main Jul 6, 2026
4 checks passed
@xarmian xarmian deleted the feat/console-deleted-workspaces branch July 6, 2026 14:21
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