mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
test(coach): point the disable-coach invariant at the relocated Coach section
The per-user disableCoach gate moved out of the AI/Assistent settings section into its own dedicated Coach section in v1.18.0. Update the call-site allowlist so the grep-based invariant pins the new home instead of the old one.
This commit is contained in:
1 parent
9c5e7a0186
commit
0fdeafc65d
1 file changed
+4
-2
@@ -307,10 +307,12 @@ describe("Coach per-user disableCoach invariant", () => {
|
||||
// writes the flag does NOT read `user.disableCoach` (it reads
|
||||
// `body.disableCoach`) and is intentionally not listed here.
|
||||
"src/app/api/auth/me/route.ts",
|
||||
// - Settings → KI section: the toggle card reads + writes the
|
||||
// - Settings → Coach section: the toggle card reads + writes the
|
||||
// flag; the section shell reads it to gate the Coach sub-cards.
|
||||
// v1.18.0 — moved out of the AI/Assistent section into its own
|
||||
// dedicated Coach settings entry.
|
||||
"src/components/settings/ai/disable-coach-card.tsx",
|
||||
"src/components/settings/ai-section.tsx",
|
||||
"src/components/settings/coach-section.tsx",
|
||||
// v1.7.0 W6 — the unified dashboard snapshot builder reads
|
||||
// `user.disableCoach` to gate the embedded daily briefing to
|
||||
// `briefingState: "disabled"`. Covered by the briefingState matrix
|
||||
|
||||
Reference in new issue
Block a user