From 69dcf6919d47b328c8a1021e78fcd646cb49add7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Sat, 27 Jun 2026 12:18:38 +0200 Subject: [PATCH] test(coach): register the conversation-history page on the disable invariants The dedicated conversation-history page gates on the operator master flag and the per-user opt-out like the main Coach route, so add it to both grep-based gate-site allowlists. --- src/lib/feature-flags/__tests__/coach-cascade.test.tsx | 4 ++++ src/lib/feature-flags/__tests__/coach-user-disable.test.tsx | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/lib/feature-flags/__tests__/coach-cascade.test.tsx b/src/lib/feature-flags/__tests__/coach-cascade.test.tsx index b45b9faac..bb25037f0 100644 --- a/src/lib/feature-flags/__tests__/coach-cascade.test.tsx +++ b/src/lib/feature-flags/__tests__/coach-cascade.test.tsx @@ -284,6 +284,10 @@ describe("Coach disable cascade invariant", () => { // redirects to `/insights` when the operator master flag is off. // v1.18.0 — moved to the standalone top-level `/coach` route. "src/app/coach/page.tsx", + // v1.21.4 — the dedicated conversation-history page gates on + // `flags.coach` like the main Coach route and renders unavailable + // when the operator master flag is off. + "src/app/coach/conversations/page.tsx", // v1.15.20 — the proactive Coach-nudge cron short-circuits on // `flags.coach` (gate 1) so an operator kill-switch also silences // the nudges. Server-side cron, not a render path — the cascade 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 63942e5ec..40065d3fb 100644 --- a/src/lib/feature-flags/__tests__/coach-user-disable.test.tsx +++ b/src/lib/feature-flags/__tests__/coach-user-disable.test.tsx @@ -298,6 +298,10 @@ describe("Coach per-user disableCoach invariant", () => { // page back to `/insights` instead of painting a dead chat shell. // v1.18.0 — moved to the standalone top-level `/coach` route. "src/app/coach/page.tsx", + // v1.21.4 — the dedicated conversation-history page mirrors the + // Coach route gate: operator master flag OR per-user opt-out marks + // the page unavailable instead of painting a dead history shell. + "src/app/coach/conversations/page.tsx", // The hook itself + its `useAuth`-backed reader. "src/hooks/use-disable-coach.ts", // Cross-cut gates owned by sibling invariants / route tests.