Commits
2026-09-17
feat: 🏫 follow the backend split between a catalog course and a şube×ders instance - a course row is now the catalog (title, kind, subjects, notes, club/etüt members); attaching it to a class mints the instance that actually carries enrollments, exams, homework, lesson sessions, roll call, ders_saati and the karne flag - new src/api/instances: /instances/me, one instance with its policy PATCH, and the enrollment, exam, homework, session and teacher routes that moved off /courses/{id} - new src/api/academic-years: year CRUD plus archive and the rollover that carries a year's şubeler over with promoted grades - new src/api/rag: thread CRUD, turns, the 202 ask receipt and the SSE url an EventSource takes; plus /ai/capabilities and the course-note reindex - drop the routes the backend no longer serves (/courses/{id}/{enrollments, exams,homework,sessions,teachers}, /classes/{id}/courses) and add the club/etüt membership tier at /courses/{id}/members - rename course to class_course on exams, homework, sessions and roll call; a class links an academic year, a dönem lives inside one, and an exam names the dönem it is filed in - new /instances/$id page holds what left the course page: exams, homework, sessions, roster and staffing, with ders_saati and counts_toward_karne saved optimistically from local signals - new /management/academic-years: years, sınıf-geçme pairs, archiving, and a rollover that reports how many şubeler and students it carried - karne tab on /marks with a dönem picker, the ders_saati-weighted average and the verdict; devamsızlık day counts and their limits on the attendance report - exam and homework creation pick a şube instead of a catalog course, through one shared instance-option loader; the exam form asks for the dönem - settings gain branş, excuse kinds, the per-dönem absence day limits and the school timezone; limits gain the rag tier - contract fixtures build the whole chain now: year → dönem → şube → attached course → instance → examBurak Boduroğlu · 211d704
feat: 🏫 follow the backend split between a catalog course and a şube×ders instance
- a course row is now the catalog (title, kind, subjects, notes, club/etüt
members); attaching it to a class mints the instance that actually carries
enrollments, exams, homework, lesson sessions, roll call, ders_saati and the
karne flag
- new src/api/instances: /instances/me, one instance with its policy PATCH, and
the enrollment, exam, homework, session and teacher routes that moved off
/courses/{id}
- new src/api/academic-years: year CRUD plus archive and the rollover that
carries a year's şubeler over with promoted grades
- new src/api/rag: thread CRUD, turns, the 202 ask receipt and the SSE url an
EventSource takes; plus /ai/capabilities and the course-note reindex
- drop the routes the backend no longer serves (/courses/{id}/{enrollments,
exams,homework,sessions,teachers}, /classes/{id}/courses) and add the
club/etüt membership tier at /courses/{id}/members
- rename course to class_course on exams, homework, sessions and roll call;
a class links an academic year, a dönem lives inside one, and an exam names
the dönem it is filed in
- new /instances/$id page holds what left the course page: exams, homework,
sessions, roster and staffing, with ders_saati and counts_toward_karne
saved optimistically from local signals
- new /management/academic-years: years, sınıf-geçme pairs, archiving, and a
rollover that reports how many şubeler and students it carried
- karne tab on /marks with a dönem picker, the ders_saati-weighted average and
the verdict; devamsızlık day counts and their limits on the attendance report
- exam and homework creation pick a şube instead of a catalog course, through
one shared instance-option loader; the exam form asks for the dönem
- settings gain branş, excuse kinds, the per-dönem absence day limits and the
school timezone; limits gain the rag tier
- contract fixtures build the whole chain now: year → dönem → şube → attached
course → instance → exam2026-08-03
fix: 🔍 drop query filters the backend never implemented - GET /homework takes limit/offset only, yet getHomework advertised a due_after window; GET /courses and /courses/me likewise take no kind/q/term_id. Serde drops unknown query keys silently, so every one of these looked applied while the response came back unfiltered - the visible symptom was the homepage "courses" stat, which asked for kind=course and counted studies and clubs along with it; it now counts over the unpaged list client-side, the way the courses page already did - three unit tests and one contract test encoded the phantom filters — the contract test claimed "returns filtered courses" and passed only because the backend ignored the filters it sentBurak Boduroğlu · 18dcd69
fix: 🔍 drop query filters the backend never implemented - GET /homework takes limit/offset only, yet getHomework advertised a due_after window; GET /courses and /courses/me likewise take no kind/q/term_id. Serde drops unknown query keys silently, so every one of these looked applied while the response came back unfiltered - the visible symptom was the homepage "courses" stat, which asked for kind=course and counted studies and clubs along with it; it now counts over the unpaged list client-side, the way the courses page already did - three unit tests and one contract test encoded the phantom filters — the contract test claimed "returns filtered courses" and passed only because the backend ignored the filters it sent
2026-07-28
feat(api): 🔌 align backend contractsBurak Boduroğlu · 4e531e5
feat(api): 🔌 align backend contracts - add runtime limits and complete meal endpoint clients - align course, homework, report, and settings payloads - drive auth validation from server limits
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