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>
32 lines
993 B
TypeScript
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>
|
|
);
|
|
}
|