Skip to content

ref(preprod): Redesign treemap tooltip to match Figma design (EME-869)#109478

Merged
cameroncooke merged 2 commits intomasterfrom
ref/preprod-treemap-tooltip-redesign
Feb 26, 2026
Merged

ref(preprod): Redesign treemap tooltip to match Figma design (EME-869)#109478
cameroncooke merged 2 commits intomasterfrom
ref/preprod-treemap-tooltip-redesign

Conversation

@cameroncooke
Copy link

@cameroncooke cameroncooke commented Feb 26, 2026

Redesign the app size treemap tooltip to match the updated Figma design.

Before: Tooltip used a basic layout with red badge-style insight pills, an 8px category dot, loose spacing via theme.space tokens, and no visual separator between file details and insights.

After: Tooltip matches the Figma spec with:

  • 6px category dot with 500 weight label
  • Structured flex column layout with precise gap/padding values derived from Figma metadata
  • Bordered tooltip container with border-bottom-width: 2px
  • Horizontal separator between file info and insights section
  • Table-row style insights with alternating row backgrounds, matching the Top Insights table pattern
  • IconFix icon rendered via useRenderToString (design system, not inlined SVG)
  • Secondary color for path, size text, and savings values
  • Spaced parentheses in percentage text

All spacing values were programmatically extracted from the Figma source using get_metadata.

Before

Screenshot 2026-02-26 at 11 12 00

After

Screenshot 2026-02-26 at 11 11 29

Refs EME-869

Update the app size treemap tooltip with pixel-perfect spacing,
typography, and layout matching the Figma design. Key changes:

- Use design system IconFix component via renderToString instead of
  inlined raw SVG path data
- Add proper flex column layout with 6px gap between content sections
  matching the design's vertical rhythm
- Extract tooltip formatting into dedicated helper functions
- Add spaced parentheses in size percentage text per design spec
- Use nullish coalescing over logical OR for fallback values

Co-Authored-By: Claude <noreply@anthropic.com>
@linear
Copy link

linear bot commented Feb 26, 2026

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Feb 26, 2026
@cameroncooke cameroncooke marked this pull request as ready for review February 26, 2026 11:21
@cameroncooke cameroncooke requested a review from a team as a code owner February 26, 2026 11:21
Copy link
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable autofix in the Cursor dashboard.

Co-Authored-By: Claude <noreply@anthropic.com>
Copy link
Contributor

@runningcode runningcode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@cameroncooke cameroncooke merged commit 357c689 into master Feb 26, 2026
58 checks passed
@cameroncooke cameroncooke deleted the ref/preprod-treemap-tooltip-redesign branch February 26, 2026 12:48
@github-actions github-actions bot locked and limited conversation to collaborators Mar 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants