Merged
Conversation
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.
Summary
This PR adds a shared end-of-module quiz system across the learning modules in Code Executives.
The implementation introduces a reusable timed quiz experience, wires it into every supported module as the final section, stores quiz-bank content in root-level JSON files, and documents both the runtime behavior and the authoring workflow for future maintenance.
What Changed
src/types/quiz.ts.src/utils/quiz.tsfor bank loading, validation, grading, answer formatting, sampling, storage keys, and reference resolution.useQuizSessioninsrc/shared/hooks/useQuizSession.tsto manage bank loading, timed attempts, localStorage persistence, hydration, navigation, and result history.src/shared/components/quiz/ModuleQuizSection.tsxsrc/shared/components/quiz/QuestionRenderer.tsxsrc/shared/constants/moduleNavigation.ts.Quizas the final module section.quiz-banks/, one JSON file per module, with scenario-based question sets..github/agents/module-quiz-generator.agent.mdto support future bank generation and maintenance workflows.README.mddocs/Project-Layout-and-Structure.mddocs/Quiz-System-Guide.mdQuiz Behavior
Storage And Authoring Model
quiz-banks/{module}.quiz.json.Validation
The branch was validated before opening this PR:
npm run buildnpm run lintnpm run test:runValidation results:
Notes