diff --git a/frontend/src/app/dashboard/page.tsx b/frontend/src/app/dashboard/page.tsx index fe54336..85ae0d8 100644 --- a/frontend/src/app/dashboard/page.tsx +++ b/frontend/src/app/dashboard/page.tsx @@ -1,24 +1,20 @@ "use client"; +import { useEffect, useState } from "react"; +import { useRouter } from "next/navigation"; import { BadgeDollarSign, Clock3, Loader2, - PartyPopper, RefreshCw, ShieldCheck, + PlusCircle, + History, + LayoutDashboard, + Trophy, } from "lucide-react"; -import { useRouter } from "next/navigation"; -import { useEffect, useState } from "react"; import { toast } from "sonner"; import { Button } from "@/components/ui/button"; -import { - Card, - CardContent, - CardDescription, - CardHeader, - CardTitle, -} from "@/components/ui/card"; import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; import { api, authApi, overseerApi, userApi } from "@/lib/api"; import { useStore } from "@/lib/store"; @@ -35,35 +31,6 @@ interface WalletData { totalSpent: number; } -function StatTile({ - label, - value, - hint, - icon: Icon, -}: { - label: string; - value: string; - hint: string; - icon: any; -}) { - return ( -
-
-
-
- {label} -
-
{value}
-
{hint}
-
-
- -
-
-
- ); -} - export default function DashboardPage() { const router = useRouter(); const { isAuthenticated, logout } = useStore(); @@ -123,119 +90,170 @@ export default function DashboardPage() { if (isLoading) return ( -
- +
+
); return ( -
-
-
-
+
+
+
+
+
+ +
+
-
- Dashboard +
+
+ Barnyard coop
-

Barnyard coop

+

+ Nest Dashboard +

-
- - +
-
- - - -
-
- - - - Harvest board - - - Watch, requests, leaderboard. All feed, no smoke. - - - - - - History - Requests - Leaderboard - - - - - - - - - - - - - + +
- - - - Quick request - - Grab content fast. - - - - - - - - - - Recent activity - - Newest barn noise. - - +
+
+
+ + + Nest Egg + +
+
+ {formatNumber(wallet?.balance || 0)} + + $COOP + +
+
+ +
+
+ + + In Transit + +
+
+ {pendingRequests.length} + + Pipes + +
+
+ +
+
+ + + Costs + +
+
+ {requestCosts.movie} / {requestCosts.tv} +
+ Movie / TV +
+
+
+
+ +
+ + + + + History + + + + Requests + + + + Flock + + +
+ + + + + + + + + +
+
+
+
+ +
+
+
+

+ Barn Noise +

+
+
+
- - +
+
+