Skip to content

fix(dashboards): Fetch attributes while typing in categorical bar X-axis#119084

Open
gggritso wants to merge 2 commits into
masterfrom
georgegritsouk/dain-1964-categorica-bar-chart-x-axis-missing
Open

fix(dashboards): Fetch attributes while typing in categorical bar X-axis#119084
gggritso wants to merge 2 commits into
masterfrom
georgegritsouk/dain-1964-categorica-bar-chart-x-axis-missing

Conversation

@gggritso

@gggritso gggritso commented Jul 6, 2026

Copy link
Copy Markdown
Member

Span attributes beyond the initial /trace-items/attributes/ response weren't showing up in the X-axis of a categorical bar chart widget because we weren't fetching them. The data fetching wasn't hooked up quite right, this PR amends this.

Before:
Screenshot 2026-07-06 at 4 54 05 PM

After:
Screenshot 2026-07-06 at 4 54 09 PM

Closes DAIN-1964

The categorical bar chart's X-axis picker loaded span attributes from the
capped `/trace-items/attributes/` page and filtered it client-side only, so
attributes beyond that page (e.g. `gen_ai.tool.name`) could never be selected
even though they appear in Explore.

Wire the picker's search input to a debounced server-side fetch, mirroring
Explore's group by, so typing narrows the query with `substringMatch` and
surfaces long-tail attributes. Keep the selected value pinned and show
loading/empty feedback while searching.

Refs DAIN-1964
Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jul 6, 2026
@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 ccfab3a. Configure here.

Set `highlight: true` on the picker's search config so the matched substring
of each option is visually highlighted while typing, matching every Explore
attribute picker.

Refs DAIN-1964
Co-Authored-By: Claude <noreply@anthropic.com>
@gggritso gggritso marked this pull request as ready for review July 6, 2026 21:18
@gggritso gggritso requested a review from a team as a code owner July 6, 2026 21:18
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