Direct page
Frontend-only change. The main list pager (web/src/App.tsx, the list-footer pagination block: « First, ‹ Prev, "Page N of M", Next ›, Last ») has no way to reach a specific page quickly. With 553 pages, page 255 takes 254 clicks on Next, or hand-editing page= in the address bar — an option most users don't know about.
Ask: an editable page number — "Page [ 255 ] of 553", where the current page number is a small, always-editable text field. (Chosen over a click-to-edit label and a Go-to-page popover.)
Agreed behavior:
- Commit on Enter. Esc reverts the field to the current page.
- Out-of-range values clamp to the first or last page.
- Non-numeric input is a no-op.
- Parity with a page turn: a jump follows the same path as clicking Next — same fetch, same
page=URL entry. Clamp the typed value againsttotalPagesfirst (the list already computes it), so an out-of-range entry costs no extra fetch. - Main list pager only. The expanded-row child-list region pager (Prev / Next only; its page is not in the URL) is out of scope.
Implementation notes:
- The pager buttons only call
setCurrentPage; the fetch effect and the URL-mirror effect follow on their own. A jump is onesetCurrentPage(n)— no change tourlState.tsor the REST layer. - Use a plain text field with a numeric-keypad hint (
inputMode="numeric"), nottype="number": the spinner chrome is unwanted, and a focused number input steps on mouse wheel in Firefox, so scrolling over the pager would flip pages.
Not MVP: filed without the mvp tag.
- Slot
- 30300
- Status
- 10 Open
- Tags
- frontend
- Contributors
- Donnie, Sofia