Skip to content
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

Simplify Pagination with Persistent User-Selected Page Size #21117

Open
bupd opened this issue Oct 30, 2024 · 1 comment · May be fixed by #21627
Open

Simplify Pagination with Persistent User-Selected Page Size #21117

bupd opened this issue Oct 30, 2024 · 1 comment · May be fixed by #21627
Assignees
Labels
area/ui kind/requirement New feature or idea on top of harbor target/2.13.0 issues that are targeting v2.13.0

Comments

@bupd
Copy link
Contributor

bupd commented Oct 30, 2024

Is your feature request related to a problem? Please describe.
The application currently defaults to 15 items per page across multiple pages. Users must manually adjust the page size each time they navigate to a new page, which is repetitive and frustrating. While an earlier issue #19640 suggested adding a configurable option for page size, making page size a configuration setting adds unnecessary complexity. Instead, it would be better to have implicit user-selected page size that applies universally.

Describe the solution you'd like
The page size should be set by the user once in any page and then apply consistently across all pages in the application. When a user selects a page size (e.g., 50 items) on any page, that size should automatically apply across all other pages and persist even after the user closes and reopens the application. This would make page size adjustments seamless and improve overall user experience.

Describe the main design/architecture of your solution

Unified Page Size Across Pages:

  • This feature should apply the user’s selected page size across all pages without additional configuration.
  • Eliminate the default page size of 15, instead allowing users to set their preferred size.
  • Increase the upper limit of items displayed per page to 100 to support a broader range of preferences.
  • Enable the page size to persist across sessions without requiring further adjustments from the user.

Describe the development plan you've considered

Update Pagination Logic:

  • Store the user-selected page size in the browser's local storage.
  • Modify the pagination logic to reference the stored page size, eliminating the individual configuration for each page.
  • Develop tests to verify that the page size setting is correctly applied across all pages and persists in local storage without causing any functionality breaks.

Additional context
A consistent user experience where the selected page size is universal and retained across sessions, enhancing usability without additional configuration. keeping it user-friendly.

@Vad1mo
Copy link
Member

Vad1mo commented Nov 1, 2024

Good idea

@Vad1mo Vad1mo added area/ui kind/requirement New feature or idea on top of harbor labels Nov 1, 2024
@reasonerjt reasonerjt added target/2.13.0 issues that are targeting v2.13.0 and removed candidate/2.13.0 labels Dec 17, 2024
@bupd bupd linked a pull request Feb 13, 2025 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui kind/requirement New feature or idea on top of harbor target/2.13.0 issues that are targeting v2.13.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants