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.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Cancel
+ Create
+
+
+
+ >
+ );
+}
+
+function ModelDropDownMenu() {
+ const [model, setModel] = useState("Claude");
+ const models = [
+ "Claude",
+ "Bert",
+ "Perplexity AI",
+ "Bard",
+ "Google Gemini",
+ "OpenAI",
+ ];
+ return (
+
+
+
+
+
+ setModel(val)}
+ >
+ {models.map((m) => (
+
+ {m}
+
+ ))}
+
+
+
+ );
+}
diff --git a/apps/app/components/custom/dashboard/chat-table.tsx b/apps/app/components/custom/dashboard/chat-table.tsx
index f474bed..efefb98 100644
--- a/apps/app/components/custom/dashboard/chat-table.tsx
+++ b/apps/app/components/custom/dashboard/chat-table.tsx
@@ -18,11 +18,11 @@ export const Chats: React.FC = ({ chats }) => {
return (
<>
-
+
- Ticket
+ Ticket
Status
Date
@@ -31,7 +31,7 @@ export const Chats: React.FC = ({ chats }) => {
{(isDropdownOpen ? chats : chats.slice(0, 5)).map(
(chat: any, i: number) => (
-
+
@@ -39,14 +39,13 @@ export const Chats: React.FC
= ({ chats }) => {
{chat.ticketId}
+ variant={`${chat.status === "open" ? "secondary" : "destructive"}`}>
{chat.status}
-
+
{chat.status2}
@@ -66,16 +65,15 @@ export const Chats: React.FC = ({ chats }) => {
- ),
+ )
)}
diff --git a/apps/app/components/custom/dashboard/mail-table.tsx b/apps/app/components/custom/dashboard/mail-table.tsx
index 8dbdbbe..6799a07 100644
--- a/apps/app/components/custom/dashboard/mail-table.tsx
+++ b/apps/app/components/custom/dashboard/mail-table.tsx
@@ -16,11 +16,11 @@ export const MailTable = ({ mails }: MailTableProps) => {
return (
<>
-
+
- Email
+ Email
Source
Date
@@ -28,8 +28,8 @@ export const MailTable = ({ mails }: MailTableProps) => {
{(isDropdownOpen ? mails : mails.slice(0, 5)).map((mail) => (
- {mail.Email}
-
+ {mail.Email}
+
{mail.Source}
{mail.date}
@@ -40,7 +40,7 @@ export const MailTable = ({ mails }: MailTableProps) => {
);
diff --git a/apps/app/components/custom/sidebar/quick-action-btn.tsx b/apps/app/components/custom/sidebar/quick-action-btn.tsx
index 762cb4f..3d1fcc6 100644
--- a/apps/app/components/custom/sidebar/quick-action-btn.tsx
+++ b/apps/app/components/custom/sidebar/quick-action-btn.tsx
@@ -11,8 +11,12 @@ import {
CommandList,
} from "@/components/ui/command";
-const QuickActionButton = () => {
- const [isOpen, setIsOpen] = useState(false);
+type QuickActionButtonProps = {
+ collapse: String;
+};
+
+const QuickActionButton: React.FC = ({ collapse }) => {
+ const [isOpen, setIsOpen] = useState(false);
const toggleOverlay = () => setIsOpen(!isOpen);
@@ -31,15 +35,16 @@ const QuickActionButton = () => {
return (
-
+ {collapse === "expanded" && (
+
+ )}
diff --git a/apps/app/components/custom/sidebar/sidebar.tsx b/apps/app/components/custom/sidebar/sidebar.tsx
index e34f3d5..dc82405 100644
--- a/apps/app/components/custom/sidebar/sidebar.tsx
+++ b/apps/app/components/custom/sidebar/sidebar.tsx
@@ -25,6 +25,7 @@ import {
SidebarMenu,
SidebarMenuButton,
SidebarMenuItem,
+ useSidebar,
} from "@/components/ui/sidebar";
import {
DropdownMenu,
@@ -100,7 +101,7 @@ const IntelItems = [
export function AppSidebar() {
const path = usePathname();
-
+ const {state} = useSidebar();
return (
@@ -137,8 +138,7 @@ export function AppSidebar() {
+ isActive={path.includes(item.url)}>
{item.title}
@@ -168,7 +168,7 @@ export function AppSidebar() {
-
+
);