From adfe9ff4f2899d56ece6bf8b9b8e477cd610158e Mon Sep 17 00:00:00 2001 From: malice Date: Sun, 5 Jul 2026 19:25:35 -0600 Subject: [PATCH] fix(gui): exclude timezone from SectionKey so section maps stay exhaustive (tsc) (#49) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 100%-coverage pass added timezone to FullConfig, but it's a top-level scalar (own PUT /api/config/timezone), not a section tab — so SectionKey = keyof FullConfig broke SECTION_DESCRIPTIONS: Record. Exclude 'timezone' from SectionKey. Docker frontend build failed on this; live container was untouched. Co-authored-by: Matt Johnson Co-authored-by: Claude Opus 4.8 (1M context) --- work/dashboard-frontend/src/pages/Config.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/work/dashboard-frontend/src/pages/Config.tsx b/work/dashboard-frontend/src/pages/Config.tsx index fb9b9b8..7390734 100644 --- a/work/dashboard-frontend/src/pages/Config.tsx +++ b/work/dashboard-frontend/src/pages/Config.tsx @@ -232,7 +232,9 @@ interface FullConfig { dashboard: DashboardConfig } -type SectionKey = keyof FullConfig +// `timezone` is a top-level scalar (saved via its own PUT /api/config/timezone), +// not a config section — exclude it so section maps/tabs stay exhaustive. +type SectionKey = Exclude const SECTIONS: { key: SectionKey; label: string; icon: typeof Settings }[] = [ { key: 'bot', label: 'Bot', icon: Bot },