From 41eaaaa471641df9a10f570cbd384530f7b7da1c Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 22 Sep 2023 09:16:23 +0100 Subject: [PATCH 1/4] Remove tooltip from automation undo redo control --- packages/builder/src/components/common/UndoRedoControl.svelte | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/builder/src/components/common/UndoRedoControl.svelte b/packages/builder/src/components/common/UndoRedoControl.svelte index 84144b77ee..ebdad7d73c 100644 --- a/packages/builder/src/components/common/UndoRedoControl.svelte +++ b/packages/builder/src/components/common/UndoRedoControl.svelte @@ -38,14 +38,12 @@ hoverable on:click={store.undo} disabled={!$store.canUndo} - tooltip="Undo latest change" /> From f3309a742cd35cc71befa13c0ef2c622275999f0 Mon Sep 17 00:00:00 2001 From: melohagan <101575380+melohagan@users.noreply.github.com> Date: Mon, 25 Sep 2023 11:50:01 +0100 Subject: [PATCH 2/4] Add onChange to linked rows, longform text area, and multi select arrays in automations (#11874) * Add onChange to LinkedRowSelector * Add onChange to Multiselect array * Add onChange to TextArea * lint --- .../automation/SetupPanel/RowSelector.svelte | 5 ++--- .../automation/SetupPanel/RowSelectorTypes.svelte | 13 +++++++++++-- .../src/components/common/LinkedRowSelector.svelte | 9 ++++++++- 3 files changed, 21 insertions(+), 6 deletions(-) diff --git a/packages/builder/src/components/automation/SetupPanel/RowSelector.svelte b/packages/builder/src/components/automation/SetupPanel/RowSelector.svelte index 1080fc7305..5039c37ece 100644 --- a/packages/builder/src/components/automation/SetupPanel/RowSelector.svelte +++ b/packages/builder/src/components/automation/SetupPanel/RowSelector.svelte @@ -83,8 +83,7 @@ if (Array.isArray(value)) { return value } - - return [value] + return value.split(",").map(x => x.trim()) } if (type === "json") { @@ -146,7 +145,7 @@ placeholder={placeholders[schema.type]} panel={AutomationBindingPanel} value={Array.isArray(value[field]) - ? value[field].join(" ") + ? value[field].join(",") : value[field]} on:change={e => onChange(e, field, schema.type)} label={field} diff --git a/packages/builder/src/components/automation/SetupPanel/RowSelectorTypes.svelte b/packages/builder/src/components/automation/SetupPanel/RowSelectorTypes.svelte index 0e5e13ce1e..8ac9226fa0 100644 --- a/packages/builder/src/components/automation/SetupPanel/RowSelectorTypes.svelte +++ b/packages/builder/src/components/automation/SetupPanel/RowSelectorTypes.svelte @@ -55,9 +55,14 @@ bind:value={value[field]} label={field} options={schema.constraints.inclusion} + on:change={e => onChange(e, field)} /> {:else if schema.type === "longform"} -