Skip to content

ref(metrics): Split metric attribute tree actions#115641

Merged
nsdeschenes merged 3 commits into
masterfrom
nd/ref-explore-create-metrics-specific-actions-hook
May 19, 2026
Merged

ref(metrics): Split metric attribute tree actions#115641
nsdeschenes merged 3 commits into
masterfrom
nd/ref-explore-create-metrics-specific-actions-hook

Conversation

@nsdeschenes
Copy link
Copy Markdown
Contributor

Some work to split up metric detail panel actions into their own hook, to disconnect them from logs. We've also removed the ability to adding attribute to column, as that's not something that is supported by metrics samples table at this time.

Give metric details their own attribute tree actions hook so the menu only exposes metric-supported filter actions. This removes the logs table column action from metrics while reusing the shared query filter helper.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 15, 2026
@nsdeschenes nsdeschenes marked this pull request as ready for review May 15, 2026 16:22
@nsdeschenes nsdeschenes requested a review from a team as a code owner May 15, 2026 16:22
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 15, 2026

📊 Type Coverage Diff

✅ No new type safety issues introduced. Coverage: 93.56%

Copy link
Copy Markdown
Member

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

Yup. ✅

Thinking out loud: my instinct was that these two hooks might have shared logic to extract & reuse somewhere. But I don't think that's the case.

Comment thread static/app/views/explore/metrics/useMetricAttributesTreeActions.spec.tsx Outdated
@nsdeschenes nsdeschenes merged commit 14dcab7 into master May 19, 2026
80 of 81 checks passed
@nsdeschenes nsdeschenes deleted the nd/ref-explore-create-metrics-specific-actions-hook branch May 19, 2026 12:50
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