- Fix togglePermission() to always include all permission keys with false defaults - Add migration to backfill null/empty Manager permissions with config defaults - Rename nudge UI text from "Relance" to "Notification"/"Notifier" across 8 files - Fix select-all checkbox and show checkboxes on all declaration rows - Remove en_attente_client status restriction from BulkNotificationController Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
38 lines
895 B
PHP
38 lines
895 B
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
use BenSampo\Enum\Enum;
|
|
|
|
final class NotificationType extends Enum
|
|
{
|
|
const Nudge = 'nudge';
|
|
|
|
const DeclarationOverdue = 'declaration_overdue';
|
|
|
|
const DocumentUploaded = 'document_uploaded';
|
|
|
|
const BulkNotification = 'bulk_notification';
|
|
|
|
const StatusChanged = 'status_changed';
|
|
|
|
const Mention = 'mention';
|
|
|
|
/**
|
|
* Get French display labels for each notification type.
|
|
*
|
|
* @return array<string, string>
|
|
*/
|
|
public static function labels(): array
|
|
{
|
|
return [
|
|
self::Nudge => 'Notification',
|
|
self::DeclarationOverdue => 'Déclaration en retard',
|
|
self::DocumentUploaded => 'Document téléversé',
|
|
self::BulkNotification => 'Notification groupée',
|
|
self::StatusChanged => 'Statut modifié',
|
|
self::Mention => 'Mention',
|
|
];
|
|
}
|
|
}
|