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.

Merge pull request #588 from AlexanderWillner/feat/kanban-swimlanes

eneskirca882280aa251e
diff --cc src/renderer/components/TabBar.tsx
index b324be74a,41ac4506b..a9ec49ed2
--- a/src/renderer/components/TabBar.tsx
+++ b/src/renderer/components/TabBar.tsx
@@@ -1,7 -1,7 +1,7 @@@
-import { useEffect, useMemo, useRef, useState } from 'react'
+import { useEffect, useMemo, useRef, useState, type DragEvent } from 'react'
import { createPortal } from 'react-dom'
import { useProjects } from '../state/projects'
- import { useViewMode, viewFor } from '../state/viewMode'
+ import { isOmniKanbanEnabled, useViewMode, viewFor } from '../state/viewMode'
import { useAgentStatus } from '../state/agentStatus'
import { useSettings } from '../state/settings'
import { accountsForProject, sshAccountsHint, systemAccountDisplay } from '../state/workspace'
@@@ -244,25 -232,31 +249,26 @@@ export function TabBar(
<span className="brand__name">nodeterm</span>
</div>
+ {/* Projects group: the pill scrolls; the + is a SIBLING so it cannot scroll away
+ with the tabs (issue #375). End-zone drop lives on this wrapper (covers the
+ 4px gap and the +); per-tab handlers still stopPropagation. */}
<div
- className="tabbar__tabs"
- ref={tabsRef}
- onWheel={(e) => {
- // Translate a vertical mouse wheel into horizontal strip scrolling (trackpads
- // already produce deltaX). Nothing above the canvas scrolls vertically anyway.
- if (Math.abs(e.deltaY) > Math.abs(e.deltaX)) e.currentTarget.scrollLeft += e.deltaY
- }}
- // The strip itself is the "drop at the end" zone (per-tab handlers stopPropagation).
- onDragOver={(e) => {
- if (!dragId) return
- e.preventDefault()
- if (dropId !== '') setDropId('')
- }}
- onDrop={(e) => {
- if (!dragId) return
- e.preventDefault()
- onReorder(dragId, null)
- setDragId(null)
- setDropId(null)
- }}
+ className="tabbar__projects"
+ onDragOver={onEndZoneDragOver}
+ onDrop={onEndZoneDrop}
>
+ <div
+ className="tabbar__tabs"
+ ref={tabsRef}
+ onWheel={(e) => {
+ // Translate a vertical mouse wheel into horizontal strip scrolling (trackpads
+ // already produce deltaX). Nothing above the canvas scrolls vertically anyway.
+ if (Math.abs(e.deltaY) > Math.abs(e.deltaX)) e.currentTarget.scrollLeft += e.deltaY
+ }}
+ >
{projects.map((p) => {
- const active = p.id === activeId
+ const active = isGlobal ? (highlightedId ? p.id === highlightedId : p.id === activeId) : p.id === activeId
+ const swimlaneHighlight = isGlobal && p.id === highlightedId
const unreadCount = p.nodes.filter((n) => unreadSet.has(n.id)).length
return (
<div