Skip to content

feat: server-side quiz scoring, progress auto-calc, and certificate API#17

Merged
RahRha-v3-2 merged 1 commit into
mainfrom
claude/krai-finance-meta-prompt-drWDJ
May 23, 2026
Merged

feat: server-side quiz scoring, progress auto-calc, and certificate API#17
RahRha-v3-2 merged 1 commit into
mainfrom
claude/krai-finance-meta-prompt-drWDJ

Conversation

@RahRha-v3-2
Copy link
Copy Markdown
Owner

  • 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

- 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
@RahRha-v3-2 RahRha-v3-2 merged commit 72d39cd into main May 23, 2026
2 of 4 checks passed
@RahRha-v3-2 RahRha-v3-2 deleted the claude/krai-finance-meta-prompt-drWDJ branch May 23, 2026 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants