feat(web): dedicated /console/deleted-workspaces page#830
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a dedicated
/console/deleted-workspacespage: 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 callsapi.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
/console/*page conventions (states,.btn, badges).npm run check→ 0 errors. Codex review: CLEAN.Closes TASK-1975
https://claude.ai/code/session_01HxBkAMiFBtCRJ2tKSCt3ST