diff --git a/frontend/src/lib/components/apps/editor/AppEditorHeader.svelte b/frontend/src/lib/components/apps/editor/AppEditorHeader.svelte index 4ee18bcd7d..0347f14262 100644 --- a/frontend/src/lib/components/apps/editor/AppEditorHeader.svelte +++ b/frontend/src/lib/components/apps/editor/AppEditorHeader.svelte @@ -1247,13 +1247,13 @@ size="xs" dropdownItems={appPath != '' ? () => [ - { - label: 'Fork', - onClick: () => { - window.open(`/apps/add?template=${appPath}`) - } + { + label: 'Fork', + onClick: () => { + window.open(`/apps/add?template=${appPath}`) } - ] + } + ] : undefined} > Deploy diff --git a/frontend/src/lib/components/flows/content/FlowBranchesAllWrapper.svelte b/frontend/src/lib/components/flows/content/FlowBranchesAllWrapper.svelte index 657ad40fe8..23d25280ea 100644 --- a/frontend/src/lib/components/flows/content/FlowBranchesAllWrapper.svelte +++ b/frontend/src/lib/components/flows/content/FlowBranchesAllWrapper.svelte @@ -30,7 +30,7 @@ - + The result of this step is the list of the result of each branch. @@ -38,6 +38,7 @@

{value.branches.length} branch{value.branches.length > 1 ? 'es' : ''}

+

Add branches and steps directly on the graph.

{#each value.branches as branch, i}
diff --git a/frontend/src/lib/components/flows/content/FlowBranchesOneWrapper.svelte b/frontend/src/lib/components/flows/content/FlowBranchesOneWrapper.svelte index f33c5a3fb4..8ac8d8cd89 100644 --- a/frontend/src/lib/components/flows/content/FlowBranchesOneWrapper.svelte +++ b/frontend/src/lib/components/flows/content/FlowBranchesOneWrapper.svelte @@ -31,13 +31,14 @@ - + The result of this step is the result of the branch.

{value.branches.length + 1} branch{value.branches.length + 1 > 1 ? 'es' : ''}

+

Add branches and steps directly on the graph.

Default branch diff --git a/frontend/src/lib/components/flows/content/FlowInputs.svelte b/frontend/src/lib/components/flows/content/FlowInputs.svelte index 1f7b436a96..471bcc0bfa 100644 --- a/frontend/src/lib/components/flows/content/FlowInputs.svelte +++ b/frontend/src/lib/components/flows/content/FlowInputs.svelte @@ -66,19 +66,52 @@ {/if} {#if kind == 'trigger'}
- + + Trigger scripts are special actions that are meant to run periodically given a schedule. A schedule will be automatically attached to this flow to run every 15 minutes. Adjust - frequency in 'Settings -> Schedule' + frequency in 'Settings' -> 'Schedule'.

+ + To see all ways to trigger a flow, check Triggering Flows. +
+ {/if} + + {#if kind == 'script'} +
+ + An action script is simply a script that is neither a trigger nor an approval script. Those are the majority of the scripts. + + {/if} + + {#if kind == 'approval'} +
+ + An approval step will suspend the execution of a flow until it has been approved through the resume endpoints or the approval page by and solely by the recipients of the secret urls. See dtails in 'Advanced' -> 'Suspend' settings of the step.

+ For further details, visit Approval Steps Documentation. +
{/if}

Inline new {kind == 'script' ? 'action' : kind} script - - Embed a script directly inside a flow instead of saving the script into your workspace for + + Embed {kind == 'script' ? 'action' : kind} script directly inside a flow instead of saving the script into your workspace for reuse. You can always save an inline script to your workspace later.

- {#if noEditor}
+ + Add steps inside the loop and specify an iterator expression that defines the sequence over which your subsequent steps will iterate. + {#if mod.value.type === 'forloopflow'}
Skip failures Skip failures If disabled, the flow will fail as soon as one of the iteration fail. Otherwise, the error will be collected as the result of the iteration. Regardless of this setting, if an error handler is defined, it will process the error.
-
Parallelism
+
Parallelism Assign a maximum number of branches run in parallel to control huge for-loops.
Iterator expression - - List to iterate over. For more information see the - docs. + + List to iterate over.
{#if mod.value.iterator.type == 'javascript'} diff --git a/frontend/src/lib/components/flows/map/MapItem.svelte b/frontend/src/lib/components/flows/map/MapItem.svelte index 71dbda25b0..6aadbfd673 100644 --- a/frontend/src/lib/components/flows/map/MapItem.svelte +++ b/frontend/src/lib/components/flows/map/MapItem.svelte @@ -3,14 +3,13 @@ import LanguageIcon from '$lib/components/common/languageIcons/LanguageIcon.svelte' import IconedResourceType from '$lib/components/IconedResourceType.svelte' import type { FlowModule } from '$lib/gen' - import { Building, ClipboardCopy, GitBranchPlus, Repeat, Square } from 'lucide-svelte' + import { Building, ClipboardCopy, GitBranchPlus, Repeat, Square, ArrowDown, GitBranch } from 'lucide-svelte' import { createEventDispatcher, getContext } from 'svelte' import type { Writable } from 'svelte/store' import FlowModuleSchemaItem from './FlowModuleSchemaItem.svelte' import InsertModuleButton from './InsertModuleButton.svelte' import { prettyLanguage } from '$lib/common' import { msToSec } from '$lib/utils' - import { ArrowDown, GitBranch } from 'lucide-svelte' import BarsStaggered from '$lib/components/icons/BarsStaggered.svelte' export let mod: FlowModule diff --git a/frontend/src/routes/(root)/(logged)/run/[...run]/+page.svelte b/frontend/src/routes/(root)/(logged)/run/[...run]/+page.svelte index e7c48975b8..102c8b9eda 100644 --- a/frontend/src/routes/(root)/(logged)/run/[...run]/+page.svelte +++ b/frontend/src/routes/(root)/(logged)/run/[...run]/+page.svelte @@ -2,6 +2,7 @@ import { page } from '$app/stores' import { JobService, Job, ScriptService, Script } from '$lib/gen' import { canWrite, displayDate, emptyString, truncateHash } from '$lib/utils' + import BarsStaggered from '$lib/components/icons/BarsStaggered.svelte' import { Activity, @@ -17,7 +18,8 @@ Scroll, TimerOff, Trash, - XCircle + XCircle, + Code2 } from 'lucide-svelte' import DisplayResult from '$lib/components/DisplayResult.svelte' @@ -402,9 +404,16 @@ > {/if} {/if} - + {/if}