diff --git a/app/missions/page.tsx b/app/missions/page.tsx index 4446a80c..2cd05613 100644 --- a/app/missions/page.tsx +++ b/app/missions/page.tsx @@ -33,6 +33,7 @@ interface Mission { createdAt: string; creator: User; missionUsers: MissionUser[]; + intention?: string; } export default function MissionsPage() { @@ -204,9 +205,25 @@ export default function MissionsPage() { {/* Card Header with Name and Level */}

{mission.name}

- - {getNiveauLabel(mission.niveau)} - +
+ {/* ODD scope icon moved next to level badge */} + {oddInfo.number && ( +
+ {oddInfo.label} { + // Fallback if image fails to load + (e.target as HTMLImageElement).style.display = 'none'; + }} + /> +
+ )} + + {getNiveauLabel(mission.niveau)} + +
{/* Centered Logo */} @@ -238,12 +255,13 @@ export default function MissionsPage() { - {/* Card Content - Only Services section */} + {/* Card Content - Services and Description */}
+ {/* Services section */} {mission.services && mission.services.length > 0 && (
Services: -
+
{mission.services.map(service => ( {service} @@ -253,22 +271,10 @@ export default function MissionsPage() {
)} - {/* ODD scope icon - moved here and enlarged */} - {oddInfo.number && ( -
-
- {oddInfo.label} { - // Fallback if image fails to load - (e.target as HTMLImageElement).style.display = 'none'; - }} - /> -
-
- )} + {/* Description text (can be added from mission data) */} +
+ {mission.intention ? mission.intention.substring(0, 100) + (mission.intention.length > 100 ? '...' : '') : 'Pas de description disponible.'} +
{/* Card Footer */} @@ -278,7 +284,7 @@ export default function MissionsPage() { -