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 remote-tracking branch 'origin/main' into feat/kanban-board-ranks-views

review6e7e13867009
diff --cc src/renderer/components/kanban/KanbanView.tsx
index 268167eb1,2c1a8233b..97dbeeedf
--- a/src/renderer/components/kanban/KanbanView.tsx
+++ b/src/renderer/components/kanban/KanbanView.tsx
@@@ -299,28 -306,35 +321,52 @@@ export const KanbanView = memo(functio
// The serialised config is the epoch visible to the renderer. Reconnect when mappings change.
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [api, projectId, githubConfigKey, columnIdsKey, githubFilterKey, connectGitHub, githubRetry])
+ // A view's filters, applied. The chips are deliberately not touched — a view never carries them.
+ // A source the board cannot show (no GitHub on this board) falls back to every source.
+ const applyQuery = useCallback(
+ (q: KanbanViewQuery, k: ProjectKanban) => {
+ setSource(k.github ? q.source ?? 'all' : 'all')
+ setLabelFilter(q.labels ?? [])
+ setAssigneeFilter(q.assignees ?? [])
+ setColumnFilter(q.columns ?? [])
+ },
+ []
+ )
useEffect(() => {
- setSource('all')
setModalIssue(null)
+ setIssueMenu(null)
setStatusChips([])
+ // Entering a board (or switching projects under it) restores the view this user last applied
+ // there; a view a teammate has since deleted is simply not found.
+ const k = boardRef.current
+ const remembered = useKanbanDisplay.getState().activeViewId(projectId)
+ const view = Array.isArray(k.views) ? k.views.find((v) => v.id === remembered) : undefined
+ applyQuery(view?.query ?? {}, k)
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [projectId])
+ // A node's `#N` chip asked for its issue (openIssueOnBoard). Open the issue's summary once the
+ // issue lane has loaded; when the board cannot show it — no GitHub sync on this board, another
+ // repository, a closed issue on a page not fetched, a lane that failed — open it on GitHub
+ // instead. Never a silent no-op: the chip was clicked, something opens.
+ const requestedIssue = useViewMode((s) => s.requestedIssue)
+ useEffect(() => {
+ if (!requestedIssue) return
+ // Still connecting: wait for the lane (this effect re-runs on every store change).
+ if (board.github && (!github || github.loading)) return
+ const key = issueKey(requestedIssue)
+ const found = key && board.github
+ ? Object.values(github?.pages ?? {})
+ .flatMap((page) => page.items)
+ .find((item) => issueKey(issueRefFromHtmlUrl(item.htmlUrl, item.number)) === key)
+ : undefined
+ useViewMode.getState().clearIssueRequest()
+ if (found) {
+ setModalIssue({ item: found, kind: 'issue' })
+ return
+ }
+ const url = issueUrl(requestedIssue)
+ if (url) void api.shell.openExternal(url)
+ }, [requestedIssue, github, board.github, api])
useEffect(() => {
if (!modalIssue || !github) return
const source = modalIssue.kind === 'pull' ? github.pullPages : github.pages
@@@ -1042,33 -992,17 +1150,42 @@@
status={github?.issueStatus[modalIssue.item.number]}
onMove={(columnId) => handleMoveGitHub(modalIssue.item, columnId)}
onClose={() => setModalIssue(null)}
+ startMenu={modalIssue.kind === 'issue' && issueAgentMenu
+ ? () => issueAgentMenu(modalIssue.item)
+ : undefined}
+ runs={modalIssue.kind === 'issue' ? runsFor(modalIssue.item) : NO_ISSUE_RUNS}
+ onOpenRun={(nodeId) => {
+ setModalIssue(null)
+ setModalNodeId(nodeId)
+ }}
+ showRunHistory={modalIssue.kind === 'issue'}
/>
)}
+ {viewsMenu && (
+ <ContextMenu
+ x={viewsMenu.x}
+ y={viewsMenu.y}
+ zIndex={60}
+ items={viewsMenuItems()}
+ onClose={() => setViewsMenu(null)}
+ />
+ )}
+ {pendingViewDelete && (
+ <ConfirmDialog
+ message={`Delete the view "${pendingViewDelete.name}"? Views are saved with the board, so it goes for everyone who opens it.`}
+ confirmLabel="Delete view"
+ danger
+ onCancel={() => setPendingViewDelete(null)}
+ onConfirm={() => {
+ const gone = pendingViewDelete
+ setPendingViewDelete(null)
+ // Re-resolved at confirm time: the board can have changed while the dialog was up.
+ const next = deleteView(boardRef.current, gone.id)
+ if (next !== boardRef.current) commit(next)
+ if (useKanbanDisplay.getState().activeViewId(projectId) === gone.id) setActiveViewId(projectId, undefined)
+ }}
+ />
+ )}
{pendingCategory && (
<ConfirmDialog
message={pendingCategory.message}
diff --cc src/renderer/components/kanban/SessionCard.tsx
index 8dc833e9a,b68ec4ed3..c59d49388
--- a/src/renderer/components/kanban/SessionCard.tsx
+++ b/src/renderer/components/kanban/SessionCard.tsx
@@@ -8,8 -8,9 +8,10 @@@ import { NodeIconView } from '../NodeIc
import { LabelChips } from './LabelChips'
import { PRIORITIES } from './CardMetaBar'
import type { KanbanSession } from './KanbanView'
+ import type { IssueRef } from '@shared/github-issue-ref'
+ import { IssueRefChip } from '../IssueRefChip'
import { cardBadge } from '../../lib/kanbanStatusChips'
+import { cardAssignees } from '@shared/kanban-labels'
const PRIO_COLOR = Object.fromEntries(PRIORITIES.map((p) => [p.id, p.color])) as Record<KanbanPriority, string>