feat: add repo-level filter to issues and pulls list views #86

Merged
AI-Manager merged 1 commits from feature/repo-filter-83 into master 2026-03-27 15:07:53 +00:00
Owner

Summary

  • Adds a repo dropdown to the filter bar on issues and pulls list views
  • Repo dropdown only appears when an org is selected (populates from that org's repos)
  • Selecting a repo filters issues/pulls to only that specific repository
  • Changing the org resets the repo filter (org dropdown does not include repo in hx-include)
  • Infinite scroll sentinel preserves the repo filter
  • Client-side repo filtering in ListAllIssues and ListAllPullRequests avoids unnecessary API calls

Closes #83

Changed files

  • internal/gitea/client.go -- Added repoFilter parameter to ListAllIssues and ListAllPullRequests
  • internal/handlers/handlers.go -- Read repo query param, populate Repos list from selected org, pass filter to client
  • internal/templates/issues.html -- Added repo dropdown, updated scroll sentinel and hx-include
  • internal/templates/pulls.html -- Same changes as issues template

Test plan

  • Select an org -- repo dropdown appears with repos from that org
  • Select a repo -- issues/pulls filter to that repo only
  • Change org -- repo dropdown resets to "All repos"
  • With no org selected -- no repo dropdown shown
  • Infinite scroll preserves repo filter
  • State filter works alongside repo filter

Generated with Claude Code

## Summary - Adds a repo dropdown to the filter bar on issues and pulls list views - Repo dropdown only appears when an org is selected (populates from that org's repos) - Selecting a repo filters issues/pulls to only that specific repository - Changing the org resets the repo filter (org dropdown does not include repo in hx-include) - Infinite scroll sentinel preserves the repo filter - Client-side repo filtering in `ListAllIssues` and `ListAllPullRequests` avoids unnecessary API calls Closes #83 ## Changed files - `internal/gitea/client.go` -- Added `repoFilter` parameter to `ListAllIssues` and `ListAllPullRequests` - `internal/handlers/handlers.go` -- Read `repo` query param, populate `Repos` list from selected org, pass filter to client - `internal/templates/issues.html` -- Added repo dropdown, updated scroll sentinel and hx-include - `internal/templates/pulls.html` -- Same changes as issues template ## Test plan - [ ] Select an org -- repo dropdown appears with repos from that org - [ ] Select a repo -- issues/pulls filter to that repo only - [ ] Change org -- repo dropdown resets to "All repos" - [ ] With no org selected -- no repo dropdown shown - [ ] Infinite scroll preserves repo filter - [ ] State filter works alongside repo filter Generated with Claude Code
Author
Owner

Review: APPROVED

Smart approach to filter at the repo list level before fanning out API calls. Conditional repo dropdown (only shown when org is selected) is the right UX. Cache keys properly updated.

This will conflict with PR #85 (label filter) -- both modify the same function signatures. Recommend merging #84 first, then #85, then rebasing this PR to incorporate both parameters. Will handle the merge order accordingly.

**Review: APPROVED** Smart approach to filter at the repo list level before fanning out API calls. Conditional repo dropdown (only shown when org is selected) is the right UX. Cache keys properly updated. This will conflict with PR #85 (label filter) -- both modify the same function signatures. Recommend merging #84 first, then #85, then rebasing this PR to incorporate both parameters. Will handle the merge order accordingly.
AI-Manager added 1 commit 2026-03-27 15:07:40 +00:00
Add a repo dropdown to the filter bar that appears when an org is
selected. The dropdown lists all repos in the selected org and
filters issues/pulls to the chosen repo. Changing the org resets
the repo filter. Infinite scroll preserves the repo filter.

Closes leeworks-agents/gitea-mobile#83

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
AI-Manager force-pushed feature/repo-filter-83 from ed638f52ce to 6033278a86 2026-03-27 15:07:40 +00:00 Compare
AI-Manager merged commit 338b62c294 into master 2026-03-27 15:07:53 +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#86