-
Notifications
You must be signed in to change notification settings - Fork 0
feat(challenges): implement pass rate #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The head ref may contain hidden characters: "pan93412/dbp-100-\u986F\u793A\u984C\u76EE\u505A\u984C\u52D5\u614B"
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements pass rate statistics for challenge questions by adding a new QuestionStatistics type to the GraphQL schema and integrating it into the frontend UI.
- Adds
QuestionStatisticstype with fields for tracking user attempts, passed users, and submission counts - Updates GraphQL queries and fragments to fetch statistics data
- Displays pass rate and correct submission rate in question cards and headers with color-coded percentages
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| schema.graphql | Adds QuestionStatistics type and statistics field to Question type |
| gql/graphql.ts | Generated TypeScript types and query documents for the new statistics fields |
| gql/gql.ts | Updates GraphQL document string mappings to include statistics queries |
| components/colored-rate.tsx | New component for displaying color-coded percentage rates |
| components/question/question-card.tsx | Adds pass rate display to question cards |
| app/(app)/challenges/[id]/_components/header/index.tsx | Adds pass rate and correct submission rate tooltips to question header |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
No description provided.