Commits
Commits on
c35a83aa3f65a20c8a2fdfd2dfdb3e35878741b5Filtered to src/api/__tests__/users/users.test.tsClear filter2026-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-22
feat: ✨ add homework API coverageBurak Boduroğlu · 6d0e29c
feat: ✨ add homework API coverage - add frontend homework endpoint wrappers and shared response types - expose course homework creation and listing helpers - add missing small parity wrappers for note, session, subject, term, and user endpoints - cover new and updated API helpers with targeted vitest tests - update build rule to skip repeat builds after a passing build or explicit user waiver
2026-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
chore: 🧪 migrate tests from bun:test to vitestBurak Boduroğlu · b0a9db1
chore: 🧪 migrate tests from bun:test to vitest - replace bun:test imports with vitest in all 3 test files - add vitest.config.ts with @ alias and test config - add vitest dev dependency and test/watch npm scripts - create src/api/__tests__/ directory for future API tests