1
0
Fork 0

fix(dashboard): drop the mission widget header row

The Operations // Last Mission widget carried a header row whose left side
repeated the mission code name already shown on the card below, and after
that duplication was removed the row held only a lone right-aligned
"View all" link floating in an empty band. Remove the row entirely: the
frame strip names the section and the mission card carries its own
"View details" affordance.
This commit is contained in:
Jason Fraley 2026-10-13 10:38:45 -04:00
parent 3b3bba5d54
commit 9bfe43ad71

View file

@ -1,5 +1,3 @@
import Link from "next/link";
import { CrosshairIcon } from "lucide-react";
import {
MissionCard,
type MissionCardProps,
@ -17,21 +15,9 @@ export function MissionBriefing({ mission, heading = "Next Mission" }: MissionBr
classification={`Operations // ${heading}`}
refCode={mission ? `REF ${refCodeFrom(mission.id)}` : undefined}
>
<div className="flex items-center justify-between gap-2 px-4 pt-3">
<div className="flex min-w-0 items-center gap-2">
<CrosshairIcon className="size-4 shrink-0 text-muted-foreground" />
<span className="truncate font-mono text-xs uppercase tracking-widest text-muted-foreground">
{mission?.codeName ?? "Standby"}
</span>
</div>
<Link
href="/intelligence/missions"
className="shrink-0 py-1 text-xs text-muted-foreground transition-colors hover:text-primary"
>
View all
</Link>
</div>
<div className="p-4 pt-3">
{/* No separate header row: the frame strip names the section and the
mission card carries its own "View details" affordance. */}
<div className="p-4">
{mission ? (
<MissionCard mission={mission} showFullDetails />
) : (