diff --git a/frontend/src/lib/components/DependenciesDeploymentWarning.svelte b/frontend/src/lib/components/DependenciesDeploymentWarning.svelte index 305fc93512..a10592482d 100644 --- a/frontend/src/lib/components/DependenciesDeploymentWarning.svelte +++ b/frontend/src/lib/components/DependenciesDeploymentWarning.svelte @@ -1,9 +1,8 @@ - + + {#if loading} +
+
+ Loading dependencies... +
+ {:else if isUnnamedDefault} + +
+

This will redeploy ALL existing {language} scripts and flows/apps that have {language} steps without explicit named dependencies!

+

Default (unnamed) dependencies are automatically used by any {language} runnable that doesn't specify a named dependency. Changing this affects your entire workspace.

+
+
+ + + Default Workspace Dependencies + +
+
+ {importedPath} +
+
+
+ {:else} +
- {#if loading} -
-
- Loading dependencies... + +
+
+ + Workspace Dependencies
+
+ {importedPath} +
+
+ + {#if dependencies.length === 0} + + {#snippet children()} +

No dependent runnables were found for these workspace dependencies, but the action will still proceed.

+ {/snippet} +
{:else} - -
-
- - Workspace Dependencies -
-
- {importedPath} -
+ +
+
- {#if dependencies.length === 0} - - {#snippet children()} -

No dependent runnables were found for these workspace dependencies, but the action will still proceed.

- {/snippet} -
- {:else} - -
- -
- - -
-

- This action will trigger redeployment of {getTotalDependentsCount()} - {getTotalDependentsCount() === 1 ? 'dependent runnable' : 'dependent runnables'}: -

-
- - -
- {#each dependencies as dependency} - {@render DependencyNode({ node: dependency, level: 0 })} - {/each} -
- {/if} + +
+

+ This action will trigger redeployment of {getTotalDependentsCount()} + {getTotalDependentsCount() === 1 ? 'dependent runnable' : 'dependent runnables'}: +

+
+ +
+ {#each dependencies as dependency} + {@render DependencyNode({ node: dependency, level: 0 })} + {/each} +
{/if}
- - - - - + {/if} + {#snippet DependencyNode({ node, level }: { node: DependencyNode, level: number })} {@const Icon = getIcon(node.kind)} diff --git a/frontend/src/lib/components/WorkspaceDependenciesEditor.svelte b/frontend/src/lib/components/WorkspaceDependenciesEditor.svelte index 86e1bba5d6..07af92fb1d 100644 --- a/frontend/src/lib/components/WorkspaceDependenciesEditor.svelte +++ b/frontend/src/lib/components/WorkspaceDependenciesEditor.svelte @@ -1,6 +1,6 @@