From 54d215d377ca3b369bd79ccd035f20a6c43e9020 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Tue, 20 Oct 2026 16:35:04 +0200 Subject: [PATCH] chore: drop the schema modules' unused constant re-exports The client-safe constants moved to zod-free modules and every caller imports them from there; the re-exports from the schema modules had no reader left. --- src/lib/report-selection/selection.ts | 11 +---------- src/lib/validations/coach-prefs.ts | 1 - src/lib/validations/inbound-documents.ts | 4 ---- 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/src/lib/report-selection/selection.ts b/src/lib/report-selection/selection.ts index d484e5221..0e5552f1c 100644 --- a/src/lib/report-selection/selection.ts +++ b/src/lib/report-selection/selection.ts @@ -14,12 +14,7 @@ */ import { z } from "zod/v4"; -import { - isReportLeafId, - orderLeaves, - type ReportLeafId, - ALL_LEAF_IDS, -} from "./catalogue"; +import { isReportLeafId, type ReportLeafId, ALL_LEAF_IDS } from "./catalogue"; declare const brand: unique symbol; @@ -121,7 +116,3 @@ export function selectionToBlob( export function isEmptySelection(selection: ReportSelection): boolean { return selection.leaves.length === 0; } - -// The ordering helper lives beside the catalogue it orders, so a client -// panel that only folds its own state does not pull the schema library in. -export { orderLeaves }; diff --git a/src/lib/validations/coach-prefs.ts b/src/lib/validations/coach-prefs.ts index 34551646d..70b1f5ea7 100644 --- a/src/lib/validations/coach-prefs.ts +++ b/src/lib/validations/coach-prefs.ts @@ -24,7 +24,6 @@ import { // Coach and the settings pages do not pull the schema library in with them. // Re-exported here for the server code that imports them from the schema. export { - COACH_DATA_CLUSTERS, DEFAULT_COACH_CLUSTERS, DEFAULT_COACH_PREFS, coachReasoningLevel, diff --git a/src/lib/validations/inbound-documents.ts b/src/lib/validations/inbound-documents.ts index 253ff3bc3..9d441d864 100644 --- a/src/lib/validations/inbound-documents.ts +++ b/src/lib/validations/inbound-documents.ts @@ -42,12 +42,8 @@ import type { AiCapabilityState } from "@/lib/ai/capabilities/types"; // library into its route. Re-exported here for the server code that already // imports them from the schema module. export { - DOCUMENT_BULK_MAX_IDS, - DOCUMENT_CONTENT_INDEX_SOURCES, - DOCUMENT_LIST_DEFAULT_LIMIT, INBOUND_DOCUMENT_KINDS, MAX_COACH_ATTACHMENTS, - isAiReadSource, type DocumentContentIndexSourceValue, type InboundDocumentKindValue, } from "@/lib/documents/inbound-constants";