Feat : Log recorder
Some checks failed
release / build (push) Successful in 29s
release / verify-windows (push) Failing after 1m0s

This commit is contained in:
jeanotx32
2026-08-11 22:34:45 +02:00
parent 03b1963150
commit 1dd3959f29
16 changed files with 631 additions and 53 deletions

View File

@@ -9,9 +9,17 @@ interface Props {
onToggleSelect: (id: string) => void;
onCommand: (id: string, action: AgentAction, params?: Record<string, unknown>) => Promise<void>;
onOpenSettings: (agent: AgentView) => void;
onOpenHistory: (agent: AgentView) => void;
}
export function AgentCard({ agent, selected, onToggleSelect, onCommand, onOpenSettings }: Props) {
export function AgentCard({
agent,
selected,
onToggleSelect,
onCommand,
onOpenSettings,
onOpenHistory,
}: Props) {
const [pending, setPending] = useState<AgentAction | null>(null);
const { status } = agent;
@@ -67,6 +75,9 @@ export function AgentCard({ agent, selected, onToggleSelect, onCommand, onOpenSe
</span>
)}
<span className={`badge ${state.tone}`}>{state.label}</span>
<button className="icon" onClick={() => onOpenHistory(agent)} title="Historique de cette VM">
🕘
</button>
<button className="icon" onClick={() => onOpenSettings(agent)} title="Configuration">
</button>