feat(workflow): add webhook debug URL display in variable inspection
Some checks are pending
Build and Push API & Web / build (api, DIFY_API_IMAGE_NAME, linux/amd64, build-api-amd64) (push) Waiting to run
Build and Push API & Web / build (api, DIFY_API_IMAGE_NAME, linux/arm64, build-api-arm64) (push) Waiting to run
Build and Push API & Web / build (web, DIFY_WEB_IMAGE_NAME, linux/amd64, build-web-amd64) (push) Waiting to run
Build and Push API & Web / build (web, DIFY_WEB_IMAGE_NAME, linux/arm64, build-web-arm64) (push) Waiting to run
Build and Push API & Web / create-manifest (api, DIFY_API_IMAGE_NAME, merge-api-images) (push) Blocked by required conditions
Build and Push API & Web / create-manifest (web, DIFY_WEB_IMAGE_NAME, merge-web-images) (push) Blocked by required conditions

This commit is contained in:
zhsama 2025-10-29 04:38:27 +08:00
parent 8bcecce627
commit dc24450e29

View File

@ -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<ListeningProps> = ({
: 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<ListeningProps> = ({
<div className='system-sm-semibold text-text-secondary'>{t('workflow.debug.variableInspect.listening.title')}</div>
<div className='system-xs-regular whitespace-pre-line text-text-tertiary'>{description}</div>
</div>
{webhookDebugUrl && (
<div className='flex items-center gap-1 rounded-lg transition-colors'>
<div className='system-xs-regular whitespace-pre-line text-text-tertiary'>
{t('workflow.nodes.triggerWebhook.debugUrlTitle')}
</div>
<div className='truncate text-xs leading-4 text-text-primary'>
{webhookDebugUrl}
</div>
</div>
)}
<div>
<Button
size='medium'