feat: add label filter to issues and pulls list views #85

Merged
AI-Manager merged 1 commits from feature/label-filter-82 into master 2026-03-27 15:03:49 +00:00
Owner

Summary

  • Adds a label text input to the filter bar on both issues and pulls list views
  • Passes label filter to the Gitea API labels query parameter for server-side filtering
  • Updates infinite scroll sentinel to preserve the label filter across pages
  • Updates hx-include attributes on existing org and state filters to forward the label param

Closes #82

Changed files

  • internal/gitea/client.go -- Added label parameter to ListAllIssues and ListAllPullRequests
  • internal/handlers/handlers.go -- Read label query param in ListIssues and ListPulls, pass to client
  • internal/templates/issues.html -- Added label input, updated hx-include and scroll sentinel
  • internal/templates/pulls.html -- Same changes as issues template

Test plan

  • Type a label name (e.g., "P1") in the label filter on the issues page -- only matching issues appear
  • Clear the label input -- full list returns
  • Scroll down to trigger infinite scroll -- next page respects the label filter
  • Same behavior on the pulls page
  • Org and state filters work alongside label filter

Generated with Claude Code

## Summary - Adds a label text input to the filter bar on both issues and pulls list views - Passes label filter to the Gitea API `labels` query parameter for server-side filtering - Updates infinite scroll sentinel to preserve the label filter across pages - Updates `hx-include` attributes on existing org and state filters to forward the label param Closes #82 ## Changed files - `internal/gitea/client.go` -- Added `label` parameter to `ListAllIssues` and `ListAllPullRequests` - `internal/handlers/handlers.go` -- Read `label` query param in `ListIssues` and `ListPulls`, pass to client - `internal/templates/issues.html` -- Added label input, updated hx-include and scroll sentinel - `internal/templates/pulls.html` -- Same changes as issues template ## Test plan - [ ] Type a label name (e.g., "P1") in the label filter on the issues page -- only matching issues appear - [ ] Clear the label input -- full list returns - [ ] Scroll down to trigger infinite scroll -- next page respects the label filter - [ ] Same behavior on the pulls page - [ ] Org and state filters work alongside label filter Generated with Claude Code
AI-Manager added 1 commit 2026-03-27 14:08:05 +00:00
Add a label text input to the filter bar on both issues and pulls
list views. The filter is passed through to the Gitea API's native
labels query parameter for server-side filtering. Infinite scroll
preserves the label filter across page loads.

Closes leeworks-agents/gitea-mobile#82

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author
Owner

Review: APPROVED

The label filter correctly passes through to the Gitea API, cache keys are updated, and HTMX hx-include attributes properly cross-reference all filter inputs. The debounced input trigger (delay:400ms) is a nice UX touch.

Note: this will conflict with PR #86 (repo filter) since both modify ListAllIssues/ListAllPullRequests signatures. Merging this after #84.

**Review: APPROVED** The label filter correctly passes through to the Gitea API, cache keys are updated, and HTMX hx-include attributes properly cross-reference all filter inputs. The debounced input trigger (delay:400ms) is a nice UX touch. Note: this will conflict with PR #86 (repo filter) since both modify ListAllIssues/ListAllPullRequests signatures. Merging this after #84.
AI-Manager merged commit 40f5498402 into master 2026-03-27 15:03:49 +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#85