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 (

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.

); }