From d67ab7eeaf4cc200d5e2737f09dfa9f516a872a8 Mon Sep 17 00:00:00 2001 From: Hibryda Date: Sun, 8 Mar 2026 03:47:42 +0100 Subject: [PATCH] feat(v3): collapsible terminal panel with status bar toggle --- .../components/Workspace/ProjectBox.svelte | 85 ++++++++++++++++++- 1 file changed, 81 insertions(+), 4 deletions(-) diff --git a/v2/src/lib/components/Workspace/ProjectBox.svelte b/v2/src/lib/components/Workspace/ProjectBox.svelte index ef1df20..16deefa 100644 --- a/v2/src/lib/components/Workspace/ProjectBox.svelte +++ b/v2/src/lib/components/Workspace/ProjectBox.svelte @@ -7,6 +7,7 @@ import TeamAgentsPanel from './TeamAgentsPanel.svelte'; import ProjectFiles from './ProjectFiles.svelte'; import ContextPane from '../Context/ContextPane.svelte'; + import { getTerminalTabs } from '../../stores/workspace.svelte'; interface Props { project: ProjectConfig; @@ -19,9 +20,17 @@ let accentVar = $derived(PROJECT_ACCENTS[slotIndex % PROJECT_ACCENTS.length]); let mainSessionId = $state(null); + let terminalExpanded = $state(false); type ProjectTab = 'claude' | 'files' | 'context'; let activeTab = $state('claude'); + + let termTabs = $derived(getTerminalTabs(project.id)); + let termTabCount = $derived(termTabs.length); + + function toggleTerminal() { + terminalExpanded = !terminalExpanded; + }
{#if activeTab === 'claude'} -
- +
+ + + {#if terminalExpanded} +
+ +
+ {/if}
{/if}
@@ -83,7 +108,7 @@