From ef031cd3c02540460487ca40ff1c84b6cfc0b9da Mon Sep 17 00:00:00 2001 From: Pyra <92104930+pyranota@users.noreply.github.com> Date: Mon, 1 Dec 2025 12:18:37 +0100 Subject: [PATCH] nit(workspace-dependencies): better deployment warning (#7265) * nit(workspace-dependencies): better deployment warning Signed-off-by: pyranota * ci Signed-off-by: pyranota * fix npm check Signed-off-by: pyranota --------- Signed-off-by: pyranota --- .../DependenciesDeploymentWarning.svelte | 134 ++++++++++-------- .../WorkspaceDependenciesEditor.svelte | 52 +++---- .../WorkspaceDependenciesSettings.svelte | 1 - 3 files changed, 95 insertions(+), 92 deletions(-) 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 @@