diff --git a/apps/app/app/(routes)/agents/page.tsx b/apps/app/app/(routes)/agents/page.tsx new file mode 100644 index 0000000..152e191 --- /dev/null +++ b/apps/app/app/(routes)/agents/page.tsx @@ -0,0 +1,77 @@ +"use client"; + +import AgentsCreateDialog from "@/components/custom/agents/AgentsCreateDialog"; +import { Badge } from "@/components/ui/badge"; +import { Card } from "@/components/ui/card"; +import { ImagePlus } from "lucide-react"; +type Agent = { + id: string; + img: JSX.Element; + state: string; + name: string; + description: string; +}; + +const agents: Agent[] = [ + { + id: "1", + name: "AI Assistant", + description: + "A conversational AI for answering customer queries. A conversational AI for answering customer queries. A conversational AI for answering customer queries.", + img: , + state: "Active", + }, + { + id: "2", + name: "NLP", + description: "An AI agent that provides product recommendations.", + img: , + state: "Inactive", + }, + { + id: "3", + name: "Vision AI", + description: "An AI agent for image recognition tasks.", + img: , + state: "Active", + }, + { + id: "4", + name: "Sentiment Analyzer", + description: "Analyzes customer feedback and determines sentiment.", + img: , + state: "Active", + }, +]; +export default function page() { + return ( +
+ +
+ {agents.map((ag) => { + return ( + +
+
+ {ag.img} +
+

{ag.name}

+
+

{ag.description}

+
+ + {ag.state} + +
+
+ ); + })} +
+
+ ); +} diff --git a/apps/app/app/(routes)/dashboard/page.tsx b/apps/app/app/(routes)/dashboard/page.tsx index daa3375..450bd50 100644 --- a/apps/app/app/(routes)/dashboard/page.tsx +++ b/apps/app/app/(routes)/dashboard/page.tsx @@ -146,14 +146,16 @@ const chats = [ export default function Home() { return ( -
+
- + Overview Analytics - +
@@ -180,8 +182,7 @@ export default function Home() { strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" - className="h-4 w-4 text-muted-foreground" - > + className="h-4 w-4 text-muted-foreground"> @@ -205,8 +206,7 @@ export default function Home() { strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" - className="h-4 w-4 text-muted-foreground" - > + className="h-4 w-4 text-muted-foreground"> @@ -231,8 +231,7 @@ export default function Home() { strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" - className="h-4 w-4 text-muted-foreground" - > + className="h-4 w-4 text-muted-foreground"> diff --git a/apps/app/components/custom/agents/AgentsCreateDialog.tsx b/apps/app/components/custom/agents/AgentsCreateDialog.tsx new file mode 100644 index 0000000..9f2b9cb --- /dev/null +++ b/apps/app/components/custom/agents/AgentsCreateDialog.tsx @@ -0,0 +1,116 @@ +"use client"; +import InfoBreadCrumb from "@/components/custom/infobar/bread-crumb"; +import { useState } from "react"; +import { + AlertDialog, + AlertDialogAction, + AlertDialogCancel, + AlertDialogContent, + AlertDialogDescription, + AlertDialogFooter, + AlertDialogTitle, + AlertDialogTrigger, +} from "@/components/ui/alert-dialog"; + +import { + DropdownMenu, + DropdownMenuContent, + DropdownMenuRadioGroup, + DropdownMenuRadioItem, + DropdownMenuTrigger, +} from "@/components/ui/dropdown-menu"; +import { Button } from "@/components/ui/button"; +import { Input } from "@/components/ui/input"; +import { Label } from "@/components/ui/label"; +import { Textarea } from "@/components/ui/textarea"; +import { Plus } from "lucide-react"; +export default function AgentsCreateDialog() { + return ( + <> + +
+ + + + +
+ + + Create Agent + + Fill in the details to create a new agent. + +
+
+ + +
+
+ +