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

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>
);
}