Skip to content

refactor(tui): remove client-side issue filtering from issues_dashboard.go#388

Open
proboscis wants to merge 1 commit intomainfrom
issue/orch-396/run-20260201-104421
Open

refactor(tui): remove client-side issue filtering from issues_dashboard.go#388
proboscis wants to merge 1 commit intomainfrom
issue/orch-396/run-20260201-104421

Conversation

@proboscis
Copy link
Owner

Summary

  • Pass issue status filter to daemon ListIssues API instead of filtering client-side
  • Remove applyFilter() function from issues_dashboard.go
  • Move filterBranchesForIssue() from issues_dashboard.go to monitor.go

Changes

  1. Monitor.RefreshIssues() now builds a status filter based on showResolved and showClosed settings and passes it to the daemon API
  2. Removed applyFilter() - the client-side filtering function that was duplicating daemon logic
  3. Filter toggle now triggers a daemon refresh instead of local filtering
  4. Moved filterBranchesForIssue() to monitor.go where it's called from - this is not a TUI concern but a Monitor (daemon-adjacent) concern
  5. Updated "(filtered)" UI indicator to show just the filtered count, since we no longer have access to the unfiltered total

Verification

  • go build ./... passes
  • go test ./internal/monitor/... passes (all 54 tests)
  • go test ./internal/daemon/... -run TestListIssues passes

Related

Resolves: orch-396
Depends on: orch-383 (daemon issue status filter support - already merged)

- Pass issue status filter to daemon ListIssues API instead of filtering client-side
- Remove applyFilter() function from issues_dashboard.go
- Move filterBranchesForIssue() from issues_dashboard.go to monitor.go
- When filter toggles, trigger daemon refresh instead of local filtering
- Update hasActiveFilters() UI to show (filtered) indicator without ratio

This reduces client-side logic and centralizes filtering in the daemon.

Resolves: orch-396
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant