Commits
Commits on
c35a83aa3f65a20c8a2fdfd2dfdb3e35878741b5Filtered to src/api/exams/patchExamById.tsClear filter2026-07-24
✨ feat(exams): student self-review of own graded examAhmet Kaan Gümüş · da6198f
✨ feat(exams): student self-review of own graded exam
Sync with backend: a per-exam teacher toggle `allow_review` (mirrors
`allow_rejoin` in the exam form) and a student-facing review of their own
paper + past attempts, shown in the "your result" tab once the exam is
marked and review is enabled.
- allow_review wired through Exam type, create/patch bodies, and the
exam-settings form (checkbox + tr/en strings).
- Four self-scoped API calls (/exams/{id}/review/questions|attempts|
attempts/{seq}/answers|.../image); AnswerSheetView gains a
mode:"grader"|"self" prop that swaps the API layer while reusing the
same render (seq picker, right/wrong, drawing playback).
- Fix: the ownResult tab was gated on !isScheduled(), which is never true
for a moded exam (isSittableExam is mode-based), so it never rendered.
Gate it on ownResult() instead — the result exists only after marking,
which is exactly the intended condition.
Browser-verified end to end: toggle on -> review renders questions +
answers + drawing playback (200s); toggle off -> mark shown, review
hidden, no stray calls; no console errors.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