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.
TypeScript adhdagent-orchestrationai-agentscanvasclaude-codecodexcoding-agentsdeveloper-toolselectrongeminilinuxmacosmultiplexeropencodeparallel-agentsterminalterminal-emulatorterminal-multiplexertmuxworkspace-manager
feat(ui): give the group frame's actions the shared tooltip
Bas Miliusd51f0b170ffe
diff --git a/src/renderer/nodes/GroupNode.tsx b/src/renderer/nodes/GroupNode.tsxindex 2c028315a..631d54af8 100644--- a/src/renderer/nodes/GroupNode.tsx+++ b/src/renderer/nodes/GroupNode.tsx@@ -1,4 +1,5 @@import { useEffect, useRef, useState } from 'react'+import { Tooltip } from '../components/Tooltip'import { IconClose, IconUngroup } from '../components/icons'import { NodeResizer, useReactFlow, type NodeProps } from '@xyflow/react'import { NODE_MIN_SIZES } from '../lib/nodeSizing'@@ -165,12 +166,14 @@ export function GroupNode({ id, data, selected }: NodeProps<CanvasNode>) {/><div className="group-node__label">- <button- className="group-node__dot nodrag"- style={{ background: data.color }}- title="Color"- onClick={() => setShowColors((v) => !v)}- />+ <Tooltip label="Color">+ <button+ className="group-node__dot nodrag"+ style={{ background: data.color }}+ aria-label="Color"+ onClick={() => setShowColors((v) => !v)}+ />+ </Tooltip>{showColors && (<div className="color-popover">{NODE_COLORS.map((c) => (@@ -238,6 +241,9 @@ export function GroupNode({ id, data, selected }: NodeProps<CanvasNode>) {// PROJECT lane, so it can never re-attach a worktree group's run — clicking it would// leave this chip failed and its nodes armed forever. Re-running here re-attaches the// group's lane, and a `done` from the new run releases them.+ // Keeps a native `title` while the frame's action buttons moved to Tooltip: the+ // bubble is `white-space: nowrap`, so these four explanatory lines would render as+ // one bar running off the window.(setupRun.kind === 'setup' && setupRun.state === 'failed' ? (<buttonclassName={`group-node__setup group-node__setup--${setupBusy ? 'running' : 'failed'} nodrag`}@@ -267,47 +273,55 @@ export function GroupNode({ id, data, selected }: NodeProps<CanvasNode>) {</span>))}{!stale && (- <button- className="group-node__wt-btn"- title="Merge to main"- onClick={() => worktreeActionHandler?.(id, 'merge')}- >- ⤴- </button>+ <Tooltip label="Merge to main">+ <button+ className="group-node__wt-btn"+ aria-label="Merge to main"+ onClick={() => worktreeActionHandler?.(id, 'merge')}+ >+ ⤴+ </button>+ </Tooltip>)}- <button- className="group-node__wt-btn"- title={+ <Tooltip+ label={stale? 'Unbind (the directory is gone — also prunes the stale git registration)': 'Unbind worktree (keeps the worktree on disk)'}- onClick={() => worktreeActionHandler?.(id, 'unbind')}>- Unbind- </button>- {!stale && (<buttonclassName="group-node__wt-btn"- title="Remove worktree"- onClick={() => worktreeActionHandler?.(id, 'remove')}+ onClick={() => worktreeActionHandler?.(id, 'unbind')}>- <IconClose />+ Unbind</button>+ </Tooltip>+ {!stale && (+ <Tooltip label="Remove worktree">+ <button+ className="group-node__wt-btn"+ aria-label="Remove worktree"+ onClick={() => worktreeActionHandler?.(id, 'remove')}+ >+ <IconClose />+ </button>+ </Tooltip>)}</div>)}</div><div className="group-node__actions nodrag">- <button- className="group-node__ungroup"- title="Ungroup (keeps nodes)"- aria-label="Ungroup (keeps nodes)"- onClick={ungroup}- >- <IconUngroup />- </button>+ <Tooltip label="Ungroup (keeps nodes)">+ <button+ className="group-node__ungroup"+ aria-label="Ungroup (keeps nodes)"+ onClick={ungroup}+ >+ <IconUngroup />+ </button>+ </Tooltip></div></div>)diff --git a/src/renderer/styles.css b/src/renderer/styles.cssindex 6f2812492..462cbcd0d 100644--- a/src/renderer/styles.css+++ b/src/renderer/styles.css@@ -5835,6 +5835,15 @@ body,display: none;}+/* A tooltip wraps its trigger in a span, so inside the pill, the worktree chip and the actions row+ the WRAPPER is the flex item, not the button. Without this the fixed-size buttons would shrink+ under the 180px name input instead of holding their 11px / 22px boxes. */+.group-node__label > .tooltip-trigger,+.group-node__wt > .tooltip-trigger,+.group-node__actions > .tooltip-trigger {+ flex: none;+}+.group-node__dot {width: 11px;height: 11px;