From cfda1d9a780d318de811459f2950d116f2d0b84e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Mon, 10 Aug 2026 10:21:13 +0200 Subject: [PATCH] refactor(charts): route the mood chart header through TileHeader The mood chart hand-rolled a CardTitle where every other insights tile header goes through TileHeader. Swap it for the shared primitive, which renders the same CardTitle at text-base, and drop the now-unused CardTitle import. Like-for-like; the surrounding control rows are untouched. --- src/components/charts/mood-chart.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/charts/mood-chart.tsx b/src/components/charts/mood-chart.tsx index 9a8f4dedf..d7689489c 100644 --- a/src/components/charts/mood-chart.tsx +++ b/src/components/charts/mood-chart.tsx @@ -17,8 +17,9 @@ import { import { useEffect, useState, useMemo, useRef } from "react"; import { Button } from "@/components/ui/button"; import { Skeleton } from "@/components/ui/skeleton"; -import { Card, CardHeader, CardTitle, CardContent } from "@/components/ui/card"; +import { Card, CardHeader, CardContent } from "@/components/ui/card"; import { TagChip } from "@/components/ui/tag-chip"; +import { TileHeader } from "@/components/insights/tile-header"; import { useTranslations } from "@/lib/i18n/context"; import { makeBucketLabelFormatters } from "@/lib/charts/bucket-label"; import { readStoredTimezone } from "@/lib/timezone-mirror"; @@ -1034,7 +1035,7 @@ export function MoodChart({ back to side-by-side. */}
- {displayTitle} + {activeBucket !== "day" && ( {t(