From 89de0595018b9080a3bcdcaa830a1abe73b5a4a4 Mon Sep 17 00:00:00 2001 From: Sean O'Connor Date: Sat, 12 Jul 2025 21:50:43 -0400 Subject: [PATCH] Add dark mode styles to dashboard and UI components --- src/app/dashboard/businesses/page.tsx | 4 +- src/app/dashboard/settings/page.tsx | 112 ++++++++++++--------- src/components/ui/skeleton.tsx | 137 +++++++++++++------------- src/components/ui/universal-table.tsx | 24 ++--- 4 files changed, 152 insertions(+), 125 deletions(-) diff --git a/src/app/dashboard/businesses/page.tsx b/src/app/dashboard/businesses/page.tsx index 95d04ce..2754c6a 100644 --- a/src/app/dashboard/businesses/page.tsx +++ b/src/app/dashboard/businesses/page.tsx @@ -10,10 +10,10 @@ export default async function BusinessesPage() {
-

+

Businesses

-

+

Manage your businesses and their information.

diff --git a/src/app/dashboard/settings/page.tsx b/src/app/dashboard/settings/page.tsx index fcead50..3905aa1 100644 --- a/src/app/dashboard/settings/page.tsx +++ b/src/app/dashboard/settings/page.tsx @@ -232,28 +232,32 @@ export default function SettingsPage() {
{/* Header */}
-

+

Settings

-

+

Manage your account and data preferences

{/* Profile Section */} - + - - + + Profile - Update your personal information + + Update your personal information +
- +
- + -

Email cannot be changed

+

+ Email cannot be changed +

- + - Are you absolutely sure? - + + Are you absolutely sure? + +

This action cannot be undone. This will permanently delete all your: @@ -463,7 +487,7 @@ export default function SettingsPage() {

Type{" "} - + DELETE ALL DATA {" "} to confirm: diff --git a/src/components/ui/skeleton.tsx b/src/components/ui/skeleton.tsx index 85b66b1..546d293 100644 --- a/src/components/ui/skeleton.tsx +++ b/src/components/ui/skeleton.tsx @@ -4,7 +4,10 @@ function Skeleton({ className, ...props }: React.ComponentProps<"div">) { return (

); @@ -17,14 +20,14 @@ export function DashboardStatsSkeleton() { {Array.from({ length: 4 }).map((_, i) => (
- - + +
- - + +
))}
@@ -37,16 +40,16 @@ export function DashboardCardsSkeleton() { {Array.from({ length: 2 }).map((_, i) => (
- - + +
- +
- - + +
))} @@ -56,12 +59,12 @@ export function DashboardCardsSkeleton() { export function DashboardActivitySkeleton() { return ( -
- +
+
- - - + + +
); @@ -73,21 +76,21 @@ export function TableSkeleton({ rows = 5 }: { rows?: number }) {
{/* Search and filters */}
- +
- - + +
{/* Table */} -
-
+
+
- +
- - + +
@@ -96,12 +99,12 @@ export function TableSkeleton({ rows = 5 }: { rows?: number }) {
{Array.from({ length: rows }).map((_, i) => (
- - - - - - + + + + + +
))}
@@ -110,11 +113,11 @@ export function TableSkeleton({ rows = 5 }: { rows?: number }) { {/* Pagination */}
- +
- - - + + +
@@ -127,33 +130,33 @@ export function FormSkeleton() {
- - + +
- - + +
- - + +
- - + +
- - + +
- - + +
); @@ -166,41 +169,41 @@ export function InvoiceViewSkeleton() { {/* Header */}
- - + +
- +
{/* Client info */}
- - - - + + + +
- - - + + +
{/* Items table */} -
-
- +
+
+
{Array.from({ length: 3 }).map((_, i) => (
- - - - - + + + + +
))}
@@ -210,8 +213,8 @@ export function InvoiceViewSkeleton() { {/* Total */}
- - + +
diff --git a/src/components/ui/universal-table.tsx b/src/components/ui/universal-table.tsx index 4ab8427..b7203a8 100644 --- a/src/components/ui/universal-table.tsx +++ b/src/components/ui/universal-table.tsx @@ -646,39 +646,39 @@ export function UniversalTable({ resource }: UniversalTableProps) { return Array.from({ length: skeletonCount }).map((_, index) => ( - + - + - + - + {resource === "invoices" && ( <> - + - + )} {resource === "businesses" && ( <> - + - + )} - + )); @@ -1258,9 +1258,9 @@ export function UniversalTable({ resource }: UniversalTableProps) { key={`skeleton-card-${index}`} className="flex flex-col gap-2 rounded-2xl border border-gray-200 bg-white/90 p-4 shadow-xl dark:border-gray-700 dark:bg-gray-800/90" > - - - + + +
)) ) : filteredAndSortedData.length === 0 ? (