From ce81df4d1ea268d7ff8fcbfa512aa2b87295ac12 Mon Sep 17 00:00:00 2001 From: Peter Clement Date: Tue, 9 Jan 2024 15:05:24 +0000 Subject: [PATCH 1/4] recommit json display work --- packages/builder/package.json | 1 + .../AutomationBuilder/TestDisplay.svelte | 67 +++++++--- .../AutomationPanel/AutomationPanel.svelte | 114 ++++++++++++++---- 3 files changed, 138 insertions(+), 44 deletions(-) diff --git a/packages/builder/package.json b/packages/builder/package.json index 9472c51965..273994ed0e 100644 --- a/packages/builder/package.json +++ b/packages/builder/package.json @@ -66,6 +66,7 @@ "@fortawesome/free-solid-svg-icons": "^6.4.2", "@spectrum-css/page": "^3.0.1", "@spectrum-css/vars": "^3.0.1", + "@zerodevx/svelte-json-view": "^1.0.7", "codemirror": "^5.59.0", "dayjs": "^1.10.8", "downloadjs": "1.4.7", diff --git a/packages/builder/src/components/automation/AutomationBuilder/TestDisplay.svelte b/packages/builder/src/components/automation/AutomationBuilder/TestDisplay.svelte index 89406f15d8..9fbc4b6bc1 100644 --- a/packages/builder/src/components/automation/AutomationBuilder/TestDisplay.svelte +++ b/packages/builder/src/components/automation/AutomationBuilder/TestDisplay.svelte @@ -1,7 +1,8 @@ - - -
-
Automations
-
- -
-
-
- -
+ From 8d4010cc54927332db1cbb4c754ec8af67dceaa3 Mon Sep 17 00:00:00 2001 From: Peter Clement Date: Tue, 9 Jan 2024 20:32:12 +0000 Subject: [PATCH 2/4] set condition outputs --- packages/server/src/automations/steps/filter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/automations/steps/filter.ts b/packages/server/src/automations/steps/filter.ts index 3b000f8f29..6867809500 100644 --- a/packages/server/src/automations/steps/filter.ts +++ b/packages/server/src/automations/steps/filter.ts @@ -99,7 +99,7 @@ export async function run({ inputs }: AutomationStepInput) { } else { result = false } - return { success: true, result } + return { success: true, result, refValue: field, comparisonValue: value } } catch (err) { return { success: false, result: false } } From 30cbcff1b14a5c0f665729adc38834c4b1a4e677 Mon Sep 17 00:00:00 2001 From: Peter Clement Date: Thu, 11 Jan 2024 11:57:23 +0000 Subject: [PATCH 3/4] fix height and add null state --- .../AutomationPanel/AutomationPanel.svelte | 39 +++++++++++-------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/packages/builder/src/components/automation/AutomationPanel/AutomationPanel.svelte b/packages/builder/src/components/automation/AutomationPanel/AutomationPanel.svelte index 2a8f63e50b..03123d481b 100644 --- a/packages/builder/src/components/automation/AutomationPanel/AutomationPanel.svelte +++ b/packages/builder/src/components/automation/AutomationPanel/AutomationPanel.svelte @@ -1,6 +1,6 @@