-
Notifications
You must be signed in to change notification settings - Fork 0
feat(statistics): render score in RankingEdge #24
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-107-\u9700\u8981\u986F\u793A\u9EDE\u6578\u589E\u52A0\u6578"
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
152ab80 to
a45de58
Compare
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 adds score rendering functionality to the RankingEdge GraphQL type to display ranking changes in the statistics interface. The changes enable the display of score differences (positive/negative changes) alongside existing ranking data for both points and completed questions rankings.
- Added a required
scorefield to the RankingEdge GraphQL schema - Updated GraphQL queries to include the score field in ranking operations
- Created a ScoreDiff component to visually display score changes with appropriate styling
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| schema.graphql | Added required score field to RankingEdge type |
| gql/graphql.ts | Updated generated TypeScript types and query documents to include score field |
| gql/gql.ts | Updated GraphQL query strings and type mappings for ranking queries |
| app/(app)/statistics/_components/ranking/score.tsx | New component for rendering score differences with color-coded styling |
| app/(app)/statistics/_components/ranking/points.tsx | Integrated ScoreDiff component into points ranking display |
| app/(app)/statistics/_components/ranking/completed-questions.tsx | Integrated ScoreDiff component into completed questions ranking display |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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 no new comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Uh oh!
There was an error while loading. Please reload this page.