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>
17 lines
478 B
TypeScript
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;
|
|
}
|