Commits
2026-08-01
feat: ✨ collaborative whiteboard + accent-color backend sync - boards API domain (src/api/boards): create/list/read, current-epoch strokes, full history + epoch index, patch (title/roster/lock), clear, close, delete — with mandatory domain tests - board-stroke-codec: Stroke <-> segmented wire payload in board-space, split under the 4096B cap, reassembled by sid; unit-tested - live canvas (whiteboard-canvas) reusing draw-stroke primitives: pen/eraser/colour/width + pan/zoom, onStroke emit + remote-apply controller - board room WS component modelled on exam-room-ws: join/resync, optimistic draw with resync-from-REST on reject, id dedupe, backoff reconnect - whiteboards list page (create side-panel + participant picker, parents excluded) and board room page (creator commands, roster, epoch replay via DrawingPlayback) - router routes /whiteboards and /whiteboards/$id, nav entry (minRole student), tr/en messages - accent-color sync: palette_color on User + PatchMyPreferences body; setPaletteColor persists to PATCH /users/me/preferences ("" clears), hydratePreferences seeds it on login; users API testsBurak Boduroğlu · 58593cc
feat: ✨ collaborative whiteboard + accent-color backend sync
- boards API domain (src/api/boards): create/list/read, current-epoch
strokes, full history + epoch index, patch (title/roster/lock), clear,
close, delete — with mandatory domain tests
- board-stroke-codec: Stroke <-> segmented wire payload in board-space,
split under the 4096B cap, reassembled by sid; unit-tested
- live canvas (whiteboard-canvas) reusing draw-stroke primitives:
pen/eraser/colour/width + pan/zoom, onStroke emit + remote-apply controller
- board room WS component modelled on exam-room-ws: join/resync, optimistic
draw with resync-from-REST on reject, id dedupe, backoff reconnect
- whiteboards list page (create side-panel + participant picker, parents
excluded) and board room page (creator commands, roster, epoch replay
via DrawingPlayback)
- router routes /whiteboards and /whiteboards/$id, nav entry (minRole
student), tr/en messages
- accent-color sync: palette_color on User + PatchMyPreferences body;
setPaletteColor persists to PATCH /users/me/preferences ("" clears),
hydratePreferences seeds it on login; users API tests2026-07-21
refactor: 🗃️ restructure API layer into domain folders and add vitest coverage - move 110+ flat API endpoints into domain-specific subdirectories (e.g., auth, courses, exams, notes, etc.) - add index.ts exports to each domain folder for clean namespace imports - update 70+ components and pages to use the new domain-based API import paths - add comprehensive vitest unit tests (~150 tests) for all API endpoints using fetch mocking - update AGENTS.md rulebook to mandate domain-based folder structure for future API additions - migrate existing bun:test test files in src/lib/ to vitest for consistencyBurak Boduroğlu · 6452b17
refactor: 🗃️ restructure API layer into domain folders and add vitest coverage - move 110+ flat API endpoints into domain-specific subdirectories (e.g., auth, courses, exams, notes, etc.) - add index.ts exports to each domain folder for clean namespace imports - update 70+ components and pages to use the new domain-based API import paths - add comprehensive vitest unit tests (~150 tests) for all API endpoints using fetch mocking - update AGENTS.md rulebook to mandate domain-based folder structure for future API additions - migrate existing bun:test test files in src/lib/ to vitest for consistency