diff --git a/frontend/src/components/AgentLogsSection.tsx b/frontend/src/components/AgentLogsSection.tsx new file mode 100644 index 00000000..ccb56bdf --- /dev/null +++ b/frontend/src/components/AgentLogsSection.tsx @@ -0,0 +1,112 @@ +/** Agent logs card sub-component for WorkItemDetailPanel. */ + +import type { AgentInfo, AgentStatusValue } from "../api/agents"; +import { STATUS_COLORS } from "./workItemDetailPanelUtils"; + +interface AgentLogsSectionProps { + agentInfo: AgentInfo | null; + agentStatus: AgentStatusValue | null; + agentLog: string[]; +} + +/** + * Renders the "Agent Logs" card when an agent is active, or a placeholder + * when no agent is assigned to the story. + */ +export function AgentLogsSection({ + agentInfo, + agentStatus, + agentLog, +}: AgentLogsSectionProps) { + if (!agentInfo) { + return ( +