From e09625026e37f0b238b5f7caf784cc4e4abc5b02 Mon Sep 17 00:00:00 2001 From: Umesh Nagare Date: Sun, 12 Jan 2025 21:13:25 +0530 Subject: [PATCH 1/4] add agents management page --- apps/app/app/(routes)/agents/page.tsx | 13 ++ .../custom/agents/AgentsCreateDialog.tsx | 116 ++++++++++++++++++ .../custom/dashboard/chat-table.tsx | 2 +- .../custom/dashboard/mail-table.tsx | 2 +- .../components/custom/infobar/bread-crumb.tsx | 4 +- apps/app/components/pages/agents.tsx | 76 ++++++++++++ 6 files changed, 210 insertions(+), 3 deletions(-) create mode 100644 apps/app/app/(routes)/agents/page.tsx create mode 100644 apps/app/components/custom/agents/AgentsCreateDialog.tsx create mode 100644 apps/app/components/pages/agents.tsx diff --git a/apps/app/app/(routes)/agents/page.tsx b/apps/app/app/(routes)/agents/page.tsx new file mode 100644 index 0000000..db8e526 --- /dev/null +++ b/apps/app/app/(routes)/agents/page.tsx @@ -0,0 +1,13 @@ +"use client"; + +import Agents from "@/components/pages/agents"; +import AgentsCreateDialog from "@/components/custom/agents/AgentsCreateDialog"; + +export default function page() { + return ( +
+ + +
+ ); +} 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. + +
+
+ + +
+
+ +