fix: implement open/closed state filter for PR list view #78
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
Issue #72 was closed claiming the PR state filter was implemented, but the handler still hardcodes the string open and the pulls template has no state select element.
Compare with the issues list which correctly reads state from the query string, includes a state select in issues.html, and passes SelectedState through to the template for infinite-scroll continuity.
Current State (broken)
In internal/handlers/handlers.go the PR handler contains:
And internal/templates/pulls.html has no state filter select element.
What to Do
Acceptance Criteria
Roadmap Reference
Phase 2.2 - PR List view, ROADMAP.md
Triage update (2026-03-27): PR #79 has been created from the existing
feature/pr-state-filterbranch which already contains the complete fix. The implementation mirrors the issues list pattern: readsstatefrom the query string, addsSelectedStateto the struct, adds a state dropdown topulls.html, and updates the scroll sentinel andhx-includeattributes for cross-filter continuity. Awaiting review and merge.Issue resolved. The fix from branch
feature/pr-state-filterwas already merged into master (commit7fa7d3f). PR #79 has been closed. The PR list view now supports open/closed state filtering matching the issues list pattern.