1
0
Fork 0

feat(frontend): drop redundant internal section titles from mission detail cards

The TacticalFrame header (icon + 'OPERATION // Topic') now owns each
card's heading; the duplicate per-component content titles are removed
across Rating, Mission Details, Briefing (SQF export retained),
Objectives, Factions, Roles (Max Players stat retained), Comms,
Logistics, and Role Sign-Ups (queue note retained). The Command Chain
title removal is left in the working tree, on top of the separate
collapsible-panel work-in-progress in MissionCommandChainEditor.tsx.

Cleans up the now-unused ClipboardListIcon import and a dangling
aria-labelledby reference left by the removed Rating heading.
This commit is contained in:
Jason Fraley 2026-11-02 13:35:40 -05:00
parent e070d2b586
commit e5f6d107b9
9 changed files with 1 additions and 53 deletions

View file

@ -541,9 +541,6 @@ export default async function MissionDetailPage({ params }: MissionDetailPagePro
grow={false}
>
<Item variant="outline">
<ItemHeader>
<ItemTitle>Mission Details</ItemTitle>
</ItemHeader>
<ItemContent>
<div className="grid grid-cols-2 md:grid-cols-3 gap-3 text-sm">
<div>

View file

@ -37,12 +37,6 @@ export function MissionBriefingSection({ briefing, missionName }: MissionBriefin
return (
<div className="flex min-w-0 flex-col gap-3 px-4 py-4">
<div className="flex items-center justify-between gap-2">
<div className="flex items-center gap-2">
<FileTextIcon className="size-4 text-muted-foreground" />
<h2 className="text-sm font-semibold uppercase tracking-wider text-muted-foreground">
Briefing
</h2>
</div>
<BriefingSqfExport entries={briefing} missionName={missionName} />
</div>
{briefing.map((entry, index) => (

View file

@ -52,12 +52,6 @@ export function MissionComms({ commsAndDocs }: MissionCommsProps) {
return (
<div className="flex min-w-0 flex-col gap-3 px-4 py-4">
<div className="flex items-center gap-2">
<RadioIcon className="size-4 text-muted-foreground" />
<h2 className="text-sm font-semibold uppercase tracking-wider text-muted-foreground">
Communications
</h2>
</div>
<Item variant="outline">
<ItemContent className="flex flex-col gap-4">
{radioPlan && (

View file

@ -53,12 +53,6 @@ export function MissionFactions({ factionsInvolved }: MissionFactionsProps) {
return (
<div className="flex min-w-0 flex-col gap-3 px-4 py-4">
<div className="flex items-center gap-2">
<ShieldIcon className="size-4 text-muted-foreground" />
<h2 className="text-sm font-semibold uppercase tracking-wider text-muted-foreground">
Factions Involved
</h2>
</div>
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3">
{factionsInvolved.map((entry, index) => {
const faction = typeof entry.faction === "object" ? entry.faction : null;

View file

@ -42,12 +42,6 @@ export function MissionLogistics({ logisticsAndSupport }: MissionLogisticsProps)
return (
<div className="flex min-w-0 flex-col gap-3 px-4 py-4">
<div className="flex items-center gap-2">
<TruckIcon className="size-4 text-muted-foreground" />
<h2 className="text-sm font-semibold uppercase tracking-wider text-muted-foreground">
Logistics &amp; Support
</h2>
</div>
<Item variant="outline">
<ItemContent className="flex flex-col gap-4">
{hasInsertion && (

View file

@ -92,12 +92,6 @@ export function MissionObjectives({
return (
<div className="flex min-w-0 flex-col gap-3 px-4 py-4">
<div className="flex items-center gap-2">
<CrosshairIcon className="size-4 text-muted-foreground" />
<h2 className="text-sm font-semibold uppercase tracking-wider text-muted-foreground">
Objectives
</h2>
</div>
<div className="border border-border rounded-lg overflow-x-auto">
<table className="w-full text-sm">
<thead>

View file

@ -311,18 +311,7 @@ export function MissionRating({
return (
<section
className="flex min-w-0 flex-col gap-3 px-4 py-4"
aria-labelledby="mission-rating-heading"
>
<div className="flex items-center gap-2">
<StarIcon className="size-4 text-muted-foreground" />
<h2
id="mission-rating-heading"
className="truncate text-sm font-semibold uppercase tracking-wider text-muted-foreground"
>
Mission Rating
</h2>
</div>
<Item variant="outline" className="py-4">
<ItemHeader>
<ItemTitle>Rate this mission</ItemTitle>

View file

@ -2,7 +2,7 @@
import { useState } from "react";
import { useRouter } from "next/navigation";
import { ClipboardListIcon, UserCheckIcon, UserPlusIcon, UsersIcon, XIcon } from "lucide-react";
import { UserCheckIcon, UserPlusIcon, UsersIcon, XIcon } from "lucide-react";
import { Item, ItemContent, ItemHeader, ItemTitle } from "@/components/ui/item";
import { Button } from "@/components/ui/button";
import { cn } from "@/lib/utils";
@ -83,10 +83,6 @@ export function MissionRoleSignups({
return (
<Item variant="outline">
<ItemHeader>
<div className="flex items-center gap-2">
<ClipboardListIcon className="size-4 text-muted-foreground" />
<ItemTitle>Role Sign-Ups</ItemTitle>
</div>
<span className="text-[10px] font-semibold uppercase tracking-wider text-muted-foreground">
First come, first served
</span>

View file

@ -50,10 +50,6 @@ export function MissionRoles({ roles, notes, maxPlayers }: MissionRolesProps) {
return (
<div className="flex min-w-0 flex-col gap-3 px-4 py-4">
<div className="flex items-center gap-2">
<UsersIcon className="size-4 text-muted-foreground" />
<h2 className="text-sm font-semibold uppercase tracking-wider text-muted-foreground">
Roles
</h2>
<span className="ml-auto text-xs font-mono text-muted-foreground">
Max Players: <span className="text-foreground font-semibold">{maxPlayers}</span>
</span>