feat: server-side quiz scoring, progress auto-calc, and certificate API#17
Merged
Merged
Conversation
- quiz: replace client-trusted score with server-side grading against correctIndex values from course JSON; return per-question results and explanations - quiz: add GET /api/v1/quiz/certificates/:userId with in-memory fallback for demo mode; prevents duplicate certificates per course - progressRepo: auto-compute percentage from completedLessons / totalLessons when caller omits explicit percentage (explicit value still takes precedence) - tests: new integration suite for quiz (10 cases) covering correct/wrong scoring, cert issuance, dedup, auth guards; courses suite +1 for auto-calc https://claude.ai/code/session_01UmY6PMmTA3MSjpfm9rfFhN
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.
correctIndex values from course JSON; return per-question results
and explanations
fallback for demo mode; prevents duplicate certificates per course
when caller omits explicit percentage (explicit value still takes precedence)
scoring, cert issuance, dedup, auth guards; courses suite +1 for auto-calc
https://claude.ai/code/session_01UmY6PMmTA3MSjpfm9rfFhN