1
0
Fork 0
polaris-task-force/src/components/frontend/operations/OperationsRealtimeRefresher.tsx
Z8MB1E c19d0d05ee feat(ui): tactical operation primitives and role surfaces
Reusable dossier primitives (classification strips, brackets, readouts, provenance chips, notice states) plus server-rendered /operations overview, ledger drill-down, and AAR with permission-gated sections and an authorized reconciliation panel. Realtime refresh is enhancement only.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-09-20 02:44:53 -04:00

17 lines
478 B
TypeScript

"use client";
import { useRouter } from "next/navigation";
import { useGameTick } from "@/hooks/useGameTick";
/**
* Enhancement-only realtime refresh for /operations surfaces. The server
* re-fetch on navigation is the correctness source; this only triggers an
* early refresh when a game tick lands while the page is open.
*/
export function OperationsRealtimeRefresher() {
const router = useRouter();
useGameTick(() => {
router.refresh();
});
return null;
}