diff --git a/frontend/src/lib/components/FlowPreviewContent.svelte b/frontend/src/lib/components/FlowPreviewContent.svelte index 7e21495f05..5cabf85a4a 100644 --- a/frontend/src/lib/components/FlowPreviewContent.svelte +++ b/frontend/src/lib/components/FlowPreviewContent.svelte @@ -163,7 +163,7 @@ -
+
{#if jobId} x.job != jobId) ?? [] + $: innerModules = + job?.flow_status?.modules + .filter((x) => x.job != jobId) + .concat(job?.flow_status.failure_module ? job?.flow_status.failure_module : []) ?? [] async function loadJobInProgress() { job = await JobService.getJob({ @@ -55,13 +58,15 @@ {#if job} -
+
{#if innerModules.length > 0}

Flow result

{/if} {#if `result` in job} - +
+ +
{:else if job.logs}
{job.logs}
@@ -121,7 +126,8 @@ {#each innerModules as mod, i} -

+

+

{#if job?.raw_flow?.modules && i < job?.raw_flow?.modules.length} Step @@ -135,11 +141,11 @@ {/if} {:else} - Failure module +

Failure module

{/if} -

- -
  • + +
    +
  • {#if [FlowStatusModule.type.IN_PROGRESS, FlowStatusModule.type.SUCCESS, FlowStatusModule.type.FAILURE].includes(mod.type)} {:else} - {mod.type} + + + + {#if mod.type == FlowStatusModule.type.WAITING_FOR_EVENT} + Waiting to be resumed by receivent events such as approvals + {:else if mod.type == FlowStatusModule.type.WAITING_FOR_PRIOR_STEPS} + Waiting for prior steps to complete + {:else if mod.type == FlowStatusModule.type.WAITING_FOR_EXECUTOR} + Job is ready to be executed and will be picked up by the next available worker + {/if} + {/if}
  • {/each} @@ -170,3 +186,10 @@ {:else} Job loading... {/if} + + diff --git a/frontend/src/lib/components/progressBar/ProgressBar.svelte b/frontend/src/lib/components/progressBar/ProgressBar.svelte index ceaa7f1aee..6b0e4b76eb 100644 --- a/frontend/src/lib/components/progressBar/ProgressBar.svelte +++ b/frontend/src/lib/components/progressBar/ProgressBar.svelte @@ -41,7 +41,7 @@ } else { return { type: step.type, - isDone: error ? false : step.isDone, + isDone: step.isDone, isDoneChanged: !state[i]?.isDone && step.isDone } } @@ -57,13 +57,11 @@ } $: subStepIndex = lastStep ? lastStep['index'] : undefined $: length = 100 / (state.length || 1) - $: if (!error) { - if (finished) { - percent.set(100) - } else { - const product = length * stepIndex - percent.set(product < 0 ? 0 : product) - } + $: if (finished) { + percent.set(100) + } else { + const product = length * stepIndex + percent.set(product < 0 ? 0 : product) } diff --git a/frontend/src/lib/components/progressBar/ProgressBarGeneralPart.svelte b/frontend/src/lib/components/progressBar/ProgressBarGeneralPart.svelte index 2be212a59e..ba35677ecf 100644 --- a/frontend/src/lib/components/progressBar/ProgressBarGeneralPart.svelte +++ b/frontend/src/lib/components/progressBar/ProgressBarGeneralPart.svelte @@ -11,7 +11,7 @@ $: finishedAndNotLast = $state.finished && $state.length - 1 !== index $: if (finishedAndNotLast || $state.index > index) progress = getTween(100, duration) - $: if (!$state.error && ($state.finished || step.isDone)) { + $: if ($state.finished || step.isDone) { if (index > $state.index) { state.update((prev) => ({ ...prev, index })) }