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(group): dashed frame + floating label pill, fix radius mismatch
enesc0eae9009528
diff --git a/src/renderer/nodes/GroupNode.tsx b/src/renderer/nodes/GroupNode.tsxindex 5f4f1e99d..47425acbe 100644--- a/src/renderer/nodes/GroupNode.tsx+++ b/src/renderer/nodes/GroupNode.tsx@@ -3,9 +3,10 @@ import { NodeResizer, useReactFlow, type NodeProps } from '@xyflow/react'import { NODE_COLORS, ungroupNodes, type CanvasNode } from '../state/workspace'/**- * A group frame: a labeled, resizable, translucent box that contains child nodes.- * Children are real React Flow nodes parented to this one, so dragging the frame moves- * them together. The frame renders behind its children (it appears first in the array).+ * A group frame: a dashed, rounded, translucent box that contains child nodes. A floating+ * label pill (color dot + name) sits on the top border; ungroup/× appear top-right on hover.+ * Children are real React Flow nodes parented to this one, so dragging the frame moves them+ * together. The frame renders behind its children (it appears first in the array).*/export function GroupNode({ id, data, selected }: NodeProps<CanvasNode>) {const { updateNodeData, setNodes } = useReactFlow()@@ -14,12 +15,26 @@ export function GroupNode({ id, data, selected }: NodeProps<CanvasNode>) {const ungroup = () => setNodes((ns) => ungroupNodes(ns as CanvasNode[], id))return (- <div className="group-node" style={{ borderColor: data.color, background: `${data.color}12` }}>- <NodeResizer minWidth={200} minHeight={140} isVisible={selected} color={data.color} />+ <div+ className={`group-node${selected ? ' selected' : ''}`}+ style={{+ borderColor: data.color,+ background: `${data.color}0f`,+ // Rounded selection ring (box-shadow follows border-radius, unlike the resizer line).+ boxShadow: selected ? `0 0 0 1.5px ${data.color}` : undefined+ }}+ >+ <NodeResizer+ minWidth={200}+ minHeight={140}+ isVisible={selected}+ color={data.color}+ lineStyle={{ borderColor: 'transparent' }}+ />- <div className="group-node__header">+ <div className="group-node__label"><button- className="term-node__color"+ className="group-node__dot nodrag"style={{ background: data.color }}title="Color"onClick={() => setShowColors((v) => !v)}@@ -39,15 +54,22 @@ export function GroupNode({ id, data, selected }: NodeProps<CanvasNode>) {</div>)}<input- className="term-node__title nodrag"+ className="group-node__name nodrag"value={data.title}spellCheck={false}onChange={(e) => updateNodeData(id, { title: e.target.value })}/>- <button className="group-node__ungroup nodrag" title="Ungroup" onClick={ungroup}>+ </div>++ <div className="group-node__actions nodrag">+ <button className="group-node__ungroup" title="Ungroup" onClick={ungroup}>ungroup</button>- <button className="term-node__close" title="Remove group (keeps nodes)" onClick={ungroup}>+ <button+ className="group-node__close"+ title="Remove group (keeps nodes)"+ onClick={ungroup}+ >×</button></div>diff --git a/src/renderer/styles.css b/src/renderer/styles.cssindex 36af2849f..8d4949687 100644--- a/src/renderer/styles.css+++ b/src/renderer/styles.css@@ -2270,31 +2270,85 @@ body,width: 100%;height: 100%;border: 1.5px dashed;- border-radius: 12px;- display: flex;- flex-direction: column;+ border-radius: 14px;+ box-sizing: border-box;+ cursor: grab;}-.group-node__header {- display: flex;+/* Floating label pill, sitting on the top border (opaque so it "cuts" the dashes). */+.group-node__label {+ position: absolute;+ top: 0;+ left: 16px;+ transform: translateY(-50%);+ display: inline-flex;align-items: center;- gap: 8px;- padding: 5px 8px;- cursor: grab;+ gap: 7px;+ max-width: 70%;+ padding: 3px 11px;+ background: #141416;+ border: 1px solid var(--border);+ border-radius: 999px;user-select: none;}-.group-node__ungroup {+.group-node__dot {+ width: 9px;+ height: 9px;+ flex: none;+ padding: 0;+ border: none;+ border-radius: 50%;+ cursor: pointer;+}++.group-node__name {+ width: 130px;background: transparent;+ border: none;+ outline: none;+ color: var(--text);+ font-size: 12px;+ font-weight: 600;+ cursor: text;+}++/* ungroup / × — top-right, revealed on hover or when selected. */+.group-node__actions {+ position: absolute;+ top: 0;+ right: 14px;+ transform: translateY(-50%);+ display: flex;+ align-items: center;+ gap: 5px;+ opacity: 0;+ transition: opacity 0.12s;+}++.group-node:hover .group-node__actions,+.group-node.selected .group-node__actions {+ opacity: 1;+}++.group-node__ungroup,+.group-node__close {+ background: #141416;border: 1px solid var(--border);color: var(--muted);- border-radius: 6px;+ border-radius: 7px;font-size: 11px;- padding: 2px 7px;+ padding: 3px 8px;cursor: pointer;}-.group-node__ungroup:hover {+.group-node__close {+ padding: 3px 8px;+ line-height: 1;+}++.group-node__ungroup:hover,+.group-node__close:hover {background: var(--panel-header);color: var(--text);}