Commit for enhancement #7138

*Added automation steps
*Added steps for testing panel
*Changed a testing panel error message as it didn't seem accurate
This commit is contained in:
FlaminWrap 2022-11-05 00:05:15 +00:00
parent 4d8485a413
commit 1b6c31ea4e
5 changed files with 11 additions and 4 deletions

View File

@ -84,7 +84,7 @@
out:fly|local={{ x: 500, duration: 500 }}
>
{#if block.stepId !== ActionStepID.LOOP}
<FlowItem {testDataModal} {block} />
<FlowItem {testDataModal} {block} {idx} />
{/if}
</div>
{/each}

View File

@ -22,6 +22,7 @@
export let block
export let testDataModal
export let idx
let selected
let webhookModal
let actionModal
@ -208,7 +209,7 @@
{/if}
{/if}
<FlowItemHeader bind:blockComplete {block} {testDataModal} />
<FlowItemHeader bind:blockComplete {block} {testDataModal} {idx} />
{#if !blockComplete}
<Divider noMargin />
<div class="blockSection">

View File

@ -9,6 +9,7 @@
export let showParameters = {}
export let testResult
export let isTrigger
export let idx
$: {
if (!testResult) {
@ -71,12 +72,16 @@
</svg>
{/if}
<div class="iconAlign">
{#if idx === 0}
<Body size="XS"><b>Trigger</b></Body>
{:else}
<Body size="XS"><b>Step {idx}</b></Body>
{/if}
{#if isTrigger}
<Body size="XS">When this happens:</Body>
{:else}
<Body size="XS">Do this:</Body>
{/if}
<Detail size="S">{block?.name?.toUpperCase() || ""}</Detail>
</div>
</div>

View File

@ -57,7 +57,7 @@
)
$automationStore.showTestPanel = true
} catch (error) {
notifications.error("Error testing notification")
notifications.error("Error testing automation")
}
}
</script>

View File

@ -52,6 +52,7 @@
bind:showParameters
{block}
isTrigger={idx === 0}
{idx}
testResult={filteredResults?.[idx]}
/>
{#if showParameters && showParameters[block.id]}