Skip to content

ref(metrics): Tidy up metrics UI for refresh layout#111532

Merged
nsdeschenes merged 3 commits into
masterfrom
nd/chore-tracemetrics-tidy-up-hiding-metrics
Mar 30, 2026
Merged

ref(metrics): Tidy up metrics UI for refresh layout#111532
nsdeschenes merged 3 commits into
masterfrom
nd/chore-tracemetrics-tidy-up-hiding-metrics

Conversation

@nsdeschenes
Copy link
Copy Markdown
Contributor

@nsdeschenes nsdeschenes commented Mar 25, 2026

Update the metrics explore tab when the UI refresh flag is enabled:

  • Replace the eye icon toggle in the metric toolbar with a letter label that swaps to a closed eye icon when hidden, matching the pattern used in the spans tab
  • Remove the Samples and Aggregates tabs from the metric panel when hidden

Examples:

Screenshot 2026-03-25 at 12 46 14 Screenshot 2026-03-25 at 12 46 22

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 25, 2026
nsdeschenes and others added 3 commits March 25, 2026 12:55
Match the spans tab pattern where the visualize label shows a letter
(A, B, C) when visible and swaps to a closed eye icon when hidden,
instead of always showing an eye icon. Only applies when the metrics
UI refresh flag is enabled.

Co-Authored-By: Claude Opus 4.6 <noreply@example.com>
Hide the MetricInfoTabs component entirely when the metrics UI refresh
flag is enabled, removing the Samples and Aggregates tab sections from
the metric panel.

Co-Authored-By: Claude Opus 4.6 <noreply@example.com>
Restore MetricInfoTabs in the refresh layout, but only render it when
the metric's visualize is visible. When the metric is hidden via the
label toggle, the tabs are hidden along with the chart.

Co-Authored-By: Claude Opus 4.6 <noreply@example.com>
@nsdeschenes nsdeschenes force-pushed the nd/chore-tracemetrics-tidy-up-hiding-metrics branch from 6d640b2 to 087fd01 Compare March 25, 2026 16:55
@nsdeschenes nsdeschenes marked this pull request as ready for review March 25, 2026 17:01
@nsdeschenes nsdeschenes requested a review from a team as a code owner March 25, 2026 17:01
Copy link
Copy Markdown
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.

Fix All in Cursor

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

width: 24px;
height: 36px;
border-radius: ${p => p.theme.radius.md};
`;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

New styled component duplicates existing Label component

Low Severity

The new RefreshLabel styled component and the refresh-path rendering logic closely duplicate the existing Label component and VisualizeLabel function in toolbarVisualize.tsx (lines 279–296). Both implement identical styling (cursor, border-radius, accent background, accent color, 24×36px dimensions, centered flex). Since the PR intends to "match the pattern used in the spans tab," extracting this shared label styling into a reusable component would prevent future drift between the two.

Additional Locations (1)
Fix in Cursor Fix in Web

@nsdeschenes nsdeschenes merged commit a154d99 into master Mar 30, 2026
69 of 70 checks passed
@nsdeschenes nsdeschenes deleted the nd/chore-tracemetrics-tidy-up-hiding-metrics branch March 30, 2026 16:12
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 15, 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