Skip to content

Conversation

@pan93412
Copy link
Member

No description provided.

@pan93412 pan93412 self-assigned this Oct 21, 2025
@linear
Copy link

linear bot commented Oct 21, 2025

@vercel
Copy link
Contributor

vercel bot commented Oct 21, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
dbplay-app Ready Ready Preview Comment Oct 21, 2025 7:33pm

Copy link
Contributor

Copilot AI left a 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 QuestionStatistics type 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.

@pan93412 pan93412 requested a review from Copilot October 21, 2025 19:32
Copy link
Contributor

Copilot AI left a 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.

@pan93412 pan93412 merged commit b0690ef into main Oct 21, 2025
3 checks passed
@pan93412 pan93412 deleted the pan93412/dbp-100-顯示題目做題動態 branch October 21, 2025 19:33
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