This repository was archived by the owner on Sep 2, 2026. It is now read-only.
Repository navigation
[Spec #27] Task detail panel - #65
Merged
Merged
Conversation
…presence lifecycle (#52) - Store: ephemeral boardCardDetailId selection (open/close, cleared on board close) - Panel: fixed-width TaskDetailPanel with branch/agent-state/diff-stats vitals - Lifecycle: pure resolver + hook close the panel when the card leaves the board - Cards select on click (capture-phase stopPropagation keeps board open)
…eactivity, lint fixes (#55)
…tore rename overrides (#54)
Fixes a type error where the sort comparator on the vault-only row list was typed as the full TaskDetailConversationRow union, hiding the .session field behind the live-row branch.
…vation (#54) Live rows previously always showed getAgentRowPrimaryText(entry), so a rename via setTabCustomTitle had no visible effect: titleByPaneKey was declared as a param but never populated. Build it from each row's tab via the same getAgentRowConversationName precedence sidebar/dashboard rows use (manual rename > quick-command label > generated title > live title), so a rename reliably changes what the row displays.
…ename (#54) startRename clicked the wrapping <span data-conversation-title>, not the inner title <button> that owns the click handler — a DOM .click() only bubbles up from the target, never down into a descendant, so the menu's Rename item was a silent no-op. Lift editing state into the row item and drive EditableTitle as a controlled component instead. Adds task-detail-conversation-row.test.tsx covering focus/rename/dismiss (live rows) and resume/delete/resume-disabled (vault rows), mirroring AiVaultSessionRow.test.tsx's menu-interaction pattern.
…red reason, not guard's raw English (#55) The authority guard's decideStageWrite/decideFeatureBoardCardDrop builds its explanation string as hardcoded English sentences meant for logs/toasts, not UI copy. The stage-selector view-model rendered that string directly, which would fail localization gates and never translate. Build the selector's current-stage and per-option explanations from the structured DerivedWorkflowStage.reason/factId instead (the same data the guard derives from), translated per case like feature-board-stage-labels.ts. Gating (allowed/effectiveStage) still comes exclusively from decideFeatureBoardCardDrop, so no rule is duplicated.
# Conflicts: # src/renderer/src/components/feature-board/task-detail-panel/TaskDetailPanel.tsx # src/renderer/src/i18n/locales/en.json
64ix
marked this pull request as ready for review
August 25, 2026 10:32
… shared truncate-tooltip, click-time stage guard facts
…anel # Conflicts: # src/renderer/src/components/feature-board/FeatureBoardCard.tsx # src/renderer/src/components/feature-board/FeatureBoardPage.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the task detail panel: a board-attached inspector that opens when a card is clicked and closes when the card disappears. It gathers, in one place, everything a card used to hide — vitals (branch, agent state, diff stats), the conversations that touched the worktree (live agent panes and AI Vault transcripts, united), the stage selector with the authority guard's explanations, and a PR link/unlink row.
Built on the merged foundation specs — board skeleton (#24, #44) and stage authority guard (#23, #39). The right sidebar stays terminal-bound; this panel is ephemeral and board-scoped, so it never points at a ghost.
Spec & Tickets
Closes #27
Closes #52
Closes #54
Closes #55
Acceptance criteria
#52 — skeleton, vitals, lifecycle
ui-board-card-detail.test.ts;use-task-detail-panel-selection.test.tsxtask-detail-panel-selection.test.ts(pure resolver),use-task-detail-panel-selection.test.tsx(hook)task-detail-panel-view-model.test.ts—buildTaskDetailVitals, incl. folder-workspace (no branch) and every diff-stats statusboardCardDetailId#54 — conversations
task-detail-conversation-rows.test.ts— union, worktree-path matching, and the dedupe rule (a transcript whose original pane is live is that row's history, so the live row wins)task-detail-conversation-row.test.tsx; icon via the sharedAgentIcon, state viaAgentStateDottask-detail-conversation-row.test.tsx— delegates toactivateTabAndFocusPanetask-detail-conversation-row.test.tsx— reuses the existing AI Vault resume flow; disabled when the transcript is not resumabletask-detail-conversation-row.test.tsx; live rename →updateTabTitle, vault rename → ephemeral override (see Decisions), dismiss →dropAgentStatus/dismissRetainedAgent, delete → existing vault delete action#55 — stage selector & PR row
task-detail-panel-stage-selector-model.test.ts;TaskDetailPanelStageSelector.test.tsxtask-detail-panel-stage-selector-model.test.ts— open PR, closed PR, and open issue each produce their own lock reason; component test asserts the disabled item renders itshippedreads as human-or-fact in the selectorTaskDetailPanelStageSelector.test.tsxasserts both rendered stringsTaskDetailPanelPrRow.test.tsx— link by number and by URL, invalid input, and unlink across provider slots; writes throughupdateWorktreeMetaallowed/effectiveStagecomes fromdecideFeatureBoardCardDrop→decideStageWrite→deriveWorkflowStage; the write path uses the same delegate withcallerKind: 'human', preserving the de-ship bookkeeping from #47Changes
Panel shell, selection, lifecycle
TaskDetailPanel.tsx— fixed-width board-attached inspector;FeatureBoardCard/FeatureBoardPageselect on click (capture-phasestopPropagationkeeps the board open).task-detail-panel-selection.ts+use-task-detail-panel-selection.ts— pure presence resolver plus its hook: when the selected card leaves the board, the panel closes.store/slices/ui.ts— ephemeralboardCardDetailId, cleared when the board closes.Vitals
task-detail-panel-view-model.ts— purebuildTaskDetailVitals: branch (null for folder workspaces), agent states in a deterministic display order, and diff stats projected from the existing branch-compare summary.Conversations
task-detail-conversation-rows.ts— pure union of live panes and vault transcripts, matched by worktree path, deduped so a live pane's own transcript doesn't double-render.use-task-detail-conversations.ts— wiring: scoped vault listing, live rows, and the five row actions.task-detail-conversation-row.tsx/task-detail-conversations-section.tsx— the row UI, reusing the existing agent-row and vault-row patterns.Stage selector & PR row
task-detail-panel-stage-selector-model.ts— pure projection: current stage, why it's held, per-option lock reasons, and theshippedhuman-or-fact split. Gating comes from the guard; the copy is localized from the structured derivation reason.use-worktree-stage-derivation.ts+use-task-detail-panel-stage-change.ts— shared derivation hook and the write path through the board-drop delegate.TaskDetailPanelStageSelector.tsx— built on the shadcnDropdownMenuprimitive.TaskDetailPanelPrRow.tsx+linked-review-slot-input.ts— link/unlink only, routed by provider slot. No assign/unassign: Orca's model has no Assigned PR (most-recent-activity-wins, spec 2).Localization
components.featureBoard.panel.*entries, including one key per governing-fact reason.Decisions
explanationfield is hardcoded English prose intended for logs and toasts, never localized. Rendering it in the panel would ship untranslated copy and trip the localization gates. → Resolution: the view-model reads the structuredDerivedWorkflowStage.reason/factIdand translates per case, mirroringfeature-board-stage-labels.ts. Gating still comes exclusively fromdecideFeatureBoardCardDrop, so no rule is duplicated.AiVaultSessionhas no rename surface — no title-override field, no IPC; transcript titles come from parsing. The ticket asks for an editable title on every row. → Resolution: live rows rename through the existing tab-levelupdateTabTitle; vault rows use an ephemeral renderer-side override keyed by session id, documented at its declaration as such rather than inventing new persistence.document.querySelector(...).click(), but that selector matched the wrapping<span>rather than the inner<button>holding the handler, and a DOM click bubbles up from its target, never down into descendants. → Resolution: the editing state was lifted into the row item andEditableTitlemade a controlled component, so no DOM querying is involved.getAgentRowConversationName, following the same precedence the sidebar and dashboard rows use. Simplification recorded: this panel lists whole sessions, so it does not carry the split-pane per-leaf title handling of the full hook.vaultConversationTitleOverrideshas no teardown purge, because it is keyed by vault session id rather than by pane or worktree — a renamed transcript's title should survive a worktree being removed and re-added, just as the transcript itself does. The map can therefore grow unbounded over very long app lifetimes. Non-blocking, recorded rather than papered over.donestate for transcripts with no live pane. → Resolution: absent liveness now renders as absent rather than as a completed agent.QA plan
review, and stages the declaration cannot reach are disabled with their own explanation.shippedby hand on a card with no merged PR → it reads "set by you".shipped.