From 29128606f67346079d17dd36a2ff913d8aebab38 Mon Sep 17 00:00:00 2001 From: Johannes Raggam Date: Tue, 1 Dec 2026 02:47:02 +0100 Subject: [PATCH 1/3] fix(webpack): Select the matching chunk when clicking a sunburst segment. The chunk dropdown is a controlled React select. Hiding options did not update the visualizer's state, so the chart stayed the same. Now a matching chunk is selected through a dispatched change event and the chart is redrawn. "Clear chunk filter" also selects "All Chunks" again. The filter is kept while switching between the matching chunks. Ref: ADR 0004 Assisted-by: Claude Opus 5.5 --- .../0003-link-sunburst-segments-to-chunks.md | 2 +- ...0004-select-chunk-from-sunburst-segment.md | 36 +++++++++++++++++++ webpack/stats-sunburst-navigation.js | 26 +++++++++++--- 3 files changed, 59 insertions(+), 5 deletions(-) create mode 100644 docs/adr/0004-select-chunk-from-sunburst-segment.md diff --git a/docs/adr/0003-link-sunburst-segments-to-chunks.md b/docs/adr/0003-link-sunburst-segments-to-chunks.md index 25ecd91..1f07efc 100644 --- a/docs/adr/0003-link-sunburst-segments-to-chunks.md +++ b/docs/adr/0003-link-sunburst-segments-to-chunks.md @@ -1,6 +1,6 @@ # Link sunburst segments to the existing asset filter -Status: Proposed (2026-12-01) +Status: Superseded by 0004 (2026-12-01) ## Context diff --git a/docs/adr/0004-select-chunk-from-sunburst-segment.md b/docs/adr/0004-select-chunk-from-sunburst-segment.md new file mode 100644 index 0000000..ce7dcb5 --- /dev/null +++ b/docs/adr/0004-select-chunk-from-sunburst-segment.md @@ -0,0 +1,36 @@ +# Select a matching chunk when a sunburst segment is activated + +Status: Proposed (2026-12-01) + +## Context + +ADR 0003 filtered the chunk dropdown when a sunburst segment was activated, +but kept the current selection. The chart therefore did not change, and +users still had to pick a chunk themselves. Clearing the filter also kept +the selected chunk, so the chart and the dropdown could show a chunk the +user no longer meant to inspect. + +The dropdown is a controlled React `