mirror of
https://github.com/zvx-echo6/meshai.git
synced 2026-08-26 17:31:34 +00:00
fix(gui): exclude timezone from SectionKey so section maps stay exhaustive (tsc)
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<SectionKey,string>. Exclude 'timezone' from SectionKey. Docker frontend build failed on this; live container was untouched. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
ad5509cb12
commit
3f61a10f57
1 changed files with 3 additions and 1 deletions
|
|
@ -232,7 +232,9 @@ interface FullConfig {
|
||||||
dashboard: DashboardConfig
|
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<keyof FullConfig, 'timezone'>
|
||||||
|
|
||||||
const SECTIONS: { key: SectionKey; label: string; icon: typeof Settings }[] = [
|
const SECTIONS: { key: SectionKey; label: string; icon: typeof Settings }[] = [
|
||||||
{ key: 'bot', label: 'Bot', icon: Bot },
|
{ key: 'bot', label: 'Bot', icon: Bot },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue