From 122d83d8f7a5af5a16250fe2b9c7d0d6e08a3b5e Mon Sep 17 00:00:00 2001 From: Akhilesh Sudhakar <55130408+akhisud3195@users.noreply.github.com> Date: Thu, 4 Sep 2025 11:05:43 +0400 Subject: [PATCH] Merge copilot and playground into single pane and prevent edits in live mode * Display copilot and playground as toggles * Auto-switch live mode to draft mode when changes are made to workflow or build mode is toggled on * Show playground / copilot alongside entity config in 3-pane * Make tool params non-bold * Fix panel resizing issues * Fix logic around transitions back to draft mode from live mode * Change test to chat in the toggle * Fix workflow consistency issues while switching between live and draft modes --- .../app/projects/[projectId]/copilot/app.tsx | 36 +- .../projects/[projectId]/playground/app.tsx | 34 +- .../playground/components/chat.tsx | 2 +- .../app/projects/[projectId]/workflow/app.tsx | 2 + .../workflow/components/TopBar.tsx | 224 +++++----- .../[projectId]/workflow/entity_list.tsx | 6 +- .../[projectId]/workflow/workflow_editor.tsx | 399 ++++++++++++------ .../components/common/compose-box-copilot.tsx | 6 +- .../components/common/panel-common.tsx | 29 +- .../components/common/tool-param-card.tsx | 2 +- 10 files changed, 487 insertions(+), 253 deletions(-) diff --git a/apps/rowboat/app/projects/[projectId]/copilot/app.tsx b/apps/rowboat/app/projects/[projectId]/copilot/app.tsx index b3704a15..cfd74b5f 100644 --- a/apps/rowboat/app/projects/[projectId]/copilot/app.tsx +++ b/apps/rowboat/app/projects/[projectId]/copilot/app.tsx @@ -269,7 +269,7 @@ const App = forwardRef<{ handleCopyChat: () => void; handleUserMessage: (message toolQuery={toolQuery} /> -
{responseError}
@@ -322,6 +322,8 @@ export const Copilot = forwardRef<{ handleUserMessage: (message: string) => void dispatch: (action: WorkflowDispatch) => void; isInitialState?: boolean; dataSources?: z.infer+ Seems like you're trying to edit the live workflow. Only the draft version can be modified. Changes will not be saved. +
+