show webhook failure front (#3044)

This commit is contained in:
LawyZheng
2025-08-01 15:37:44 +08:00
committed by GitHub
parent 88018418af
commit b93f0e0f79
4 changed files with 45 additions and 1 deletions

View File

@@ -52,9 +52,22 @@ function WorkflowRunOutput() {
const outputs = workflowRun?.outputs;
const fileUrls = workflowRun?.downloaded_file_urls ?? [];
const observerOutput = workflowRun?.task_v2?.output;
const webhookFailureReasonData =
workflowRun?.task_v2?.webhook_failure_reason ??
workflowRun?.webhook_failure_reason;
return (
<div className="space-y-5">
{webhookFailureReasonData ? (
<div className="rounded bg-slate-elevation2 p-6">
<div className="space-y-4">
<h1 className="text-lg font-bold">Webhook Failure Reason</h1>
<div className="space-y-2 text-yellow-600">
{webhookFailureReasonData}
</div>
</div>
</div>
) : null}
{activeBlock ? (
<div className="rounded bg-slate-elevation2 p-6">
<div className="space-y-4">