Skip to content

feat(web): add workspaces.restore + listDeleted API client methods#828

Merged
xarmian merged 1 commit into
mainfrom
feat/workspace-restore-client
Jul 6, 2026
Merged

feat(web): add workspaces.restore + listDeleted API client methods#828
xarmian merged 1 commit into
mainfrom
feat/workspace-restore-client

Conversation

@xarmian

@xarmian xarmian commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

What

Adds two methods to api.workspaces in web/src/lib/api/client.ts:

  • restore(slug) -> POST /workspaces/{slug}/restore, returns the restored Workspace.
  • listDeleted() -> GET /workspaces/deleted, returns DeletedWorkspace[] (Workspace + purge_at + days_left).

Both use the shared request() helper and the existing DeletedWorkspace type (imported from $lib/types, not redefined).

Why

Wires the web TypeScript API client to the TASK-1970 restore endpoints (PR #827). The restore UI that consumes these methods lands in TASK-1974/1975/1976.

Scope is intentionally minimal: one file, +12 lines. Gate cd web && npm run check passes with 0 errors. Codex review: CLEAN.

Closes TASK-1971

https://claude.ai/code/session_01HxBkAMiFBtCRJ2tKSCt3ST

Wire the web TypeScript API client to the TASK-1970 restore endpoints:
- workspaces.restore(slug) -> POST /workspaces/{slug}/restore, returns
  the restored Workspace.
- workspaces.listDeleted() -> GET /workspaces/deleted, returns
  DeletedWorkspace[] (Workspace + purge_at + days_left).

Uses the shared request() helper and the existing DeletedWorkspace type
(no redefinition). The restore UI that consumes these lands in
TASK-1974/1975/1976.

Closes TASK-1971

Claude-Session: https://claude.ai/code/session_01HxBkAMiFBtCRJ2tKSCt3ST
@xarmian xarmian merged commit 7b6739e into main Jul 6, 2026
4 checks passed
@xarmian xarmian deleted the feat/workspace-restore-client branch July 6, 2026 14:12
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