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.
This commit is contained in:
@@ -54,7 +54,7 @@ const sectionIcons = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Section metadata
|
// Section metadata
|
||||||
const SECTION_META: Record<string, { label: string; description: string }> = {
|
export const SECTION_META: Record<string, { label: string; description: string }> = {
|
||||||
env: { label: "Environment Variables", description: "Environment variables passed to the gateway process" },
|
env: { label: "Environment Variables", description: "Environment variables passed to the gateway process" },
|
||||||
update: { label: "Updates", description: "Auto-update settings and release channel" },
|
update: { label: "Updates", description: "Auto-update settings and release channel" },
|
||||||
agents: { label: "Agents", description: "Agent configurations, models, and identities" },
|
agents: { label: "Agents", description: "Agent configurations, models, and identities" },
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
export { renderConfigForm, type ConfigFormProps } from "./config-form.render";
|
export { renderConfigForm, type ConfigFormProps, SECTION_META } from "./config-form.render";
|
||||||
export {
|
export {
|
||||||
analyzeConfigSchema,
|
analyzeConfigSchema,
|
||||||
type ConfigSchemaAnalysis,
|
type ConfigSchemaAnalysis,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { html, nothing } from "lit";
|
import { html, nothing } from "lit";
|
||||||
import type { ConfigUiHints } from "../types";
|
import type { ConfigUiHints } from "../types";
|
||||||
import { analyzeConfigSchema, renderConfigForm } from "./config-form";
|
import { analyzeConfigSchema, renderConfigForm, SECTION_META } from "./config-form";
|
||||||
import {
|
import {
|
||||||
hintForPath,
|
hintForPath,
|
||||||
humanize,
|
humanize,
|
||||||
|
|||||||
Reference in New Issue
Block a user