From 2d73e70dd40757484b4892246a759f978e6f8966 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Sun, 5 Jul 2026 15:48:35 +0200 Subject: [PATCH] feat(dashboard): drop the broad Insights CTA and deep-link the briefing signals MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The scoreDrop/briefing verdict button only opened the Insights overview, which the health-score card already links — gone. The briefing-spotlight rows now deep-link to their metric's sub-page via the shared METRIC_HREF mapping; metrics without a routed page fall back to the overview. --- src/components/dashboard/hero/briefing-spotlight.tsx | 6 +++++- src/components/dashboard/hero/dashboard-hero.tsx | 8 +++++--- src/components/insights/daily-briefing.tsx | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/components/dashboard/hero/briefing-spotlight.tsx b/src/components/dashboard/hero/briefing-spotlight.tsx index ae222e0b8..dcdc6f95a 100644 --- a/src/components/dashboard/hero/briefing-spotlight.tsx +++ b/src/components/dashboard/hero/briefing-spotlight.tsx @@ -49,6 +49,7 @@ import { Zap, } from "lucide-react"; import { ListRow } from "@/components/ui/list-row"; +import { METRIC_HREF } from "@/components/insights/daily-briefing"; import { useTranslations } from "@/lib/i18n/context"; import { stripChartTokens } from "@/lib/insights/chart-tokens"; import { cn } from "@/lib/utils"; @@ -178,7 +179,10 @@ export function BriefingSpotlight({ "focus-visible:ring-ring/50 focus-visible:ring-2 focus-visible:outline-none", )} > - + {/* Deep-link each signal to its metric sub-page (the same + mapping the briefing card's finding rows use); metrics + without a routed sub-page fall back to the overview. */} +