ref(preprod): Redesign treemap tooltip to match Figma design (EME-869)#109478
Merged
cameroncooke merged 2 commits intomasterfrom Feb 26, 2026
Merged
ref(preprod): Redesign treemap tooltip to match Figma design (EME-869)#109478cameroncooke merged 2 commits intomasterfrom
cameroncooke merged 2 commits intomasterfrom
Conversation
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>
Contributor
There was a problem hiding this comment.
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.
static/app/views/preprod/components/visualizations/appSizeTreemap.tsx
Outdated
Show resolved
Hide resolved
Co-Authored-By: Claude <noreply@anthropic.com>
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
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.spacetokens, and no visual separator between file details and insights.After: Tooltip matches the Figma spec with:
border-bottom-width: 2pxIconFixicon rendered viauseRenderToString(design system, not inlined SVG)All spacing values were programmatically extracted from the Figma source using
get_metadata.Before
After
Refs EME-869