Skip to content

fix(dashboards): Show correct type badge for categorical bar X-axis attributes#119071

Open
gggritso wants to merge 1 commit into
masterfrom
georgegritsouk/dain-1765-span-attributes-in-categorical-bar-widget-are-labelled-tag
Open

fix(dashboards): Show correct type badge for categorical bar X-axis attributes#119071
gggritso wants to merge 1 commit into
masterfrom
georgegritsouk/dain-1765-span-attributes-in-categorical-bar-widget-are-labelled-tag

Conversation

@gggritso

@gggritso gggritso commented Jul 6, 2026

Copy link
Copy Markdown
Member

The categorical bar chart's X-axis picker rendered a tag badge on every span attribute, weird!

The picker was hardcoding <TypeBadge valueKind={FieldValueKind.TAG} /> for every EAP attribute. Each attribute already carries its correct kind, so this drives the badge from tag.kind instead.

Before:
Screenshot 2026-07-06 at 1 59 08 PM

After:
Screenshot 2026-07-06 at 1 59 00 PM

Fixes DAIN-1765

…ttributes

The categorical bar chart X-axis picker rendered a "tag" badge on every
span attribute, including numeric ones, which is both wrong per-type and
inconsistent with how Explore labels attributes.

Drive the badge from each attribute's own kind so string attributes show
"string", numeric ones "number", and booleans "boolean" — matching
Explore's group-by and column-editor selectors (optionFromTag).

Fixes DAIN-1765
Refs DAIN-1714
Co-Authored-By: Claude <noreply@anthropic.com>
@linear-code

linear-code Bot commented Jul 6, 2026

Copy link
Copy Markdown

DAIN-1765

DAIN-1714

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jul 6, 2026
@gggritso gggritso marked this pull request as ready for review July 6, 2026 20:23
@gggritso gggritso requested a review from a team as a code owner July 6, 2026 20:23
@gggritso

gggritso commented Jul 6, 2026

Copy link
Copy Markdown
Member Author

@cursor review

@cursor cursor Bot left a comment

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.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 1ef0337. Configure here.

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.

1 participant