From 8c7672105c0595c7b91549720861457dee55d433 Mon Sep 17 00:00:00 2001 From: oabrivard Date: Sat, 21 Mar 2026 23:59:47 +0100 Subject: [PATCH] v2: empty sections fallback in synthesis detail view Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/i18n/fr.ts | 1 + frontend/src/pages/SynthesisDetail.tsx | 17 ++++++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/frontend/src/i18n/fr.ts b/frontend/src/i18n/fr.ts index 738d84b..209d20f 100644 --- a/frontend/src/i18n/fr.ts +++ b/frontend/src/i18n/fr.ts @@ -97,6 +97,7 @@ const fr = { 'synthesis.loadError': 'Erreur lors du chargement de la synthese.', 'synthesis.deleteError': 'Erreur lors de la suppression.', 'synthesis.backToHome': 'Retour a l\'accueil', + 'synthesis.noSections': 'Aucune section trouvee dans cette synthese.', // Synthesis - Email 'synthesis.email.title': 'Envoyer par email', diff --git a/frontend/src/pages/SynthesisDetail.tsx b/frontend/src/pages/SynthesisDetail.tsx index 149ff7b..56fe774 100644 --- a/frontend/src/pages/SynthesisDetail.tsx +++ b/frontend/src/pages/SynthesisDetail.tsx @@ -356,11 +356,18 @@ const SynthesisDetail: Component = () => { {/* Sections */}
- - {(section) => ( -
- )} - + 0} + fallback={ +

+ {t('synthesis.noSections')} +

+ } + > + + {(section) =>
} + +
)}