From 0a8cb11514545a95478be3242b04178e707793c4 Mon Sep 17 00:00:00 2001 From: Peter Clement Date: Mon, 23 May 2022 14:11:37 +0100 Subject: [PATCH] update Automation button placement and test details button --- .../builderStore/store/automation/index.js | 2 - .../FlowChart/FlowChart.svelte | 106 +++++++------- .../FlowChart/FlowItem.svelte | 4 +- ...ItemTitle.svelte => FlowItemHeader.svelte} | 10 +- .../FlowChart/ResultsModal.svelte | 133 ------------------ .../AutomationBuilder/TestPanel.svelte | 21 ++- .../app/[application]/automate/_layout.svelte | 11 +- 7 files changed, 75 insertions(+), 212 deletions(-) rename packages/builder/src/components/automation/AutomationBuilder/FlowChart/{FlowItemTitle.svelte => FlowItemHeader.svelte} (89%) delete mode 100644 packages/builder/src/components/automation/AutomationBuilder/FlowChart/ResultsModal.svelte diff --git a/packages/builder/src/builderStore/store/automation/index.js b/packages/builder/src/builderStore/store/automation/index.js index 84e6033439..5252d4b06a 100644 --- a/packages/builder/src/builderStore/store/automation/index.js +++ b/packages/builder/src/builderStore/store/automation/index.js @@ -105,9 +105,7 @@ const automationActions = store => ({ }, select: automation => { store.update(state => { - let testResults = state.selectedAutomation?.testResults state.selectedAutomation = new Automation(cloneDeep(automation)) - state.selectedAutomation.testResults = testResults state.selectedBlock = null return state }) diff --git a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowChart.svelte b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowChart.svelte index 492778bed9..3e58b25ff6 100644 --- a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowChart.svelte +++ b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowChart.svelte @@ -40,66 +40,70 @@
-
-
-
- {automation.name} -
-
-
- -
-
+
+ {automation.name} +
+
+
+
+
+ +
+ { + testDataModal.show() + }} + icon="MultipleCheck" + size="M">Run test +
{ - testDataModal.show() + $automationStore.selectedAutomation.automation.showTestPanel = true }} - icon="MultipleCheck" - size="M">Run testTest Details
- {#each blocks as block, idx (block.id)} -
- {#if block.stepId !== "LOOP"} - - {/if} -
- {/each}
- - Are you sure you wish to delete the automation - {automation.name}? - This action cannot be undone. - - - - -
+
+ {#each blocks as block, idx (block.id)} +
+ {#if block.stepId !== "LOOP"} + + {/if} +
+ {/each} +
+ + Are you sure you wish to delete the automation + {automation.name}? + This action cannot be undone. + + + + + diff --git a/packages/builder/src/components/automation/AutomationBuilder/TestPanel.svelte b/packages/builder/src/components/automation/AutomationBuilder/TestPanel.svelte index cc588c87a5..8c38d8a689 100644 --- a/packages/builder/src/components/automation/AutomationBuilder/TestPanel.svelte +++ b/packages/builder/src/components/automation/AutomationBuilder/TestPanel.svelte @@ -1,6 +1,6 @@