From 8407ac148b96e7856ff8a839ea1a935ee0e63ea2 Mon Sep 17 00:00:00 2001 From: centdix <40307056+centdix@users.noreply.github.com> Date: Tue, 17 Jun 2025 11:24:50 +0200 Subject: [PATCH] nit: fix typo in ai form filling text (#5959) * differentiate flow from script * fix typing --- frontend/src/lib/components/ScriptBuilder.svelte | 1 + frontend/src/lib/components/apps/editor/GridViewer.svelte | 2 ++ frontend/src/lib/components/copilot/AIFormSettings.svelte | 3 ++- .../src/lib/components/flows/content/FlowSettings.svelte | 5 ++++- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/components/ScriptBuilder.svelte b/frontend/src/lib/components/ScriptBuilder.svelte index 876c4b4a65..f3320126dd 100644 --- a/frontend/src/lib/components/ScriptBuilder.svelte +++ b/frontend/src/lib/components/ScriptBuilder.svelte @@ -1085,6 +1085,7 @@
{/if} diff --git a/frontend/src/lib/components/apps/editor/GridViewer.svelte b/frontend/src/lib/components/apps/editor/GridViewer.svelte index e27f9e3eb9..24c34572eb 100644 --- a/frontend/src/lib/components/apps/editor/GridViewer.svelte +++ b/frontend/src/lib/components/apps/editor/GridViewer.svelte @@ -48,6 +48,7 @@ $: containerHeight = getContainerHeight(items, yPerPx, getComputedCols) const onResize = throttle(() => { + if (!getComputedCols) return items = specifyUndefinedColumns(items, getComputedCols, cols) dispatch('resize', { cols: getComputedCols, @@ -75,6 +76,7 @@ xPerPx = width / getComputedCols! if (!containerWidth) { + if (!getComputedCols) return items = specifyUndefinedColumns(items, getComputedCols, cols) dispatch('mount', { diff --git a/frontend/src/lib/components/copilot/AIFormSettings.svelte b/frontend/src/lib/components/copilot/AIFormSettings.svelte index 3454c192c0..7b8de1c47b 100644 --- a/frontend/src/lib/components/copilot/AIFormSettings.svelte +++ b/frontend/src/lib/components/copilot/AIFormSettings.svelte @@ -4,6 +4,7 @@ import Tooltip from '../Tooltip.svelte' export let prompt: string | undefined = undefined + export let type: 'flow' | 'script' = 'script'
@@ -18,7 +19,7 @@ } }} options={{ - right: 'Enable filling script inputs with AI' + right: `Enable filling ${type} inputs with AI` }} /> {#if prompt !== undefined} diff --git a/frontend/src/lib/components/flows/content/FlowSettings.svelte b/frontend/src/lib/components/flows/content/FlowSettings.svelte index cf5db3f978..b153a72534 100644 --- a/frontend/src/lib/components/flows/content/FlowSettings.svelte +++ b/frontend/src/lib/components/flows/content/FlowSettings.svelte @@ -126,7 +126,10 @@ {#if flowStore.val.schema} - + {/if}