[Profile] Editable profile (avatar + resume) + role-based profile dropdown menu
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:
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user