From 160712de50af8456689e3801805b85bbc87afc47 Mon Sep 17 00:00:00 2001 From: Hibryda Date: Sat, 7 Mar 2026 16:33:39 +0100 Subject: [PATCH] refactor(v3): remove dead v2 components and empty directories Delete 7 components no longer used in v3 Mission Control (~1,836 lines): TilingGrid, PaneContainer, PaneHeader, SessionList, SshSessionList, SshDialog, SettingsDialog. Empty directories (Layout/, Sidebar/, Settings/, SSH/) removed. --- .../components/Layout/PaneContainer.svelte | 113 ----- .../lib/components/Layout/PaneHeader.svelte | 44 -- .../lib/components/Layout/TilingGrid.svelte | 328 ------------- v2/src/lib/components/SSH/SshDialog.svelte | 281 ------------ .../lib/components/SSH/SshSessionList.svelte | 263 ----------- .../components/Settings/SettingsDialog.svelte | 433 ------------------ .../lib/components/Sidebar/SessionList.svelte | 374 --------------- 7 files changed, 1836 deletions(-) delete mode 100644 v2/src/lib/components/Layout/PaneContainer.svelte delete mode 100644 v2/src/lib/components/Layout/PaneHeader.svelte delete mode 100644 v2/src/lib/components/Layout/TilingGrid.svelte delete mode 100644 v2/src/lib/components/SSH/SshDialog.svelte delete mode 100644 v2/src/lib/components/SSH/SshSessionList.svelte delete mode 100644 v2/src/lib/components/Settings/SettingsDialog.svelte delete mode 100644 v2/src/lib/components/Sidebar/SessionList.svelte diff --git a/v2/src/lib/components/Layout/PaneContainer.svelte b/v2/src/lib/components/Layout/PaneContainer.svelte deleted file mode 100644 index 51d6dcd..0000000 --- a/v2/src/lib/components/Layout/PaneContainer.svelte +++ /dev/null @@ -1,113 +0,0 @@ - - -
-
- {title} -
- {#if status !== 'idle'} - {status} - {/if} - {#if onDetach} - - {/if} - {#if onClose} - - {/if} -
-
-
- {@render children()} -
-
- - diff --git a/v2/src/lib/components/Layout/PaneHeader.svelte b/v2/src/lib/components/Layout/PaneHeader.svelte deleted file mode 100644 index 7766ef1..0000000 --- a/v2/src/lib/components/Layout/PaneHeader.svelte +++ /dev/null @@ -1,44 +0,0 @@ - - -
- {title} - {#if status !== 'idle'} - {status} - {/if} -
- - diff --git a/v2/src/lib/components/Layout/TilingGrid.svelte b/v2/src/lib/components/Layout/TilingGrid.svelte deleted file mode 100644 index 2efb820..0000000 --- a/v2/src/lib/components/Layout/TilingGrid.svelte +++ /dev/null @@ -1,328 +0,0 @@ - - -
- {#if panes.length === 0} -
-

BTerminal v2

-

Claude Agent Mission Control

-

Press Ctrl+N to open a terminal

-
- {:else} - {#each panes as pane, i (pane.id)} - {@const gridArea = getPaneGridArea(i)} - - -
focusPane(pane.id)} - > - { - if (pane.type === 'agent') { - const s = getAgentSession(pane.id); - if (s?.status === 'running' || s?.status === 'starting') { - stopAgent(pane.id).catch(() => {}); - } - } - removePane(pane.id); - }} - onDetach={detached ? undefined : () => handleDetach(pane)} - > - {#if pane.type === 'terminal'} - removePane(pane.id)} - /> - {:else if pane.type === 'agent'} - removePane(pane.id)} - /> - {:else if pane.type === 'ssh'} - removePane(pane.id)} - /> - {:else if pane.type === 'context'} - removePane(pane.id)} /> - {:else if pane.type === 'markdown'} - removePane(pane.id)} - /> - {:else} -
-

{pane.type} pane — coming soon

-
- {/if} -
-
- {/each} - {/if} -
- - -{#if panes.length > 1 && gridEl} - {#each { length: colCount - 1 } as _, ci} - -
startColDrag(ci, e)} - >
- {/each} - {#each { length: rowCount - 1 } as _, ri} - -
startRowDrag(ri, e)} - >
- {/each} -{/if} - - diff --git a/v2/src/lib/components/SSH/SshDialog.svelte b/v2/src/lib/components/SSH/SshDialog.svelte deleted file mode 100644 index fa00248..0000000 --- a/v2/src/lib/components/SSH/SshDialog.svelte +++ /dev/null @@ -1,281 +0,0 @@ - - -{#if open} - -
- -
- -
-{/if} - - diff --git a/v2/src/lib/components/SSH/SshSessionList.svelte b/v2/src/lib/components/SSH/SshSessionList.svelte deleted file mode 100644 index 660f42e..0000000 --- a/v2/src/lib/components/SSH/SshSessionList.svelte +++ /dev/null @@ -1,263 +0,0 @@ - - -
-
-

SSH

- -
- - {#if sessions.length === 0} -
-

No SSH sessions.

-
- {:else} - {@const groups = grouped()} - {#each [...groups.entries()] as [folder, folderSessions] (folder)} - {#if folder} -
{folder}
- {/if} - - {/each} - {/if} -
- - { dialogOpen = false; }} - onSaved={loadSessions} -/> - - diff --git a/v2/src/lib/components/Settings/SettingsDialog.svelte b/v2/src/lib/components/Settings/SettingsDialog.svelte deleted file mode 100644 index e50b5b3..0000000 --- a/v2/src/lib/components/Settings/SettingsDialog.svelte +++ /dev/null @@ -1,433 +0,0 @@ - - -{#if open} - -
- -
- -
-{/if} - - diff --git a/v2/src/lib/components/Sidebar/SessionList.svelte b/v2/src/lib/components/Sidebar/SessionList.svelte deleted file mode 100644 index baba61a..0000000 --- a/v2/src/lib/components/Sidebar/SessionList.svelte +++ /dev/null @@ -1,374 +0,0 @@ - - -
-
-

Sessions

-
- - - - -
- -
- -
- {#each presets as p} - - {/each} -
- - {#if panes.length === 0} -
-

No sessions yet.

-

Ctrl+N terminal / Ctrl+Shift+N agent

-
- {:else} -
    - {#snippet paneItem(pane: Pane)} -
  • - - -
  • - {/snippet} - - {#if grouped.has('')} - {#each grouped.get('')! as pane (pane.id)} - {@render paneItem(pane)} - {/each} - {/if} - - {#each [...grouped.entries()].filter(([k]) => k !== '') as [groupName, groupPanes] (groupName)} -
  • toggleGroup(groupName)}> - {collapsed.has(groupName) ? '\u25B6' : '\u25BC'} - {groupName} - {groupPanes.length} -
  • - {#if !collapsed.has(groupName)} - {#each groupPanes as pane (pane.id)} - {@render paneItem(pane)} - {/each} - {/if} - {/each} -
- {/if} - -
- -
- -