diff --git a/apps/ui/src/components/views/board-view/components/kanban-card/agent-info-panel.tsx b/apps/ui/src/components/views/board-view/components/kanban-card/agent-info-panel.tsx index 5d4107619..b36dea204 100644 --- a/apps/ui/src/components/views/board-view/components/kanban-card/agent-info-panel.tsx +++ b/apps/ui/src/components/views/board-view/components/kanban-card/agent-info-panel.tsx @@ -128,116 +128,130 @@ export function AgentInfoPanel({ // Agent Info Panel for non-backlog cards if (showAgentInfo && feature.status !== 'backlog' && agentInfo) { return ( -
- {/* Model & Phase */} -
-
- - {formatModelName(feature.model ?? DEFAULT_MODEL)} -
- {agentInfo.currentPhase && ( -
- {agentInfo.currentPhase} + <> +
+ {/* Model & Phase */} +
+
+ + {formatModelName(feature.model ?? DEFAULT_MODEL)}
- )} -
+ {agentInfo.currentPhase && ( +
+ {agentInfo.currentPhase} +
+ )} +
- {/* Task List Progress */} - {agentInfo.todos.length > 0 && ( -
-
- - - {agentInfo.todos.filter((t) => t.status === 'completed').length}/ - {agentInfo.todos.length} tasks - -
-
- {agentInfo.todos.slice(0, 3).map((todo, idx) => ( -
- {todo.status === 'completed' ? ( - - ) : todo.status === 'in_progress' ? ( - - ) : ( - - )} - 0 && ( +
+
+ + + {agentInfo.todos.filter((t) => t.status === 'completed').length}/ + {agentInfo.todos.length} tasks + +
+
+ {agentInfo.todos.slice(0, 3).map((todo, idx) => ( +
+ {todo.status === 'completed' ? ( + + ) : todo.status === 'in_progress' ? ( + + ) : ( + )} - > - {todo.content} - -
- ))} - {agentInfo.todos.length > 3 && ( -

- +{agentInfo.todos.length - 3} more -

- )} + + {todo.content} + +
+ ))} + {agentInfo.todos.length > 3 && ( +

+ +{agentInfo.todos.length - 3} more +

+ )} +
-
- )} + )} - {/* Summary for waiting_approval and verified */} - {(feature.status === 'waiting_approval' || feature.status === 'verified') && ( - <> - {(feature.summary || summary || agentInfo.summary) && ( -
-
-
- - Summary + {/* Summary for waiting_approval and verified */} + {(feature.status === 'waiting_approval' || feature.status === 'verified') && ( + <> + {(feature.summary || summary || agentInfo.summary) && ( +
+
+
+ + Summary +
+
- +

+ {feature.summary || summary || agentInfo.summary} +

-

- {feature.summary || summary || agentInfo.summary} -

-
- )} - {!feature.summary && !summary && !agentInfo.summary && agentInfo.toolCallCount > 0 && ( -
- - - {agentInfo.toolCallCount} tool calls - - {agentInfo.todos.length > 0 && ( - - - {agentInfo.todos.filter((t) => t.status === 'completed').length} tasks done - + )} + {!feature.summary && + !summary && + !agentInfo.summary && + agentInfo.toolCallCount > 0 && ( +
+ + + {agentInfo.toolCallCount} tool calls + + {agentInfo.todos.length > 0 && ( + + + {agentInfo.todos.filter((t) => t.status === 'completed').length} tasks done + + )} +
)} -
- )} - - )} -
+ + )} +
+ {/* SummaryDialog must be rendered alongside the expand button */} + + ); }