From 176fa51b570c78e30fff429ed1c0fe8210ec37f1 Mon Sep 17 00:00:00 2001 From: chihlasm Date: Sun, 15 Feb 2026 21:18:59 -0500 Subject: [PATCH] refactor: migrate admin pages and components to new design system Co-Authored-By: Claude Opus 4.6 --- frontend/src/components/admin/ActionMenu.tsx | 10 +- frontend/src/components/admin/AdminLayout.tsx | 10 +- .../src/components/admin/AdminSidebar.tsx | 10 +- frontend/src/components/admin/CategoryRow.tsx | 16 +- .../components/admin/CreateCategoryModal.tsx | 34 ++-- frontend/src/components/admin/DataTable.tsx | 16 +- .../components/admin/EditCategoryModal.tsx | 34 ++-- frontend/src/components/admin/EmptyState.tsx | 6 +- frontend/src/components/admin/Pagination.tsx | 12 +- frontend/src/components/admin/SearchInput.tsx | 8 +- frontend/src/components/admin/StatusBadge.tsx | 2 +- frontend/src/pages/admin/AuditLogsPage.tsx | 28 +-- frontend/src/pages/admin/DashboardPage.tsx | 30 ++-- frontend/src/pages/admin/FeatureFlagsPage.tsx | 48 +++--- .../src/pages/admin/GlobalCategoriesPage.tsx | 32 ++-- frontend/src/pages/admin/InviteCodesPage.tsx | 38 ++-- frontend/src/pages/admin/PlanLimitsPage.tsx | 54 +++--- frontend/src/pages/admin/SettingsPage.tsx | 21 +-- frontend/src/pages/admin/UserDetailPage.tsx | 162 +++++++++--------- frontend/src/pages/admin/UsersPage.tsx | 110 ++++++------ 20 files changed, 341 insertions(+), 340 deletions(-) diff --git a/frontend/src/components/admin/ActionMenu.tsx b/frontend/src/components/admin/ActionMenu.tsx index a259dd24..6cabd654 100644 --- a/frontend/src/components/admin/ActionMenu.tsx +++ b/frontend/src/components/admin/ActionMenu.tsx @@ -53,8 +53,8 @@ export function ActionMenu({ items }: ActionMenuProps) { ref={buttonRef} onClick={() => setOpen(!open)} className={cn( - 'rounded-md p-1.5 text-white/50 transition-colors', - 'hover:bg-white/10 hover:text-white' + 'rounded-md p-1.5 text-muted-foreground transition-colors', + 'hover:bg-accent hover:text-foreground' )} > @@ -63,8 +63,8 @@ export function ActionMenu({ items }: ActionMenuProps) {
{item.icon} diff --git a/frontend/src/components/admin/AdminLayout.tsx b/frontend/src/components/admin/AdminLayout.tsx index 6773253a..c697fe50 100644 --- a/frontend/src/components/admin/AdminLayout.tsx +++ b/frontend/src/components/admin/AdminLayout.tsx @@ -36,7 +36,7 @@ export function AdminLayout() { return (
{/* Desktop sidebar */} -
+
@@ -44,14 +44,14 @@ export function AdminLayout() { {mobileOpen && (
setMobileOpen(false)} /> -
+
@@ -67,7 +67,7 @@ export function AdminLayout() { {/* Mobile menu button */} diff --git a/frontend/src/components/admin/AdminSidebar.tsx b/frontend/src/components/admin/AdminSidebar.tsx index 0e7f9cac..1dc13723 100644 --- a/frontend/src/components/admin/AdminSidebar.tsx +++ b/frontend/src/components/admin/AdminSidebar.tsx @@ -39,7 +39,7 @@ export function AdminSidebar({ className, onNavigate }: AdminSidebarProps) { return (