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>
25 lines
667 B
TypeScript
25 lines
667 B
TypeScript
import { STATUS_TONE_CLASSES, type StatusTone } from "./tokens";
|
|
|
|
/**
|
|
* Squared status pill with military-style uppercase text. The tone drives a
|
|
* contrast-compliant -400 text color on a /20 background; the text itself is
|
|
* the only status signal (no duplicate indicator).
|
|
*/
|
|
export function StatusReadout({
|
|
label,
|
|
tone = "neutral",
|
|
}: {
|
|
label: string;
|
|
tone?: StatusTone;
|
|
}) {
|
|
return (
|
|
<span
|
|
role="status"
|
|
data-slot="status-readout"
|
|
data-tone={tone}
|
|
className={`inline-block rounded-sm border px-2 py-1 text-[10px] font-semibold uppercase tracking-wider ${STATUS_TONE_CLASSES[tone]}`}
|
|
>
|
|
{label}
|
|
</span>
|
|
);
|
|
}
|