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(kanban): show owning project in card modal header
Igor Schlumberger49396de3fbb1
diff --git a/src/renderer/components/kanban/CardModal.test.tsx b/src/renderer/components/kanban/CardModal.test.tsxindex 6dd257c44..3bff7f009 100644--- a/src/renderer/components/kanban/CardModal.test.tsx+++ b/src/renderer/components/kanban/CardModal.test.tsx@@ -160,6 +160,55 @@ describe('CardModal', () => {expect(good.querySelector('.node-icon svg')).toBeTruthy()})+ it.each([+ { projectName: 'Example project', projectColor: '#32d74b', columnTitle: 'In Progress' },+ { projectName: 'A very long project name with <literal> characters', projectColor: undefined, columnTitle: null },+ { projectName: undefined, projectColor: undefined, columnTitle: 'To Do' }+ ])('shows the owning project in the header: $projectName', ({ projectName, projectColor, columnTitle }) => {+ const root = createRoot(host)+ const session: KanbanSession = {+ id: 'header-note', title: 'Review generated documentation', color: '#ffd60a',+ kind: 'sticky', text: 'Review generated documentation', spawn: {}+ }+ act(() => root.render(+ <CardModal+ projectId="p1"+ session={session}+ projectName={projectName}+ projectColor={projectColor}+ columnTitle={columnTitle}+ board={board}+ onChangeBoard={vi.fn()}+ onClose={vi.fn()}+ onOpenCanvas={vi.fn()}+ onRename={vi.fn()}+ onEditSticky={vi.fn()}+ onSetIcon={vi.fn()}+ onBrowserNav={vi.fn()}+ />+ ))++ const identity = document.body.querySelector<HTMLElement>('.kanban-modal__identity')!+ expect(identity.querySelector<HTMLElement>('.kanban-modal__title')!.title).toBe(session.title)+ const column = identity.querySelector<HTMLElement>('.kanban-modal__column')!+ expect(column.textContent).toBe(columnTitle ?? 'Ungrouped')+ expect(column.title).toBe(columnTitle ?? 'Ungrouped')+ const project = identity.querySelector<HTMLElement>('.kanban-modal__project')+ if (projectName) {+ expect(project!.textContent).toBe(projectName)+ expect(project!.title).toBe(projectName)+ expect(project!.getAttribute('aria-label')).toBe(`Project: ${projectName}`)+ expect(project!.previousElementSibling?.textContent).toBe(session.title)+ expect(project!.nextElementSibling).toBe(column)+ const dot = project!.querySelector<HTMLElement>('.kanban-modal__project-dot')!+ expect(dot.style.background).toBe(projectColor ? 'rgb(50, 215, 75)' : 'currentcolor')+ expect(dot.getAttribute('aria-hidden')).toBe('true')+ } else {+ expect(project).toBeNull()+ }+ act(() => root.unmount())+ })+it('writes through raw textarea value on sticky note edit (including whitespace and newlines)', () => {const session: KanbanSession = {id: 'node-sticky-1',diff --git a/src/renderer/components/kanban/CardModal.tsx b/src/renderer/components/kanban/CardModal.tsxindex e436c6bd7..34419c367 100644--- a/src/renderer/components/kanban/CardModal.tsx+++ b/src/renderer/components/kanban/CardModal.tsx@@ -79,6 +79,9 @@ interface CardModalProps {* here is the app's local session), so anything that depends on which machine the node runs* on resolves through this id: the LIVE chip (R57) and the "Share live link" action (H4). */projectId: string+ /** Owning project, supplied by the board (not necessarily the active project in Omni). */+ projectName?: string+ projectColor?: string/** Column title shown as a chip; null = Ungrouped. */columnTitle: string | null/** The live board + its pruned commit — the Members/Due strip edits through them. */@@ -115,7 +118,7 @@ interface CardModalProps {* canvas under it) stay mounted. Terminal cards carry the node header's actions too:* search / dictate / AI-name / the ⌘M view — ChatPanel or the output markdown, the same face the* canvas node shows (the node itself is hidden under the board). */-export function CardModal({ session, projectId, columnTitle, board, onChangeBoard, onClose, portsProjectId, onOpenCanvas, onRename, onEditSticky, onBrowserNav, onSetIcon, onOpenIssue, mentionables, team, onTravel }: CardModalProps) {+export function CardModal({ session, projectId, projectName, projectColor, columnTitle, board, onChangeBoard, onClose, portsProjectId, onOpenCanvas, onRename, onEditSticky, onBrowserNav, onSetIcon, onOpenIssue, mentionables, team, onTravel }: CardModalProps) {const { api } = useSession()// The header slot decides "icon or smiley" on the NORMALIZED value, the answer NodeIconView// itself gives — on the raw one, an invalid stored icon drew an empty, un-muted slot.@@ -376,31 +379,40 @@ export function CardModal({ session, projectId, columnTitle, board, onChangeBoar>{sessionIcon ? <NodeIconView icon={sessionIcon} size={16} /> : <IconSmiley />}</button>- {editingTitle ? (- <input- className="kanban-modal__rename"- autoFocus- value={title}- onChange={(e) => setTitle(e.target.value)}- onBlur={commitTitle}- onKeyDown={(e) => {- // Esc is owned by the capture-phase handler (cancels the edit).- if (e.key === 'Enter') commitTitle()- }}- />- ) : (- <span- className="kanban-modal__title"- onClick={() => {- if (session.kind === 'sticky') return // a note's label IS its first line- setTitle(session.title)- setEditingTitle(true)- }}- >- {session.title}- </span>- )}- <span className="kanban-modal__column">{columnTitle ?? 'Ungrouped'}</span>+ <div className="kanban-modal__identity">+ {editingTitle ? (+ <input+ className="kanban-modal__rename"+ autoFocus+ value={title}+ onChange={(e) => setTitle(e.target.value)}+ onBlur={commitTitle}+ onKeyDown={(e) => {+ // Esc is owned by the capture-phase handler (cancels the edit).+ if (e.key === 'Enter') commitTitle()+ }}+ />+ ) : (+ <span+ className="kanban-modal__title"+ title={session.title}+ onClick={() => {+ if (session.kind === 'sticky') return // a note's label IS its first line+ setTitle(session.title)+ setEditingTitle(true)+ }}+ >+ {session.title}+ </span>+ )}+ {projectName && (+ <span className="kanban-modal__project" title={projectName} aria-label={`Project: ${projectName}`}>+ <span className="kanban-modal__project-dot" style={{ background: projectColor || 'currentColor' }} aria-hidden="true" />+ <span className="kanban-modal__project-name">{projectName}</span>+ </span>+ )}+ <span className="kanban-modal__column" title={columnTitle ?? 'Ungrouped'}>{columnTitle ?? 'Ungrouped'}</span>+ </div>{isTerminal && onOpenIssue && <IssueRefChip issueRef={session.issueRef} onOpen={onOpenIssue} />}{isTerminal && team && team.length > 0 && onTravel && <TeamProgressChip stations={team} onTravel={onTravel} />}{/* The same Ports chip as the canvas node header. Opening a port places the browser nodediff --git a/src/renderer/components/kanban/GlobalKanbanView.tsx b/src/renderer/components/kanban/GlobalKanbanView.tsxindex c250363cd..daca4c6a2 100644--- a/src/renderer/components/kanban/GlobalKanbanView.tsx+++ b/src/renderer/components/kanban/GlobalKanbanView.tsx@@ -55,6 +55,7 @@ import { stationNodeFromState } from '../../state/teamStations'interface SwimlaneProps {projectId: stringprojectName: string+ projectIndex: numberprojectColor?: stringboard: ProjectKanbansessions: KanbanSession[]@@ -85,7 +86,7 @@ interface SwimlaneProps {}const Swimlane = memo(function Swimlane({- projectId, projectName, projectColor, board, sessions, ropes, nodes, onChangeBoard, onOpenNode, onCreateNode, onDeleteNode, onRenameNode, onEditSticky, onBrowserNav, onSetIcon, modalNodeId, onModalChange, liveTeams, highlight, liveLinkMenuItems+ projectId, projectName, projectIndex, projectColor, board, sessions, ropes, nodes, onChangeBoard, onOpenNode, onCreateNode, onDeleteNode, onRenameNode, onEditSticky, onBrowserNav, onSetIcon, modalNodeId, onModalChange, liveTeams, highlight, liveLinkMenuItems}: SwimlaneProps) {const dragRef = useRef<{ kind: 'column'; id: string } | { kind: 'card'; id: string } | null>(null)const setModalNodeId = useCallback((nodeId: string | null) => onModalChange(projectId, nodeId), [onModalChange, projectId])@@ -270,7 +271,7 @@ const Swimlane = memo(function Swimlane({><span className="kanban-swimlane__toggle" aria-hidden="true">{collapsed ? '▸' : '▾'}</span><span className="kanban-header__dot" style={{ background: projectColor || '#444' }} />- <span className="kanban-header__name">{projectName}</span>+ <span className="kanban-header__name">{projectIndex}. {projectName}</span><span className="kanban-swimlane__count">{sessions.length} sessions</span></div>{!collapsed && (@@ -308,6 +309,8 @@ const Swimlane = memo(function Swimlane({)}{modalNodeId && byId.has(modalNodeId) && (<CardModal+ projectName={projectName}+ projectColor={projectColor}session={byId.get(modalNodeId)!}projectId={projectId}columnTitle={columnForNode(board, modalNodeId)?.title ?? null}@@ -483,7 +486,8 @@ export const GlobalKanbanView = memo(function GlobalKanbanView({ live = null, on<Swimlanekey={p.id}projectId={p.id}- projectName={`${idx+1}. ${p.name}`}+ projectName={p.name}+ projectIndex={idx + 1}projectColor={p.color}board={board}sessions={sessions}diff --git a/src/renderer/components/kanban/KanbanView.tsx b/src/renderer/components/kanban/KanbanView.tsxindex 62dc9c9e4..4239bc24f 100644--- a/src/renderer/components/kanban/KanbanView.tsx+++ b/src/renderer/components/kanban/KanbanView.tsx@@ -1252,6 +1252,8 @@ export const KanbanView = memo(function KanbanView({)}{modalNodeId && byId.has(modalNodeId) && (<CardModal+ projectName={projectName}+ projectColor={projectColor}session={byId.get(modalNodeId)!}projectId={projectId}mentionables={mentionables}diff --git a/src/renderer/styles.css b/src/renderer/styles.cssindex 15c9b03bb..8572d3d17 100644--- a/src/renderer/styles.css+++ b/src/renderer/styles.css@@ -12239,12 +12239,49 @@ button.pull-checks__name {.kanban-modal__header {flex: 0 0 auto;display: flex;+ flex-wrap: wrap;align-items: center;gap: 10px;padding: 12px 14px;border-bottom: 1px solid rgba(var(--tint-rgb), 0.08);}+.kanban-modal__identity {+ display: flex;+ align-items: center;+ gap: 10px;+ flex: 1 1 280px;+ min-width: min(280px, 100%);+ overflow: hidden;+}+.kanban-modal__project {+ display: inline-flex;+ align-items: center;+ gap: 6px;+ flex: 0 1 auto;+ min-width: 72px;+ max-width: 220px;+ box-sizing: border-box;+ border: 1px solid rgba(var(--tint-rgb), 0.18);+ border-radius: 4px;+ padding: 2px 6px;+ color: rgba(var(--tint-rgb), 0.8);+ font-size: 11px;+}+.kanban-modal__project-dot {+ width: 7px;+ height: 7px;+ flex: 0 0 7px;+ border-radius: 50%;+}+.kanban-modal__project-name {+ min-width: 0;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+}.kanban-modal__title {+ min-width: 0;+ flex: 0 1 auto;font-size: 14px;font-weight: 700;color: rgba(var(--tint-rgb), 0.92);@@ -12265,6 +12302,11 @@ button.pull-checks__name {outline: none;}.kanban-modal__column {+ min-width: 0;+ max-width: 150px;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;font-size: 10px;text-transform: uppercase;letter-spacing: 0.04em;@@ -12275,6 +12317,7 @@ button.pull-checks__name {margin-right: auto;}.kanban-modal__action {+ flex-shrink: 0;display: inline-flex;align-items: center;justify-content: center;