-
Notifications
You must be signed in to change notification settings - Fork 0
feat: implement cheat records page #46
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
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 a comprehensive cheat records management system, adding the ability to track, view, and resolve cheating incidents for users. The feature includes GraphQL schema extensions, UI components for creating and managing records, and integration with the existing user management system.
Key changes:
- Added
CheatRecordentity with full CRUD operations via GraphQL - Implemented cheat records listing page with search and filtering capabilities
- Integrated cheat records display into user detail pages
- Added mutations for creating and resolving cheat records with proper permission scoping
Reviewed changes
Copilot reviewed 20 out of 20 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| schema.graphql | Defines CheatRecord type, queries, mutations, and input types with connection patterns |
| gql/graphql.ts | Generated TypeScript types for CheatRecord entities, queries, and mutations |
| gql/gql.ts | Generated GraphQL document type mappings for cheat record operations |
| components/app-sidebar.tsx | Adds "作弊記錄" navigation item with Ban icon to sidebar |
| app/(admin)/(user-management)/users/[id]/_components/user-cards.tsx | Integrates CheatRecordsCard into user detail view |
| app/(admin)/(user-management)/users/[id]/_components/cheat-records.tsx | Displays user's unresolved cheat records with summary and details |
| app/(admin)/(activity-management)/cheat-records/page.tsx | Main cheat records management page with table and filters |
| app/(admin)/(activity-management)/cheat-records/_components/resolve.tsx | Dialog components for resolving cheat records |
| app/(admin)/(activity-management)/cheat-records/_components/resolve-form.tsx | Form for entering resolution reason |
| app/(admin)/(activity-management)/cheat-records/_components/query.ts | GraphQL queries for cheat records table and details |
| app/(admin)/(activity-management)/cheat-records/_components/mutation.ts | GraphQL mutations for create and resolve operations |
| app/(admin)/(activity-management)/cheat-records/_components/filterable-data-table.tsx | Search and filter UI wrapper for cheat records table |
| app/(admin)/(activity-management)/cheat-records/_components/data-table.tsx | Paginated data table implementation with cursor-based navigation |
| app/(admin)/(activity-management)/cheat-records/_components/data-table-columns.tsx | Table column definitions with user info, status badges, and actions |
| app/(admin)/(activity-management)/cheat-records/_components/create.tsx | Dialog component for creating new cheat records |
| app/(admin)/(activity-management)/cheat-records/_components/create-form.tsx | Form with user lookup and validation for record creation |
| app/(admin)/(activity-management)/cheat-records/[id]/page.tsx | Cheat record detail page layout |
| app/(admin)/(activity-management)/cheat-records/[id]/_components/resolve-button.tsx | Conditional resolve button based on record status |
| app/(admin)/(activity-management)/cheat-records/[id]/_components/header.tsx | Detail page header with user avatar and record info |
| app/(admin)/(activity-management)/cheat-records/[id]/_components/details.tsx | Detailed cheat record information card with timestamps and reasons |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
app/(admin)/(activity-management)/cheat-records/[id]/_components/resolve-button.tsx
Outdated
Show resolved
Hide resolved
app/(admin)/(activity-management)/cheat-records/_components/data-table-columns.tsx
Outdated
Show resolved
Hide resolved
app/(admin)/(activity-management)/cheat-records/_components/data-table-columns.tsx
Outdated
Show resolved
Hide resolved
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 20 out of 20 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.