From c8386adc90a9593eca637f8085d34c22aa32c278 Mon Sep 17 00:00:00 2001 From: "claude[bot]" <41898282+claude[bot]@users.noreply.github.com> Date: Sun, 14 Dec 2025 07:43:54 +0000 Subject: [PATCH] fix: Display option names instead of "Yes" in feed tile resolution chips MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed the ResolutionChip component to show truncated option names (first 12 chars + "...") instead of replacing them with "Yes" when in compact mode. This ensures users can identify which option resolved even in the feed view. Fixes #3929 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Sylvain --- front_end/src/components/charts/multiple_choice_chart.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/front_end/src/components/charts/multiple_choice_chart.tsx b/front_end/src/components/charts/multiple_choice_chart.tsx index 72dc4a9975..eea8b41d3a 100644 --- a/front_end/src/components/charts/multiple_choice_chart.tsx +++ b/front_end/src/components/charts/multiple_choice_chart.tsx @@ -859,7 +859,9 @@ const ResolutionChip: FC<{ const { getThemeColor } = useAppTheme(); const { x, y, compact, datum, chartHeight, text, color, scale } = props; const adjustedText = - compact && text.length > RESOLUTION_TEXT_LIMIT ? "Yes" : text; + compact && text.length > RESOLUTION_TEXT_LIMIT + ? text.slice(0, RESOLUTION_TEXT_LIMIT) + "..." + : text; const [textWidth, setTextWidth] = useState(0); const textRef = useRef(null);