From 8a10e9fc932e069620aab675e39fae2b137d9473 Mon Sep 17 00:00:00 2001 From: Vikhyath Mondreti Date: Fri, 6 Feb 2026 10:14:41 -0800 Subject: [PATCH] improvement(preview): nested workflow snapshots/preview when not executed --- .../[workspaceId]/w/components/preview/preview.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/sim/app/workspace/[workspaceId]/w/components/preview/preview.tsx b/apps/sim/app/workspace/[workspaceId]/w/components/preview/preview.tsx index 816e31526..49293b47d 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/components/preview/preview.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/components/preview/preview.tsx @@ -31,6 +31,7 @@ interface BlockExecutionData { /** Child trace spans for nested workflow blocks */ children?: TraceSpan[] childWorkflowSnapshotId?: string + childWorkflowName?: string } /** Represents a level in the workflow navigation stack */ @@ -87,6 +88,7 @@ export function buildBlockExecutions(spans: TraceSpan[]): Record | undefined blockExecutionMap[span.blockId] = { input: redactApiKeys(span.input || {}), output: redactApiKeys(span.output || {}), @@ -94,6 +96,8 @@ export function buildBlockExecutions(spans: TraceSpan[]): Record [ ...prev,