From 5cbbdd15694e2e3a57791a8ac569e9129cde31d7 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sat, 15 Nov 2025 09:26:33 +0000 Subject: [PATCH] completionId: cgen-59a80ab0a5be411bbccd038db1a006b2 cgen-59a80ab0a5be411bbccd038db1a006b2 --- client/pages/dashboards/NexusDashboard.tsx | 63 +++++++--------------- 1 file changed, 19 insertions(+), 44 deletions(-) diff --git a/client/pages/dashboards/NexusDashboard.tsx b/client/pages/dashboards/NexusDashboard.tsx index a23a60e0..c1ae5702 100644 --- a/client/pages/dashboards/NexusDashboard.tsx +++ b/client/pages/dashboards/NexusDashboard.tsx @@ -705,56 +705,31 @@ export default function NexusDashboard() { {/* Contracts Tab */} - - - My Active Contracts & Payment History - Track your active work and payments - - - {contracts.length === 0 ? ( -
- -

No contracts yet

-
- ) : ( -
- {contracts.map((contract: any) => ( -
-
-
-

{contract.title}

-

with {contract.creator?.name}

-
- {contract.status} -
- -
-
-

Total Value

-

${contract.total_amount?.toLocaleString()}

-
-
-

Paid

-

${(contract.paid_amount || 0).toLocaleString()}

-
-
-

Remaining

-

${((contract.total_amount || 0) - (contract.paid_amount || 0)).toLocaleString()}

-
-
-
- ))} -
- )} -
-
+ ({ + id: c.id, + title: c.title || "Untitled Contract", + creator_name: c.creator?.full_name || "Creator", + status: c.status || "active", + total_amount: c.total_amount || 0, + paid_amount: c.payments?.reduce((sum: number, p: any) => sum + (p.amount || 0), 0) || 0, + start_date: c.start_date, + end_date: c.end_date, + description: c.description, + milestones: c.milestones || [], + }))} + title="My Active Contracts" + description="Track all active contracts with creators" + type="client" + accentColor="blue" + /> {/* Payment History */} {paymentHistory.length > 0 && ( Payment History - Recent payments made + Recent payments made to creators