From 3ffed6c813d6c6b2e1bed7b781b6f1dac592e9e6 Mon Sep 17 00:00:00 2001 From: Ashwin Kumar Date: Tue, 24 Mar 2026 05:23:57 +0100 Subject: [PATCH] ui(step-4): apply reference layout to remaining 7 pages - catering-services, fitness-trainers, graphic-designers, social-media-managers, video-editors, verification, kb: white header, data-table/table-card, navy buttons, orange tab underlines, inline styles removed Co-Authored-By: Claude Sonnet 4.6 --- src/routes/admin/catering-services.tsx | 163 +++--- src/routes/admin/fitness-trainers.tsx | 163 +++--- src/routes/admin/graphic-designers.tsx | 163 +++--- src/routes/admin/kb.tsx | 628 +++++++++++---------- src/routes/admin/social-media-managers.tsx | 163 +++--- src/routes/admin/verification.tsx | 31 +- src/routes/admin/video-editors.tsx | 163 +++--- 7 files changed, 743 insertions(+), 731 deletions(-) diff --git a/src/routes/admin/catering-services.tsx b/src/routes/admin/catering-services.tsx index 5cdef0b..a8872da 100644 --- a/src/routes/admin/catering-services.tsx +++ b/src/routes/admin/catering-services.tsx @@ -36,89 +36,90 @@ export default function CateringServicesPage() { return ( -
-
-

Catering Services Management

-

Manage all catering services accounts on the platform.

+
+
+

Catering Services Management

+

Manage all catering services accounts on the platform.

+
+
+
+
+ setSearch(e.currentTarget.value)} + style="border:1px solid #cbd5e1;border-radius:6px;padding:8px 12px;font-size:14px;width:260px;" + /> + +
+ +
+ + + + + + + + + + + + + + + + + + + + + 0}> + + {(item) => ( + + + + + + + + )} + + + +
NameEmailStatusRegisteredActions
Loading...
Failed to load. Is the backend running?
No catering services users found.
{item.name || item.full_name || '—'}{item.email} + {item.status?.toUpperCase() === 'ACTIVE' && ( + ACTIVE + )} + {item.status?.toUpperCase() === 'INACTIVE' && ( + INACTIVE + )} + {item.status?.toUpperCase() === 'PENDING' && ( + PENDING + )} + {!item.status && } + + {item.created_at ? new Date(item.created_at).toLocaleDateString() : '—'} + +
+ View +
+
+
+
- -
-
- setSearch(e.currentTarget.value)} - style="border:1px solid #cbd5e1;border-radius:6px;padding:8px 12px;font-size:14px;width:260px;" - /> - -
- -
- - - - - - - - - - - - - - - - - - - - - 0}> - - {(item) => ( - - - - - - - - )} - - - -
NameEmailStatusRegisteredActions
Loading...
Failed to load. Is the backend running?
No catering services users found.
{item.name || item.full_name || '—'}{item.email} - {item.status?.toUpperCase() === 'ACTIVE' && ( - ACTIVE - )} - {item.status?.toUpperCase() === 'INACTIVE' && ( - INACTIVE - )} - {item.status?.toUpperCase() === 'PENDING' && ( - PENDING - )} - {!item.status && } - - {item.created_at ? new Date(item.created_at).toLocaleDateString() : '—'} - -
- View -
-
-
-
); } diff --git a/src/routes/admin/fitness-trainers.tsx b/src/routes/admin/fitness-trainers.tsx index ac4e77d..8dad26c 100644 --- a/src/routes/admin/fitness-trainers.tsx +++ b/src/routes/admin/fitness-trainers.tsx @@ -36,89 +36,90 @@ export default function FitnessTrainersPage() { return ( -
-
-

Fitness Trainer Management

-

Manage all fitness trainer accounts on the platform.

+
+
+

Fitness Trainer Management

+

Manage all fitness trainer accounts on the platform.

+
+
+
+
+ setSearch(e.currentTarget.value)} + style="border:1px solid #cbd5e1;border-radius:6px;padding:8px 12px;font-size:14px;width:260px;" + /> + +
+ +
+ + + + + + + + + + + + + + + + + + + + + 0}> + + {(item) => ( + + + + + + + + )} + + + +
NameEmailStatusRegisteredActions
Loading...
Failed to load. Is the backend running?
No fitness trainer users found.
{item.name || item.full_name || '—'}{item.email} + {item.status?.toUpperCase() === 'ACTIVE' && ( + ACTIVE + )} + {item.status?.toUpperCase() === 'INACTIVE' && ( + INACTIVE + )} + {item.status?.toUpperCase() === 'PENDING' && ( + PENDING + )} + {!item.status && } + + {item.created_at ? new Date(item.created_at).toLocaleDateString() : '—'} + +
+ View +
+
+
+
- -
-
- setSearch(e.currentTarget.value)} - style="border:1px solid #cbd5e1;border-radius:6px;padding:8px 12px;font-size:14px;width:260px;" - /> - -
- -
- - - - - - - - - - - - - - - - - - - - - 0}> - - {(item) => ( - - - - - - - - )} - - - -
NameEmailStatusRegisteredActions
Loading...
Failed to load. Is the backend running?
No fitness trainer users found.
{item.name || item.full_name || '—'}{item.email} - {item.status?.toUpperCase() === 'ACTIVE' && ( - ACTIVE - )} - {item.status?.toUpperCase() === 'INACTIVE' && ( - INACTIVE - )} - {item.status?.toUpperCase() === 'PENDING' && ( - PENDING - )} - {!item.status && } - - {item.created_at ? new Date(item.created_at).toLocaleDateString() : '—'} - -
- View -
-
-
-
); } diff --git a/src/routes/admin/graphic-designers.tsx b/src/routes/admin/graphic-designers.tsx index d163f8c..9fc118a 100644 --- a/src/routes/admin/graphic-designers.tsx +++ b/src/routes/admin/graphic-designers.tsx @@ -36,89 +36,90 @@ export default function GraphicDesignersPage() { return ( -
-
-

Graphic Designer Management

-

Manage all graphic designer accounts on the platform.

+
+
+

Graphic Designer Management

+

Manage all graphic designer accounts on the platform.

+
+
+
+
+ setSearch(e.currentTarget.value)} + style="border:1px solid #cbd5e1;border-radius:6px;padding:8px 12px;font-size:14px;width:260px;" + /> + +
+ +
+ + + + + + + + + + + + + + + + + + + + + 0}> + + {(item) => ( + + + + + + + + )} + + + +
NameEmailStatusRegisteredActions
Loading...
Failed to load. Is the backend running?
No graphic designer users found.
{item.name || item.full_name || '—'}{item.email} + {item.status?.toUpperCase() === 'ACTIVE' && ( + ACTIVE + )} + {item.status?.toUpperCase() === 'INACTIVE' && ( + INACTIVE + )} + {item.status?.toUpperCase() === 'PENDING' && ( + PENDING + )} + {!item.status && } + + {item.created_at ? new Date(item.created_at).toLocaleDateString() : '—'} + +
+ View +
+
+
+
- -
-
- setSearch(e.currentTarget.value)} - style="border:1px solid #cbd5e1;border-radius:6px;padding:8px 12px;font-size:14px;width:260px;" - /> - -
- -
- - - - - - - - - - - - - - - - - - - - - 0}> - - {(item) => ( - - - - - - - - )} - - - -
NameEmailStatusRegisteredActions
Loading...
Failed to load. Is the backend running?
No graphic designer users found.
{item.name || item.full_name || '—'}{item.email} - {item.status?.toUpperCase() === 'ACTIVE' && ( - ACTIVE - )} - {item.status?.toUpperCase() === 'INACTIVE' && ( - INACTIVE - )} - {item.status?.toUpperCase() === 'PENDING' && ( - PENDING - )} - {!item.status && } - - {item.created_at ? new Date(item.created_at).toLocaleDateString() : '—'} - -
- View -
-
-
-
); } diff --git a/src/routes/admin/kb.tsx b/src/routes/admin/kb.tsx index fc5aa8c..0f7f5aa 100644 --- a/src/routes/admin/kb.tsx +++ b/src/routes/admin/kb.tsx @@ -215,334 +215,338 @@ export default function KbPage(props: KbPageProps = {}) { return ( -
-
-

Knowledge Base

-

Manage help articles and categories

+
+
+

Knowledge Base

+

Manage help articles and categories

-
- {/* Tabs */} -
- - - -
- - {/* Categories Tab */} - -
-
- + +
- -
{actionError()}
-
+
- -
-

New Category

- -
{catError()}
+ {/* Categories Tab */} + +
+
+ +
+ + +
{actionError()}
-
-
- - setCatName(e.currentTarget.value)} - required - placeholder="e.g. Getting Started" - style="width:100%;padding:8px 10px;border:1px solid #e2e8f0;border-radius:6px;font-size:14px" - /> -
-
- - setCatSlug(e.currentTarget.value)} - required - placeholder="e.g. getting-started" - style="width:100%;padding:8px 10px;border:1px solid #e2e8f0;border-radius:6px;font-size:14px" - /> -
-
- -