diff --git a/frontend/src/app.css b/frontend/src/app.css index 209efdeb7d..26507e3933 100644 --- a/frontend/src/app.css +++ b/frontend/src/app.css @@ -77,6 +77,11 @@ html { @apply rounded-sm; } + .blue-button { + @apply bg-blue-500 !important; + @apply hover:bg-blue-700 !important; + } + .default-button { /*this styling does not impact the Dropdown component */ @apply bg-blue-500; diff --git a/frontend/src/lib/components/CenteredPage.svelte b/frontend/src/lib/components/CenteredPage.svelte index c1b34503be..fad015cc7b 100644 --- a/frontend/src/lib/components/CenteredPage.svelte +++ b/frontend/src/lib/components/CenteredPage.svelte @@ -1,5 +1,5 @@
-
+
diff --git a/frontend/src/lib/components/FlowBuilder.svelte b/frontend/src/lib/components/FlowBuilder.svelte index 19e981a66b..8b549c5dff 100644 --- a/frontend/src/lib/components/FlowBuilder.svelte +++ b/frontend/src/lib/components/FlowBuilder.svelte @@ -10,10 +10,13 @@ sendUserToast, setQueryWithoutLoad } from '$lib/utils' - import { Breadcrumb, BreadcrumbItem } from 'flowbite-svelte' + import { faPlay } from '@fortawesome/free-solid-svg-icons' + import { Breadcrumb, BreadcrumbItem, Button } from 'flowbite-svelte' import { onMount } from 'svelte' + import Icon from 'svelte-awesome' import { OFFSET } from './CronInput.svelte' import FlowEditor from './FlowEditor.svelte' + import FlowPreviewContent from './FlowPreviewContent.svelte' import { flowStore, mode } from './flows/flowStore' import { flowToMode } from './flows/utils' @@ -26,6 +29,8 @@ let scheduleEnabled let scheduleCron: string + let previewOpen = false + $: step = Number($page.url.searchParams.get('step')) || 1 async function createSchedule(path: string) { @@ -127,69 +132,95 @@ }) -
- -
- - - - - - - - -
- {#if step == 1} - - +
+
+
+ +
+ + + + + + + + +
+ {#if step == 1} + + + {:else} + + {/if} +
+
+
+ + {#if initialPath && initialPath != $flowStore?.path} {initialPath} → {/if} + {$flowStore?.path} + +
+ + + + {#if $flowStore} + {#if step === 1} + + {:else if step === 2} + + {/if} {:else} - +

Loading

{/if}
-
- - {#if initialPath && initialPath != $flowStore?.path} {initialPath} → {/if} - {$flowStore?.path} - + + + +
+
+
+ (previewOpen = !previewOpen)} + /> +
+
- - - - {#if $flowStore} - {#if step === 1} - - {:else if step === 2} - - {/if} - {:else} -

Loading

- {/if}
diff --git a/frontend/src/lib/components/FlowEditor.svelte b/frontend/src/lib/components/FlowEditor.svelte index 6c45196677..5f446bdebf 100644 --- a/frontend/src/lib/components/FlowEditor.svelte +++ b/frontend/src/lib/components/FlowEditor.svelte @@ -69,7 +69,7 @@ {/each} +
+ + +
+
+ {#if job} +
+ +
+ {#if `result` in job} + + {/if} + {/if} +
+
diff --git a/frontend/src/lib/components/FlowStatusViewer.svelte b/frontend/src/lib/components/FlowStatusViewer.svelte index eabd733a88..19ae3b0e4b 100644 --- a/frontend/src/lib/components/FlowStatusViewer.svelte +++ b/frontend/src/lib/components/FlowStatusViewer.svelte @@ -1,14 +1,14 @@ -
-
+
+ +

Step - {Math.min((job?.flow_status?.step ?? 0) + 1, job?.raw_flow?.modules.length ?? 0)} + + {Math.min((job?.flow_status?.step ?? 0) + 1, job?.raw_flow?.modules.length ?? 0)} + out of {job?.raw_flow?.modules.length}

-
diff --git a/frontend/src/lib/components/InputTransformForm.svelte b/frontend/src/lib/components/InputTransformForm.svelte index 4ca79a68d1..b451824f87 100644 --- a/frontend/src/lib/components/InputTransformForm.svelte +++ b/frontend/src/lib/components/InputTransformForm.svelte @@ -182,7 +182,7 @@
overlays[argName]?.focus('connect')}> - diff --git a/frontend/src/lib/components/JobStatus.svelte b/frontend/src/lib/components/JobStatus.svelte index bf34286601..bd16a12a9f 100644 --- a/frontend/src/lib/components/JobStatus.svelte +++ b/frontend/src/lib/components/JobStatus.svelte @@ -1,17 +1,18 @@ {#if job && 'success' in job && job.success} - - Succeeded {job.is_skipped ? '(Skipped)' : ''} -
- Job ran in {msToSec(job.duration_ms)} - s -
+ + + Succeeded {job.is_skipped ? '(Skipped)' : ''} + + + + + Job ran in {msToSec(job.duration_ms)} s + {:else if job && 'success' in job} - - Failed -
- Job ran in {msToSec(job.duration_ms)} - s -
+ + + Failed + + + + Job ran in {msToSec(job.duration_ms)}s + {:else if job && 'running' in job && job.running} - - Running + + + Running + {:else if job && 'running' in job && 'scheduled_for' in job && job.scheduled_for && forLater(job.scheduled_for)} - - Scheduled for {displayDate(job.scheduled_for)} + + + Scheduled for {displayDate(job.scheduled_for)} + {:else if job && 'running' in job} - - Queued + + + Queued + {:else} {/if} diff --git a/frontend/src/lib/components/ObjectResourceInput.svelte b/frontend/src/lib/components/ObjectResourceInput.svelte index 1c97b4ac41..dfaab5b1d7 100644 --- a/frontend/src/lib/components/ObjectResourceInput.svelte +++ b/frontend/src/lib/components/ObjectResourceInput.svelte @@ -1,10 +1,10 @@