From d41b2f8c5e022604868fcccb3a5a75cc2ea2365c Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sat, 18 Apr 2026 21:20:40 +0000 Subject: [PATCH 1/3] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/components/app-shell.tsx | 41 +++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/src/components/app-shell.tsx b/src/components/app-shell.tsx index 0c72c6f..6477dac 100644 --- a/src/components/app-shell.tsx +++ b/src/components/app-shell.tsx @@ -38,25 +38,28 @@ interface NavItem { adminOnly?: boolean; } -const NAV: NavItem[] = [ - { to: "/admin/users", label: "Users", icon: ShieldCheck, adminOnly: true }, - { to: "/calendar", label: "Calendar", icon: CalendarIcon }, - { to: "/cases", label: "Cases", icon: Briefcase }, - { to: "/clients", label: "Clients", icon: Users }, - { to: "/collections", label: "Collections", icon: DollarSign }, - { to: "/contacts", label: "Contacts", icon: UserPlus }, - { to: "/", label: "Dashboard", icon: LayoutDashboard }, - { to: "/files", label: "Files", icon: FilesIcon }, - { to: "/forms", label: "Forms", icon: ClipboardList }, - { to: "/inbox", label: "Inbox", icon: InboxIcon }, - { to: "/invoices", label: "Invoices", icon: Receipt }, - { to: "/messages", label: "Messages", icon: MessageSquare }, - { to: "/payments", label: "Payments", icon: CreditCard }, - { to: "/documents", label: "Pleadings", icon: FolderOpen }, - { to: "/settings", label: "Settings", icon: SettingsIcon }, - { to: "/status", label: "Status Updates", icon: Activity }, - { to: "/tasks", label: "Tasks", icon: CheckSquare }, -].sort((a, b) => a.label.localeCompare(b.label)); +const NAV: NavItem[] = (() => { + const dashboard: NavItem = { to: "/", label: "Dashboard", icon: LayoutDashboard }; + const rest: NavItem[] = [ + { to: "/admin/users", label: "Users", icon: ShieldCheck, adminOnly: true }, + { to: "/calendar", label: "Calendar", icon: CalendarIcon }, + { to: "/cases", label: "Cases", icon: Briefcase }, + { to: "/clients", label: "Clients", icon: Users }, + { to: "/collections", label: "Collections", icon: DollarSign }, + { to: "/contacts", label: "Contacts", icon: UserPlus }, + { to: "/files", label: "Files", icon: FilesIcon }, + { to: "/forms", label: "Forms", icon: ClipboardList }, + { to: "/inbox", label: "Inbox", icon: InboxIcon }, + { to: "/invoices", label: "Invoices", icon: Receipt }, + { to: "/messages", label: "Messages", icon: MessageSquare }, + { to: "/payments", label: "Payments", icon: CreditCard }, + { to: "/documents", label: "Pleadings", icon: FolderOpen }, + { to: "/settings", label: "Settings", icon: SettingsIcon }, + { to: "/status", label: "Status Updates", icon: Activity }, + { to: "/tasks", label: "Tasks", icon: CheckSquare }, + ].sort((a, b) => a.label.localeCompare(b.label)); + return [dashboard, ...rest]; +})(); void FileText; export function AppShell({ children }: { children: ReactNode }) { From 8ae65cadf1485e9231a4879307aeaa4bf6745946 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sat, 18 Apr 2026 21:21:04 +0000 Subject: [PATCH 2/3] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/routes/index.tsx | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/src/routes/index.tsx b/src/routes/index.tsx index dba1b98..e96b3ec 100644 --- a/src/routes/index.tsx +++ b/src/routes/index.tsx @@ -173,6 +173,37 @@ function Dashboard() { + {/* Recent payments (moved to top) */} + + + + + Recent payments + + + + + {recentPayments.length === 0 &&

No payment requests yet.

} + {recentPayments.map((p) => ( + +
+
{p.recipient_name}
+
+ {p.description || "Payment request"} · {formatDate(p.paid_at || p.created_at)} +
+
+
+ {formatCurrency((p.total_amount_cents ?? 0) / 100)} + {p.status} +
+ + ))} +
+
+ {/* Financial + My tasks */}
From d50e2f72ed725ee359dceb6f170830bc95b3a663 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sat, 18 Apr 2026 21:21:14 +0000 Subject: [PATCH 3/3] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/routes/index.tsx | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/src/routes/index.tsx b/src/routes/index.tsx index e96b3ec..f4542f1 100644 --- a/src/routes/index.tsx +++ b/src/routes/index.tsx @@ -348,38 +348,6 @@ function Dashboard() {
- {/* Recent payments */} -
- - - - - Recent payments - - - - - {recentPayments.length === 0 &&

No payment requests yet.

} - {recentPayments.map((p) => ( - -
-
{p.recipient_name}
-
- {p.description || "Payment request"} · {formatDate(p.paid_at || p.created_at)} -
-
-
- {formatCurrency((p.total_amount_cents ?? 0) / 100)} - {p.status} -
- - ))} -
-
-
); }