feat(coach): medications + anthropometrics exclusion toggles

Extend the coach exclude-metrics enum with two optional-context tokens
and surface them in the settings sheet under a separate "Include
context" group. The snapshot gates the GLP-1 weeklyContext block on
the medications toggle (skipping the Prisma lookup entirely when
excluded) and gates the new anthropometrics block on the
anthropometrics toggle plus at least one non-null profile field.
Empty blocks are never emitted.
This commit is contained in:
Marc-André Bombeck committed 2026-05-17 12:25:30 +02:00
1 parent 83f0b5ae86
commit 1e9a03bee5
12 files changed
+225 -22

No files matched your search

+9 -3
View File
@@ -353,8 +353,10 @@ components:
- sleep
- resting_hr
- steps
- medications
- anthropometrics
type: string
maxItems: 9
maxItems: 11
type: array
showEvidenceByDefault:
default: false
@@ -1076,8 +1078,10 @@ components:
- sleep
- resting_hr
- steps
- medications
- anthropometrics
type: string
maxItems: 9
maxItems: 11
type: array
showEvidenceByDefault:
default: false
@@ -1880,8 +1884,10 @@ paths:
- sleep
- resting_hr
- steps
- medications
- anthropometrics
type: string
maxItems: 9
maxItems: 11
type: array
showEvidenceByDefault:
default: false