From 621375bc40feb78eda6ed375d3e9a37968d1e8fc Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Fri, 1 May 2026 14:50:41 +0000 Subject: [PATCH] all --- .../components/flows/CreateActionsFlow.svelte | 63 ++++++++++--------- .../src/lib/components/home/ItemsList.svelte | 23 +++++++ .../src/lib/components/home/TreeView.svelte | 10 +-- .../src/routes/(root)/(logged)/+page.svelte | 12 ---- 4 files changed, 63 insertions(+), 45 deletions(-) diff --git a/frontend/src/lib/components/flows/CreateActionsFlow.svelte b/frontend/src/lib/components/flows/CreateActionsFlow.svelte index 73f8cfedba..9ac7cc1886 100644 --- a/frontend/src/lib/components/flows/CreateActionsFlow.svelte +++ b/frontend/src/lib/components/flows/CreateActionsFlow.svelte @@ -9,15 +9,12 @@ import { importFlowStore } from '$lib/components/flows/flowStore.svelte' import { importScriptStore } from '$lib/components/scripts/scriptStore.svelte' import Modal from '$lib/components/common/modal/Modal.svelte' - import Toggle from '$lib/components/Toggle.svelte' import Tabs from '$lib/components/common/tabs/Tabs.svelte' import Tab from '$lib/components/common/tabs/Tab.svelte' import { PythonIcon, TypeScriptIcon } from '$lib/components/common/languageIcons' - import { Code2, Loader2, Plus } from 'lucide-svelte' + import { Code2, Loader2, NetworkIcon, Plus } from 'lucide-svelte' import YAML from 'yaml' - const SKIP_FLOW_MODAL_KEY = 'windmill_skip_flow_modal' - let drawer: Drawer | undefined = $state(undefined) let wacDrawer: Drawer | undefined = $state(undefined) let pendingRaw: string | undefined = $state(undefined) @@ -26,9 +23,6 @@ let wacImportType: 'yaml' | 'json' = $state('yaml') let flowModalOpen = $state(false) let wacHovered = $state(false) - let skipModal = $state( - typeof localStorage !== 'undefined' && localStorage.getItem(SKIP_FLOW_MODAL_KEY) === 'true' - ) async function importRaw() { $importFlowStore = @@ -46,11 +40,7 @@ } function handleFlowClick() { - if (skipModal) { - goto(`${base}/flows/add?nodraft=true`) - } else { - flowModalOpen = true - } + flowModalOpen = true } function selectFlowEditor() { @@ -68,9 +58,9 @@ goto(`${base}/scripts/add?nodraft=true&wac=typescript`) } - function toggleSkipModal() { - skipModal = !skipModal - localStorage.setItem(SKIP_FLOW_MODAL_KEY, String(skipModal)) + function selectPipeline() { + flowModalOpen = false + goto(`${base}/pipeline`) } @@ -113,9 +103,13 @@ - + +
-
+
-
-
- - Always use the Flow editor (skip this modal) + +
diff --git a/frontend/src/lib/components/home/ItemsList.svelte b/frontend/src/lib/components/home/ItemsList.svelte index f95dca3c79..d558582c4d 100644 --- a/frontend/src/lib/components/home/ItemsList.svelte +++ b/frontend/src/lib/components/home/ItemsList.svelte @@ -45,6 +45,8 @@ import { getContext, untrack } from 'svelte' import { triggerableByAI } from '$lib/actions/triggerableByAI.svelte' import TextInput from '../text_input/TextInput.svelte' + import { NetworkIcon } from 'lucide-svelte' + import { base } from '$lib/base' interface Props { filter?: string subtab?: 'flow' | 'script' | 'app' @@ -594,6 +596,27 @@ /> {:else}
+ + {#if filter === ''} + {#each [...pipelineFolders].sort() as folder (folder)} + + + + Pipeline · f/{folder} + + {/each} + {/if} {#each (items ?? []).slice(0, nbDisplayed) as item (item.type + '/' + item.path + (item.hash ? '/' + item.hash : ''))} {#if hasPipeline && isFolder(item)} + -
- Pipeline - Open pipeline editor -
+ Pipeline
{/if} {#each item.items.slice(0, showMax) as subItem, index ((subItem['path'] ? subItem['type'] + '__' + subItem['path'] + '__' + index : undefined) ?? 'folder__' + subItem['folderName'] + '__' + index)} diff --git a/frontend/src/routes/(root)/(logged)/+page.svelte b/frontend/src/routes/(root)/(logged)/+page.svelte index 0f4da20194..f357354594 100644 --- a/frontend/src/routes/(root)/(logged)/+page.svelte +++ b/frontend/src/routes/(root)/(logged)/+page.svelte @@ -22,7 +22,6 @@ Loader2, Code, LayoutDashboard, - NetworkIcon, PlugZap } from 'lucide-svelte' import { hubBaseUrlStore } from '$lib/stores' @@ -302,17 +301,6 @@ {#if !$userStore?.operator && showCreateButtons} {#if HOME_SHOW_CREATE_FLOW}{/if} - {#if HOME_SHOW_CREATE_APP}{/if} {/if}