complianceStatusLabel function
- AppLocalizations l10n,
- String status
All-caps status label for a compliance-status entry.
Used both for the per-member badge and for the grouped section headings on the compliance dashboard, so the two can never drift apart.
Implementation
String complianceStatusLabel(AppLocalizations l10n, String status) =>
switch (status) {
'certified' => l10n.orgComplStatusCertified,
'pending' => l10n.orgComplStatusPending,
'overdue' => l10n.orgComplStatusOverdue,
'expired' => l10n.orgComplStatusExpired,
_ => status.toUpperCase(),
};