Skip to content

Conversation

@pan93412
Copy link
Member

  • refacto(points): move query to components
  • feat(points): allow granting points

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

linear bot commented Oct 23, 2025

@vercel
Copy link

vercel bot commented Oct 23, 2025

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

Project Deployment Preview Comments Updated (UTC)
admin-frontend Ready Ready Preview Comment Oct 23, 2025 3:27pm

@pan93412 pan93412 force-pushed the pan93412/dbp-125-可以在-admin-頁面輕鬆加點數 branch from f706430 to becaf7a Compare October 23, 2025 15:19
Copy link

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 functionality to grant points to users through the admin interface. It adds a GraphQL mutation for creating point records and provides a user-friendly dialog form for admins to award points.

Key changes:

  • Added createPoint GraphQL mutation with supporting types and schemas
  • Implemented a form-based UI for granting points with user selection and validation
  • Refactored query definitions from separate files into components for better colocation

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
schema.graphql Added CreatePointInput type and createPoint mutation definition
gql/graphql.ts Generated TypeScript types for new mutation and queries
gql/gql.ts Added GraphQL document type mappings for point creation
app/(admin)/(activity-management)/points/page.tsx Added CreatePointTrigger button to points management page
app/(admin)/(activity-management)/points/_components/update-form.tsx New form component for point granting with user validation
app/(admin)/(activity-management)/points/_components/query.ts Removed (query moved to component file)
app/(admin)/(activity-management)/points/_components/data-table.tsx Moved query definition here and refactored to use fragments
app/(admin)/(activity-management)/points/_components/create.tsx New dialog component for creating point records

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link

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 9 out of 9 changed files in this pull request and generated 2 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link

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 9 out of 9 changed files in this pull request and generated 2 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@pan93412 pan93412 merged commit 0883829 into main Oct 23, 2025
3 checks passed
@pan93412 pan93412 deleted the pan93412/dbp-125-可以在-admin-頁面輕鬆加點數 branch October 23, 2025 15:28
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