mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 04:50:59 +00:00
Remove two dead alias constants
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.
This commit is contained in:
1 parent
0e9c5f1a00
commit
fb344c4f78
2 files changed
+1
-8
No files matched your search
@@ -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;
|
||||
@@ -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;
|
||||
Reference in new issue
Block a user