Repository navigation
✨ dashboard: pin label filters to the sidebar with a cross-repo filtered view - #12183
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Open PR overlap checkBase branch: Conflicts are checked with every PR merged onto the current tip of
|
Saved filters and presets gain a Pin to sidebar toggle. Pinned filters render in a Filters nav group at the bottom of the left navigation, each with a live count of matching issues/PRs across every project. Clicking one swaps the Projects card grid for a cross-repo view: matches grouped by repository (collapsible, state persisted via the shared section collapse keys) with the facet bar on top for refine-and-resave. Needs human is pinned by default; pin state persists with the saved filter. Fixes #12172 Signed-off-by: Andrew Anderson <andy@clubanderson.com>
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
3da9813 to
81fc242
Compare
|
merged by Hive trusted-author auto-merge: author @clubanderson holds role owner and GitHub permission admin on repo; CI green at 81fc242. |
|
Thank you for your contribution! Your PR has been merged. We'd love to hear how your experience was: share feedback |
Fixes #12172
PR 2 of 2 — follows #12181 (faceted filter + saved filters + Needs human preset, merged). Rebased on v5; the last commit only refreshes pre-existing
api-reference.mdcitation drift from #12173/#12180 (CI gates on it).What
hive-label-filters:<hiveId>store (saved[].pinned,presetPins).oc-nav-itemper pinned filter reusing thebadge-count oc-nav-countpattern with a live count across all repos, recomputed on every status poll. Hidden when nothing is pinned (consistent withdashboardSortSidebar, which only touches[data-section]items so the dashboard section reorder is unaffected). No existing drag helper for arbitrary nav items → no reorder (order follows the store'sorder[], default = presets then saved filters).← Project cardsbutton. Any other sidebar navigation closes the view (ocNavigate→hfOnNavigate, a one-line hook).Tests
TestDashboardLabelFilterPinnedSidebar(node, DOM shim) — default pin, cross-repo count, open/close/navigate-away, per-repo grouping, collapse persistence, unpin hides the group and persists.Docs:
dashboard-sections.md(Projects); changelogadded-12172-pinned-filters-sidebar.md. No new inline styles / raw values.