feat: wire HTMX infinite scroll sentinel for issues and pulls list views #99
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
The backend pagination was added in #32. The ROADMAP specifies infinite scroll using an HTMX sentinel element:
This issue tracks wiring the HTMX
hx-trigger="revealed"sentinel into the issues and pulls list templates to load additional pages automatically as the user scrolls.What to Do
<div>that triggers loading the next page:HX-Requestheader is present) must return only the new rows + updated sentinel, not a full pageAcceptance Criteria
Roadmap Reference
ROADMAP.md Phase 2.2 — Issues List: "Infinite scroll via HTMX
hx-trigger="revealed"on a sentinel element"ROADMAP.md Phase 2.3 — HTMX Patterns: infinite scroll example
Triage: Already Implemented
Code review shows this feature is already fully implemented:
internal/templates/issues.htmlline 17): Hasscroll-sentineldiv withhx-trigger="revealed"that loads the next page with all filter params (org, state, label, repo) preserved.internal/templates/pulls.htmlline 20): Same sentinel pattern implemented.internal/handlers/handlers.golines 313-329):ListIssueshandler detects HTMX requests with page>1 and returns only thecardsfragment (not a full page). Same forListPulls.HasMoreis false.All acceptance criteria are met in the existing code. Closing as already complete.