Skip to content

Conversation

@hatsuroku
Copy link
Contributor

modified in these pages:

  • organization list
  • event list
  • feature list

finish #11

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 updates the list pages for events, organizations, and features to synchronize the pagination query parameters with the URL using nuqs' useQueryState, replacing the previous local state management with a query‐parameter approach.

  • Replace useState with useQueryState for pagination state
  • Rename pagination setter prop from updatePagination to setPagination
  • Update related type definitions for search parameters in EventList and API calls

Reviewed Changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/pages/dashboard/event/page.tsx Converted pagination state to useQueryState and updated the setter
src/pages/dashboard/organization/page.tsx Converted pagination state to useQueryState and updated the setter
src/pages/dashboard/feature/components/FeatureList/index.tsx Updated pagination prop name and type definitions for consistency
src/pages/dashboard/event/components/EventList/index.tsx Adjusted pagination props and removed use of updatePagination
src/pages/dashboard/organization/components/OrganizationList/index.tsx Adjusted pagination props and removed use of updatePagination
src/pages/dashboard/feature/index.tsx Converted pagination state to useQueryState and updated the setter
src/pages/dashboard/layout.tsx Minor formatting updates and wrapped Outlet with NuqsAdapter
src/api/dashboard/event.ts Updated pagination parameter types in API call
Files not reviewed (1)
  • package.json: Language not supported

@PaiJi
Copy link
Member

PaiJi commented Jul 6, 2025

LGTM

@PaiJi PaiJi merged commit 733c1b0 into main Jul 6, 2025
1 check passed
@PaiJi PaiJi deleted the dev/roku branch July 6, 2025 11:32
@github-actions
Copy link

github-actions bot commented Jul 6, 2025

🚀 预览部署完成!

📱 预览地址: https://fcc-dashboard-pk9gamvuys.edgeone.site?eo_token=9d0eb4c042ce8eee7ca3fc43edc96c09&eo_time=1751801648

此预览链接将在部署完成后可用,请稍等片刻再访问。


由 GitHub Actions 自动生成

@Antonoko
Copy link

Antonoko commented Jul 7, 2025

LGTM

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.

4 participants