diff --git a/client/src/components/QuizRunner.tsx b/client/src/components/QuizRunner.tsx index 035debf..39c8bfd 100644 --- a/client/src/components/QuizRunner.tsx +++ b/client/src/components/QuizRunner.tsx @@ -518,6 +518,11 @@ export default function QuizRunner({ defaultMode = 'all', defaultEntryId, autoSt const correctCount = answered.filter((h) => h.correct).length; const skippedCount = answered.filter((h) => h.skipped).length; const wrongCount = Math.max(0, answered.length - correctCount - skippedCount); + const summaryItems = questions.map((q, idx) => { + const h = history[idx]; + const statusTag = h?.skipped ? 'skipped' : h?.correct ? 'correct' : 'wrong'; + return { question: q, history: h, statusTag }; + }); return (

Nice work!

@@ -549,6 +554,31 @@ export default function QuizRunner({ defaultMode = 'all', defaultEntryId, autoSt )}
+
+ {summaryItems.map(({ question, history: h, statusTag }, idx) => { + const correctText = deriveCorrectText(question, h?.response); + const userText = h ? formatUserAnswer(question, h.response) : 'No answer'; + const entryHref = `/entry/${encodeURIComponent(question.entryId)}`; + return ( +
+
+
+ {idx + 1}. {question.prompt_en || 'Question'} +
+ {isRandomMode && ( + + Learn page » + + )} +
+
+
You: {userText}
+
Answer: {correctText || '—'}
+
+
+ ); + })} +
); }