From 0ab8ffe305207833b32489d2707dfbfa60b3fc93 Mon Sep 17 00:00:00 2001 From: Guilhem-lm <64467926+Guilhem-lm@users.noreply.github.com> Date: Tue, 2 Jul 2024 09:44:55 +0200 Subject: [PATCH] Improve flow UI (#3983) * feat(frontend) : change for loop iterator expression tooltip * feat(frontend) for turn alert into tooltip * feat(frontend) gather for loop settings * feat(frontend) move test step button * feat(frontend): Fix build) * revert feat(frontend) gather loop settings --------- Co-authored-by: LE-MOUEL Guilhem Co-authored-by: Faton Ramadani --- .../components/flows/content/FlowLoop.svelte | 49 +++++++++---------- 1 file changed, 23 insertions(+), 26 deletions(-) diff --git a/frontend/src/lib/components/flows/content/FlowLoop.svelte b/frontend/src/lib/components/flows/content/FlowLoop.svelte index 260160d993..cca4b6d411 100644 --- a/frontend/src/lib/components/flows/content/FlowLoop.svelte +++ b/frontend/src/lib/components/flows/content/FlowLoop.svelte @@ -9,7 +9,7 @@ import FlowModuleEarlyStop from './FlowModuleEarlyStop.svelte' import FlowModuleSuspend from './FlowModuleSuspend.svelte' // import FlowRetries from './FlowRetries.svelte' - import { Button, Drawer, Tab, TabContent, Tabs, Alert } from '$lib/components/common' + import { Button, Drawer, Tab, TabContent, Tabs } from '$lib/components/common' import { Pane, Splitpanes } from 'svelte-splitpanes' import { getStepPropPicker } from '../previousResults' import { enterpriseLicense } from '$lib/stores' @@ -70,24 +70,29 @@
- -
- - - - {#if !noEditor} - +
+
+ Add steps inside the loop and specify an iterator expression that defines the sequence over which your subsequent steps will iterate. - - {/if} + +
+
+ +
+
+ +
+
+
+ + {#if mod.value.type === 'forloopflow'}
@@ -128,12 +133,12 @@ />
-
Iterator expression - List to iterate over. + The JavaScript expression that will be evaluated to get the list of items to iterate + over. Example : ["banana", "apple", flow_input.my_fruit].
{#if enableAi} @@ -157,14 +162,6 @@ pickableProperties={stepPropPicker.pickableProperties} /> {/if} -
- -
{#if mod.value.iterator.type == 'javascript'}