From 1ef03376da6ff0651cae603734bd9a9f73956a99 Mon Sep 17 00:00:00 2001 From: George Gritsouk <989898+gggritso@users.noreply.github.com> Date: Mon, 6 Jul 2026 13:59:51 -0400 Subject: [PATCH] fix(dashboards): Show correct type badge for categorical bar X-axis attributes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .../views/dashboards/widgetBuilder/components/xAxisSelector.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/app/views/dashboards/widgetBuilder/components/xAxisSelector.tsx b/static/app/views/dashboards/widgetBuilder/components/xAxisSelector.tsx index 5a53c09fa441..c1e22e36844e 100644 --- a/static/app/views/dashboards/widgetBuilder/components/xAxisSelector.tsx +++ b/static/app/views/dashboards/widgetBuilder/components/xAxisSelector.tsx @@ -63,7 +63,7 @@ export function WidgetBuilderXAxisSelector() { return Object.values(allTags).map(tag => ({ label: prettifyTagKey(tag.name), value: tag.key, - trailingItems: () => , + trailingItems: () => , })); }