From 74115a37a04cd4ac9a71081ae44bc79b1790be92 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Tue, 3 Feb 2026 10:04:55 -0600 Subject: [PATCH] don't show description for new key/val fields --- .../theme/templates/FieldTemplate.tsx | 65 +++++++++++-------- 1 file changed, 38 insertions(+), 27 deletions(-) diff --git a/web/src/components/config-form/theme/templates/FieldTemplate.tsx b/web/src/components/config-form/theme/templates/FieldTemplate.tsx index 5b7f3cb27..fc77b4d97 100644 --- a/web/src/components/config-form/theme/templates/FieldTemplate.tsx +++ b/web/src/components/config-form/theme/templates/FieldTemplate.tsx @@ -400,12 +400,48 @@ export function FieldTemplate(props: FieldTemplateProps) { )} )} - {finalDescription && !isMultiSchemaWrapper && ( + {finalDescription && + !isMultiSchemaWrapper && + !isAdditionalProperty && ( +

+ {finalDescription} +

+ )} + {fieldDocsUrl && + !isMultiSchemaWrapper && + !isObjectField && + !isAdditionalProperty && ( +
+ + {t("readTheDocumentation", { ns: "common" })} + + +
+ )} + +
{children}
+ + ) : ( + <> + {children} + + {finalDescription && + !isMultiSchemaWrapper && + !isObjectField && + !isAdditionalProperty && (

{finalDescription}

)} - {fieldDocsUrl && !isMultiSchemaWrapper && !isObjectField && ( + {fieldDocsUrl && + !isMultiSchemaWrapper && + !isObjectField && + !isAdditionalProperty && (
)} - -
{children}
- - ) : ( - <> - {children} - - {finalDescription && !isMultiSchemaWrapper && !isObjectField && ( -

- {finalDescription} -

- )} - {fieldDocsUrl && !isMultiSchemaWrapper && !isObjectField && ( -
- - {t("readTheDocumentation", { ns: "common" })} - - -
- )} )}