forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to src/api/exams/getExamReviewAttemptAnswerImage.tsClear filter

2026-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.