diff --git a/src/app/(app)/dashboard/page.tsx b/src/app/(app)/dashboard/page.tsx index e61ee9d..e63e357 100644 --- a/src/app/(app)/dashboard/page.tsx +++ b/src/app/(app)/dashboard/page.tsx @@ -151,10 +151,10 @@ export default function DashboardPage() {

Dashboard

-

Overview of your business

+

Overview of your business

-
+
{statCards.map((card) => ( @@ -171,17 +171,18 @@ export default function DashboardPage() { ))}
-
+
-
- - - Recent Quotes +
+ + + Recent Quotes + Quotes - + - Live + Live
@@ -192,46 +193,68 @@ export default function DashboardPage() {

No quotes yet

) : ( - - - - Quote # - Customer - Status - - - + <> +
+
+ + + Quote # + Customer + Status + + + + {recentQuotes.map((q) => ( + router.push(`/quotes/${q.id}`)} + > + {q.quote_number} + {q.expand?.customer?.customer || "—"} + + + {q.status.replace("_", " ")} + + + + ))} + +
+
+
{recentQuotes.map((q) => ( - router.push(`/quotes/${q.id}`)} > - {q.quote_number} - {q.expand?.customer?.customer || "—"} - - - {q.status.replace("_", " ")} - - - +
+

{q.quote_number}

+

{q.expand?.customer?.customer || "—"}

+
+ + {q.status.replace("_", " ")} + +
))} - - +
+ )} -
- - - Recent Orders +
+ + + Recent Orders + Orders - + - Live + Live
@@ -242,32 +265,53 @@ export default function DashboardPage() {

No orders yet

) : ( - - - - Order # - Company - Status - - - + <> +
+
+ + + Order # + Company + Status + + + + {recentOrders.map((o) => ( + router.push(`/orders/${o.id}`)} + > + {o.order_number} + {o.expand?.company?.company || "—"} + + + {o.status.replace("_", " ")} + + + + ))} + +
+
+
{recentOrders.map((o) => ( - router.push(`/orders/${o.id}`)} > - {o.order_number} - {o.expand?.company?.company || "—"} - - - {o.status.replace("_", " ")} - - - +
+

{o.order_number}

+

{o.expand?.company?.company || "—"}

+
+ + {o.status.replace("_", " ")} + +
))} - - +
+ )} diff --git a/src/app/(app)/quotes/page.tsx b/src/app/(app)/quotes/page.tsx index 619113f..75e7fe7 100644 --- a/src/app/(app)/quotes/page.tsx +++ b/src/app/(app)/quotes/page.tsx @@ -91,23 +91,23 @@ export default function QuotesPage() { return (
-
+

Quotes

-

Manage quote requests

+

Manage quote requests

-
+