From 91743c3cfbce22a72ca33feef4cd2fa4714a4282 Mon Sep 17 00:00:00 2001 From: HugoCasa Date: Wed, 7 Feb 2024 14:33:33 +0100 Subject: [PATCH] feat: violet ai branding + flow summary (#3171) * feat: violet ai branding + flow summary * fix: npm run check --- .../src/lib/components/ScriptBuilder.svelte | 89 ++--- .../copilot/CodeCompletionStatus.svelte | 9 +- .../src/lib/components/copilot/CronGen.svelte | 8 +- .../copilot/FlowCopilotStatus.svelte | 8 +- .../lib/components/copilot/MetadataGen.svelte | 287 +++++++++----- .../copilot/MetadataGenToggle.svelte | 16 +- .../lib/components/copilot/ScriptFix.svelte | 4 +- .../lib/components/copilot/ScriptGen.svelte | 18 +- .../flows/common/FlowCardHeader.svelte | 11 +- .../flows/content/FlowSettings.svelte | 371 +++++++++--------- .../components/flows/map/VirtualItem.svelte | 2 +- openflow.openapi.yaml | 22 -- 12 files changed, 449 insertions(+), 396 deletions(-) diff --git a/frontend/src/lib/components/ScriptBuilder.svelte b/frontend/src/lib/components/ScriptBuilder.svelte index b4b2db15a6..b5180860bf 100644 --- a/frontend/src/lib/components/ScriptBuilder.svelte +++ b/frontend/src/lib/components/ScriptBuilder.svelte @@ -35,7 +35,6 @@ Settings, X } from 'lucide-svelte' - import autosize from 'svelte-autosize' import { SCRIPT_SHOW_BASH, SCRIPT_SHOW_GO } from '$lib/consts' import UnsavedConfirmationModal from './common/confirmationModal/UnsavedConfirmationModal.svelte' import { sendUserToast } from '$lib/toast' @@ -369,8 +368,6 @@ let dirtyPath = false let selectedTab: 'metadata' | 'runtime' | 'ui' = 'metadata' - - let descriptionTextArea: HTMLTextAreaElement | undefined @@ -411,38 +408,31 @@
- { - if (initialPath == '' && script.summary?.length > 0 && !dirtyPath) { - path?.setName( - script.summary - .toLowerCase() - .replace(/[^a-z0-9_]/g, '_') - .replace(/-+/g, '_') - .replace(/^-|-$/g, '') - ) - } - }} - > - updateFocus(true)} - on:blur={() => updateFocus(false)} - bind:value={script.summary} - placeholder={!active ? 'Short summary to be displayed when listed' : ''} + - -