From 0fdeafc65d937e8fa5ffeff15f391ae6d321d262 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Mon, 15 Jun 2026 23:31:22 +0200 Subject: [PATCH] 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. --- src/lib/feature-flags/__tests__/coach-user-disable.test.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/feature-flags/__tests__/coach-user-disable.test.tsx b/src/lib/feature-flags/__tests__/coach-user-disable.test.tsx index 1b9b8c47e..594a040ad 100644 --- a/src/lib/feature-flags/__tests__/coach-user-disable.test.tsx +++ b/src/lib/feature-flags/__tests__/coach-user-disable.test.tsx @@ -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