diff --git a/LocalMind-Frontend/src/app/routes/AppRoutes.tsx b/LocalMind-Frontend/src/app/routes/AppRoutes.tsx index af480f1..4d82ea8 100644 --- a/LocalMind-Frontend/src/app/routes/AppRoutes.tsx +++ b/LocalMind-Frontend/src/app/routes/AppRoutes.tsx @@ -2,6 +2,8 @@ import React from 'react' import { Route, Routes } from 'react-router-dom' import HomePage from '../../features/Dashboard/V1/Component/Pages/HomePage' import LoginPage from '../../shared/component/v1/LoginPage' +import Agents from "../../features/Dashboard/V1/Component/Pages/Agents"; + const AppRoutes: React.FC = () => { return ( @@ -17,6 +19,9 @@ const AppRoutes: React.FC = () => { {/* Forgot Password Page - TODO: Create ForgotPasswordPage component */} } /> + {/* Agents Page */} + } /> + {/* Chat Page */} diff --git a/LocalMind-Frontend/src/app/routes/UserRoutes.tsx b/LocalMind-Frontend/src/app/routes/UserRoutes.tsx index e69de29..0b45cc7 100644 --- a/LocalMind-Frontend/src/app/routes/UserRoutes.tsx +++ b/LocalMind-Frontend/src/app/routes/UserRoutes.tsx @@ -0,0 +1 @@ +import Agents from "../features/Dashboard/V1/Component/Pages/Agents"; 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..c784b63 --- /dev/null +++ b/LocalMind-Frontend/src/features/Dashboard/V1/Component/AgentCard.tsx @@ -0,0 +1,83 @@ +import React from "react"; + +export type AgentType = "" | "planner" | "executor"; + +export type Agent = { + id: string; + name: string; + type: AgentType; + systemPrompt: string; + task: string; + priority: number; + active: boolean; + tools: string[]; +}; + + +type Props = { + agent: Agent; + onChange: (agent: Agent) => void; + onRemove: () => void; +}; + +const AgentCard: React.FC = ({ agent, onChange, onRemove }) => { + return ( +
+ onChange({ ...agent, name: e.target.value })} + /> + +
+ + + +
+ +