From f40f16608c8390529dd5bb6a51b7ca24ea25e268 Mon Sep 17 00:00:00 2001 From: Maude Bot Date: Wed, 21 Jan 2026 23:03:08 -0500 Subject: [PATCH] fix(ui): export SECTION_META from config-form module Export the SECTION_META constant from config-form.render.ts and re-export it through config-form.ts so it can be imported by config.ts. This fixes a runtime error where SECTION_META was being referenced but not properly exported from its source module. --- ui/src/ui/views/config-form.render.ts | 2 +- ui/src/ui/views/config-form.ts | 2 +- ui/src/ui/views/config.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/src/ui/views/config-form.render.ts b/ui/src/ui/views/config-form.render.ts index 60f2feb75..149b40801 100644 --- a/ui/src/ui/views/config-form.render.ts +++ b/ui/src/ui/views/config-form.render.ts @@ -54,7 +54,7 @@ const sectionIcons = { }; // Section metadata -const SECTION_META: Record = { +export const SECTION_META: Record = { env: { label: "Environment Variables", description: "Environment variables passed to the gateway process" }, update: { label: "Updates", description: "Auto-update settings and release channel" }, agents: { label: "Agents", description: "Agent configurations, models, and identities" }, diff --git a/ui/src/ui/views/config-form.ts b/ui/src/ui/views/config-form.ts index 6675bef26..0bcfe0a9c 100644 --- a/ui/src/ui/views/config-form.ts +++ b/ui/src/ui/views/config-form.ts @@ -1,4 +1,4 @@ -export { renderConfigForm, type ConfigFormProps } from "./config-form.render"; +export { renderConfigForm, type ConfigFormProps, SECTION_META } from "./config-form.render"; export { analyzeConfigSchema, type ConfigSchemaAnalysis, diff --git a/ui/src/ui/views/config.ts b/ui/src/ui/views/config.ts index 9af992024..53b550efe 100644 --- a/ui/src/ui/views/config.ts +++ b/ui/src/ui/views/config.ts @@ -1,6 +1,6 @@ import { html, nothing } from "lit"; import type { ConfigUiHints } from "../types"; -import { analyzeConfigSchema, renderConfigForm } from "./config-form"; +import { analyzeConfigSchema, renderConfigForm, SECTION_META } from "./config-form"; import { hintForPath, humanize,