From ba65b24f7a80224c1c845b43a5d6cda17c0d0b46 Mon Sep 17 00:00:00 2001 From: hugocasa Date: Fri, 25 Sep 2026 12:05:38 +0200 Subject: [PATCH] refactor: share the agent editor's pane notice as a PaneNotice component Co-Authored-By: Claude Opus 5.5 (1M context) --- .../common/paneNotice/PaneNotice.svelte | 26 ++++++++++++ .../flows/content/AgentEditorHost.svelte | 41 +++++++------------ 2 files changed, 41 insertions(+), 26 deletions(-) create mode 100644 frontend/src/lib/components/common/paneNotice/PaneNotice.svelte diff --git a/frontend/src/lib/components/common/paneNotice/PaneNotice.svelte b/frontend/src/lib/components/common/paneNotice/PaneNotice.svelte new file mode 100644 index 0000000000..b2d700e0ad --- /dev/null +++ b/frontend/src/lib/components/common/paneNotice/PaneNotice.svelte @@ -0,0 +1,26 @@ + + + +
+ + {@render children()} + {#if action} + + {/if} +
diff --git a/frontend/src/lib/components/flows/content/AgentEditorHost.svelte b/frontend/src/lib/components/flows/content/AgentEditorHost.svelte index ac20e76e2e..28e991475a 100644 --- a/frontend/src/lib/components/flows/content/AgentEditorHost.svelte +++ b/frontend/src/lib/components/flows/content/AgentEditorHost.svelte @@ -1,7 +1,8 @@