From 2bd964973f53a11e8f7c350a10d735b6cee3b7de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Fri, 31 Jul 2026 11:40:26 +0200 Subject: [PATCH] Record the score's delta chip in the affordance ledger The panel picked up a green +N chip beside its label when the score moved back into the band, and the repo-wide affordance guard counts that colour wherever it appears outside the outcome module. The chip reports a week that went up rather than an action that succeeded, so it is recorded here at exactly one use rather than routed through the outcome table. --- src/__tests__/success-affordance-guard.test.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/__tests__/success-affordance-guard.test.ts b/src/__tests__/success-affordance-guard.test.ts index dc7f3586b..d200f6a9a 100644 --- a/src/__tests__/success-affordance-guard.test.ts +++ b/src/__tests__/success-affordance-guard.test.ts @@ -174,6 +174,11 @@ const PINNED_AFFORDANCES: Record< "src/components/insights/confidence-badge.ts": { "text-success": 1 }, "src/components/insights/daily-briefing.tsx": { "text-success": 1 }, "src/components/insights/derived/band-tokens.ts": { "text-success": 1 }, + // The green `+N` chip beside the Health Score label. It reports a week that + // went up, not an action that succeeded, and it wears the same band token + // the score's own number does — there is no outcome here to route through + // the outcome module. + "src/components/insights/health-score-card.tsx": { "text-success": 1 }, "src/components/insights/insights-edit-mode.tsx": { "toast.success": 2 }, "src/components/insights/insights-tab-strip.tsx": { "toast.success": 1 }, "src/components/insights/mood/mood-better-days.tsx": { "text-success": 1 },