From 31027a4c9c365de8a472e5b3b5649b87588a6d26 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 15 Jun 2026 15:19:15 +0200 Subject: [PATCH] Feature: Integrate comprehensive workflow support into the chat editor, including sidebar navigation, execution panels, and confirmation dialogs. --- src/App.jsx | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/src/App.jsx b/src/App.jsx index 03cca4e..a2d3405 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1407,6 +1407,12 @@ async function createNewChat() { > DBs +
handleSidebarClick('workflows')} + > + Flows +
handleSidebarClick('settings')} @@ -1508,8 +1514,11 @@ async function createNewChat() { onSelect={setActiveSettingsSubmenu} /> )} + {activeSidebarMode === 'workflows' && ( +
Create, validate, and test native workflows in the editor.
+ )}
- {activeSidebarMode !== 'settings' && ( + {(activeSidebarMode === 'chats' || activeSidebarMode === 'dbs') && (
{activeSidebarMode === 'chats' && ( @@ -1590,6 +1599,11 @@ async function createNewChat() { {`DB: ${chatLibrary.name}${chatLibraryStatusSuffix}`} )} + + {chatWorkflowSelection.mode === 'automatic' + ? 'Flow: Automatic' + : `Flow: ${selectedWorkflow?.name || 'Direct'}`} +
@@ -1643,6 +1657,7 @@ async function createNewChat() { ref={chatRef} onClick={handleChatFrameClick} > + {messages.map((m, i) => { const isEditingThis = m.role === 'user' && editingMessageIndex === i; return ( @@ -1817,6 +1832,12 @@ async function createNewChat() { isLibrarySyncing={isLibrarySyncing} libraries={libraries} setChatLibraryForSession={setChatLibraryForSession} + /> + setChatWorkflowForSession(activeSessionId, nextSelection)} />
)