Skip to content

Conversation

@pan93412
Copy link
Member

@pan93412 pan93412 commented Oct 18, 2025

Fixed DBP-101
Fixed DBP-111
Fixed DBP-112
Fixed DBP-113

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

linear bot commented Oct 18, 2025

@vercel
Copy link

vercel bot commented Oct 18, 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 18, 2025 8:50pm

@linear
Copy link

linear bot commented Oct 18, 2025

@linear
Copy link

linear bot commented Oct 18, 2025

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 improves the admin page by adding filtering functionality, overview statistics, and a dashboard with ranking and metrics display. The changes transform the admin interface from a simple skeleton view into a comprehensive management dashboard.

  • Enhanced admin overview page with statistics cards and user ranking
  • Added search and filtering capabilities across all data tables
  • Implemented new UI components for tabs and loading states

Reviewed Changes

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

Show a summary per file
File Description
package.json Added dependencies for UI tabs and utility library
gql/graphql.ts Extended GraphQL types with filtering parameters and ranking queries
gql/gql.ts Updated GraphQL documents with new query signatures
components/ui/tabs.tsx New tabs component for navigation
components/ui/spinner.tsx New loading spinner component
app/(admin)/page.tsx Transformed from skeleton to dashboard with overview components
app/(admin)/_components/*.tsx New dashboard components for metrics and ranking
app/(admin)/**/page.tsx Updated to use filterable data tables
app/(admin)/**/*-data-table.tsx Added search functionality with debounced input
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported
Comments suppressed due to low confidence (1)

app/(admin)/_components/submit-count.tsx:1

  • Date calculation error: now.setDate() mutates the original date object. This causes the weekly calculation to use an already modified date. Use separate date objects or clone the date before mutation.
"use client";

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

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

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 38 out of 39 changed files in this pull request and generated no new comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

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

@pan93412 pan93412 merged commit 93794ec into main Oct 18, 2025
3 checks passed
@pan93412 pan93412 deleted the pan93412/dbp-111-admin-一次顯示-20-筆資料 branch October 18, 2025 20:51
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