toggleExpanded(entry.id) : undefined}
>
{@render stepIcon(
entry.stepType,
status as FlowStatusModule['type'],
flowInfo.parentsWithErrors.has(entry.stepId)
)}
{entry.stepId}
{#if entry.stepType === 'forloopflow'}
For loop
{:else if entry.stepType === 'whileloopflow'}
While loop
{:else if entry.stepType === 'branchall'}
Branch to all
{:else if entry.stepType === 'branchone'}
Branch to one
{:else if entry.stepType === 'flow'}
Subflow
{:else}
Step
{/if}
{#if entry.summary}
: {entry.summary}
{/if}
{#if hasEmptySubflowValue}
{#if entry.stepType === 'forloopflow' || entry.stepType === 'whileloopflow'}
(empty loop)
{:else if entry.stepType === 'branchall' || entry.stepType === 'branchone'}
(no branch)
{/if}
{/if}
{#if !hasEmptySubflowValue && $localModuleStates[entry.stepId]?.flow_jobs && (entry.stepType === 'forloopflow' || entry.stepType === 'whileloopflow')}
e.stopPropagation()}>
{#if entry.stepType === 'forloopflow'}
{`/${$localModuleStates[entry.stepId]?.iteration_total ?? 0}`}
{/if}
{/if}
{#if isLeafStep}
{@const jobId = $localModuleStates[entry.stepId]?.job_id}
{truncateRev(jobId ?? '', 6)}
{/if}
{#if isCollapsible && isExpanded(entry.id, isRunning)}
{@const args = $localModuleStates[entry.stepId]?.args}
{@const logs = $localModuleStates[entry.stepId]?.logs}
{@const result = $localModuleStates[entry.stepId]?.result}
{@const jobId = $localModuleStates[entry.stepId]?.job_id}
{#if entry.subflows && entry.subflows.length > 0}
{#each entry.subflows as subflow, index}
{@const subflowLabel = entry.subflowsSummary?.[index]}
{@const subflowJob = {
id: jobId,
type:
$localModuleStates[entry.stepId]?.type === 'Failure' ||
$localModuleStates[entry.stepId]?.type === 'Success'
? 'CompletedJob'
: ('QueuedJob' as Job['type']),
logs,
result,
args,
success: $localModuleStates[entry.stepId]?.type === 'Success'
}}
{/each}
{:else}
{#if showResultsInputs && isLeafStep && args && Object.keys(args).length > 0}
toggleExpanded(`${entry.id}-input`)}
>
{#if isExpanded(`${entry.id}-input`)}
{:else}
{/if}
Input
{#if isExpanded(`${entry.id}-input`)}
{/if}
{/if}
{#if logs}
{:else if jobId && !entry.subflows?.[0]?.length}
{/if}
{#if showResultsInputs && isLeafStep && result !== undefined && (status === 'Success' || status === 'Failure')}
toggleExpanded(`${entry.id}-result`)}
>
{#if isExpanded(`${entry.id}-result`)}
{:else}
{/if}
Result
{#if isExpanded(`${entry.id}-result`)}
{/if}
{/if}
{/if}