From bcc102e2bf716b37f0eaac8aed354ce4c919a7fa Mon Sep 17 00:00:00 2001 From: "claude[bot]" <41898282+claude[bot]@users.noreply.github.com> Date: Tue, 20 Jan 2026 17:00:03 +0000 Subject: [PATCH 1/3] fix: show tooltip with user predictions during hidden periods for multiple choice questions During hidden periods (when cpRevealsOn or isEmpty is true), the multiple choice timeline tooltip now properly displays: - User predictions if available, or "?" placeholder if not - Community prediction placeholders (CPRevealTime or "noForecastsYet") - The "me" column is always shown during hidden periods Also hides the forecasters count footer during hidden periods since this metric is not meaningful when community predictions are hidden. Fixes #4112 Co-authored-by: Sylvain --- .../components/multiple_choices_chart_view/index.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/front_end/src/app/(main)/questions/[id]/components/multiple_choices_chart_view/index.tsx b/front_end/src/app/(main)/questions/[id]/components/multiple_choices_chart_view/index.tsx index c543fff7af..3aaf103f6d 100644 --- a/front_end/src/app/(main)/questions/[id]/components/multiple_choices_chart_view/index.tsx +++ b/front_end/src/app/(main)/questions/[id]/components/multiple_choices_chart_view/index.tsx @@ -327,7 +327,7 @@ const MultiChoicesChartView: FC = ({ )} - {isTooltipActive && !!tooltipChoices.length && ( + {isTooltipActive && tooltipChoices.length > 0 && (
= ({ title={tooltipTitle} communityPredictions={tooltipChoices} userPredictions={tooltipUserChoices} + showMeColumn={ + !!tooltipUserChoices?.length || + !!forecastAvailability?.cpRevealsOn || + !!forecastAvailability?.isEmpty + } FooterRow={ - forecastersCount !== null && forecastersCount !== undefined ? ( + forecastersCount !== null && + forecastersCount !== undefined && + !forecastAvailability?.cpRevealsOn && + !forecastAvailability?.isEmpty ? ( Date: Tue, 20 Jan 2026 17:09:08 +0000 Subject: [PATCH 2/3] fix: show forecasters count during hidden periods - Remove conditions hiding forecasters count during cpRevealsOn and isEmpty states - Forecasters count now displays consistently regardless of forecast availability Co-authored-by: Sylvain --- .../[id]/components/multiple_choices_chart_view/index.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/front_end/src/app/(main)/questions/[id]/components/multiple_choices_chart_view/index.tsx b/front_end/src/app/(main)/questions/[id]/components/multiple_choices_chart_view/index.tsx index 3aaf103f6d..0e803207a1 100644 --- a/front_end/src/app/(main)/questions/[id]/components/multiple_choices_chart_view/index.tsx +++ b/front_end/src/app/(main)/questions/[id]/components/multiple_choices_chart_view/index.tsx @@ -346,9 +346,7 @@ const MultiChoicesChartView: FC = ({ } FooterRow={ forecastersCount !== null && - forecastersCount !== undefined && - !forecastAvailability?.cpRevealsOn && - !forecastAvailability?.isEmpty ? ( + forecastersCount !== undefined ? ( Date: Wed, 21 Jan 2026 14:46:25 +0000 Subject: [PATCH 3/3] fix: show tooltip during hidden periods even when tooltipChoices is empty Allow tooltip to render during hidden periods (cpRevealsOn or isEmpty) even if tooltipChoices array is empty. This ensures users see placeholder text and their own predictions during hidden periods. The tooltip now appears when any of these conditions are met: - tooltipChoices has items - tooltipUserChoices has items - forecast availability indicates a hidden period Co-authored-by: Sylvain --- .../multiple_choices_chart_view/index.tsx | 84 ++++++++++--------- 1 file changed, 44 insertions(+), 40 deletions(-) diff --git a/front_end/src/app/(main)/questions/[id]/components/multiple_choices_chart_view/index.tsx b/front_end/src/app/(main)/questions/[id]/components/multiple_choices_chart_view/index.tsx index 0e803207a1..6c5674cbed 100644 --- a/front_end/src/app/(main)/questions/[id]/components/multiple_choices_chart_view/index.tsx +++ b/front_end/src/app/(main)/questions/[id]/components/multiple_choices_chart_view/index.tsx @@ -327,46 +327,50 @@ const MultiChoicesChartView: FC = ({
)} - {isTooltipActive && tooltipChoices.length > 0 && ( - -
- - - {t("activeForecastersLabel")} - - - {forecastersCount} - - - ) : null - } - /> -
-
- )} + {isTooltipActive && + (tooltipChoices.length > 0 || + !!tooltipUserChoices?.length || + !!forecastAvailability?.cpRevealsOn || + !!forecastAvailability?.isEmpty) && ( + +
+ + + {t("activeForecastersLabel")} + + + {forecastersCount} + + + ) : null + } + /> +
+
+ )} ); };