From dadfff3bbd6da69170383d059a3e78a82598f622 Mon Sep 17 00:00:00 2001 From: adishchowdhury Date: Tue, 6 Jan 2026 12:46:14 +0530 Subject: [PATCH 01/12] Add AgentCard component for agent management --- .../Dashboard/V1/Component/AgentCard.tsx | 78 +++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 LocalMind-Frontend/src/features/Dashboard/V1/Component/AgentCard.tsx diff --git a/LocalMind-Frontend/src/features/Dashboard/V1/Component/AgentCard.tsx b/LocalMind-Frontend/src/features/Dashboard/V1/Component/AgentCard.tsx new file mode 100644 index 0000000..888ec4e --- /dev/null +++ b/LocalMind-Frontend/src/features/Dashboard/V1/Component/AgentCard.tsx @@ -0,0 +1,78 @@ +import React from "react"; + +export type Agent = { + id: number; + name: string; + type: string; + systemPrompt: string; + priority: number; + enabled: boolean; +}; + +type Props = { + agent: Agent; + onChange: (agent: Agent) => void; + onRemove: () => void; +}; + +const AgentCard: React.FC = ({ agent, onChange, onRemove }) => { + return ( +
+ onChange({ ...agent, name: e.target.value })} + /> + +
+ + + +
+ +