fix: workspace delete mixed-content error via top-level endpoint

- Add top-level DELETE /workspaces/{workspace_id} endpoint (avoids nested path)
- Frontend deleteWorkspace now uses /workspaces/{id}/?force=... (no project/repo needed)
- Update useWorkspaceActions, ProjectsPage, WorkspacesPage to match new signature

Quality gates: ruff clean, tsc --noEmit clean, pytest workspaces API (9 passed, 1 skipped)
This commit is contained in:
2026-06-01 20:03:24 +02:00
parent 9a036f1968
commit 95efa5d029
6 changed files with 46 additions and 24 deletions
+1 -6
View File
@@ -18,12 +18,7 @@ export function WorkspacesPage() {
const actions = useWorkspaceActions();
const handleDelete = async (workspace: Workspace) => {
await actions.delete(
workspace.project_id,
workspace.repo_id,
workspace,
refresh,
);
await actions.delete(workspace, refresh);
};
const handleSync = async (workspace: Workspace) => {