From 451cb5872010b7a832f3e5faf315489865a6d42b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Burak=20Boduro=C4=9Flu?=
<80620802+burakboduroglu@users.noreply.github.com>
Date: Fri, 25 Sep 2026 15:22:11 +0300
Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=91=A4=20reorganize=20admin=20use?=
=?UTF-8?q?r=20details?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- group personal, contact and account fields into clear sections
- show avatar and role beside the user heading
- align role and profile actions with their input heights
---
src/components/users/profile-form.tsx | 2 +-
src/i18n/locales/en.ts | 3 +
src/i18n/locales/tr.ts | 3 +
src/i18n/messages.ts | 3 +
src/pages/admin-user-detail-page.tsx | 158 ++++++++++++++++----------
5 files changed, 108 insertions(+), 61 deletions(-)
diff --git a/src/components/users/profile-form.tsx b/src/components/users/profile-form.tsx
index 7558af6..d7d473e 100644
--- a/src/components/users/profile-form.tsx
+++ b/src/components/users/profile-form.tsx
@@ -275,7 +275,7 @@ export function ProfileForm(props: {
{error() &&
{error()}
}
-
+
);
diff --git a/src/i18n/locales/en.ts b/src/i18n/locales/en.ts
index 4d257aa..2bc9076 100644
--- a/src/i18n/locales/en.ts
+++ b/src/i18n/locales/en.ts
@@ -1687,6 +1687,9 @@ export const en: Dict = {
"admin.username": "Username",
"admin.id": "Id",
"admin.role": "Role",
+ "admin.personalDetails": "Personal details",
+ "admin.contactDetails": "Contact details",
+ "admin.accountAccess": "Account and access",
"admin.directory": "Directory",
"admin.helpTitle": "Role hierarchy",
"admin.helpBody":
diff --git a/src/i18n/locales/tr.ts b/src/i18n/locales/tr.ts
index 39c29ac..1bfb26d 100644
--- a/src/i18n/locales/tr.ts
+++ b/src/i18n/locales/tr.ts
@@ -1683,6 +1683,9 @@ export const tr: Dict = {
"admin.username": "Kullanıcı adı",
"admin.id": "Id",
"admin.role": "Rol",
+ "admin.personalDetails": "Kişisel bilgiler",
+ "admin.contactDetails": "İletişim bilgileri",
+ "admin.accountAccess": "Hesap ve yetki",
"admin.directory": "Kayıt listesi",
"admin.helpTitle": "Rol hiyerarşisi",
"admin.helpBody":
diff --git a/src/i18n/messages.ts b/src/i18n/messages.ts
index c20bda1..04634b1 100644
--- a/src/i18n/messages.ts
+++ b/src/i18n/messages.ts
@@ -1580,6 +1580,9 @@ export type MessageKey =
| "admin.username"
| "admin.id"
| "admin.role"
+ | "admin.personalDetails"
+ | "admin.contactDetails"
+ | "admin.accountAccess"
| "admin.directory"
| "admin.helpTitle"
| "admin.helpBody"
diff --git a/src/pages/admin-user-detail-page.tsx b/src/pages/admin-user-detail-page.tsx
index b8e6a19..8b4ee11 100644
--- a/src/pages/admin-user-detail-page.tsx
+++ b/src/pages/admin-user-detail-page.tsx
@@ -7,8 +7,10 @@ import type { MessageKey } from "@/i18n/messages";
import { PageHeader } from "@/components/layout/page-header";
import { Breadcrumbs } from "@/components/layout/breadcrumbs";
import { RouteGuard } from "@/components/layout/route-guard";
+import { RoleBadge } from "@/components/layout/role-badge";
import { ParentStudentsPanel } from "@/components/users/parent-students-panel";
import { AdminUserEditPanel } from "@/components/users/admin-user-edit-panel";
+import { UserAvatar } from "@/components/users/user-avatar";
import { Alert } from "@/components/ui/alert";
import { Button } from "@/components/ui/button";
import { ConfirmDialog } from "@/components/ui/confirm-dialog";
@@ -67,73 +69,109 @@ function AdminUserDetailContent() {
{error()}
-
+
-
-
-
-
-
-
-
-
- >
- }
- />
-
+
+
+
+
+
+
+
+
+
+
+
+ >
+ }
+ />
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{t("admin.role")}
-
-
-
+
+
+ {t("admin.personalDetails")}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {t("admin.contactDetails")}
+
+
+
+
+
+
+
+
+
+ {t("admin.accountAccess")}
+
+
+
+
+
{t("admin.role")}
+
+
+
+