Files
OmniRoute/src/shared/constants/statusColors.ts
Diego Rodrigues de Sa e Souza 0adae00c7b Release v3.8.42 (#5459)
Release v3.8.42 — full CHANGELOG in CHANGELOG.md.

CI: 103 checks green incl. CodeQL (all languages), Semgrep, all 8 unit shards,
coverage, Node 24 compat, and integration tests. Full unit suite validated
locally: 19437 pass / 0 fail. The 3 red checks are advisory and do not gate
main (no required status checks): SonarCloud/SonarQube new-code coverage gate,
and PR Test Policy (test-masking detector flagging the legitimate dead-Phind
provider removal in #5530 — reviewed, correct).

Includes cycle-close reconciliation + repair of inherited base-red tests from
#5480/#5527/#5427/#5521 that the PR->release fast-path did not exercise.
2026-06-30 06:54:29 -03:00

18 lines
758 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",
} as const;