feat(profile): role-aware nav + avatar menu + full editable profile
Build backend images / build content-svc (push) Failing after 1m59s
Build backend images / build file-svc (push) Failing after 3m18s
Build backend images / build gateway (push) Failing after 3m28s
Build backend images / build identity-svc (push) Failing after 2m1s
Build backend images / build notification-svc (push) Failing after 4m45s
Build backend images / build render-svc (push) Failing after 5m18s
Build backend images / build studio-svc (push) Failing after 2m12s

Navigation:
- UserMenu (avatar + role-aware dropdown: Dashboard, Admin Panel for admins,
  Profile, Sign out) replaces Sign In/Try Free when logged in (desktop + mobile).
- Real avatars in dashboard sidebar + a new admin-shell profile section.
- Shared Avatar primitive (image with initials fallback). SiteChrome excludes /admin.

Profile (data-collection surface for future AI video generation):
- SettingsProfile rebuilt: avatar upload + slogan, about, company, website,
  country, national code, birthdate, gender. No resume builder (per scope change).
- /api/profile forwards all fields; new user-scoped /api/profile/upload (avatar →
  MinIO via file-svc, sets avatar). Identity UpdateUserRequest/UserResponse widened
  (country/national/method); no DB migration (columns already exist).
- fa+en strings; verified GET/PATCH round-trip + logged-in SSR render.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
soroush.asadi
2026-06-05 00:34:25 +03:30
parent 718564bce4
commit d4fee8d1d7
21 changed files with 659 additions and 116 deletions
+30 -2
View File
@@ -12,6 +12,13 @@
"learn": "Learn",
"signIn": "Sign In",
"tryForFree": "Try for Free",
"accountMenu": "Account menu",
"roleAdmin": "Admin",
"roleUser": "Member",
"menuDashboard": "Dashboard",
"menuAdminPanel": "Admin panel",
"menuProfile": "Profile & settings",
"menuSignOut": "Sign out",
"openMenuAriaLabel": "Open navigation menu",
"mobileMenuTitle": "Menu",
"videoMakerBrowse": "Browse Templates",
@@ -521,7 +528,7 @@
},
"componentsDashboardSettingsSettingsProfile": {
"title": "Profile",
"subtitle": "Your public name and account email.",
"subtitle": "Your public profile, photo and account details.",
"displayNameLabel": "Display name",
"displayNamePlaceholder": "Your name",
"emailLabel": "Email",
@@ -530,7 +537,28 @@
"saveChanges": "Save changes",
"updateFailed": "Could not update profile.",
"updateSuccess": "Profile updated successfully.",
"networkError": "Network error. Please try again."
"networkError": "Network error. Please try again.",
"changeAvatar": "Change profile picture",
"uploading": "Uploading image…",
"avatarUpdated": "Profile picture updated.",
"uploadFailed": "Could not upload the image.",
"sloganLabel": "Slogan / headline",
"sloganPlaceholder": "e.g. Motion designer",
"aboutLabel": "About me",
"aboutPlaceholder": "Tell us a little about yourself…",
"companyLabel": "Company / business",
"websiteLabel": "Website",
"countryLabel": "Country",
"countryPlaceholder": "United States",
"nationalCodeLabel": "National ID",
"birthDateLabel": "Date of birth",
"genderLabel": "Gender",
"genderUnset": "Not specified",
"genderMale": "Male",
"genderFemale": "Female",
"genderOther": "Other",
"genderPreferNotToSay": "Prefer not to say",
"dataCollectionHint": "This information is used to personalize your experience and power future AI video generation."
},
"componentsDashboardSettingsSettingsSecurity": {
"title": "Security",