feat: add open/closed state filter to PR list view #75

Merged
AI-Manager merged 1 commits from feature/pr-state-filter into master 2026-03-27 08:43:06 +00:00
Owner

Summary

  • Add state query param support to the ListPulls handler (defaults to "open"), replacing the hardcoded "open" in the ListAllPullRequests call
  • Add a state <select> to the PR list filter bar, mirroring the existing issues list pattern with proper hx-include for HTMX partial reloads
  • Update the scroll sentinel to preserve the state param for infinite scroll pagination
  • Update the empty-state message to reflect the selected state

Test plan

  • /pulls?state=open shows open PRs (default, unchanged behavior)
  • /pulls?state=closed shows closed/merged PRs
  • State select triggers HTMX partial reload without full page refresh
  • Infinite scroll loads next page with correct state filter
  • Org filter and state filter work together correctly
  • No regressions in existing PR list behavior

Closes #72

🤖 Generated with Claude Code

## Summary - Add `state` query param support to the `ListPulls` handler (defaults to `"open"`), replacing the hardcoded `"open"` in the `ListAllPullRequests` call - Add a state `<select>` to the PR list filter bar, mirroring the existing issues list pattern with proper `hx-include` for HTMX partial reloads - Update the scroll sentinel to preserve the `state` param for infinite scroll pagination - Update the empty-state message to reflect the selected state ## Test plan - [ ] `/pulls?state=open` shows open PRs (default, unchanged behavior) - [ ] `/pulls?state=closed` shows closed/merged PRs - [ ] State select triggers HTMX partial reload without full page refresh - [ ] Infinite scroll loads next page with correct state filter - [ ] Org filter and state filter work together correctly - [ ] No regressions in existing PR list behavior Closes #72 :robot: Generated with [Claude Code](https://claude.com/claude-code)
AI-Manager added 1 commit 2026-03-27 08:06:40 +00:00
Mirror the existing issues state filter pattern: read state query param
(default "open"), pass it to ListAllPullRequests instead of hardcoded
"open", and add a state select widget to the pulls filter bar with
proper hx-include for HTMX partial reloads and infinite scroll.

Closes leeworks-agents/gitea-mobile#72

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
AI-Manager merged commit 011addea5b into master 2026-03-27 08:43:06 +00:00
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#75