feat(tenants): add workspace delete UI and fix project switch element loading (#11)

- Add DELETE /api/tenants/:id endpoint with cascade (projects, elements, snapshots)
- Add delete buttons with inline confirm in workspace switcher panel
- Fix project switch not loading elements: switchProjectUI now directly clears
  canvas and calls loadExistingElements() instead of relying on WS roundtrip

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Maxime Roy (new.blacc)
2026-04-06 14:37:11 +02:00
committed by GitHub
co-authored by Claude Sonnet 4.6
parent 1166ea5b3f
commit d14d767c75
7 changed files with 113 additions and 15 deletions
+6
View File
@@ -502,6 +502,12 @@
}
.menu-create-btn:hover:not(:disabled) { background: #4c2fa8; }
.menu-create-btn:disabled { opacity: 0.5; cursor: default; }
.tenant-row {
position: relative;
display: flex;
align-items: stretch;
}
.tenant-row:hover .project-delete-btn { opacity: 0.5; }
.project-row {
position: relative;
display: flex;