Repository navigation
Filter open Issues and PRs by open age from a clickable pie chart - #15
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds an interactive open-age donut chart directly above the open list on both the Issue and PR pages. On the Issue page it replaces the old non-interactive age-distribution bar chart; on the PR page it is new.
<7d[0,7),7-30d[7,30),30-90d[30,90),>90d[90,∞). Items withoutage_daysare not counted; zero-count buckets are listed in the legend but are not clickable. Legend entries show both the count and the share, and the selected sector/entry gets a clear selected state.role=button,aria-pressed, Enter/Space) with accessible names; colors reuse the existing sequential palette, no new dependencies.Implementation
static/app.js:AGE_BUCKETS/ageBucketOf/agePie/ageChiphelpers, per-pageSTATE.ageFilter, click and keydown delegation, the filter applied inrenderIssues/renderPRs; helpers shared with the board viawindow.GSB.static/board.js: the board'sfiltered()applies the same per-scope age selection, the toolbar mirrors the active bucket as a chip, and “clear all” clears the age filter too.static/style.css: pie and legend styles on the existing palette;static/index.htmlcache version bumped.docs/dashboard-pages.md: feature description and browser-test coverage updated.Tests
open-age pie filters only the open list on its own pageintest/journey-board.spec.cjscovers bucket boundaries and counts, sector/legend clicks, re-click to clear, chip clearing, keyboard activation, intersection with the text search, empty results, Issue/PR independence, board-view filtering, and that the side tables stay unfiltered. The two existing assertions on the replaced bar chart now expect the new card.node .e2e/node_modules/playwright/cli.js test --config test/playwright.config.cjs→ 24 passed, 1 failed; the failure (Real E2E cases show run marks…,.score-failedcount) reproduces identically on the unmodified baseline tree, so it is pre-existing and unrelated to this change.