feat(quiz): immediate per-question feedback + exam-mode toggle - #28
Merged
Conversation
Practice mode (new default): the moment you commit a deterministic question
(mcq/tf/mermaid) it reveals — correct/incorrect, the right answer, and the
explanation — and locks. The verdict is computed client-side (the answer already
ships in /state), reusing the results card, so there's no server round-trip.
Open questions are unchanged (no client-side answer to reveal; they grade at submit).
A sidebar "Mode" toggle ("Reveal answers as I go") flips between practice and the
classic batch/exam flow; the choice is sticky per browser via localStorage. In exam
mode the answering view behaves exactly as before, and selections are preserved when
toggling. The submit-bar message reflects the active mode.
Production-over-recognition: seeing why you were wrong right at the point of the
mistake beats a scorecard at the end.
Frontend only — no backend or schema change. Verified in a real browser: correct
and incorrect reveals (with explanation) for mcq/tf, open question stays interactive,
and the exam-mode toggle round-trips without losing answers.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This was referenced May 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The first slice of the feedback loop (roadmap #2). In the new default practice mode, committing a deterministic question (mcq / tf / mermaid) reveals it immediately — correct/incorrect, the right answer, and the explanation — and locks it. The verdict is computed client-side (the answer already ships in
/state), reusing the existing results card, so there's no server round-trip.A sidebar Mode toggle ("Reveal answers as I go") flips between practice and the classic batch/exam flow, sticky per browser via
localStorage.Behaviour
Scope
quizz takecommand #3) and teach-back (feat(engine): layered mermaid validator + debug logs #6) — the rest of the feedback loop — follow as their own PRs.Invariants preserved
textContent-only frontend (reveal reuses the existing result-card renderer).Testing
node --checkon the bundle; fullmcp/enginesuite green (no Python touched).🤖 Generated with Claude Code