From 61aa2aad7d80e1d35620c5bff489a29ee04dea23 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Fri, 13 Feb 2026 21:43:10 +0000 Subject: [PATCH] fix: allow renaming of backend runnables in the UI --- .../components/flows/CreateActionsApp.svelte | 59 +------- .../RawAppInlineScriptPanelList.svelte | 47 +++++- .../components/raw_apps/RunnableRow.svelte | 137 +++++++++++++----- 3 files changed, 153 insertions(+), 90 deletions(-) diff --git a/frontend/src/lib/components/flows/CreateActionsApp.svelte b/frontend/src/lib/components/flows/CreateActionsApp.svelte index 638ef62b73..38332bb498 100644 --- a/frontend/src/lib/components/flows/CreateActionsApp.svelte +++ b/frontend/src/lib/components/flows/CreateActionsApp.svelte @@ -6,9 +6,8 @@ import Drawer from '$lib/components/common/drawer/Drawer.svelte' import DrawerContent from '$lib/components/common/drawer/DrawerContent.svelte' import Modal from '$lib/components/common/modal/Modal.svelte' - import { LayoutDashboard, Loader2, Plus, Code2, FlaskConical } from 'lucide-svelte' + import { LayoutDashboard, Loader2, Plus, Code2 } from 'lucide-svelte' import { importStore } from '../apps/store' - import Badge from '$lib/components/common/badge/Badge.svelte' import YAML from 'yaml' let drawer: Drawer | undefined = undefined @@ -16,9 +15,7 @@ let importType: 'yaml' | 'json' = $state('yaml') - // Modal states let appTypeModalOpen = $state(false) - let featurePreviewModalOpen = $state(false) async function importRaw() { $importStore = importType === 'yaml' ? YAML.parse(pendingRaw) : JSON.parse(pendingRaw) @@ -37,11 +34,6 @@ function selectFullCode() { appTypeModalOpen = false - featurePreviewModalOpen = true - } - - function confirmFullCode() { - featurePreviewModalOpen = false goto(`${base}/apps_raw/add?nodraft=true`) } @@ -116,59 +108,16 @@

Full-code App

Build with React or Svelte with full control and a powerful AI agent. + +

+ Better for complex apps or apps that require full flexibility and control.

-

-
- - - Preview (unstable) - -
- - -
-
- -
-

Full-code Apps are in Feature Preview

-

- This feature is not yet stable and may change significantly before it reaches General - Availability (GA), which is expected in January 2026. -

-
    -
  • APIs and interfaces may change without notice
  • -
  • Some functionality may be incomplete or buggy
  • -
  • Not recommended for production use yet
  • -
-
-
- -
- - -
-
-
- { selectedRunnable = id onSelect?.(id) @@ -85,6 +127,9 @@ selectedRunnable = undefined } }} + onRename={(newId) => renameRunnable(id, newId)} + onRequestEdit={() => (editingId = id)} + onCancelEdit={() => (editingId = undefined)} /> {/if} {/each} diff --git a/frontend/src/lib/components/raw_apps/RunnableRow.svelte b/frontend/src/lib/components/raw_apps/RunnableRow.svelte index 656713405f..0b901b365b 100644 --- a/frontend/src/lib/components/raw_apps/RunnableRow.svelte +++ b/frontend/src/lib/components/raw_apps/RunnableRow.svelte @@ -1,53 +1,122 @@ - + finishEdit(), + type: 'text' + }} + size="xs" + /> + +{:else} + +{/if}