Skip to content

misc(treemap): outline and highlight duplicate modules - #17472

Merged
connorjclark merged 1 commit into
mainfrom
treemap/duplicates
Oct 29, 2026
Merged

connorjclark merged 1 commit into
mainfrom
treemap/duplicates

Conversation

@connorjclark

Copy link
Copy Markdown
Collaborator

Summary

Duplicate modules, per the new design:

  • Every copy of a duplicated module is outlined in all view modes (All, Unused, Duplicate). Default node border is lightened to rgba(0,0,0,0.2).
  • Hovering a duplicate module (in the treemap or the table) fills all of its copies with the module's color and fades everything else to white.
    • Copies too small for webtreemap to render are represented by their closest rendered ancestor.
    • When zoomed in, copies outside the current view aren't visible, so a hint is shown: "Copies outside this view: N" (new UI string).
  • The Duplicate modules table now uses the same filtering as the view mode (≥2 copies, above the bytes threshold) and is sorted by duplicated bytes. Subrow spacing updated.

Stacked on the back button PR — review only the last commit.

Related Issues/PRs

Part of #16400

@connorjclark
connorjclark marked this pull request as ready for review October 29, 2026 20:55
@connorjclark
connorjclark requested a review from a team as a code owner October 29, 2026 20:55
@connorjclark
connorjclark requested review from paulirish and removed request for a team October 29, 2026 20:55
@connorjclark
connorjclark merged commit 39d5dad into main Oct 29, 2026
36 of 37 checks passed
@connorjclark
connorjclark deleted the treemap/duplicates branch October 29, 2026 20:58

This branch was successfully deployed

1 active deployment
Preview — dbe25ac8 Deployed Oct 29, 2026 by vercel[bot]
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