namespace SeaHaven.Services.Constants; public static class TeamMemberConstants { public static readonly IReadOnlyList Roles = new[] { "Dispatcher", "Scheduler", "Admin" }; public static readonly IReadOnlyList ServiceAreas = new[] { "East", "Central", "West", "California" }; public static readonly IReadOnlySet Colors = new HashSet( new[] { "#F59E0B", "#0D9488", "#6366F1", "#F43F5E", "#7C3AED", "#0EA5E9", "#16A34A", "#EA580C", "#0891B2", "#C026D3" }, StringComparer.OrdinalIgnoreCase); public static string? CanonicalRole(string? value) => Canonical(value, Roles); public static string? CanonicalArea(string? value) => Canonical(value, ServiceAreas); private static string? Canonical(string? value, IReadOnlyList allowed) { if (string.IsNullOrWhiteSpace(value)) return null; return allowed.FirstOrDefault(item => string.Equals(item, value.Trim(), StringComparison.OrdinalIgnoreCase)); } }