From 1b9c817dba422e1398ecbd2ac742376884e97191 Mon Sep 17 00:00:00 2001 From: Joel Date: Mon, 25 Aug 2025 11:26:57 +0800 Subject: [PATCH] feat: add process data truncate --- web/app/components/workflow/panel/workflow-preview.tsx | 2 ++ web/app/components/workflow/run/result-panel.tsx | 3 +++ web/app/components/workflow/types.ts | 1 + web/types/workflow.ts | 1 + 4 files changed, 7 insertions(+) diff --git a/web/app/components/workflow/panel/workflow-preview.tsx b/web/app/components/workflow/panel/workflow-preview.tsx index 3ca221243c..5c1152cfbd 100644 --- a/web/app/components/workflow/panel/workflow-preview.tsx +++ b/web/app/components/workflow/panel/workflow-preview.tsx @@ -185,6 +185,8 @@ const WorkflowPreview = () => { outputs_truncated?: boolean outputs_full_content?: { @@ -50,6 +51,7 @@ const ResultPanel: FC = ({ inputs, inputs_truncated, process_data, + process_data_truncated, outputs, outputs_truncated, outputs_full_content, @@ -136,6 +138,7 @@ const ResultPanel: FC = ({ language={CodeLanguage.json} value={process_data} isJSONStringifyBeauty + footer={process_data_truncated && } /> )} {(outputs || status === 'running') && ( diff --git a/web/app/components/workflow/types.ts b/web/app/components/workflow/types.ts index 7d27f59665..04ef03e652 100644 --- a/web/app/components/workflow/types.ts +++ b/web/app/components/workflow/types.ts @@ -377,6 +377,7 @@ export type WorkflowRunningData = { inputs?: string inputs_truncated: boolean process_data?: string + process_data_truncated: boolean outputs?: string outputs_truncated: boolean outputs_full_content?: { diff --git a/web/types/workflow.ts b/web/types/workflow.ts index 795c8af7bf..8e9849f79c 100644 --- a/web/types/workflow.ts +++ b/web/types/workflow.ts @@ -39,6 +39,7 @@ export type NodeTracing = { inputs: any inputs_truncated: boolean process_data: any + process_data_truncated: boolean outputs?: Record outputs_truncated: boolean outputs_full_content?: {