diff --git a/src/app/insights/page.tsx b/src/app/insights/page.tsx index 8b2f5839e..7fe79a53e 100644 --- a/src/app/insights/page.tsx +++ b/src/app/insights/page.tsx @@ -923,16 +923,25 @@ export default function InsightsPage() { medical-citation footnotes) into the live route. Before this fix the page rendered only the text-only `` per section, hiding all of B5c/d/e/B1b's polish from users. - The per-section status cards stay below as supplemental detail. */} + The per-section status cards stay below as supplemental detail. + + v1.4.19 A3 — `onRegenerate` is no longer wired here. The page + hero already owns the single page-level refresh affordance; + the card-level icon button + empty-state "Analyse starten" + button were duplicates that surfaced the same handler three + ways (page hero button, card-header icon button, + empty-state CTA). The per-recommendation Regenerate (inside + ``) is unrelated — it stays under the + v1.4.16 spec. The placeholder `aiOverviewTitle` + ("Persönlicher Berater") subtitle is also gone — the + CardTitle ("KI-Gesundheitsanalyse") is enough framing on its + own, and the orphan title above an empty body when the user + has no provider configured was the actual confusion source + Marc reported. */} diff --git a/src/components/insights/insight-advisor-card.tsx b/src/components/insights/insight-advisor-card.tsx index 56e6fc38d..0c8f76bb1 100644 --- a/src/components/insights/insight-advisor-card.tsx +++ b/src/components/insights/insight-advisor-card.tsx @@ -32,7 +32,16 @@ import { RecommendationsGrid } from "./recommendations-grid"; // ─── Types ──────────────────────────────────────────────── interface InsightAdvisorCardProps { - title: string; + /** + * v1.4.19 A3 — optional subtitle below the CardTitle. The + * `/insights` page surface no longer passes a subtitle (the + * CardTitle alone is enough framing); the prop stays optional so + * existing test fixtures + the dashboard preview keep their + * supplementary line. When omitted the `

` element is dropped + * entirely so the empty card no longer renders an "orphan + * Persönlicher Berater" title above an empty body. + */ + title?: string; icon?: React.ReactNode; insight: InsightResult | null; loading?: boolean; @@ -332,7 +341,7 @@ export function InsightAdvisorCard({ {t("insights.aiAnalysisTitle")} -

{title}

+ {title &&

{title}

}
@@ -365,7 +374,7 @@ export function InsightAdvisorCard({
-

{title}

+ {title &&

{title}

} {error && ( @@ -473,7 +482,7 @@ export function InsightAdvisorCard({ )} -

{title}

+ {title &&

{title}

}
-

{title}

+ {title &&

{title}

}