Skip to content

feat(Admin): add spare set assignee#39

Merged
Early0v0 merged 2 commits into
mainfrom
admin/spare-list-manage
May 25, 2025
Merged

feat(Admin): add spare set assignee#39
Early0v0 merged 2 commits into
mainfrom
admin/spare-list-manage

Conversation

@CoderOJ
Copy link
Copy Markdown
Contributor

@CoderOJ CoderOJ commented May 25, 2025

No description provided.

Copilot AI review requested due to automatic review settings May 25, 2025 12:59
Copy link
Copy Markdown
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 introduces a new spare list management feature within the Admin page that allows setting the assignee for spare events. Key changes include:

  • Updating date-fns imports to include a new formatting function and locale support.
  • Adding the new SpareListManage component to display spare events in a table with assignment controls.
  • Integrating an onChange handler on the assignee selection that updates via an API call.
Comments suppressed due to low confidence (1)

src/pages/Admin.tsx:411

  • [nitpick] Consider using camelCase naming (e.g., spareEndTime) for utility functions to align with common JavaScript/TypeScript conventions.
format(spare_end_time(row.original), "H:mm", { locale: zhCN })

Comment thread src/pages/Admin.tsx
@Early0v0 Early0v0 merged commit a8a0fec into main May 25, 2025
1 check passed
@Early0v0 Early0v0 deleted the admin/spare-list-manage branch May 25, 2025 14:15
@sonarqubecloud
Copy link
Copy Markdown

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.

3 participants