From 738013151066d2251694813e9daca693be329aaa Mon Sep 17 00:00:00 2001 From: Z8MB1E Date: Mon, 2 Nov 2026 11:14:43 -0500 Subject: [PATCH] feat(frontend): style mission details sections as dossier cards Wrap each main-content section of the mission details page in a TacticalFrame card (classification strip, corner brackets, grid texture, readout footer) following the tactical dossier recipe. Add a `grow` prop to TacticalFrame for content-height frames. The hero header is left untouched. --- .../intelligence/missions/[id]/page.tsx | 205 ++++++++++++------ .../frontend/dashboard/tactical.tsx | 5 + 2 files changed, 145 insertions(+), 65 deletions(-) diff --git a/src/app/(frontend)/intelligence/missions/[id]/page.tsx b/src/app/(frontend)/intelligence/missions/[id]/page.tsx index 3d3eb82a..9964f00f 100644 --- a/src/app/(frontend)/intelligence/missions/[id]/page.tsx +++ b/src/app/(frontend)/intelligence/missions/[id]/page.tsx @@ -18,6 +18,7 @@ import { import { Item, ItemContent, ItemHeader, ItemTitle } from "@/components/ui/item"; import { ClientDate } from "@/components/frontend/ClientDate"; import { MissionBriefingSection } from "@/components/frontend/intelligence/MissionBriefingSection"; +import { ReadoutFooter, TacticalFrame, refCodeFrom } from "@/components/frontend/dashboard/tactical"; import { MissionObjectives } from "@/components/frontend/intelligence/MissionObjectives"; import { hasPermission } from "@/utils/access-control/hasPermission"; import { redactText } from "@/lib/redaction"; @@ -509,84 +510,158 @@ export default async function MissionDetailPage({ params }: MissionDetailPagePro
{/* ── Main Content (2/3) ──────────────────────────── */}
- + + + - - - Mission Details - - -
-
- Type -

{mission.classification.missionType}

+ + + + Mission Details + + +
+
+ Type +

{mission.classification.missionType}

+
+
+ Operation Type +

{mission.operationType}

+
+
+ Max Players +

{mission.missionRoles?.maxPlayers ?? "-"}

+
-
- Operation Type -

{mission.operationType}

-
-
- Max Players -

{mission.missionRoles?.maxPlayers ?? "-"}

-
-
- - + + + + - + + + - + + + - + + + + - + + + - + + + {commandChainEditor && ( - + + + )} - + + + - + + + - + + +
{/* ── Right Sidebar (1/3) ─────────────────────────── */} diff --git a/src/components/frontend/dashboard/tactical.tsx b/src/components/frontend/dashboard/tactical.tsx index 4cca7300..94b3508f 100644 --- a/src/components/frontend/dashboard/tactical.tsx +++ b/src/components/frontend/dashboard/tactical.tsx @@ -29,6 +29,9 @@ interface TacticalFrameProps { footer?: ReactNode; /** Corner brackets, default on. Turn off for bar-shaped surfaces. */ brackets?: boolean; + /** Fill the parent's cross axis (flex-1). Default true; pass false for a + * content-height frame (e.g. stacked, non-stretching sections). */ + grow?: boolean; className?: string; } @@ -38,12 +41,14 @@ export function TacticalFrame({ children, footer, brackets = true, + grow = true, className, }: TacticalFrameProps) { return (