From e070d2b58690403465e12f02aff62d74810bbb0d Mon Sep 17 00:00:00 2001 From: Z8MB1E Date: Mon, 2 Nov 2026 13:23:53 -0500 Subject: [PATCH] feat(frontend): restore frame section titles and color-code faction types TacticalFrame classification labels are back on all 11 mission-detail frames (the earlier label-less pass is reverted). Faction type is now rendered as a friendly, type-colored tag (Player/Major/Minor/Corporation/ Special) instead of the raw database value. --- .../intelligence/missions/[id]/page.tsx | 11 ++++++++++ .../frontend/intelligence/MissionFactions.tsx | 20 ++++++++++++++++++- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/src/app/(frontend)/intelligence/missions/[id]/page.tsx b/src/app/(frontend)/intelligence/missions/[id]/page.tsx index b3e279fc..b768b517 100644 --- a/src/app/(frontend)/intelligence/missions/[id]/page.tsx +++ b/src/app/(frontend)/intelligence/missions/[id]/page.tsx @@ -521,6 +521,7 @@ export default async function MissionDetailPage({ params }: MissionDetailPagePro {/* ── Main Content (2/3) ──────────────────────────── */}
= { hostile: "bg-red-500/20 text-red-400", }; +const FACTION_TYPE_LABELS: Record = { + playerFaction: "Player Faction", + majorFaction: "Major Faction", + minorFaction: "Minor Faction", + corporation: "Corporation", + special: "Special", +}; + +const FACTION_TYPE_COLORS: Record = { + playerFaction: "bg-amber-500/20 text-amber-300", + majorFaction: "bg-indigo-500/20 text-indigo-300", + minorFaction: "bg-muted/50 text-muted-foreground", + corporation: "bg-cyan-500/20 text-cyan-300", + special: "bg-violet-500/20 text-violet-300", +}; + export function MissionFactions({ factionsInvolved }: MissionFactionsProps) { if (!factionsInvolved || factionsInvolved.length === 0) { return ( @@ -59,7 +75,9 @@ export function MissionFactions({ factionsInvolved }: MissionFactionsProps) { {faction && ( - {faction.type} + + {FACTION_TYPE_LABELS[faction.type] ?? faction.type} + )}