goharbor / harbor

An open source trusted cloud native registry project that stores, signs, and scans content.
https://goharbor.io
Apache License 2.0
24.16k stars 4.76k forks source link

Simplify Pagination with Persistent User-Selected Page Size #21117

Open bupd opened 2 weeks ago

bupd commented 2 weeks ago

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:

Describe the development plan you've considered

Update Pagination Logic:

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 commented 1 week ago

Good idea