From 5fd1aa825d33a329da2299e5590cdf28af3a48ba Mon Sep 17 00:00:00 2001 From: arkml Date: Fri, 12 Sep 2025 17:30:16 +0530 Subject: [PATCH] fixed use step completion --- .../app/projects/[projectId]/workflow/components/TopBar.tsx | 3 ++- .../app/projects/[projectId]/workflow/workflow_editor.tsx | 6 ++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/rowboat/app/projects/[projectId]/workflow/components/TopBar.tsx b/apps/rowboat/app/projects/[projectId]/workflow/components/TopBar.tsx index 7bd45994..312dc7b4 100644 --- a/apps/rowboat/app/projects/[projectId]/workflow/components/TopBar.tsx +++ b/apps/rowboat/app/projects/[projectId]/workflow/components/TopBar.tsx @@ -97,7 +97,8 @@ export function TopBar({ const step1Complete = hasAgentInstructionChanges; const step2Complete = hasPlaygroundTested && hasAgentInstructionChanges; // Keep publish as a prerequisite for Use completion, but remove it from the visual steps - const step4Complete = hasClickedUse && hasPublished && hasPlaygroundTested && hasAgentInstructionChanges; + // Mark "Use" complete as soon as a Use Assistant option is clicked + const step4Complete = hasClickedUse; // Determine current step (first incomplete visual step: 1 -> 2 -> 4) const currentStep = !step1Complete ? 1 : !step2Complete ? 2 : !step4Complete ? 4 : null; diff --git a/apps/rowboat/app/projects/[projectId]/workflow/workflow_editor.tsx b/apps/rowboat/app/projects/[projectId]/workflow/workflow_editor.tsx index aca8ada2..72f1e94d 100644 --- a/apps/rowboat/app/projects/[projectId]/workflow/workflow_editor.tsx +++ b/apps/rowboat/app/projects/[projectId]/workflow/workflow_editor.tsx @@ -1191,10 +1191,8 @@ export function WorkflowEditor({ // Ensure chat is visible and collapse left panel setActivePanel('playground'); setViewMode((prev: ViewMode) => prev); - updateViewMode( - viewMode === 'three_all' ? 'three_all' : - (viewMode === 'two_agents_skipper' ? 'two_agents_chat' : 'two_chat_skipper') - ); + // Expand Chat to full view: hide Copilot panel and collapse Agents panel + updateViewMode('two_agents_chat'); setIsLeftPanelCollapsed(true); }, [updateViewMode, viewMode]);