Repository navigation
Conversation
This was referenced Nov 5, 2026
Exam phase 3 (docs/exams.md). Every question answered in a module quiz, a course exam or a review becomes a card in a Leitner system: wrong answers come back tomorrow, right ones after 2, 4, 8 and then 16 days. A right answer before a card is due changes nothing, so retaking a quiz can't game the schedule. /review runs a session of up to 20 due questions, most overdue first, mixed across courses, with the answer and explanation right after each one and a link to re-read the lesson. The header shows "Review" with a count only when something is due, and the Dashboard gets a review panel. Exam results say missed questions will come back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EC6Zzt5akQu7TEHdGquZzp
A7med7x7
force-pushed
the
autopilot/exams-2-exam-page
branch
from
November 6, 2026 03:13
cd1464e to
63f382f
Compare
A7med7x7
force-pushed
the
autopilot/exams-3-review
branch
from
November 6, 2026 03:13
30c462f to
63b2194
Compare
This branch has not been deployed
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.
Exam phase 3 of 6 (
docs/exams.md): a spaced-repetition review queue.What students get
/review: up to 20 due questions, most overdue first, mixed across courses and topics (interleaving), options shuffled. The answer and explanation appear right after each answer, with a "Re-read" link to the lesson. Each answer is saved immediately, so leaving halfway loses nothing.How it's built
src/lib/review.ts: pure scheduling (answer,dueIds,nextDue,boxCounts) with "today" passed in, plus storage underdecoded:review:v1. Dates are the reader's local calendar days.src/hooks/useReviewCards.ts: keeps the header, Dashboard and review page in sync, across tabs too.src/pages/ReviewPage.tsx: lazy route at/review. It loads only the banks for the courses that have due cards, and drops cards whose question was removed from the site.Quiz(inMdxComponents.tsx) andExamPagerecord answers.Tests (22 new)
src/test/review.test.ts: the Leitner rules, including the full ladder (2 → 4 → 8 → 16 → 16 days), wrong-resets-to-box-1, no early promotion, and overdue cards; dates across month, year and leap-day boundaries; queue ordering; storage, including corrupt data.src/test/review-page.test.tsx: the empty state, a full session with instant feedback and correct rescheduling (plus a stale card dropped), "next due" when nothing is due, a quiz answer creating cards, the header badge appearing only when due, and the Dashboard panel.exam-page.test.tsxnow also checks that an exam puts all 20 questions into the queue.Checked
npm run lint(0 errors),tsc(app and node),npm run test(54 files, 2,450 tests),npm run build. In a browser at 390 px, light and dark: answered a real quiz, moved the cards' due date to the past, then saw the header badge and Dashboard panel, ran a review session by keyboard, and watched the badge count down. No page errors, no horizontal overflow.Left open
Progress export/import (
progressBackup.ts) still carries completed lessons only. Whether backups should include review cards and exam attempts is noted for phase 6 (account sync).Generated by Claude Code