From 0b056bf46987c84ccfba5520894993069039784d Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 9 Sep 2020 12:40:44 +0100 Subject: [PATCH] Improve workflow block list design and UI consistency --- .../WorkflowPanel/BlockList/BlockList.svelte | 70 ++++--------------- .../BlockList/WorkflowBlock.svelte | 9 +-- .../WorkflowPanel/WorkflowPanel.svelte | 3 +- 3 files changed, 22 insertions(+), 60 deletions(-) diff --git a/packages/builder/src/components/workflow/WorkflowPanel/BlockList/BlockList.svelte b/packages/builder/src/components/workflow/WorkflowPanel/BlockList/BlockList.svelte index 3a071ad00f..3851e1a204 100644 --- a/packages/builder/src/components/workflow/WorkflowPanel/BlockList/BlockList.svelte +++ b/packages/builder/src/components/workflow/WorkflowPanel/BlockList/BlockList.svelte @@ -1,15 +1,23 @@
-
- {#if !$workflowStore.currentWorkflow.hasTrigger()} - (selectedTab = 'TRIGGER')}> - Triggers - - {/if} - (selectedTab = 'ACTION')}> - Actions - - (selectedTab = 'LOGIC')}> - Logic - -
+
{#each definitions as [actionId, blockDefinition]} {/each}
- - diff --git a/packages/builder/src/components/workflow/WorkflowPanel/BlockList/WorkflowBlock.svelte b/packages/builder/src/components/workflow/WorkflowPanel/BlockList/WorkflowBlock.svelte index 1882f91b7a..5ba08648c9 100644 --- a/packages/builder/src/components/workflow/WorkflowPanel/BlockList/WorkflowBlock.svelte +++ b/packages/builder/src/components/workflow/WorkflowPanel/BlockList/WorkflowBlock.svelte @@ -31,11 +31,11 @@