From c5df68973e4511de1574254538d15809c4dc1d86 Mon Sep 17 00:00:00 2001 From: Peter Clement Date: Wed, 28 Jun 2023 15:05:46 +0100 Subject: [PATCH 1/4] update Trigger Automation button action to be more intuitive --- .../actions/TriggerAutomation.svelte | 154 +++++------------- 1 file changed, 44 insertions(+), 110 deletions(-) diff --git a/packages/builder/src/components/design/settings/controls/ButtonActionEditor/actions/TriggerAutomation.svelte b/packages/builder/src/components/design/settings/controls/ButtonActionEditor/actions/TriggerAutomation.svelte index 4c54761650..2786d9ff50 100644 --- a/packages/builder/src/components/design/settings/controls/ButtonActionEditor/actions/TriggerAutomation.svelte +++ b/packages/builder/src/components/design/settings/controls/ButtonActionEditor/actions/TriggerAutomation.svelte @@ -1,7 +1,7 @@
-
-
- - -
-
- - -
-
-
- - {#if automationStatus === AUTOMATION_STATUS.EXISTING} +
- {/if} - - {#if parameters.synchronous} -
+
+
+ + {#if parameters.synchronous} +
- +
{/if} +
+
+ {#if selectedSchema && selectedSchema.length} + {#each selectedSchema as field, idx} + {#if idx === 0} + + {:else} +
+ +
- -
- {#key parameters.automationId} - - {/key} -
From 847684daf1692786ff6cd8c1e3c98a62850ba4da Mon Sep 17 00:00:00 2001 From: Peter Clement Date: Wed, 28 Jun 2023 15:59:04 +0100 Subject: [PATCH 2/4] update sync automation css --- .../actions/TriggerAutomation.svelte | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/packages/builder/src/components/design/settings/controls/ButtonActionEditor/actions/TriggerAutomation.svelte b/packages/builder/src/components/design/settings/controls/ButtonActionEditor/actions/TriggerAutomation.svelte index 2786d9ff50..8b3578f983 100644 --- a/packages/builder/src/components/design/settings/controls/ButtonActionEditor/actions/TriggerAutomation.svelte +++ b/packages/builder/src/components/design/settings/controls/ButtonActionEditor/actions/TriggerAutomation.svelte @@ -1,5 +1,5 @@
-
- +
+
+ +
- {/if} -
+
+ {/if}
{#if selectedSchema && selectedSchema.length} {#each selectedSchema as field, idx} @@ -144,18 +142,20 @@ margin-top: var(--spacing-l); } + .title-padding { + padding-bottom: 20px; + } + .params { display: flex; flex-wrap: nowrap; - align-items: center; gap: 25px; } .synchronous-info { display: flex; gap: var(--spacing-s); - - margin-top: calc(var(--spacing-m) * -1); + margin-top: var(--spacing-s); } .fields { @@ -163,7 +163,7 @@ display: grid; column-gap: var(--spacing-l); row-gap: var(--spacing-s); - grid-template-columns: 0.1fr 0.5fr 0.5fr; + grid-template-columns: 15% auto auto; align-items: center; } From 61853e447faa3aca8d5da326c5a23fdbdbfe914a Mon Sep 17 00:00:00 2001 From: Peter Clement Date: Wed, 28 Jun 2023 16:37:17 +0100 Subject: [PATCH 4/4] remove log --- .../controls/ButtonActionEditor/actions/TriggerAutomation.svelte | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/builder/src/components/design/settings/controls/ButtonActionEditor/actions/TriggerAutomation.svelte b/packages/builder/src/components/design/settings/controls/ButtonActionEditor/actions/TriggerAutomation.svelte index cb2fe717a0..72d38cded0 100644 --- a/packages/builder/src/components/design/settings/controls/ButtonActionEditor/actions/TriggerAutomation.svelte +++ b/packages/builder/src/components/design/settings/controls/ButtonActionEditor/actions/TriggerAutomation.svelte @@ -11,7 +11,6 @@ NEW: "new", EXISTING: "existing", } - $: console.log(parameters.fields) let automationStatus = parameters.automationId ? AUTOMATION_STATUS.EXISTING : AUTOMATION_STATUS.NEW