1
0
Fork 0
polaris-task-force/src/components/frontend/operations/LedgerRow.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

32 lines
993 B
TypeScript

import { DOSSIER } from "./tokens";
export interface ReadoutCell {
label: string;
value: string;
mono?: boolean;
}
/**
* Permanent single-line readout footer: cells separated by hairlines, each a
* mono tabular value plus a small uppercase label. Presentational only.
*/
export function LedgerRow({ cells }: { cells: readonly ReadoutCell[] }) {
return (
<footer
data-slot="ledger-row"
className={`flex items-stretch ${DOSSIER.readout} ${cells.length ? "" : "hidden"}`}
>
{cells.map((cell, index) => (
<div
key={cell.label}
className="flex min-w-0 flex-1 items-center justify-center gap-1.5 border-r border-white/15 px-1 last:border-r-0"
>
<span className={`truncate text-xs text-white/80 ${cell.mono ? "font-mono tabular-nums" : ""}`}>
{cell.value}
</span>
<span className={`shrink-0 ${DOSSIER.readoutLabel}`}>{cell.label}</span>
</div>
))}
</footer>
);
}