From 72ef74fc87e4fd8cda00241bd6e250049bd45536 Mon Sep 17 00:00:00 2001 From: openhands Date: Thu, 2 Jul 2026 16:27:06 +0200 Subject: [PATCH] refactor: enhance admin panel styling with better card patterns - Dashboard: use admin-card for sections, refine progress bars and action badges - Applications: enhanced card styling with p-3 and better text hierarchy - Emulator: convert remaining 'card' classes to 'admin-card' - All changes eliminate inline styles and use consistent Tailwind patterns Co-authored-by: openhands --- src/app/admin/applications/page.tsx | 34 ++++++++++++++--------------- src/app/admin/emulator/page.tsx | 30 ++++++++++++------------- src/app/admin/page.tsx | 14 ++++++------ src/app/admin/rooms/[id]/page.tsx | 4 ++-- 4 files changed, 39 insertions(+), 43 deletions(-) diff --git a/src/app/admin/applications/page.tsx b/src/app/admin/applications/page.tsx index f8f0a250..7409fa72 100644 --- a/src/app/admin/applications/page.tsx +++ b/src/app/admin/applications/page.tsx @@ -46,10 +46,15 @@ export default async function AdminApplications() { return (
-

Staff Applications

-

- Pending applications from players requesting a staff rank. -

+
+
+ +
+
+

Staff Applications

+

Pending applications from players requesting a staff rank.

+
+
-

Applications ({applications.length})

+

Applications ({applications.length})

{applications.length === 0 ? ( -

No pending applications.

+
No pending applications.
) : (
{applications.map((a) => { const username = userMap.get(a.userId); return ( -
-
-

+
+
+

{username ? ( {username} ) : ( @@ -87,10 +85,10 @@ export default async function AdminApplications() {

Rank {a.rankId}
-

+

{formatDate(a.createdAt)}

-

{a.content}

+

{a.content}

-

Settings

+

Settings

{settings.length} keys.

-

Add / overwrite setting

-
+

Add / overwrite setting

+
-

Texts

+

Texts

{textsCount} keys{textsTruncated ? ` (showing first ${texts.length})` : ""}.

-

Add / overwrite text

-
+

Add / overwrite text

+
-
-

Users by rank

+
+

Users by rank

{rankCounts.length === 0 ? (

{dbOk ? "No accounts to break down yet." : "DB unavailable."}

) : ( @@ -78,8 +78,8 @@ export default async function AdminDashboard() { return (
Rank {r.rank} -
-
0 ? 4 : 0)}%` }} /> +
+
0 ? 4 : 0)}%` }} />
{r.count}
@@ -89,9 +89,9 @@ export default async function AdminDashboard() { )}
-
+
-

Recent staff activity

+

Recent staff activity

View all @@ -110,7 +110,7 @@ export default async function AdminDashboard() {
{a.description}
- {a.action} + {a.action}
{fromDate(a.createdAt)}
diff --git a/src/app/admin/rooms/[id]/page.tsx b/src/app/admin/rooms/[id]/page.tsx index 74231483..1ef372c5 100644 --- a/src/app/admin/rooms/[id]/page.tsx +++ b/src/app/admin/rooms/[id]/page.tsx @@ -58,12 +58,12 @@ export default async function AdminRoomDetail({
-
+
{fields.map(([label, value]) => ( - + ))}
{label}{label} {value}