Repository navigation
Conversation
Collaborator
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
mcanouil
force-pushed
the
feat/issue12031-listing-pagination
branch
from
January 14, 2026 20:55
fa98912 to
bfef90b
Compare
mcanouil
marked this pull request as ready for review
January 14, 2026 21:09
mcanouil
force-pushed
the
feat/issue12031-listing-pagination
branch
from
January 14, 2026 21:10
a58b65b to
d9b15fd
Compare
Collaborator
Author
|
This PR is finally ready with appropriate tests. |
|
This is a really useful enhancement. Looking forward to seeing this merged! |
Enhance the existing listing test suite by adding pagination tests to verify the presence of pagination elements and their expected behaviour in the rendered output.
mcanouil
force-pushed
the
feat/issue12031-listing-pagination
branch
from
November 4, 2026 00:10
d9b15fd to
e09ac81
Compare
mcanouil
marked this pull request as ready for review
November 4, 2026 00:11
|
Great! A lot of thought has clearly gone into this. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Listings get a
paginationoption to choose how many page links the control shows, as requested in discussion #12031.inner-windowsets the links on each side of the current page.outer-windowsets the links at both ends, andouter-window-leftorouter-window-rightoverrides one end, including with0.Quarto passes these to list.js as
innerWindow,leftandright.A value that isn't a whole number at or above its minimum (1 for
inner-window, 0 for the others) prints a warning and is ignored.Without
pagination, the listing script is the same as before.Today every paginated listing shows the same links, with no way to change them.
Here is page 6 of 10:
There is no link to the first or the last page.
To reach page 1 from page 6, a reader has to step back through the window, from 6 to 4, then 2, then 1.
outer-window: 1could be hardcoded, but letting user customise this seems better to me here.With the new options, the same page shows:
outer-window-left: 2outer-window: 1inner-window: 1,outer-window: 2,outer-window-left: 0The control is now labelled for screen readers.
The
navis named "Pagination" and each link "Page n", from two new language keys.The current page has
aria-current="page", and the "..." gaps are no longer focusable.The new keys show in English for now; once this is merged, I'll open a translation issue under #14822.
Several paginated listings on one page still share the same
navname, as they did before.Tests cover the emitted options, the warning, and, in Playwright, the links, labels, keyboard use and axe checks in all three engines.
The documentation is in quarto-dev/quarto-web#2339.
Checklist
I have (if applicable):
AI-assisted PR
Note: autonomous AI agents submitting PRs without human oversight are not permitted — see the Code of Conduct.