Skip to content

Conversation

@tcrz
Copy link
Collaborator

@tcrz tcrz commented Oct 30, 2025

Pull Request

Description

When the current page is the last visible number before the right ellipsis, the pagination should include the next page before the ellipsis to help users scan forward. Example: with many pages, being on page 3 should render “1 2 3 4 … 10” instead of “1 2 3 … 10”.

Current Behavior
On early pages, the window renders a fixed set of numbers and ellipses.
Example with totalPages=10, page=3: “1 2 3 … 10”.

Expected Behavior
When the current page is the last visible number before the right ellipsis (boundary), show one additional page before the ellipsis.
Example with totalPages=10, page=3: “1 2 3 4 … 10”.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes, no api changes)
  • Performance improvement
  • Test improvement

Testing

  • Tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules

Screenshots (if applicable)

Add screenshots to help explain your changes.

Related Issues

Fixes #(issue number)

Additional Notes

Any additional information about the PR that reviewers should know.

@tcrz tcrz changed the title Enhance pagination to “peek” next page before ellipsis Enhance pagination to make next page visible before ellipsis Oct 30, 2025
@ninsau ninsau merged commit 38550e6 into ninsau:main Nov 11, 2025
2 of 5 checks passed
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.

2 participants