diff --git a/packages/builder/cypress/integration/createWorkflow.spec.js b/packages/builder/cypress/integration/createWorkflow.spec.js index e7fe34b630..833777f106 100644 --- a/packages/builder/cypress/integration/createWorkflow.spec.js +++ b/packages/builder/cypress/integration/createWorkflow.spec.js @@ -1,46 +1,52 @@ -context('Create a workflow', () => { +context("Create a workflow", () => { + before(() => { + cy.server() + cy.visit("localhost:4001/_builder") - before(() => { - cy.server() - cy.visit('localhost:4001/_builder') + cy.createApp( + "Workflow Test App", + "This app is used to test that workflows do in fact work!" + ) + }) - cy.createApp('Workflow Test App', 'This app is used to test that workflows do in fact work!') - }) + // https://on.cypress.io/interacting-with-elements + it("should create a workflow", () => { + cy.createTestTableWithData() - // https://on.cypress.io/interacting-with-elements - it('should create a workflow', () => { - cy.createTestTableWithData() + cy.contains("workflow").click() + cy.contains("Create New Workflow").click() + cy.get("input").type("Add Record") + cy.contains("Save").click() - cy.contains('workflow').click() - cy.contains('Create New Workflow').click() - cy.get('input').type('Add Record') - cy.contains('Save').click() + // Add trigger + cy.get("[data-cy=add-workflow-component]").click() + cy.get("[data-cy=RECORD_SAVED]").click() + cy.get(".budibase__input").select("dog") - // Add trigger - cy.get('[data-cy=add-workflow-component]').click() - cy.get('[data-cy=RECORD_SAVED]').click() - cy.get('.budibase__input').select('dog') + // Create action + cy.get("[data-cy=SAVE_RECORD]").click() + cy.get(".budibase__input").select("dog") + cy.get(".container input") + .first() + .type("goodboy") + cy.get(".container input") + .eq(1) + .type("11") - // Create action - cy.get('[data-cy=SAVE_RECORD]').click() - cy.get('.container input').first().type('goodboy') - cy.get('.container input').eq(1).type('11') + // Save + cy.contains("Save Workflow").click() - // Save - cy.contains('Save Workflow').click() + // Activate Workflow + cy.get("[data-cy=activate-workflow]").click() + cy.contains("Add Record").should("be.visible") + cy.get(".stop-button.highlighted").should("be.visible") + }) - // Activate Workflow - cy.get('[data-cy=activate-workflow]').click() - cy.contains("Add Record").should("be.visible") - cy.get(".stop-button.highlighted").should("be.visible") - }) + it("should add record when a new record is added", () => { + cy.contains("backend").click() - it('should add record when a new record is added', () => { - cy.contains('backend').click() - - cy.addRecord(["Rover", 15]) - cy.reload() - cy.contains('goodboy').should('have.text', 'goodboy') - - }) -}) \ No newline at end of file + cy.addRecord(["Rover", 15]) + cy.reload() + cy.contains("goodboy").should("have.text", "goodboy") + }) +}) diff --git a/packages/builder/cypress/videos/createWorkflow.spec.js.mp4 b/packages/builder/cypress/videos/createWorkflow.spec.js.mp4 index 52116ef9e9..22fd8541c7 100644 Binary files a/packages/builder/cypress/videos/createWorkflow.spec.js.mp4 and b/packages/builder/cypress/videos/createWorkflow.spec.js.mp4 differ diff --git a/packages/builder/rollup.config.js b/packages/builder/rollup.config.js index 3d73d968f3..ffeacf9e52 100644 --- a/packages/builder/rollup.config.js +++ b/packages/builder/rollup.config.js @@ -234,7 +234,7 @@ export default { // Watch the `dist` directory and refresh the // browser on changes when not in production - !production && livereload(outputpath), + !production && livereload({ watch: outputpath, delay: 500 }), // If we're building for production (npm run build // instead of npm run dev), minify diff --git a/packages/builder/src/builderStore/store/workflow/Workflow.js b/packages/builder/src/builderStore/store/workflow/Workflow.js index d9c1ee249f..8ac6664e91 100644 --- a/packages/builder/src/builderStore/store/workflow/Workflow.js +++ b/packages/builder/src/builderStore/store/workflow/Workflow.js @@ -1,5 +1,3 @@ -import mustache from "mustache" -import blockDefinitions from "components/workflow/WorkflowPanel/blockDefinitions" import { generate } from "shortid" /** @@ -18,27 +16,31 @@ export default class Workflow { addBlock(block) { // Make sure to add trigger if doesn't exist if (!this.hasTrigger() && block.type === "TRIGGER") { - this.workflow.definition.trigger = { id: generate(), ...block } - return + const trigger = { id: generate(), ...block } + this.workflow.definition.trigger = trigger + return trigger } - this.workflow.definition.steps.push({ - id: generate(), - ...block, - }) + const newBlock = { id: generate(), ...block } + this.workflow.definition.steps = [ + ...this.workflow.definition.steps, + newBlock, + ] + return newBlock } updateBlock(updatedBlock, id) { const { steps, trigger } = this.workflow.definition if (trigger && trigger.id === id) { - this.workflow.definition.trigger = null + this.workflow.definition.trigger = updatedBlock return } const stepIdx = steps.findIndex(step => step.id === id) if (stepIdx < 0) throw new Error("Block not found.") steps.splice(stepIdx, 1, updatedBlock) + this.workflow.definition.steps = steps } deleteBlock(id) { @@ -52,44 +54,6 @@ export default class Workflow { const stepIdx = steps.findIndex(step => step.id === id) if (stepIdx < 0) throw new Error("Block not found.") steps.splice(stepIdx, 1) - } - - createUiTree() { - if (!this.workflow.definition) return [] - return Workflow.buildUiTree(this.workflow.definition) - } - - static buildUiTree(definition) { - const steps = [] - if (definition.trigger) steps.push(definition.trigger) - - return [...steps, ...definition.steps].map(step => { - // The client side display definition for the block - const definition = blockDefinitions[step.type][step.actionId] - if (!definition) { - throw new Error( - `No block definition exists for the chosen block. Check there's an entry in the block definitions for ${step.actionId}` - ) - } - - if (!definition.params) { - throw new Error( - `Blocks should always have parameters. Ensure that the block definition is correct for ${step.actionId}` - ) - } - - const tagline = definition.tagline || "" - const args = step.args || {} - - return { - id: step.id, - type: step.type, - params: step.params, - args, - heading: step.actionId, - body: mustache.render(tagline, args), - name: definition.name, - } - }) + this.workflow.definition.steps = steps } } diff --git a/packages/builder/src/builderStore/store/workflow/index.js b/packages/builder/src/builderStore/store/workflow/index.js index 9d50f85661..6a4db7afaf 100644 --- a/packages/builder/src/builderStore/store/workflow/index.js +++ b/packages/builder/src/builderStore/store/workflow/index.js @@ -1,14 +1,22 @@ import { writable } from "svelte/store" import api from "../../api" import Workflow from "./Workflow" +import { cloneDeep } from "lodash/fp" const workflowActions = store => ({ fetch: async () => { - const WORKFLOWS_URL = `/api/workflows` - const workflowResponse = await api.get(WORKFLOWS_URL) - const json = await workflowResponse.json() + const responses = await Promise.all([ + api.get(`/api/workflows`), + api.get(`/api/workflows/definitions/list`), + ]) + const jsonResponses = await Promise.all(responses.map(x => x.json())) store.update(state => { - state.workflows = json + state.workflows = jsonResponses[0] + state.blockDefinitions = { + TRIGGER: jsonResponses[1].trigger, + ACTION: jsonResponses[1].action, + LOGIC: jsonResponses[1].logic, + } return state }) }, @@ -23,8 +31,8 @@ const workflowActions = store => ({ const response = await api.post(CREATE_WORKFLOW_URL, workflow) const json = await response.json() store.update(state => { - state.workflows = state.workflows.concat(json.workflow) - state.currentWorkflow = new Workflow(json.workflow) + state.workflows = [...state.workflows, json.workflow] + store.actions.select(json.workflow) return state }) }, @@ -38,20 +46,7 @@ const workflowActions = store => ({ ) state.workflows.splice(existingIdx, 1, json.workflow) state.workflows = state.workflows - state.currentWorkflow = new Workflow(json.workflow) - return state - }) - }, - update: async ({ workflow }) => { - const UPDATE_WORKFLOW_URL = `/api/workflows` - const response = await api.put(UPDATE_WORKFLOW_URL, workflow) - const json = await response.json() - store.update(state => { - const existingIdx = state.workflows.findIndex( - existing => existing._id === workflow._id - ) - state.workflows.splice(existingIdx, 1, json.workflow) - state.workflows = state.workflows + store.actions.select(json.workflow) return state }) }, @@ -66,28 +61,49 @@ const workflowActions = store => ({ ) state.workflows.splice(existingIdx, 1) state.workflows = state.workflows - state.currentWorkflow = null + state.selectedWorkflow = null + state.selectedBlock = null return state }) }, + trigger: async ({ workflow }) => { + const { _id } = workflow + const TRIGGER_WORKFLOW_URL = `/api/workflows/${_id}/trigger` + return await api.post(TRIGGER_WORKFLOW_URL) + }, select: workflow => { store.update(state => { - state.currentWorkflow = new Workflow(workflow) - state.selectedWorkflowBlock = null + state.selectedWorkflow = new Workflow(cloneDeep(workflow)) + state.selectedBlock = null return state }) }, addBlockToWorkflow: block => { store.update(state => { - state.currentWorkflow.addBlock(block) - state.selectedWorkflowBlock = block + const newBlock = state.selectedWorkflow.addBlock(cloneDeep(block)) + state.selectedBlock = newBlock return state }) }, deleteWorkflowBlock: block => { store.update(state => { - state.currentWorkflow.deleteBlock(block.id) - state.selectedWorkflowBlock = null + const idx = state.selectedWorkflow.workflow.definition.steps.findIndex( + x => x.id === block.id + ) + state.selectedWorkflow.deleteBlock(block.id) + + // Select next closest step + const steps = state.selectedWorkflow.workflow.definition.steps + let nextSelectedBlock + if (steps[idx] != null) { + nextSelectedBlock = steps[idx] + } else if (steps[idx - 1] != null) { + nextSelectedBlock = steps[idx - 1] + } else { + nextSelectedBlock = + state.selectedWorkflow.workflow.definition.trigger || null + } + state.selectedBlock = nextSelectedBlock return state }) }, @@ -96,11 +112,14 @@ const workflowActions = store => ({ export const getWorkflowStore = () => { const INITIAL_WORKFLOW_STATE = { workflows: [], + blockDefinitions: { + TRIGGER: [], + ACTION: [], + LOGIC: [], + }, + selectedWorkflow: null, } - const store = writable(INITIAL_WORKFLOW_STATE) - store.actions = workflowActions(store) - return store } diff --git a/packages/builder/src/builderStore/store/workflow/tests/Workflow.spec.js b/packages/builder/src/builderStore/store/workflow/tests/Workflow.spec.js index fd14404a5f..4d270ea611 100644 --- a/packages/builder/src/builderStore/store/workflow/tests/Workflow.spec.js +++ b/packages/builder/src/builderStore/store/workflow/tests/Workflow.spec.js @@ -1,57 +1,48 @@ -import Workflow from "../Workflow"; -import TEST_WORKFLOW from "./testWorkflow"; +import Workflow from "../Workflow" +import TEST_WORKFLOW from "./testWorkflow" const TEST_BLOCK = { - id: "VFWeZcIPx", - name: "Update UI State", - tagline: "Update {{path}} to {{value}}", - icon: "ri-refresh-line", - description: "Update your User Interface with some data.", - environment: "CLIENT", - params: { - path: "string", - value: "longText", - }, - args: { - path: "foo", - value: "started...", - }, - actionId: "SET_STATE", - type: "ACTION", + id: "AUXJQGZY7", + name: "Delay", + icon: "ri-time-fill", + tagline: "Delay for {{time}} milliseconds", + description: "Delay the workflow until an amount of time has passed.", + params: { time: "number" }, + type: "LOGIC", + args: { time: "5000" }, + stepId: "DELAY", } describe("Workflow Data Object", () => { let workflow beforeEach(() => { - workflow = new Workflow({ ...TEST_WORKFLOW }); - }); + workflow = new Workflow({ ...TEST_WORKFLOW }) + }) it("adds a workflow block to the workflow", () => { - workflow.addBlock(TEST_BLOCK); + workflow.addBlock(TEST_BLOCK) expect(workflow.workflow.definition) }) it("updates a workflow block with new attributes", () => { - const firstBlock = workflow.workflow.definition.steps[0]; + const firstBlock = workflow.workflow.definition.steps[0] const updatedBlock = { ...firstBlock, - name: "UPDATED" - }; - workflow.updateBlock(updatedBlock, firstBlock.id); + name: "UPDATED", + } + workflow.updateBlock(updatedBlock, firstBlock.id) expect(workflow.workflow.definition.steps[0]).toEqual(updatedBlock) }) it("deletes a workflow block successfully", () => { const { steps } = workflow.workflow.definition - const originalLength = steps.length + const originalLength = steps.length - const lastBlock = steps[steps.length - 1]; - workflow.deleteBlock(lastBlock.id); - expect(workflow.workflow.definition.steps.length).toBeLessThan(originalLength); - }) - - it("builds a tree that gets rendered in the flowchart builder", () => { - expect(Workflow.buildUiTree(TEST_WORKFLOW.definition)).toMatchSnapshot(); + const lastBlock = steps[steps.length - 1] + workflow.deleteBlock(lastBlock.id) + expect(workflow.workflow.definition.steps.length).toBeLessThan( + originalLength + ) }) }) diff --git a/packages/builder/src/builderStore/store/workflow/tests/__snapshots__/Workflow.spec.js.snap b/packages/builder/src/builderStore/store/workflow/tests/__snapshots__/Workflow.spec.js.snap deleted file mode 100644 index 732764a082..0000000000 --- a/packages/builder/src/builderStore/store/workflow/tests/__snapshots__/Workflow.spec.js.snap +++ /dev/null @@ -1,49 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Workflow Data Object builds a tree that gets rendered in the flowchart builder 1`] = ` -Array [ - Object { - "args": Object { - "time": 3000, - }, - "body": "Delay for 3000 milliseconds", - "heading": "DELAY", - "id": "zJQcZUgDS", - "name": "Delay", - "params": Object { - "time": "number", - }, - "type": "LOGIC", - }, - Object { - "args": Object { - "path": "foo", - "value": "finished", - }, - "body": "Update foo to finished", - "heading": "SET_STATE", - "id": "3RSTO7BMB", - "name": "Update UI State", - "params": Object { - "path": "string", - "value": "longText", - }, - "type": "ACTION", - }, - Object { - "args": Object { - "path": "foo", - "value": "started...", - }, - "body": "Update foo to started...", - "heading": "SET_STATE", - "id": "VFWeZcIPx", - "name": "Update UI State", - "params": Object { - "path": "string", - "value": "longText", - }, - "type": "ACTION", - }, -] -`; diff --git a/packages/builder/src/builderStore/store/workflow/tests/testWorkflow.js b/packages/builder/src/builderStore/store/workflow/tests/testWorkflow.js index 90c4b17924..96999277eb 100644 --- a/packages/builder/src/builderStore/store/workflow/tests/testWorkflow.js +++ b/packages/builder/src/builderStore/store/workflow/tests/testWorkflow.js @@ -1,63 +1,78 @@ export default { - _id: "53b6148c65d1429c987e046852d11611", - _rev: "4-02c6659734934895812fa7be0215ee59", - name: "Test Workflow", + name: "Test workflow", definition: { steps: [ { - id: "VFWeZcIPx", - name: "Update UI State", - tagline: "Update {{path}} to {{value}}", - icon: "ri-refresh-line", - description: "Update your User Interface with some data.", - environment: "CLIENT", + id: "ANBDINAPS", + description: "Send an email.", + tagline: "Send email to {{to}}", + icon: "ri-mail-open-fill", + name: "Send Email", params: { - path: "string", - value: "longText", + to: "string", + from: "string", + subject: "longText", + text: "longText", }, - args: { - path: "foo", - value: "started...", - }, - actionId: "SET_STATE", type: "ACTION", - }, - { - id: "zJQcZUgDS", - name: "Delay", - icon: "ri-time-fill", - tagline: "Delay for {{time}} milliseconds", - description: "Delay the workflow until an amount of time has passed.", - environment: "CLIENT", - params: { - time: "number", - }, args: { - time: 3000, + text: "A user was created!", + subject: "New Budibase User", + from: "budimaster@budibase.com", + to: "test@test.com", }, - actionId: "DELAY", - type: "LOGIC", - }, - { - id: "3RSTO7BMB", - name: "Update UI State", - tagline: "Update {{path}} to {{value}}", - icon: "ri-refresh-line", - description: "Update your User Interface with some data.", - environment: "CLIENT", - params: { - path: "string", - value: "longText", - }, - args: { - path: "foo", - value: "finished", - }, - actionId: "SET_STATE", - type: "ACTION", + stepId: "SEND_EMAIL", }, ], + trigger: { + id: "iRzYMOqND", + name: "Record Saved", + event: "record:save", + icon: "ri-save-line", + tagline: "Record is added to {{model.name}}", + description: "Fired when a record is saved to your database.", + params: { model: "model" }, + type: "TRIGGER", + args: { + model: { + type: "model", + views: {}, + name: "users", + schema: { + name: { + type: "string", + constraints: { + type: "string", + length: { maximum: 123 }, + presence: { allowEmpty: false }, + }, + name: "name", + }, + age: { + type: "number", + constraints: { + type: "number", + presence: { allowEmpty: false }, + numericality: { + greaterThanOrEqualTo: "", + lessThanOrEqualTo: "", + }, + }, + name: "age", + }, + }, + _id: "c6b4e610cd984b588837bca27188a451", + _rev: "7-b8aa1ce0b53e88928bb88fc11bdc0aff", + }, + }, + stepId: "RECORD_SAVED", + }, }, type: "workflow", - live: true, + ok: true, + id: "b384f861f4754e1693835324a7fcca62", + rev: "1-aa1c2cbd868ef02e26f8fad531dd7e37", + live: false, + _id: "b384f861f4754e1693835324a7fcca62", + _rev: "108-4116829ec375e0481d0ecab9e83a2caf", } diff --git a/packages/builder/src/components/workflow/SetupPanel/DeleteWorkflowModal.svelte b/packages/builder/src/components/workflow/SetupPanel/DeleteWorkflowModal.svelte index e2e8b9976b..b96e9f92b3 100644 --- a/packages/builder/src/components/workflow/SetupPanel/DeleteWorkflowModal.svelte +++ b/packages/builder/src/components/workflow/SetupPanel/DeleteWorkflowModal.svelte @@ -13,7 +13,7 @@ async function deleteWorkflow() { await workflowStore.actions.delete({ instanceId, - workflow: $workflowStore.currentWorkflow.workflow, + workflow: $workflowStore.selectedWorkflow.workflow, }) onClosed() notifier.danger("Workflow deleted.") diff --git a/packages/builder/src/components/workflow/SetupPanel/ParamInputs/ComponentSelector.svelte b/packages/builder/src/components/workflow/SetupPanel/ParamInputs/ComponentSelector.svelte deleted file mode 100644 index fee5811bd8..0000000000 --- a/packages/builder/src/components/workflow/SetupPanel/ParamInputs/ComponentSelector.svelte +++ /dev/null @@ -1,42 +0,0 @@ - - -
- - - {#if components.length > 0} - - - {/if} -
diff --git a/packages/builder/src/components/workflow/SetupPanel/ParamInputs/ModelSelector.svelte b/packages/builder/src/components/workflow/SetupPanel/ParamInputs/ModelSelector.svelte index db10b8f3b0..2ea4807d3f 100644 --- a/packages/builder/src/components/workflow/SetupPanel/ParamInputs/ModelSelector.svelte +++ b/packages/builder/src/components/workflow/SetupPanel/ParamInputs/ModelSelector.svelte @@ -2,13 +2,22 @@ import { backendUiStore } from "builderStore" export let value + $: modelId = value ? value._id : "" + + function onChange(e) { + value = $backendUiStore.models.find(model => model._id === e.target.value) + } -
- + {#each $backendUiStore.models as model} - + {/each}
diff --git a/packages/builder/src/components/workflow/SetupPanel/ParamInputs/RecordSelector.svelte b/packages/builder/src/components/workflow/SetupPanel/ParamInputs/RecordSelector.svelte index ffa2a9c1b6..64db828407 100644 --- a/packages/builder/src/components/workflow/SetupPanel/ParamInputs/RecordSelector.svelte +++ b/packages/builder/src/components/workflow/SetupPanel/ParamInputs/RecordSelector.svelte @@ -3,6 +3,14 @@ import { Input, Label } from "@budibase/bbui" export let value + $: modelId = value && value.model ? value.model._id : "" + $: schemaFields = Object.keys(value && value.model ? value.model.schema : {}) + + function onChangeModel(e) { + value.model = $backendUiStore.models.find( + model => model._id === e.target.value + ) + } function setParsedValue(evt, field) { const fieldSchema = value.model.schema[field] @@ -10,23 +18,27 @@ value[field] = parseInt(evt.target.value) return } - value[field] = evt.target.value } -
- + {#each $backendUiStore.models as model} - + {/each}
-{#if value.model} +{#if schemaFields.length}
- {#each Object.keys(value.model.schema) as field} + {#each schemaFields as field}
- import { fade } from "svelte/transition" - import { onMount, getContext } from "svelte" + import { getContext } from "svelte" import { backendUiStore, workflowStore } from "builderStore" import { notifier } from "builderStore/store/notifications" import WorkflowBlockSetup from "./WorkflowBlockSetup.svelte" @@ -9,49 +8,35 @@ const { open, close } = getContext("simple-modal") - const ACCESS_LEVELS = [ - { - name: "Admin", - key: "ADMIN", - canExecute: true, - editable: false, - }, - { - name: "Power User", - key: "POWER_USER", - canExecute: true, - editable: false, - }, - ] - let selectedTab = "SETUP" - let testResult $: workflow = - $workflowStore.currentWorkflow && $workflowStore.currentWorkflow.workflow - $: workflowBlock = $workflowStore.selectedWorkflowBlock + $workflowStore.selectedWorkflow && $workflowStore.selectedWorkflow.workflow function deleteWorkflow() { open( DeleteWorkflowModal, - { - onClosed: close, - }, + { onClosed: close }, { styleContent: { padding: "0" } } ) } function deleteWorkflowBlock() { - workflowStore.actions.deleteWorkflowBlock(workflowBlock) - notifier.info("Workflow block deleted.") + workflowStore.actions.deleteWorkflowBlock($workflowStore.selectedBlock) } - function testWorkflow() { - testResult = "PASSED" + async function testWorkflow() { + const result = await workflowStore.actions.trigger({ + workflow: $workflowStore.selectedWorkflow.workflow, + }) + if (result.status === 200) { + notifier.success(`Workflow ${workflow.name} triggered successfully.`) + } else { + notifier.danger(`Failed to trigger workflow ${workflow.name}.`) + } } async function saveWorkflow() { - const workflow = $workflowStore.currentWorkflow.workflow await workflowStore.actions.save({ instanceId: $backendUiStore.selectedDatabase._id, workflow, @@ -65,38 +50,27 @@ { - selectedTab = 'SETUP' - testResult = null - }}> + on:click={() => (selectedTab = 'SETUP')}> Setup - {#if !workflowBlock} - (selectedTab = 'TEST')}> - Test - - {/if} - {#if selectedTab === 'TEST'} -
- {#if testResult} - - {/if} - + {#if $workflowStore.selectedBlock} + +
+ +
- {/if} - {#if selectedTab === 'SETUP'} - {#if workflowBlock} - + {:else if $workflowStore.selectedWorkflow} +
+
+
+ Workflow + {workflow.name} +
+
+
- +
- {:else if $workflowStore.currentWorkflow} -
-
-
Workflow: {workflow.name}
-
- -
- - {#each ACCESS_LEVELS as level} - - - - - {/each} -
-
-
-
- - -
-
- {/if} +
{/if} @@ -181,10 +124,6 @@ margin-bottom: 20px; } - .config-item { - margin-bottom: 20px; - } - header > span { color: var(--grey-5); margin-right: 20px; @@ -205,35 +144,8 @@ gap: 12px; } - .access-level { - display: flex; - align-items: center; - justify-content: space-between; - margin-top: 20px; - } - .access-level label { font-weight: normal; color: var(--ink); } - - .test-result { - border: none; - width: 100%; - border-radius: 3px; - height: 32px; - font-size: 14px; - font-weight: 500; - color: var(--white); - text-align: center; - margin-bottom: 10px; - } - - .passed { - background: var(--green); - } - - .failed { - background: var(--red); - } diff --git a/packages/builder/src/components/workflow/SetupPanel/WorkflowBlockSetup.svelte b/packages/builder/src/components/workflow/SetupPanel/WorkflowBlockSetup.svelte index 35ab01b544..5e889a32d0 100644 --- a/packages/builder/src/components/workflow/SetupPanel/WorkflowBlockSetup.svelte +++ b/packages/builder/src/components/workflow/SetupPanel/WorkflowBlockSetup.svelte @@ -1,55 +1,45 @@ - -{#each workflowParams as [parameter, type]} -
- - {#if Array.isArray(type)} - - {:else if type === 'component'} - - {:else if type === 'accessLevel'} - - {:else if type === 'password'} - - {:else if type === 'number'} - - {:else if type === 'longText'} -