From b1b0b1b9b194855e7cb8c9147eb9aa32febea8f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Fri, 15 May 2026 21:04:13 +0200 Subject: [PATCH] feat(insights): add a Coach launch fallback to every empty-state sub-page and lift the CTA size MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Every Insights sub-page's empty branch surfaced a single "Add measurement" CTA and stopped there — a user with zero data had no path to the assistant who can explain why the missing reading matters. Mount CoachLaunchButton below the primary CTA with a metric-specific prefill so the secondary fallback is one tap away, and pair the change with the ctaSize="lg" prop that EmptyState picked up in MB7 (CF-36) but never had a consumer wire — both findings hit the same files so they fold cleanly into one change. Covers blutdruck, gewicht, puls, stimmung, medikamente, bmi (both the no-weight and no-height branches), and schlaf. --- src/app/insights/blutdruck/page.tsx | 4 ++++ src/app/insights/bmi/page.tsx | 8 ++++++++ src/app/insights/gewicht/page.tsx | 4 ++++ src/app/insights/medikamente/page.tsx | 4 ++++ src/app/insights/puls/page.tsx | 4 ++++ src/app/insights/schlaf/page.tsx | 4 ++++ src/app/insights/stimmung/page.tsx | 4 ++++ 7 files changed, 32 insertions(+) diff --git a/src/app/insights/blutdruck/page.tsx b/src/app/insights/blutdruck/page.tsx index e23ecb01a..bfde157b7 100644 --- a/src/app/insights/blutdruck/page.tsx +++ b/src/app/insights/blutdruck/page.tsx @@ -80,6 +80,7 @@ export default function InsightsBlutdruckPage() { icon={} title={t("insights.emptyState.bloodPressure.title")} description={t("insights.emptyState.bloodPressure.description")} + ctaSize="lg" action={ } /> + ); } diff --git a/src/app/insights/bmi/page.tsx b/src/app/insights/bmi/page.tsx index 17301fbf6..5541c921e 100644 --- a/src/app/insights/bmi/page.tsx +++ b/src/app/insights/bmi/page.tsx @@ -86,6 +86,7 @@ export default function InsightsBmiPage() { icon={} title={t("insights.emptyState.bmi.title")} description={t("insights.emptyState.bmi.description")} + ctaSize="lg" action={ } /> + ); } @@ -105,6 +109,7 @@ export default function InsightsBmiPage() { icon={} title={t("insights.bmiEmptyTitle")} description={t("insights.bmiEmptyDescription")} + ctaSize="lg" action={ } /> + ); } diff --git a/src/app/insights/gewicht/page.tsx b/src/app/insights/gewicht/page.tsx index 2f547ba36..752f63448 100644 --- a/src/app/insights/gewicht/page.tsx +++ b/src/app/insights/gewicht/page.tsx @@ -74,6 +74,7 @@ export default function InsightsGewichtPage() { icon={} title={t("insights.emptyState.weight.title")} description={t("insights.emptyState.weight.description")} + ctaSize="lg" action={ } /> + ); } diff --git a/src/app/insights/medikamente/page.tsx b/src/app/insights/medikamente/page.tsx index 3a1c5de87..0f3aefd1e 100644 --- a/src/app/insights/medikamente/page.tsx +++ b/src/app/insights/medikamente/page.tsx @@ -127,6 +127,7 @@ export default function InsightsMedikamentePage() { icon={} title={t("insights.emptyState.medication.title")} description={t("insights.emptyState.medication.description")} + ctaSize="lg" action={ } /> + ); } diff --git a/src/app/insights/puls/page.tsx b/src/app/insights/puls/page.tsx index 3c386dd59..8c4e7633c 100644 --- a/src/app/insights/puls/page.tsx +++ b/src/app/insights/puls/page.tsx @@ -90,6 +90,7 @@ export default function InsightsPulsPage() { icon={} title={t("insights.emptyState.pulse.title")} description={t("insights.emptyState.pulse.description")} + ctaSize="lg" action={ } /> + ); } diff --git a/src/app/insights/schlaf/page.tsx b/src/app/insights/schlaf/page.tsx index be0bcc06d..20d5a72f0 100644 --- a/src/app/insights/schlaf/page.tsx +++ b/src/app/insights/schlaf/page.tsx @@ -62,6 +62,7 @@ export default function InsightsSchlafPage() { icon={} title={t("insights.emptyState.sleep.title")} description={t("insights.emptyState.sleep.description")} + ctaSize="lg" action={ } /> + ); } diff --git a/src/app/insights/stimmung/page.tsx b/src/app/insights/stimmung/page.tsx index d4889c2dc..09cbf2c95 100644 --- a/src/app/insights/stimmung/page.tsx +++ b/src/app/insights/stimmung/page.tsx @@ -70,12 +70,16 @@ export default function InsightsStimmungPage() { icon={} title={t("insights.emptyState.mood.title")} description={t("insights.emptyState.mood.description")} + ctaSize="lg" action={ } /> + ); }