From 2da3f84068b4d7efbb960b9c190d16966c204dc1 Mon Sep 17 00:00:00 2001 From: AndyMik90 Date: Sun, 15 Feb 2026 15:24:02 +0100 Subject: [PATCH] auto-claude: subtask-4-2 - Create conditional layout components for main/proj --- apps/frontend/src/renderer/App.tsx | 101 ++++++++++++++++++++++++++++- 1 file changed, 100 insertions(+), 1 deletion(-) diff --git a/apps/frontend/src/renderer/App.tsx b/apps/frontend/src/renderer/App.tsx index 2a43f7c9..5a8aba81 100644 --- a/apps/frontend/src/renderer/App.tsx +++ b/apps/frontend/src/renderer/App.tsx @@ -963,9 +963,108 @@ export function App() {
{renderViewComponent(windowConfig.view, windowConfig.projectId)}
+ ) : windowConfig?.type === 'project' && windowConfig.projectId ? ( + /* Project Mode - render all views for one project without project tabs */ + <> + setIsSettingsDialogOpen(true)} + onNewTaskClick={() => setIsNewTaskDialogOpen(true)} + activeView={activeView} + onViewChange={setActiveView} + /> +
+ {/* Main content area - no project tabs in project mode */} +
+ {(() => { + const project = projects.find((p) => p.id === windowConfig.projectId); + return project ? ( + <> + {activeView === 'kanban' && ( + setIsNewTaskDialogOpen(true)} + onRefresh={handleRefreshTasks} + isRefreshing={isRefreshingTasks} + /> + )} + {/* TerminalGrid is always mounted but hidden when not active to preserve terminal state */} +
+ setIsNewTaskDialogOpen(true)} + isActive={activeView === 'terminals'} + /> +
+ {activeView === 'roadmap' && ( + + )} + {activeView === 'context' && ( + + + + )} + {activeView === 'ideation' && ( + + )} + {activeView === 'insights' && ( + + )} + {activeView === 'github-issues' && ( + { + setSettingsInitialProjectSection('github'); + setIsSettingsDialogOpen(true); + }} + onNavigateToTask={handleGoToTask} + /> + )} + {activeView === 'gitlab-issues' && ( + { + setSettingsInitialProjectSection('gitlab'); + setIsSettingsDialogOpen(true); + }} + onNavigateToTask={handleGoToTask} + /> + )} + {/* GitHubPRs is always mounted but hidden when not active to preserve review state */} +
+ { + setSettingsInitialProjectSection('github'); + setIsSettingsDialogOpen(true); + }} + isActive={activeView === 'github-prs'} + /> +
+ {activeView === 'gitlab-merge-requests' && ( + { + setSettingsInitialProjectSection('gitlab'); + setIsSettingsDialogOpen(true); + }} + /> + )} + {activeView === 'changelog' && } + {activeView === 'worktrees' && ( + + )} + {activeView === 'agent-tools' && } + + ) : ( +
+ Project not found +
+ ); + })()} +
+
+ ) : ( + /* Main Mode - default layout with project tabs and all projects */ <> - {/* Sidebar - hidden in single-view mode */} setIsSettingsDialogOpen(true)} onNewTaskClick={() => setIsNewTaskDialogOpen(true)}