← Back to Pull requests

Quiz Section Added to the docs #91 --- #107 #132

Closed
unknown closed this pull request without merging on Aug 05, 2025 09:42 UTC
View on GitHub
unknown unknown commented on Jul 27, 2025 06:26 UTC
Author

Related Issue


Addition a Quiz Section for the learning path

Description


This update enhances the existing Quiz.tsxcomponent with a more interactive and user-friendly interface for quiz-based assessments in LearnHub. The component now visually highlights correct and incorrect answers, displays explanations for each question, colors the final score based on performance, and includes a reset (retake quiz) button.

1. _Learning outcomes through immediate answer feedback_
2. _Engagement through colorful visual cues and scoring_

🟢 ✅ Correct and ❌ Incorrect answer highlighting
🎨 Colored final score (Green/Orange/Red)
🔁 "Retake Quiz" button
💡 Explanations per question
🌔Dark Mode and Light Mode enable(option)
🧪 Self-contained styling (no external CSS dependency)

Fixes #107 --->-> #91

Type of PR

  • Bug fix

  • [ ✅] Feature enhancement

  • Documentation update

  • Other (specify): _______________
  • Screenshots / videos (if applicable)


    <img width="1919" height="883" alt="image" src="https://github.com/user-attachments/assets/9848f583-2b45-49d0-9ed2-6d92fdef9dbd" />
    <img width="1914" height="892" alt="image" src="https://github.com/user-attachments/assets/f89a74bd-5b6b-4e40-bc65-3037b41d5801" />
    <img width="1916" height="892" alt="image" src="https://github.com/user-attachments/assets/52b21306-bd6b-4890-b5f0-367d09137917" />
    <img width="1919" height="894" alt="image" src="https://github.com/user-attachments/assets/ace45583-f0fc-46c6-8a07-440cff53426b" />
    <img width="1918" height="893" alt="image" src="https://github.com/user-attachments/assets/f114e79c-c94e-4167-ab79-52f1a21f9c9b" />
    _Dark Mode_
    <img width="1917" height="885" alt="image" src="https://github.com/user-attachments/assets/441c80bc-00f8-4b11-bf8e-fad08c087a1c" />
    <img width="1919" height="883" alt="image" src="https://github.com/user-attachments/assets/4db66427-198c-4f63-9e30-978930735d81" />
    <img width="1919" height="897" alt="image" src="https://github.com/user-attachments/assets/18c3a08d-e309-4f29-b0cb-050860651ce3" />

    Checklist:

  • [✅] I have made this change from my own.

  • [✅] I have mentioned the issue number in my Pull Request.

  • [✅] I have gone through the CONTRIBUTING.md file before contributing

  • [ ✅] I have performed a self-review of my own code.

  • [ ✅] I have commented my code, particularly in hard-to-understand areas.

  • [✅] My changes generate no new warnings.

  • [✅] I have tested the changes thoroughly before submitting this pull request.

  • [✅] I have provided relevant issue numbers and screenshots after making the changes.
  • Diff: 326 lines (+244 / -82) across 4 files Reviewer: ROKUMATE Review duration: 13155m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 326 lines diff across 4 files
    0.42
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.346
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #132"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 42% (MEDIUM) · Higher = larger blast radius
    42%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 16.6% · Safe to merge
    16.6%