-
Notifications
You must be signed in to change notification settings - Fork 853
feat(inspect): Project list pagination #3207
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
feat(inspect): Project list pagination #3207
Conversation
Signed-off-by: Colorado, Camilo <[email protected]>
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 pagination for the project list and refactors the load-more list component to be shared across multiple features. The changes enable infinite scrolling for projects, sources, sinks, and media items, improving performance and user experience when dealing with large datasets.
Key Changes:
- Implemented pagination for the project list with a new
useGetProjectshook that uses infinite queries - Increased pagination limits from 2 to 20 items for sources and sinks
- Refactored and relocated
LoadMoreListcomponent to be a shared component across the application
Reviewed changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
application/ui/src/features/inspect/toolbar/sources/source-list/source-list.component.tsx |
Updated import path for LoadMoreList component to use shared location |
application/ui/src/features/inspect/toolbar/sinks/sink-list/sink-list.component.tsx |
Updated import path for LoadMoreList component to use shared location |
application/ui/src/features/inspect/toolbar/sinks/hooks/use-get-sources.hooks.tsx |
Increased sources pagination limit from 2 to 20 items |
application/ui/src/features/inspect/toolbar/sinks/hooks/use-get-sinks.hooks.tsx |
Increased sinks pagination limit from 2 to 20 items |
application/ui/src/features/inspect/toolbar/models-list/models-list.component.tsx |
Updated import path for LoadMoreList component to use shared location |
application/ui/src/features/inspect/projects-management/projects-list.component.tsx |
Added pagination props and wrapped list with LoadMoreList component |
application/ui/src/features/inspect/projects-management/projects-list-panel.component.tsx |
Integrated new hooks and pagination logic for project list |
application/ui/src/features/inspect/projects-management/hooks/use-selected-project.test.tsx |
Added comprehensive tests for useSelectedProject hook |
application/ui/src/features/inspect/projects-management/hooks/use-selected-project.hook.tsx |
Created hook to manage selected project with auto-fetching logic |
application/ui/src/features/inspect/projects-management/hooks/use-get-project.hooks.tsx |
Created hook to fetch projects with infinite scroll pagination |
application/ui/src/features/inspect/models/models.component.tsx |
Added size prop to Loading component |
application/ui/src/features/inspect/dataset/media-preview/sidebar-items/sidebar-items.component.tsx |
Added pagination props for media items in sidebar |
application/ui/src/features/inspect/dataset/media-preview/media-preview.component.tsx |
Added pagination props to MediaPreview component |
application/ui/src/features/inspect/dataset/hooks/use-selected-media-item.test.tsx |
Added comprehensive tests for useSelectedMediaItem hook |
application/ui/src/features/inspect/dataset/hooks/use-selected-media-item.hook.tsx |
Created hook to manage selected media item with auto-fetching logic |
application/ui/src/features/inspect/dataset/dataset-list.component.tsx |
Integrated useSelectedMediaItem hook and added pagination support |
application/ui/src/components/load-more-list/load-more-list.component.tsx |
Added padding to container styling |
application/ui/mocks/mock-project.ts |
Created mock factory function for project testing |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...tion/ui/src/features/inspect/dataset/media-preview/sidebar-items/sidebar-items.component.tsx
Show resolved
Hide resolved
application/ui/src/features/inspect/dataset/media-preview/media-preview.component.tsx
Show resolved
Hide resolved
c7ed0dc to
b08b87a
Compare
Signed-off-by: Colorado, Camilo <[email protected]>
b08b87a to
ea85a4a
Compare
7dade8c
into
open-edge-platform:feature/geti-inspect
📝 Description
Screen.Recording.2025-12-10.at.15.17.16.mov
✨ Changes
Select what type of change your PR is:
✅ Checklist
Before you submit your pull request, please make sure you have completed the following steps:
For more information about code review checklists, see the Code Review Checklist.