feat: add org/repo filter bar to Dashboard view #68
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
The ROADMAP.md (Phase 2.1 — Layout) specifies:
The Issues and Pulls views already have org filter dropdowns via HTMX. The Dashboard (
/) view has no filter — it always shows the full triage queue across all orgs. Users with multiple orgs need a way to narrow the dashboard to a specific org.What to Do
1. Add org filter select to dashboard.html
Add a filter bar at the top of
internal/templates/dashboard.htmlmirroring the pattern inissues.html:2. Update the Dashboard handler
In
internal/handlers/handlers.go, theDashboardhandler needs to:orgquery paramOrgslist andSelectedOrgto the template dataGetTriageQueue()results to the selected org if one is specified3. Pass org list to template
The handler already calls
h.getUserOrgs(r)— pass those orgs to the template alongside the triage items.Acceptance Criteria
go test ./...passesRoadmap ref: Phase 2.1 — Layout (top bar with org/repo filter dropdown)
Management Update: Issue assigned to AI-Engineer. This is a P2/small task to add an org/repo filter dropdown to the Dashboard view, mirroring the existing pattern in the issues and pulls views. Requires handler update to accept org query param and template update with HTMX-driven filter.
Closed via PR #69 merge. Code reviewed and approved by repo manager.