Commits
Commits on
dcf123a8823bd55f0a656ce94de6b865f41dc08aFiltered to src/api/parents/postParentStudent.tsClear filter2026-09-13
fix: 🔌 align three api shapes with the refactored backend - postParentStudent sent a pre-stringified body that client() encoded again, so the backend got a quoted string and 400'd every link; pass the plain object - postRegister declared Promise<User> but the backend's anti-enumeration 201 carries only {username, role}; retype to RegisterResponse - drop Limits.course.max_class_bytes: invented by a past alignment commit, never published or enforced by the backend in any revision - update the auth and parents tests, which pinned both wrong shapesAhmet Kaan Gümüş · aba07ef
fix: 🔌 align three api shapes with the refactored backend
- postParentStudent sent a pre-stringified body that client() encoded
again, so the backend got a quoted string and 400'd every link; pass
the plain object
- postRegister declared Promise<User> but the backend's
anti-enumeration 201 carries only {username, role}; retype to
RegisterResponse
- drop Limits.course.max_class_bytes: invented by a past alignment
commit, never published or enforced by the backend in any revision
- update the auth and parents tests, which pinned both wrong shapes2026-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