From fb344c4f789ae378d9fe7dea91570cc2d3393149 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Sun, 23 Aug 2026 18:59:01 +0200 Subject: [PATCH] Remove two dead alias constants MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SENSITIVE_LEAVES and COACH_SUGGESTED_ACTION_TYPES each aliased a constant defined elsewhere and were never imported. Neither is a re-export the way the barrel lines were — the definition itself is the dead thing, and both doc comments describe a consumer that does not exist: the purity guard reads SENSITIVE_LEAF_IDS from ./catalogue directly, and nothing mirrors the suggested-action allowlist. The imports that fed them go with them. --- src/lib/report-selection/template.ts | 5 +---- src/lib/validations/coach-reminder.ts | 4 ---- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/lib/report-selection/template.ts b/src/lib/report-selection/template.ts index 0a2cc953f..c5246cc08 100644 --- a/src/lib/report-selection/template.ts +++ b/src/lib/report-selection/template.ts @@ -11,7 +11,7 @@ * The template intersects the fenced tier at zero leaves, and * `catalogue-guard.test.ts` fails the build if that stops being true. */ -import { SENSITIVE_LEAF_IDS, type ReportLeafId } from "./catalogue"; +import { type ReportLeafId } from "./catalogue"; /** * Identity and insurer (the cover page a practice files the document under), @@ -59,6 +59,3 @@ export function standardTemplateFor( const hidden = new Set(hiddenLeaves); return STANDARD_TEMPLATE_LEAVES.filter((leaf) => !hidden.has(leaf)); } - -/** Exported so the purity guard reads the same set the panel does. */ -export const SENSITIVE_LEAVES = SENSITIVE_LEAF_IDS; diff --git a/src/lib/validations/coach-reminder.ts b/src/lib/validations/coach-reminder.ts index 9a1eccccb..1e0d4eb91 100644 --- a/src/lib/validations/coach-reminder.ts +++ b/src/lib/validations/coach-reminder.ts @@ -19,7 +19,6 @@ import { REMINDER_METRIC_MAX_CHARS, } from "@/lib/ai/coach/reminders"; import { - SUGGESTED_ACTION_TYPES, CHECKUP_LABEL_MAX_CHARS, ACTION_NOTE_MAX_CHARS, ACTION_METRIC_MAX_CHARS, @@ -133,6 +132,3 @@ export const coachSuggestedActionSchema = z export type CoachSuggestedActionInput = z.infer< typeof coachSuggestedActionSchema >; - -/** Stable list of confirmable action types (mirrors the lib allowlist). */ -export const COACH_SUGGESTED_ACTION_TYPES = SUGGESTED_ACTION_TYPES;