From 871cfbd40c75c7bc79d99b71fb8c060965b78c7b Mon Sep 17 00:00:00 2001 From: hjlarry Date: Wed, 22 Oct 2025 09:23:59 +0800 Subject: [PATCH] fix: CredentialsSchema missing help field display --- .../subscription-list/create/common-modal.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/web/app/components/plugins/plugin-detail-panel/subscription-list/create/common-modal.tsx b/web/app/components/plugins/plugin-detail-panel/subscription-list/create/common-modal.tsx index bc6572ba1f..1b51dfef9d 100644 --- a/web/app/components/plugins/plugin-detail-panel/subscription-list/create/common-modal.tsx +++ b/web/app/components/plugins/plugin-detail-panel/subscription-list/create/common-modal.tsx @@ -146,7 +146,13 @@ export const CommonCreateModal = ({ onClose, createType, builder }: Props) => { const autoCommonParametersSchema = detail?.declaration.trigger?.subscription_constructor?.parameters || [] // apikey and oauth const autoCommonParametersFormRef = React.useRef(null) - const apiKeyCredentialsSchema = detail?.declaration.trigger?.subscription_constructor?.credentials_schema || [] + const rawApiKeyCredentialsSchema = detail?.declaration.trigger?.subscription_constructor?.credentials_schema || [] + const apiKeyCredentialsSchema = useMemo(() => { + return rawApiKeyCredentialsSchema.map(schema => ({ + ...schema, + tooltip: schema.help, + })) + }, [rawApiKeyCredentialsSchema]) const apiKeyCredentialsFormRef = React.useRef(null) const { data: logData } = useTriggerSubscriptionBuilderLogs( @@ -373,7 +379,7 @@ export const CommonCreateModal = ({ onClose, createType, builder }: Props) => {