Session A measured 159 targets under the WCAG 2.5.8 minimum on 42 routes; this brings that to zero. Mostly one-line spacing changes: small caption labels and text links were 14-21px tall because shadcn Label/Button use leading-none and bare text links carry no vertical padding. - shared Dialog close button: p-1 with right-3/top-3 so the 24px hit box keeps the icon where it was - tour card: Skip all tours (13 routes), All boards on standings cards (6) - detail pages: 27 Back links, journals All journals, wiki category links, voiceover card titles, factions batch link - dashboard: 7 View all / View full record links - account preferences: mute rows min-h-6, radio and tours labels, plus contacts filter labels and the campaigns show-completed label - ribbon studio: mirror label and stripe/module remove buttons - helpdesk ticket titles, radio tick-sound label
53 lines
1.6 KiB
TypeScript
53 lines
1.6 KiB
TypeScript
import Link from "next/link";
|
|
import { Item, ItemContent, ItemHeader, ItemTitle } from "@/components/ui/item";
|
|
import {
|
|
MissionCard,
|
|
type MissionCardProps,
|
|
} from "@/components/frontend/intelligence/MissionCard";
|
|
import { CrosshairIcon } from "lucide-react";
|
|
|
|
interface UpcomingMissionsProps {
|
|
readonly missions: MissionCardProps["mission"][];
|
|
}
|
|
|
|
export function UpcomingMissions({ missions }: UpcomingMissionsProps) {
|
|
if (missions.length === 0) {
|
|
return (
|
|
<Item variant="outline">
|
|
<ItemHeader>
|
|
<div className="flex items-center gap-2">
|
|
<CrosshairIcon className="size-4 text-muted-foreground" />
|
|
<ItemTitle>Upcoming Missions</ItemTitle>
|
|
</div>
|
|
</ItemHeader>
|
|
<ItemContent>
|
|
<p className="text-sm text-muted-foreground italic">No missions scheduled.</p>
|
|
</ItemContent>
|
|
</Item>
|
|
);
|
|
}
|
|
|
|
return (
|
|
<Item variant="outline">
|
|
<ItemHeader>
|
|
<div className="flex items-center gap-2">
|
|
<CrosshairIcon className="size-4 text-muted-foreground" />
|
|
<ItemTitle>Upcoming Missions</ItemTitle>
|
|
</div>
|
|
<Link
|
|
href="/intelligence/missions"
|
|
className="py-1 text-xs text-muted-foreground transition-colors hover:text-primary"
|
|
>
|
|
View all
|
|
</Link>
|
|
</ItemHeader>
|
|
<ItemContent>
|
|
<div className="flex flex-col gap-2">
|
|
{missions.map((mission) => (
|
|
<MissionCard key={mission.id} mission={mission} showFullDetails={false} />
|
|
))}
|
|
</div>
|
|
</ItemContent>
|
|
</Item>
|
|
);
|
|
}
|