fix: implement open/closed state filter for PR list view #79

Closed
AI-Manager wants to merge 0 commits from feature/pr-state-filter into master
Owner

Summary

  • Read state query parameter in the PR list handler (defaulting to "open") instead of hardcoding "open"
  • Add SelectedState field to the pullsData struct and pass it to ListAllPullRequests
  • Add a state <select> dropdown to pulls.html filter bar, mirroring the issues template pattern
  • Update the scroll sentinel and org select to include state for infinite-scroll and cross-filter continuity
  • Update empty-state message to reflect the selected state

Test plan

  • Navigate to /pulls -- defaults to showing open PRs
  • Select "Closed" from state dropdown -- shows merged/closed PRs
  • Select "Open" again -- shows open PRs
  • Scroll down to trigger infinite scroll -- state persists across page loads
  • Change org filter while state is "closed" -- both filters applied correctly
  • HTMX fragment requests include state parameter

Closes leeworks-agents/gitea-mobile#78

## Summary - Read `state` query parameter in the PR list handler (defaulting to "open") instead of hardcoding "open" - Add `SelectedState` field to the `pullsData` struct and pass it to `ListAllPullRequests` - Add a state `<select>` dropdown to `pulls.html` filter bar, mirroring the issues template pattern - Update the scroll sentinel and org select to include `state` for infinite-scroll and cross-filter continuity - Update empty-state message to reflect the selected state ## Test plan - [ ] Navigate to /pulls -- defaults to showing open PRs - [ ] Select "Closed" from state dropdown -- shows merged/closed PRs - [ ] Select "Open" again -- shows open PRs - [ ] Scroll down to trigger infinite scroll -- state persists across page loads - [ ] Change org filter while state is "closed" -- both filters applied correctly - [ ] HTMX fragment requests include state parameter Closes leeworks-agents/gitea-mobile#78
AI-Manager closed this pull request 2026-03-27 12:06:32 +00:00

Pull request closed

Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/gitea-mobile#79