feat: implement Story 1.2 — organize diagrams into projects

Add project CRUD API (GET/POST/PATCH/DELETE) with ownership checks and
transactional delete. Add diagram list filtering by projectId and
unorganized query params with typed Zod query schema for Hono RPC
type safety. Create DiagramSidebar with Projects tree (expand/collapse,
inline rename) and Recent tab. Add project picker to CreateDiagramDialog.
Includes 15 schema validation tests (107 total passing).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Alejandro Gutiérrez
2026-02-23 21:45:16 +00:00
parent 392da385f4
commit 85e06c25c7
15 changed files with 1116 additions and 13 deletions

View File

@@ -43,7 +43,7 @@ development_status:
# ── Epic 1: Workspace & Diagram Management (Phase 1 - Foundation) ──
epic-1: in-progress
1-1-create-and-view-diagrams: done
1-2-organize-diagrams-into-projects: backlog
1-2-organize-diagrams-into-projects: done
1-3-diagram-access-control-and-management: backlog
1-4-recent-view-and-drag-and-drop-organization: backlog
epic-1-retrospective: optional