From 50d814c3dc55841b16cd1df8ae86d021de4e880c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81d=C3=A1m=20Kov=C3=A1cs?= <43071496+adam-kov@users.noreply.github.com> Date: Tue, 25 Apr 2023 21:20:44 +0200 Subject: [PATCH] fix(frontend): Flow editor design updates (#1477) * fix(frontend): Add seconds input to flow retries * fix(frontend): Update flow branch editor styling --- .../content/FlowBranchesAllWrapper.svelte | 138 +++++++++--------- .../content/FlowBranchesOneWrapper.svelte | 131 ++++++++--------- .../flows/content/FlowRetries.svelte | 23 ++- .../flows/propPicker/PropPickerWrapper.svelte | 2 +- 4 files changed, 146 insertions(+), 148 deletions(-) diff --git a/frontend/src/lib/components/flows/content/FlowBranchesAllWrapper.svelte b/frontend/src/lib/components/flows/content/FlowBranchesAllWrapper.svelte index 94e00d0946..84fc3e3353 100644 --- a/frontend/src/lib/components/flows/content/FlowBranchesAllWrapper.svelte +++ b/frontend/src/lib/components/flows/content/FlowBranchesAllWrapper.svelte @@ -1,15 +1,16 @@ -
+

Retries @@ -40,8 +41,8 @@

-
-
+
+
Attempts
-
Delay (in seconds)
- +
Delay
+ {:else}
Attempts
-
Delay (in seconds)
- +
Delay
+ {/if}
{/if}
-
+
{#if true} {@const { attempts: cAttempts, seconds: cSeconds } = flowModule.retry?.constant || {}} {@const { @@ -115,14 +116,12 @@ (_, i) => (multiplier || 0) * (eSeconds || 0) ** (i + cArray.length + 1) )} {@const array = [...cArray, ...eArray]} -
+
Retry attempts
{#if array.length > 0} - + {#each array.slice(1) as delay, i} diff --git a/frontend/src/lib/components/flows/propPicker/PropPickerWrapper.svelte b/frontend/src/lib/components/flows/propPicker/PropPickerWrapper.svelte index 529f63e545..ff95027dd6 100644 --- a/frontend/src/lib/components/flows/propPicker/PropPickerWrapper.svelte +++ b/frontend/src/lib/components/flows/propPicker/PropPickerWrapper.svelte @@ -55,7 +55,7 @@ on:click_outside={() => propPickerConfig.set(undefined)} > - +
1:1: After {array[0]} second{array[0] === 1 ? '' : 's'}