diff --git a/ui/src/ui/app-render.ts b/ui/src/ui/app-render.ts index 3feeccda96a..12421704e74 100644 --- a/ui/src/ui/app-render.ts +++ b/ui/src/ui/app-render.ts @@ -1802,133 +1802,6 @@ export function renderApp(state: AppViewState) { : nothing } - ${ - state.tab === "automation" - ? renderConfig({ - raw: state.configRaw, - originalRaw: state.configRawOriginal, - valid: state.configValid, - issues: state.configIssues, - loading: state.configLoading, - saving: state.configSaving, - applying: state.configApplying, - updating: state.updateRunning, - connected: state.connected, - schema: state.configSchema, - schemaLoading: state.configSchemaLoading, - uiHints: state.configUiHints, - formMode: state.automationFormMode, - formValue: state.configForm, - originalValue: state.configFormOriginal, - searchQuery: state.automationSearchQuery, - activeSection: - state.automationActiveSection && - !AUTOMATION_SECTION_KEYS.includes( - state.automationActiveSection as AutomationSectionKey, - ) - ? null - : state.automationActiveSection, - activeSubsection: - state.automationActiveSection && - !AUTOMATION_SECTION_KEYS.includes( - state.automationActiveSection as AutomationSectionKey, - ) - ? null - : state.automationActiveSubsection, - onRawChange: (next) => { - state.configRaw = next; - }, - onFormModeChange: (mode) => (state.automationFormMode = mode), - onFormPatch: (path, value) => updateConfigFormValue(state, path, value), - onSearchChange: (query) => (state.automationSearchQuery = query), - onSectionChange: (section) => { - state.automationActiveSection = section; - state.automationActiveSubsection = null; - }, - onSubsectionChange: (section) => (state.automationActiveSubsection = section), - onReload: () => loadConfig(state), - onSave: () => saveConfig(state), - onApply: () => applyConfig(state), - onUpdate: () => runUpdate(state), - onOpenFile: () => openConfigFile(state), - version: state.hello?.server?.version ?? "", - theme: state.theme, - themeMode: state.themeMode, - setTheme: (t, ctx) => state.setTheme(t, ctx), - setThemeMode: (m, ctx) => state.setThemeMode(m, ctx), - gatewayUrl: state.settings.gatewayUrl, - assistantName: state.assistantName, - configPath: state.configSnapshot?.path ?? null, - navRootLabel: "Automation", - includeSections: [...AUTOMATION_SECTION_KEYS], - includeVirtualSections: false, - }) - : nothing - } - - ${ - state.tab === "infrastructure" - ? renderConfig({ - raw: state.configRaw, - originalRaw: state.configRawOriginal, - valid: state.configValid, - issues: state.configIssues, - loading: state.configLoading, - saving: state.configSaving, - applying: state.configApplying, - updating: state.updateRunning, - connected: state.connected, - schema: state.configSchema, - schemaLoading: state.configSchemaLoading, - uiHints: state.configUiHints, - formMode: state.infrastructureFormMode, - formValue: state.configForm, - originalValue: state.configFormOriginal, - searchQuery: state.infrastructureSearchQuery, - activeSection: - state.infrastructureActiveSection && - !INFRASTRUCTURE_SECTION_KEYS.includes( - state.infrastructureActiveSection as InfrastructureSectionKey, - ) - ? null - : state.infrastructureActiveSection, - activeSubsection: - state.infrastructureActiveSection && - !INFRASTRUCTURE_SECTION_KEYS.includes( - state.infrastructureActiveSection as InfrastructureSectionKey, - ) - ? null - : state.infrastructureActiveSubsection, - onRawChange: (next) => { - state.configRaw = next; - }, - onFormModeChange: (mode) => (state.infrastructureFormMode = mode), - onFormPatch: (path, value) => updateConfigFormValue(state, path, value), - onSearchChange: (query) => (state.infrastructureSearchQuery = query), - onSectionChange: (section) => { - state.infrastructureActiveSection = section; - state.infrastructureActiveSubsection = null; - }, - onSubsectionChange: (section) => (state.infrastructureActiveSubsection = section), - onReload: () => loadConfig(state), - onSave: () => saveConfig(state), - onApply: () => applyConfig(state), - onUpdate: () => runUpdate(state), - onOpenFile: () => openConfigFile(state), - version: state.hello?.server?.version ?? "", - theme: state.theme, - themeMode: state.themeMode, - setTheme: (t, ctx) => state.setTheme(t, ctx), - setThemeMode: (m, ctx) => state.setThemeMode(m, ctx), - gatewayUrl: state.settings.gatewayUrl, - assistantName: state.assistantName, - configPath: state.configSnapshot?.path ?? null, - navRootLabel: "Infrastructure", - includeSections: [...INFRASTRUCTURE_SECTION_KEYS], - includeVirtualSections: false, - }) - : nothing - } ${ state.tab === "aiAgents"