diff --git a/src/app/page.tsx b/src/app/page.tsx index 97622d85c..abbed4fd4 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -979,7 +979,11 @@ export default function DashboardPage() { order: widgetOrder("mood"), count: moodSummary?.count ?? 0, node: ( - + ), }); } diff --git a/src/components/charts/mood-chart.tsx b/src/components/charts/mood-chart.tsx index 5c11b51c6..9a74a6404 100644 --- a/src/components/charts/mood-chart.tsx +++ b/src/components/charts/mood-chart.tsx @@ -77,7 +77,9 @@ interface MoodChartProps { /** * v1.4.18 — per-chart overlay-prefs key. When supplied, the chart * mounts the overlay-controls dropdown and reads its three toggle - * states from the persisted user prefs. Default: "mood". + * states from the persisted user prefs. Omit (default) when the + * chart is being rendered ad-hoc on /insights or any other read- + * only surface — the cog stays hidden and overlays are clean. */ chartKey?: ChartOverlayKey; } @@ -270,7 +272,7 @@ export function MoodChart({ mini = false, windowOverride, compareBaseline = "none", - chartKey = "mood", + chartKey, }: MoodChartProps) { const { isAuthenticated } = useAuth(); const { t } = useTranslations(); @@ -547,7 +549,7 @@ export function MoodChart({ )} {!mini && ( -
+
{TIME_RANGES_KEYS.map((r) => (
)}