[Profile] Editable profile (avatar + resume) + role-based profile dropdown menu
CI/CD / CI · dotnet build (push) Successful in 44s
CI/CD / Deploy · hamkadr (push) Successful in 57s

Every user gets a full editable profile at /Me/Profile: name, role, city, specialty/title, license, years, bio + avatar image upload + resume upload (PDF/image). Avatar/resume stored in-DB on User (migration, 5 nullable columns). Endpoints: /avatar/{id} (public) and /resume/{id} (owner, admin, or an employer who received that user's application). Nav: replaced the scattered action links with an avatar button + dropdown listing all of the user's pages by role (profile, کارجو panel, alerts, preferences, notifications; employer panel; admin panel + settings; logout) — shows the avatar image or initials; collapses into the burger menu on mobile; closes on outside-click.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
soroush.asadi
2026-06-04 21:49:40 +03:30
parent 167d263560
commit e633463906
9 changed files with 1689 additions and 15 deletions
+7
View File
@@ -26,6 +26,13 @@ public class User
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
// --- Profile media (editable at /Me/Profile; stored in-DB so it survives deploys) ---
public byte[]? Avatar { get; set; }
[MaxLength(100)] public string? AvatarContentType { get; set; }
public byte[]? Resume { get; set; }
[MaxLength(200)] public string? ResumeFileName { get; set; }
[MaxLength(120)] public string? ResumeContentType { get; set; }
// Navigation
public DoctorProfile? DoctorProfile { get; set; }
public ICollection<Application> Applications { get; set; } = new List<Application>();