diff --git a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItem.svelte b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItem.svelte
index 532e0ff068..3506444ca8 100644
--- a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItem.svelte
+++ b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItem.svelte
@@ -1,30 +1,27 @@
+
+
+
{
+ blockComplete = !blockComplete
+ showParameters = { complete: !showParameters?.complete, id: block.id }
+ }}
+ class="splitHeader"
+ >
+
+ {#if externalActions[block.stepId]}
+
+ {:else}
+
+ {/if}
+
+ {#if isTrigger}
+ When this happens:
+ {:else}
+ Do this:
+ {/if}
+
+ {block?.name?.toUpperCase() || ""}
+
+
+
+ {#if showTestStatus && testResult && testResult[0]}
+
resultsModal.show()}>
+ {testResult[0].outputs?.success || isTrigger
+ ? "Success"
+ : "Error"}
+
+ {/if}
+
{
+ onSelect(block)
+ }}
+ >
+
+
+
+
+
+
+
+
+
+
+
diff --git a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/TestDataModal.svelte b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/TestDataModal.svelte
index ffd59b4e6a..fecd0fcc7e 100644
--- a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/TestDataModal.svelte
+++ b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/TestDataModal.svelte
@@ -51,6 +51,7 @@
$automationStore.selectedAutomation?.automation,
testData
)
+ $automationStore.selectedAutomation.automation.showTestPanel = true
} catch (error) {
notifications.error("Error testing notification")
}
diff --git a/packages/builder/src/components/automation/AutomationBuilder/TestPanel.svelte b/packages/builder/src/components/automation/AutomationBuilder/TestPanel.svelte
new file mode 100644
index 0000000000..4c0dea3958
--- /dev/null
+++ b/packages/builder/src/components/automation/AutomationBuilder/TestPanel.svelte
@@ -0,0 +1,137 @@
+
+
+
+
+
+ {
+ $automationStore.selectedAutomation.automation.showTestPanel = false
+ await automationStore.actions.save(
+ $automationStore.selectedAutomation?.automation
+ )
+ }}
+ hoverable
+ name="Close"
+ />
+
+
+
+
+
+
+ {#each blocks as block, idx}
+
+ {#if block.stepId !== "LOOP"}
+
+ {#if showParameters?.complete && block?.id === showParameters?.id}
+
+
+
+ {/if}
+ {/if}
+
+ {#if blocks.length - 1 !== idx}
+
+ {/if}
+ {/each}
+
+
+
diff --git a/packages/builder/src/pages/builder/app/[application]/automate/_layout.svelte b/packages/builder/src/pages/builder/app/[application]/automate/_layout.svelte
index 841acb22c0..c1b596ad57 100644
--- a/packages/builder/src/pages/builder/app/[application]/automate/_layout.svelte
+++ b/packages/builder/src/pages/builder/app/[application]/automate/_layout.svelte
@@ -4,7 +4,11 @@
import AutomationPanel from "components/automation/AutomationPanel/AutomationPanel.svelte"
import CreateAutomationModal from "components/automation/AutomationPanel/CreateAutomationModal.svelte"
import CreateWebhookModal from "components/automation/Shared/CreateWebhookModal.svelte"
- $: automation = $automationStore.automations[0]
+ import TestPanel from "components/automation/AutomationBuilder/TestPanel.svelte"
+ $: automation =
+ $automationStore.selectedAutomation?.automation ||
+ $automationStore.automations[0]
+
let modal
let webhookModal
@@ -39,6 +43,10 @@
{/if}
+
+ {#if automation.showTestPanel}
+
+ {/if}
@@ -52,7 +60,8 @@
flex: 1 1 auto;
height: 0;
display: grid;
- grid-template-columns: 260px minmax(510px, 1fr);
+ grid-auto-flow: column dense;
+ grid-template-columns: 260px minmax(510px, 1fr) fit-content(500px);
}
.nav {
@@ -92,4 +101,17 @@
.main {
width: 300px;
}
+
+ .setup {
+ padding-top: var(--spectrum-global-dimension-size-200);
+ border-left: var(--border-light);
+ display: flex;
+ flex-direction: column;
+ justify-content: flex-start;
+ align-items: stretch;
+ gap: var(--spacing-l);
+ background-color: var(--background);
+ grid-column: 3;
+ overflow: auto;
+ }