From dc24450e29a92a0bf57a5c9084538b12dbe8cc65 Mon Sep 17 00:00:00 2001 From: zhsama Date: Wed, 29 Oct 2025 04:38:27 +0800 Subject: [PATCH] feat(workflow): add webhook debug URL display in variable inspection --- .../workflow/variable-inspect/listening.tsx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/web/app/components/workflow/variable-inspect/listening.tsx b/web/app/components/workflow/variable-inspect/listening.tsx index 2eb250ee4b..b94d9b4aa8 100644 --- a/web/app/components/workflow/variable-inspect/listening.tsx +++ b/web/app/components/workflow/variable-inspect/listening.tsx @@ -10,6 +10,7 @@ import { useGetToolIcon } from '@/app/components/workflow/hooks/use-tool-icon' import type { TFunction } from 'i18next' import { getNextExecutionTime } from '@/app/components/workflow/nodes/trigger-schedule/utils/execution-time-calculator' import type { ScheduleTriggerNodeType } from '@/app/components/workflow/nodes/trigger-schedule/types' +import type { WebhookTriggerNodeType } from '@/app/components/workflow/nodes/trigger-webhook/types' const resolveListeningDescription = ( message: string | undefined, @@ -92,6 +93,9 @@ const Listening: FC = ({ : undefined const inferredTriggerType = (triggerNode?.data as { type?: BlockEnum })?.type const triggerType = listeningTriggerType || inferredTriggerType || BlockEnum.TriggerWebhook + const webhookDebugUrl = triggerType === BlockEnum.TriggerWebhook + ? (triggerNode?.data as WebhookTriggerNodeType | undefined)?.webhook_debug_url + : undefined let displayNodes: Node[] = [] @@ -151,6 +155,16 @@ const Listening: FC = ({
{t('workflow.debug.variableInspect.listening.title')}
{description}
+ {webhookDebugUrl && ( +
+
+ {t('workflow.nodes.triggerWebhook.debugUrlTitle')} +
+
+ {webhookDebugUrl} +
+
+ )}