feat(dashboard): make the spotlight heading and the verdict sentence the links

The briefing spotlight carried a separate underlined 'open Insights'
text link that thickened the card; every signal row below already
deep-links. Drop it and make the Tagesbriefing heading itself the link
— quiet, no underline, hover lift only — targeting the briefing card
directly via a new #daily-briefing anchor on the insights section
(scroll-mt-28, the app-wide offset token).

After the broad Insights button left the hero, the scoreDrop and
briefing verdict sentences were dead ends. Link-CTA verdicts without a
button label now make the sentence itself clickable (same quiet
treatment): scoreDrop routes to /insights, the briefing sentence
deep-links to the picked finding's metric sub-page via the METRIC_HREF
map (fallback /insights). Verdicts with their own action keep their
button.
This commit is contained in:
Marc-André Bombeck committed 2026-07-05 18:09:10 +02:00
1 parent 8c22d66dd9
commit e32e27d27f
12 files changed
+74 -36

No files matched your search

+8 -2
View File
@@ -606,7 +606,10 @@ describe("rung 8 — briefing", () => {
NOW,
);
expect(verdict.variant).toBe("briefing");
expect(verdict.values).toEqual({ headline: WATCH_FINDING.headline });
expect(verdict.values).toEqual({
headline: WATCH_FINDING.headline,
sourceMetric: WATCH_FINDING.sourceMetric,
});
expect(verdict.cta).toEqual({ kind: "link", href: "/insights" });
});
@@ -623,7 +626,10 @@ describe("rung 8 — briefing", () => {
NOW,
);
expect(verdict.variant).toBe("briefing");
expect(verdict.values).toEqual({ headline: FRESH_FINDING.headline });
expect(verdict.values).toEqual({
headline: FRESH_FINDING.headline,
sourceMetric: FRESH_FINDING.sourceMetric,
});
});
it("skips a STALE briefing even in ready-shaped delivery", () => {
+4 -1
View File
@@ -273,7 +273,10 @@ export function resolveDashboardVerdict(
const picked = findings.find((f) => f.tone === "watch") ?? findings[0];
return {
variant: "briefing",
values: { headline: picked.headline },
// `sourceMetric` rides along so the hero can deep-link the
// sentence to the picked finding's metric sub-page (METRIC_HREF);
// renderers that don't know the field ignore it.
values: { headline: picked.headline, sourceMetric: picked.sourceMetric },
cta: { kind: "link", href: "/insights" },
};
}