Skip to content

Implement quiz/assessment component for tutorials - #5045

Open
anshul23102 wants to merge 1 commit into
codeharborhub:mainfrom
anshul23102:feat/5026-quiz-component
Open

Implement quiz/assessment component for tutorials#5045
anshul23102 wants to merge 1 commit into
codeharborhub:mainfrom
anshul23102:feat/5026-quiz-component

Conversation

@anshul23102

@anshul23102 anshul23102 commented Jul 27, 2026

Copy link
Copy Markdown

Implements interactive Quiz component for tutorial assessments with:

  • Multiple-choice questions with immediate feedback
  • Keyboard accessibility (arrow keys to navigate, Enter to select)
  • Progress tracking and score calculation
  • Comprehensive styling with theme support
  • Mobile-responsive design
  • ARIA labels for accessibility

Includes Quiz.jsx component, CSS module, and usage documentation with example questions.

Closes #5026

…b#5026)

Add interactive Quiz component with keyboard accessibility and score tracking:
- Quiz.jsx: React component with multiple-choice questions, answer reveal, and explanations
- Quiz.module.css: Professional styling with success/error indicators and animations
- QuizExample.mdx: Usage documentation and live demo

Features:
- Arrow keys to navigate options, Enter to select
- Progress bar and question counter
- Explanation display after each answer
- Score summary with percentage at completion
- Fully keyboard accessible with ARIA labels
- Responsive design for mobile and desktop
- Light/dark mode support via CSS variables

Question format: {question, options[], correct (index), explanation}
@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job, @anshul23102! 🎉 Thank you for submitting your pull request to CodeHarborHub. We appreciate your contribution and enthusiasm! Our team will review it soon. If you have any questions or need further assistance, feel free to reach out. Thanks for contributing!

@deepsource-io

deepsource-io Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

DeepSource Code Review

We reviewed changes in d148591...22b993c on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Code Review Summary

Analyzer Status Updated (UTC) Details
JavaScript Jul 27, 2026 6:00p.m. Review ↗

Important

AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.

@github-actions

Copy link
Copy Markdown

⚡️ Lighthouse Report for the Deploy Preview of this PR 🚀

🔗 Site: CodeHarborHub | Live Site

URL 🌐 Performance Accessibility Best Practices SEO 📊
/ 🔴 32 🟡 77 🟡 75 🟢 100 📄
/docs 🟡 51 🟡 87 🟢 96 🟢 100 📄
/courses 🟡 54 🟡 86 🟢 96 🟢 100 📄
/showcase 🟡 53 🟡 87 🟡 75 🟡 86 📄
/community 🟡 59 🟡 86 🟢 96 🟢 100 📄

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.

Implement quiz/assessment system for tutorials

1 participant