fix(#173): libellés sémantiques des bulles (congés, arrêt, absence)

Demande de congés / Arrêt maladie / Notification d’absence.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-01 17:10:41 +02:00
co-authored by Cursor
parent 676e22665a
commit 2832499d3e
2 changed files with 16 additions and 1 deletions
+15
View File
@@ -86,6 +86,21 @@ class CarteBulle {
String? get dateFin => payload['date_fin']?.toString();
String? get motif => payload['motif']?.toString();
/// Libellé UI (sémantique produit) — pas le titre brut API.
String get titreAffiche {
switch (typeCode) {
case 'conge_am':
return 'Demande de congés';
case 'arret_maladie_am':
return 'Arrêt maladie';
case 'absence_enfant':
case 'absence_enfant_modif':
return 'Notification d’absence';
default:
return titre;
}
}
/// Asset horizontal pastel (palette `assets/cards/` uniquement).
String get backgroundAsset {
final key = (couleur ?? '').trim().toLowerCase();