From b1cd5432bfc3213769e8d0253ce88f975c8407f1 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sun, 25 Jan 2026 11:20:28 -0600 Subject: [PATCH] tweaks --- web/src/components/config-form/sections/ReviewSection.tsx | 2 ++ .../components/config-form/sections/SnapshotsSection.tsx | 8 ++++++++ .../config-form/theme/templates/FieldTemplate.tsx | 4 ++-- .../config-form/theme/widgets/SwitchesWidget.tsx | 2 +- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/web/src/components/config-form/sections/ReviewSection.tsx b/web/src/components/config-form/sections/ReviewSection.tsx index a8ef4734f..ae1000c50 100644 --- a/web/src/components/config-form/sections/ReviewSection.tsx +++ b/web/src/components/config-form/sections/ReviewSection.tsx @@ -12,8 +12,10 @@ export const ReviewSection = createConfigSection({ hiddenFields: [ "enabled_in_config", "alerts.labels", + "alerts.enabled_in_config", "alerts.required_zones", "detections.labels", + "detections.enabled_in_config", "detections.required_zones", ], advancedFields: [], diff --git a/web/src/components/config-form/sections/SnapshotsSection.tsx b/web/src/components/config-form/sections/SnapshotsSection.tsx index bab0ad511..bb5deb5b1 100644 --- a/web/src/components/config-form/sections/SnapshotsSection.tsx +++ b/web/src/components/config-form/sections/SnapshotsSection.tsx @@ -20,6 +20,14 @@ export const SnapshotsSection = createConfigSection({ }, hiddenFields: ["enabled_in_config"], advancedFields: ["quality", "retain"], + uiSchema: { + required_zones: { + "ui:widget": "zoneNames", + "ui:options": { + suppressMultiSchema: true, + }, + }, + }, }, }); diff --git a/web/src/components/config-form/theme/templates/FieldTemplate.tsx b/web/src/components/config-form/theme/templates/FieldTemplate.tsx index b55e7aa19..0239e5100 100644 --- a/web/src/components/config-form/theme/templates/FieldTemplate.tsx +++ b/web/src/components/config-form/theme/templates/FieldTemplate.tsx @@ -135,7 +135,7 @@ export function FieldTemplate(props: FieldTemplateProps) { )} {finalDescription && !isMultiSchemaWrapper && ( -
+
{finalDescription}
)} @@ -145,7 +145,7 @@ export function FieldTemplate(props: FieldTemplateProps) { ) : ( <> {finalDescription && !isMultiSchemaWrapper && ( -{finalDescription}
+{finalDescription}
)} {children} > diff --git a/web/src/components/config-form/theme/widgets/SwitchesWidget.tsx b/web/src/components/config-form/theme/widgets/SwitchesWidget.tsx index 26bc54fae..1b84d440e 100644 --- a/web/src/components/config-form/theme/widgets/SwitchesWidget.tsx +++ b/web/src/components/config-form/theme/widgets/SwitchesWidget.tsx @@ -143,7 +143,7 @@ export function SwitchesWidget(props: WidgetProps) { -