From 8a9c64c4027344bfb2e1e2f8d776be5b567c7c81 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Mon, 5 Dec 2022 13:21:42 +0100 Subject: [PATCH] improve flow viewer --- .../lib/components/FlowStatusViewer.svelte | 21 ++++++------ .../src/lib/components/ModuleStatus.svelte | 33 +++++++++++++++++++ 2 files changed, 43 insertions(+), 11 deletions(-) create mode 100644 frontend/src/lib/components/ModuleStatus.svelte diff --git a/frontend/src/lib/components/FlowStatusViewer.svelte b/frontend/src/lib/components/FlowStatusViewer.svelte index 9e6a3da4ee..a5817be3b0 100644 --- a/frontend/src/lib/components/FlowStatusViewer.svelte +++ b/frontend/src/lib/components/FlowStatusViewer.svelte @@ -12,6 +12,7 @@ import DisplayResult from './DisplayResult.svelte' import Tabs from './common/tabs/Tabs.svelte' import { FlowGraph } from './graph' + import ModuleStatus from './ModuleStatus.svelte' const dispatch = createEventDispatcher() @@ -287,16 +288,7 @@ }} /> {:else} - - - {#if mod.type == FlowStatusModule.type.WAITING_FOR_EVENTS} - 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} @@ -323,13 +315,20 @@
{#if selectedNode} {#if localFlowModuleStates[selectedNode]} - {localFlowModuleStates[selectedNode].type} +
+ +
+ {:else} +

The execution of this node has no information attached to it. The job likely did + not run yet

{/if} {:else}

Select a node to see its details here

{/if}
diff --git a/frontend/src/lib/components/ModuleStatus.svelte b/frontend/src/lib/components/ModuleStatus.svelte new file mode 100644 index 0000000000..958592ad58 --- /dev/null +++ b/frontend/src/lib/components/ModuleStatus.svelte @@ -0,0 +1,33 @@ + + +{#if type == FlowStatusModule.type.WAITING_FOR_EVENTS} + + + Waiting to be resumed by resume events such as approvals + +{:else if type == FlowStatusModule.type.WAITING_FOR_PRIOR_STEPS} + + + Waiting for prior steps to complete + +{:else if type == FlowStatusModule.type.WAITING_FOR_EXECUTOR} + + + Job is ready to be executed and will be picked up by the next available worker + +{:else if type == FlowStatusModule.type.SUCCESS} + Success +{/if} + +