From 9a22914e46a7f617077c32593e05d5bbec6a4efb Mon Sep 17 00:00:00 2001 From: Tom Tang <4220945+shiba4life@users.noreply.github.com> Date: Tue, 12 May 2026 13:17:12 +0800 Subject: [PATCH] refactor(constants/ui): drop 2 dead exports + unexport MutationTypeOption MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Follow-up to PR #1014's `constants/api.ts` cleanup, applying the same audit pattern to the sibling `constants/ui.ts`: - Delete `TAB_TRANSITION_DURATION_MS` (was ui.ts:11) — zero consumers. Sibling `FORM_FIELD_DEBOUNCE_MS` under the same banner stays. - Delete `AUTH_INDICATORS` block + banner (was ui.ts:132-137) — zero consumers. - Drop `export` keyword from `MutationTypeOption` interface (was ui.ts:107) — used only inside this file as the type parameter for `MUTATION_TYPES`. Interface body unchanged. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/server/static-react/src/constants/ui.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/server/static-react/src/constants/ui.ts b/src/server/static-react/src/constants/ui.ts index 7905f7d4..91d888c6 100644 --- a/src/server/static-react/src/constants/ui.ts +++ b/src/server/static-react/src/constants/ui.ts @@ -8,7 +8,6 @@ */ // Tab Configuration and Navigation -export const TAB_TRANSITION_DURATION_MS = 200; export const FORM_FIELD_DEBOUNCE_MS = 300; export interface TabDefinition { @@ -104,7 +103,7 @@ export const UI_STATES = { } as const; // Mutation Type Constants -export interface MutationTypeOption { +interface MutationTypeOption { value: string; label: string; } @@ -129,13 +128,6 @@ export const SCHEMA_BADGE_COLORS: Record = { pending: "badge badge-warning", }; -// Authentication Indicators -export const AUTH_INDICATORS = { - authenticated: "🔐", - unauthenticated: "🔓", - loading: "⏳", -} as const; - // Help Text Constants export const HELP_TEXT = { rangeSchema: "Range schemas support filtering by a range key",