Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

fix(kanban): remove duplicate pills, fix scroll, TabBar jumps to swimlane

Alexac01452d6e79
diff --git a/src/renderer/components/TabBar.tsx b/src/renderer/components/TabBar.tsx
index 7e269aabf..0caa87c37 100644
--- a/src/renderer/components/TabBar.tsx
+++ b/src/renderer/components/TabBar.tsx
@@ -1,7 +1,7 @@
import { useEffect, useMemo, useRef, useState } from 'react'
import { createPortal } from 'react-dom'
import { useProjects } from '../state/projects'
-import { useViewMode, viewFor } from '../state/viewMode'
+import { isGlobalKanbanOpen, useViewMode, viewFor } from '../state/viewMode'
import { useAgentStatus } from '../state/agentStatus'
import { useSettings } from '../state/settings'
import { accountsForProject, sshAccountsHint, systemAccountDisplay } from '../state/workspace'
@@ -287,8 +287,12 @@ export function TabBar({
}}
onClick={() => {
if (editingId) return
- // An unavailable tab distinguishes by its bound session source: a dropped RELAY
- // tab reconnects on click (Stage 4 Task 7), a missing local folder is inert.
+ // In global swimlane overview, clicking the top project tab jumps to its
+ // swimlane instead of switching the canvas project (analog zu Cmd+1..9).
+ if (isGlobalKanbanOpen()) {
+ window.dispatchEvent(new CustomEvent('nodeterm:swimlane-jump', { detail: { projectId: p.id } }))
+ return
+ }
const action = tabClickAction(!!p.unavailable, sessionForProject(p.id).source)
if (action === 'switch') onSwitch(p.id)
else if (action === 'reconnect') onReconnect(p.id)
diff --git a/src/renderer/components/kanban/GlobalKanbanView.tsx b/src/renderer/components/kanban/GlobalKanbanView.tsx
index 5fd477893..4e647fe1c 100644
--- a/src/renderer/components/kanban/GlobalKanbanView.tsx
+++ b/src/renderer/components/kanban/GlobalKanbanView.tsx
@@ -365,20 +365,6 @@ export const GlobalKanbanView = memo(function GlobalKanbanView() {
✕
</button>
</div>
- <div className="global-kanban__nav">
- {projects.map((p, idx) => (
- <button
- key={p.id}
- className="global-kanban__pill"
- style={{ borderColor: p.color, ['--pill-color' as string]: p.color }}
- title={`Springe zu ${p.name} (Cmd+${idx+1})`}
- onClick={() => jumpTo(p.id)}
- >
- <span className="kanban-header__dot" style={{ background: p.color || '#888' }} />
- <span>{idx+1}. {p.name}</span>
- </button>
- ))}
- </div>
<div className="global-kanban__scroll">
{projects.map((p, idx) => {
const board = p.kanban ?? defaultKanban()
diff --git a/src/renderer/styles.css b/src/renderer/styles.css
index 3ed9c5ef3..1a12d34b7 100644
--- a/src/renderer/styles.css
+++ b/src/renderer/styles.css
@@ -8742,7 +8742,8 @@ button.group-node__setup:disabled {
/* same base as .kanban-overlay but with vertical scroll for swimlanes */
}
.global-kanban__scroll {
- flex: 1;
+ flex: 1 1 0;
+ min-height: 0;
overflow-y: auto;
overflow-x: hidden;
display: flex;