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:
@@ -86,6 +86,21 @@ class CarteBulle {
|
|||||||
String? get dateFin => payload['date_fin']?.toString();
|
String? get dateFin => payload['date_fin']?.toString();
|
||||||
String? get motif => payload['motif']?.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).
|
/// Asset horizontal pastel (palette `assets/cards/` uniquement).
|
||||||
String get backgroundAsset {
|
String get backgroundAsset {
|
||||||
final key = (couleur ?? '').trim().toLowerCase();
|
final key = (couleur ?? '').trim().toLowerCase();
|
||||||
|
|||||||
@@ -298,7 +298,7 @@ class _BulleTile extends StatelessWidget {
|
|||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Text(
|
child: Text(
|
||||||
card.titre,
|
card.titreAffiche,
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
style: GoogleFonts.merienda(
|
style: GoogleFonts.merienda(
|
||||||
|
|||||||
Reference in New Issue
Block a user