Add system roles (superadmin, contributor) to MemberCard badges
All checks were successful
Deploy / deploy (push) Successful in 11s

Users without a team_role now show their system role instead of
the generic "Team Member" fallback.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
fahed
2026-02-23 15:27:03 +03:00
parent d38f3a7780
commit bf084a85d7

View File

@@ -13,6 +13,8 @@ const ROLE_BADGES = {
photographer: { bg: 'bg-cyan-50', text: 'text-cyan-700', label: 'Photographer' }, photographer: { bg: 'bg-cyan-50', text: 'text-cyan-700', label: 'Photographer' },
videographer: { bg: 'bg-sky-50', text: 'text-sky-700', label: 'Videographer' }, videographer: { bg: 'bg-sky-50', text: 'text-sky-700', label: 'Videographer' },
strategist: { bg: 'bg-rose-50', text: 'text-rose-700', label: 'Strategist' }, strategist: { bg: 'bg-rose-50', text: 'text-rose-700', label: 'Strategist' },
superadmin: { bg: 'bg-red-50', text: 'text-red-700', label: 'Super Admin' },
contributor: { bg: 'bg-slate-50', text: 'text-slate-700', label: 'Contributor' },
default: { bg: 'bg-gray-50', text: 'text-gray-700', label: 'Team Member' }, default: { bg: 'bg-gray-50', text: 'text-gray-700', label: 'Team Member' },
} }