1
0
Fork 0
polaris-task-force/src/app/(frontend)/operations/page.tsx
Z8MB1E c149f07347 fix(ui): unify remaining page caps to 96rem and repair story xl cap
Raise the centered operations, supply-boxes, campaigns, factions and
missions wrappers from max-w-7xl to the same max-w-[96rem] used by the
logistics detail pages so all capped pages share one width.

The story page used xl:max-w-screen-2xl, a utility Tailwind v4 removed,
so that override silently did nothing; swap it for xl:max-w-[96rem],
which restores the intended wider gutter layout on xl screens.
2026-10-19 10:52:04 -04:00

59 lines
2.2 KiB
TypeScript

import config from "@payload-config";
import { getPayload } from "payload";
import { headers as nextHeaders } from "next/headers";
import { isPayloadUser } from "@/utils/access-control/isPayloadUser";
import { getOperationOverview } from "@/lib/operations/surface";
import {
MyExtractionsCard,
OperationsRealtimeRefresher,
OperationsStrip,
PageShell,
PressureCard,
ReadinessCard,
RecentOperationsCard,
ReservationsCard,
} from "@/components/frontend/operations";
export const metadata = {
title: "Operations: Polaris Task Force",
};
export default async function OperationsPage() {
const payload = await getPayload({ config });
const { user: authUser } = await payload.auth({
headers: await nextHeaders(),
canSetHeaders: false,
});
const user = isPayloadUser(authUser) ? authUser : null;
const surfaceUser = user ? { id: user.id } : null;
const overview = await getOperationOverview(payload, surfaceUser);
return (
<div className="mx-auto flex w-full max-w-[96rem] flex-col gap-6 px-4 py-6">
<OperationsRealtimeRefresher />
<PageShell title="Operations" meta="OPERATION FEED // AFTER-ACTION RECORDS" dataTour="page-header">
<p className="max-w-2xl text-sm text-white/70">
Live and historical operation activity: extraction returns, settlements, readiness
aggregates, and zone pressure. Every effect here is provenance-linked to a validated
source event from the Arma bridge.
</p>
</PageShell>
<div className="flex flex-col gap-6">
<RecentOperationsCard operations={overview.recentOperations} />
<div className="grid gap-6 lg:grid-cols-2">
<MyExtractionsCard extractions={overview.myExtractions} signedIn={user !== null} />
<ReadinessCard readiness={overview.ownReadiness} canSee={overview.capabilities.canSeeReadiness} />
<ReservationsCard
reservations={overview.activeReservations}
canSee={overview.capabilities.canSeeReservations}
/>
<PressureCard pressure={overview.pressure} canSee={overview.capabilities.canSeePressure} />
</div>
</div>
<OperationsStrip left="OPERATIONS // UNIT COMMAND" />
</div>
);
}