mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-09-20 13:52:28 +03:00
Modelo puro do Orchestration Canvas (tipos, 3 mappers, mergeSnapshot com dedupe/staleness/cap, projeções flow+overview) + hook de polling com gatilho WS. Ciclo completo: 9 tasks TDD com review por task, review final whole-branch + fixes verificados 6/6, refactor de complexity re-validado (comportamento preservado). CI: 18 pass. Testes: 31 node:test + 2 vitest. Parte 2/2 (UI /dashboard/orchestration) na sequência.
20 lines
881 B
TypeScript
20 lines
881 B
TypeScript
/**
|
|
* Canonical status colors — single source of truth for status HEX, mirroring the
|
|
* semantic tokens in `src/app/globals.css` (--color-success / --color-warning /
|
|
* --color-error). Previously these same hex values were copy-pasted across several
|
|
* components (flow edge styles, token-health badge, cascade nodes…); this module
|
|
* collapses them to one place.
|
|
*
|
|
* Use these HEX values ONLY where a CSS class can't reach — canvas, ReactFlow SVG
|
|
* strokes, or inline styles on third-party nodes. For normal DOM, prefer the Tailwind
|
|
* utilities (`text-success`, `bg-error/10`, …) which already read the same tokens.
|
|
*/
|
|
export const STATUS_HEX = {
|
|
success: "#22c55e",
|
|
warning: "#f59e0b",
|
|
error: "#ef4444",
|
|
muted: "#6b7280",
|
|
/** Human-approval gate (waiting_approval) — violet, matching the industry de-facto palette. */
|
|
approval: "#8b5cf6",
|
|
} as const;
|