Skip to content

fix(dashboards): Show full aggregate name in widget legends for measurements#109901

Merged
gggritso merged 1 commit intomasterfrom
georgegritsouk/dain-1237-dashboards-percentile-indicator-missing-when-selecting
Mar 5, 2026
Merged

fix(dashboards): Show full aggregate name in widget legends for measurements#109901
gggritso merged 1 commit intomasterfrom
georgegritsouk/dain-1237-dashboards-percentile-indicator-missing-when-selecting

Conversation

@gggritso
Copy link
Member

@gggritso gggritso commented Mar 4, 2026

Remove special-case measurement formatting that replaced full aggregate expressions like p75(measurements.lcp) with just LCP in chart legends.

Previously, if multiple aggregates of a Web Vitals like p75(measurements.lcp) and p50(measurements.lcp) were on the same chart, they would display as LCP in the legend, making it impossible to distinguish which percentile was being shown. Now the full expression is preserved.

Before:
Screenshot 2026-03-04 at 3 13 07 PM

After:
Screenshot 2026-03-04 at 3 14 47 PM

Fixes DAIN-1237

…rements

Previously, measurement fields like `p75(measurements.lcp)` had their
labels replaced with just the uppercase slug (e.g., `LCP`), which
stripped the percentile indicator. This made it impossible to
distinguish between e.g. p50 and p75 of the same measurement.

Remove the special-case measurement formatting so the full expression
is shown in the legend.

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

linear bot commented Mar 4, 2026

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 4, 2026
@gggritso gggritso changed the title Show full aggregate name in widget legends for measurements fix(dashboards): Show full aggregate name in widget legends for measurements Mar 4, 2026
@gggritso gggritso marked this pull request as ready for review March 4, 2026 20:17
@gggritso gggritso requested a review from a team as a code owner March 4, 2026 20:17
@gggritso gggritso merged commit bb42162 into master Mar 5, 2026
65 checks passed
@gggritso gggritso deleted the georgegritsouk/dain-1237-dashboards-percentile-indicator-missing-when-selecting branch March 5, 2026 13:25
JonasBa pushed a commit that referenced this pull request Mar 5, 2026
…rements (#109901)

Remove special-case measurement formatting that replaced full aggregate
expressions like `p75(measurements.lcp)` with just `LCP` in chart
legends.

Previously, if multiple aggregates of a Web Vitals like
`p75(measurements.lcp)` and `p50(measurements.lcp)` were on the same
chart, they would display as `LCP` in the legend, making it impossible
to distinguish which percentile was being shown. Now the full expression
is preserved.

**Before:**
<img width="469" height="272" alt="Screenshot 2026-03-04 at 3 13 07 PM"
src="https://github.com/user-attachments/assets/8633cc43-7e6a-452f-bf1e-da424c78efa2"
/>

**After:**
<img width="463" height="272" alt="Screenshot 2026-03-04 at 3 14 47 PM"
src="https://github.com/user-attachments/assets/90e481ca-aa2b-408d-95bf-d9f6dc1a8f37"
/>

Fixes DAIN-1237

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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