diff --git a/app/(dashboard)/task/component/ClientGrid.tsx b/app/(dashboard)/task/component/ClientGrid.tsx index 90bead3..fec0f6a 100644 --- a/app/(dashboard)/task/component/ClientGrid.tsx +++ b/app/(dashboard)/task/component/ClientGrid.tsx @@ -18,6 +18,11 @@ import { useState } from 'react'; import { useRouter } from 'next/navigation'; import FormClient from './FormClient'; import { ConfirmDeleteWithInput } from '@/components/modal/ConfirmDeleteWithInput'; +import { + HoverCard, HoverCardContent, HoverCardTrigger, +} from "@/components/ui/hover-card" +import { cn } from '@/lib/utils'; +import BadgeStatus from '@/components/ui/badge-status'; export default function ClientGrid({ clients }: { clients: IClient[] }) { const router = useRouter(); @@ -70,10 +75,44 @@ export default function ClientGrid({ clients }: { clients: IClient[] }) { className="w-full h-full object-cover group-hover:scale-110 transition-transform duration-500" />
+
+ + +
+
+ {client.status_name.toLowerCase() === 'active' && + + } +
+
+ + {client.status_name} + +
+ + + +
Status Summary
+
This is status summary information from WO or IM related to this client.
+
+ {client.project_status_summary.map((item, key) => +
+ +
{item.total}
+
+ )} +
+
+
+ +

{client.name}

-

{client.end_user_name}

+ {/*

{client.end_user_name}

*/}
diff --git a/app/(dashboard)/task/page.tsx b/app/(dashboard)/task/page.tsx index 1e2b5d7..89fb940 100644 --- a/app/(dashboard)/task/page.tsx +++ b/app/(dashboard)/task/page.tsx @@ -30,7 +30,6 @@ export default async function ClientsPage({ searchParams }: Props) { return (
- {/* The Shell manages the Search Input, Tabs, and "Add Client" Modal */} {/* Render the correct view based on the URL */} diff --git a/components/ui/hover-card.tsx b/components/ui/hover-card.tsx new file mode 100644 index 0000000..91e869c --- /dev/null +++ b/components/ui/hover-card.tsx @@ -0,0 +1,44 @@ +"use client" + +import * as React from "react" +import { HoverCard as HoverCardPrimitive } from "radix-ui" + +import { cn } from "@/lib/utils" + +function HoverCard({ + ...props +}: React.ComponentProps) { + return +} + +function HoverCardTrigger({ + ...props +}: React.ComponentProps) { + return ( + + ) +} + +function HoverCardContent({ + className, + align = "center", + sideOffset = 4, + ...props +}: React.ComponentProps) { + return ( + + + + ) +} + +export { HoverCard, HoverCardTrigger, HoverCardContent }