diff --git a/frontend/src/components/settings/ProfileTab.jsx b/frontend/src/components/settings/ProfileTab.jsx
index b0281ed0..7a5ab576 100644
--- a/frontend/src/components/settings/ProfileTab.jsx
+++ b/frontend/src/components/settings/ProfileTab.jsx
@@ -6,6 +6,9 @@ import { Label } from '@/components/ui/label';
import useSettingFocus from '../../hooks/useSettingFocus';
import { useTranslation } from 'react-i18next';
import { formatDate } from '@/utils/intl';
+import { ShieldCheck, User, CalendarDays } from 'lucide-react';
+import { Pill } from '@/components/ds';
+import InfoTip from '../InfoTip';
const ProfileTab = () => {
const { t } = useTranslation();
@@ -27,6 +30,10 @@ const ProfileTab = () => {
}
}, [user]);
+ const dirty = formData.username !== (user?.username || '') || formData.email !== (user?.email || '');
+ const role = user?.role || 'user';
+ const RoleIcon = role === 'admin' ? ShieldCheck : User;
+
async function handleSubmit(e) {
e.preventDefault();
setLoading(true);
@@ -34,7 +41,7 @@ const ProfileTab = () => {
try {
await updateUser(formData);
- setMessage({ type: 'success', text: 'Profile updated successfully' });
+ setMessage({ type: 'success', text: t('app.profileTab.profileUpdated', 'Profile updated successfully') });
} catch (err) {
setMessage({ type: 'error', text: err.message });
} finally {
@@ -48,6 +55,29 @@ const ProfileTab = () => {
{t('app.profileTab.profileSettings', 'Profile settings')}
+
+
+ {(user?.username || '?').charAt(0).toUpperCase()}
+
+
+
{user?.username}
+
{user?.email}
+
+
+
+
+ {role}
+ {t('app.profileTab.contactAnAdministratorToChangeYour', 'Contact an administrator to change your role')}
+
+ {user?.created_at && (
+
+
+ {formatDate(user.created_at)}
+
+ )}
+
+
+
{message && (
{message.text}
@@ -75,23 +105,8 @@ const ProfileTab = () => {
/>
-
-
-
- {t('app.profileTab.contactAnAdministratorToChangeYour', 'Contact an administrator to change your role')}
-
-
-
-
-
-
-
-
diff --git a/frontend/src/i18n/locales/ar.json b/frontend/src/i18n/locales/ar.json
index 0a016c77..c8accc24 100644
--- a/frontend/src/i18n/locales/ar.json
+++ b/frontend/src/i18n/locales/ar.json
@@ -4408,7 +4408,6 @@
"emailAddress": "عنوان البريد الإلكتروني",
"memberSince": "عضو منذ",
"profileSettings": "إعدادات الملف الشخصي",
- "role": "دور",
"saveChanges": "حفظ التغييرات"
},
"projectDetail": {
diff --git a/frontend/src/i18n/locales/bn.json b/frontend/src/i18n/locales/bn.json
index f4b2b865..81ba28ea 100644
--- a/frontend/src/i18n/locales/bn.json
+++ b/frontend/src/i18n/locales/bn.json
@@ -4408,7 +4408,6 @@
"emailAddress": "ইমেইল ঠিকানা",
"memberSince": "থেকে সদস্য",
"profileSettings": "প্রোফাইল সেটিংস",
- "role": "ভূমিকা",
"saveChanges": "পরিবর্তন সংরক্ষণ করুন"
},
"projectDetail": {
diff --git a/frontend/src/i18n/locales/de.json b/frontend/src/i18n/locales/de.json
index 61f4106a..3ad85223 100644
--- a/frontend/src/i18n/locales/de.json
+++ b/frontend/src/i18n/locales/de.json
@@ -4408,7 +4408,6 @@
"emailAddress": "E-Mail-Adresse",
"memberSince": "Mitglied seit",
"profileSettings": "Profileinstellungen",
- "role": "Rolle",
"saveChanges": "Änderungen speichern"
},
"projectDetail": {
diff --git a/frontend/src/i18n/locales/en.json b/frontend/src/i18n/locales/en.json
index 41afdfcb..56f7ae2e 100644
--- a/frontend/src/i18n/locales/en.json
+++ b/frontend/src/i18n/locales/en.json
@@ -4521,7 +4521,7 @@
"emailAddress": "Email address",
"memberSince": "Member since",
"profileSettings": "Profile settings",
- "role": "Role",
+ "profileUpdated": "Profile updated successfully",
"saveChanges": "Save changes"
},
"projectDetail": {
diff --git a/frontend/src/i18n/locales/es.json b/frontend/src/i18n/locales/es.json
index 88f0099d..7c91a5fb 100644
--- a/frontend/src/i18n/locales/es.json
+++ b/frontend/src/i18n/locales/es.json
@@ -4409,7 +4409,6 @@
"emailAddress": "Dirección de correo electrónico",
"memberSince": "Miembro desde",
"profileSettings": "Configuración del perfil",
- "role": "Rol",
"saveChanges": "Guardar cambios"
},
"projectDetail": {
diff --git a/frontend/src/i18n/locales/fr.json b/frontend/src/i18n/locales/fr.json
index 09860f66..887aab1f 100644
--- a/frontend/src/i18n/locales/fr.json
+++ b/frontend/src/i18n/locales/fr.json
@@ -4408,7 +4408,6 @@
"emailAddress": "Adresse email",
"memberSince": "Membre depuis",
"profileSettings": "Paramètres du profil",
- "role": "Rôle",
"saveChanges": "Enregistrer les modifications"
},
"projectDetail": {
diff --git a/frontend/src/i18n/locales/id.json b/frontend/src/i18n/locales/id.json
index 6925c74d..e768dd09 100644
--- a/frontend/src/i18n/locales/id.json
+++ b/frontend/src/i18n/locales/id.json
@@ -4408,7 +4408,6 @@
"emailAddress": "Alamat Surel",
"memberSince": "Anggota Sejak",
"profileSettings": "Pengaturan Profil",
- "role": "Peran",
"saveChanges": "Simpan perubahan"
},
"projectDetail": {
diff --git a/frontend/src/i18n/locales/it.json b/frontend/src/i18n/locales/it.json
index bf194d46..402899e2 100644
--- a/frontend/src/i18n/locales/it.json
+++ b/frontend/src/i18n/locales/it.json
@@ -4408,7 +4408,6 @@
"emailAddress": "Indirizzo e-mail",
"memberSince": "Membro dal",
"profileSettings": "Impostazioni del profilo",
- "role": "Ruolo",
"saveChanges": "Salva modifiche"
},
"projectDetail": {
diff --git a/frontend/src/i18n/locales/ko.json b/frontend/src/i18n/locales/ko.json
index e085a19b..5c265d41 100644
--- a/frontend/src/i18n/locales/ko.json
+++ b/frontend/src/i18n/locales/ko.json
@@ -4408,7 +4408,6 @@
"emailAddress": "이메일 주소",
"memberSince": "회원가입 이후",
"profileSettings": "프로필 설정",
- "role": "역할",
"saveChanges": "변경 사항 저장"
},
"projectDetail": {
diff --git a/frontend/src/i18n/locales/pl.json b/frontend/src/i18n/locales/pl.json
index f1d9425e..9ef923c8 100644
--- a/frontend/src/i18n/locales/pl.json
+++ b/frontend/src/i18n/locales/pl.json
@@ -4408,7 +4408,6 @@
"emailAddress": "Adres e-mail",
"memberSince": "Członek od",
"profileSettings": "Ustawienia profilu",
- "role": "Rola",
"saveChanges": "Zapisz zmiany"
},
"projectDetail": {
diff --git a/frontend/src/i18n/locales/pt.json b/frontend/src/i18n/locales/pt.json
index fedc803d..8ab9d757 100644
--- a/frontend/src/i18n/locales/pt.json
+++ b/frontend/src/i18n/locales/pt.json
@@ -4408,7 +4408,6 @@
"emailAddress": "Endereço de e-mail",
"memberSince": "Membro desde",
"profileSettings": "Configurações de perfil",
- "role": "Função",
"saveChanges": "Salvar alterações"
},
"projectDetail": {
diff --git a/frontend/src/i18n/locales/ru.json b/frontend/src/i18n/locales/ru.json
index bf1b6dca..0d6264c8 100644
--- a/frontend/src/i18n/locales/ru.json
+++ b/frontend/src/i18n/locales/ru.json
@@ -4408,7 +4408,6 @@
"emailAddress": "Адрес электронной почты",
"memberSince": "Участник с",
"profileSettings": "Настройки профиля",
- "role": "Роль",
"saveChanges": "Сохранить изменения"
},
"projectDetail": {
diff --git a/frontend/src/i18n/locales/th.json b/frontend/src/i18n/locales/th.json
index 6874940f..bbd075d5 100644
--- a/frontend/src/i18n/locales/th.json
+++ b/frontend/src/i18n/locales/th.json
@@ -4408,7 +4408,6 @@
"emailAddress": "ที่อยู่อีเมล",
"memberSince": "สมาชิกตั้งแต่",
"profileSettings": "การตั้งค่าโปรไฟล์",
- "role": "บทบาท",
"saveChanges": "บันทึกการเปลี่ยนแปลง"
},
"projectDetail": {
diff --git a/frontend/src/i18n/locales/tr.json b/frontend/src/i18n/locales/tr.json
index ae31e62d..77d025c2 100644
--- a/frontend/src/i18n/locales/tr.json
+++ b/frontend/src/i18n/locales/tr.json
@@ -4408,7 +4408,6 @@
"emailAddress": "E-posta Adresi",
"memberSince": "Üyelik Tarihi",
"profileSettings": "Profil Ayarları",
- "role": "Rol",
"saveChanges": "Değişiklikleri kaydet"
},
"projectDetail": {
diff --git a/frontend/src/i18n/locales/vi.json b/frontend/src/i18n/locales/vi.json
index dbf56b1c..5a8a83a9 100644
--- a/frontend/src/i18n/locales/vi.json
+++ b/frontend/src/i18n/locales/vi.json
@@ -4408,7 +4408,6 @@
"emailAddress": "Địa chỉ email",
"memberSince": "Thành viên kể từ",
"profileSettings": "Cài đặt hồ sơ",
- "role": "Vai trò",
"saveChanges": "Lưu thay đổi"
},
"projectDetail": {
diff --git a/frontend/src/i18n/locales/zh-Hans.json b/frontend/src/i18n/locales/zh-Hans.json
index 26c14118..13d492ed 100644
--- a/frontend/src/i18n/locales/zh-Hans.json
+++ b/frontend/src/i18n/locales/zh-Hans.json
@@ -4408,7 +4408,6 @@
"emailAddress": "电子邮件地址",
"memberSince": "会员自",
"profileSettings": "配置文件设置",
- "role": "角色",
"saveChanges": "保存更改"
},
"projectDetail": {
diff --git a/frontend/src/i18n/locales/zh-Hant.json b/frontend/src/i18n/locales/zh-Hant.json
index 000d2fc7..07289b81 100644
--- a/frontend/src/i18n/locales/zh-Hant.json
+++ b/frontend/src/i18n/locales/zh-Hant.json
@@ -4408,7 +4408,6 @@
"emailAddress": "電子郵件",
"memberSince": "會員自",
"profileSettings": "個人資料設定",
- "role": "角色",
"saveChanges": "儲存變更"
},
"projectDetail": {
diff --git a/frontend/src/styles/pages/_settings.scss b/frontend/src/styles/pages/_settings.scss
index 352c3af5..215df2c5 100644
--- a/frontend/src/styles/pages/_settings.scss
+++ b/frontend/src/styles/pages/_settings.scss
@@ -2638,3 +2638,55 @@
.sk-ai-message__usage { font-size: $text-xs; color: $text-secondary; border-top: 1px solid $border-subtle; margin-top: $space-3; padding-top: $space-2; overflow-wrap: anywhere;
summary { cursor: pointer; }
}
+
+.profile-identity {
+ display: grid;
+ grid-template-columns: auto minmax(0, 1fr);
+ align-items: center;
+ gap: $space-2 $space-3;
+ padding: $space-3 $space-4;
+ margin-block-end: $space-4;
+ background: $bg-card;
+ border: 1px solid $border-default;
+ border-radius: $radius-card;
+
+ &__avatar {
+ display: grid;
+ place-items: center;
+ inline-size: 40px; // geometry: avatar tile
+ block-size: 40px; // geometry: avatar tile
+ border-radius: $radius-full;
+ background: $accent-bg;
+ font-size: $text-md;
+ font-weight: $font-weight-semibold;
+ color: $accent-bright;
+ }
+ &__text { min-inline-size: 0; }
+ &__name {
+ font-size: $text-md;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
+ }
+ &__email {
+ font-size: $text-sm;
+ color: $text-secondary;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ }
+ &__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
+ &__role { text-transform: capitalize; }
+ &__meta {
+ grid-column: 1 / -1;
+ display: flex;
+ flex-wrap: wrap;
+ gap: $space-2;
+ .sk-pill { block-size: auto; svg { inline-size: 14px; block-size: 14px; } } // geometry: chip glyph
+ }
+
+ @media (min-width: $breakpoint-md) {
+ grid-template-columns: auto minmax(0, 1fr) auto;
+ &__avatar { inline-size: 48px; block-size: 48px; } // geometry: avatar tile
+ &__meta { grid-column: auto; justify-content: flex-end; }
+ }
+}