Expand description
The ONE assembly-constraint status → label/color map (requirements §5 vocabulary). Both the Assembly Constraints panel’s row status labels AND the viewport overlay labels (lane G) read THIS module — the status vocabulary and its colors are never re-declared anywhere else (the UI-consistency directive).
Colors are the captured palette: grey #8e8e93 (disabled), green #30d158
(satisfied), yellow #ffd60a (adjusting / everything indeterminate — also
the default), red #ff3b30 (blocked / duplicate / error / failed). Exposed
as plain sRGB byte triples so this stays egui-free (reusable by any painter).
Functions§
- status_
color_ hex - The status color as a CSS hex string (
#rrggbb) — the overlay/label lanes that speak CSS-hex use this so the byte triple and the hex can never drift. - status_
color_ rgb - The status color as sRGB bytes. Grey for disabled, green for satisfied,
red for the error family (blocked / duplicate / error / apply-failed),
yellow (
#ffd60a) for adjusting and every indeterminate status — the captured default. - status_
label - The human label for a constraint
persistentData.statusword. Unknown / empty statuses read as “Pending” (a constraint that has never run). - status_
severity - Rank a status for the structure tree’s per-component ROLLUP dot: the WORST status across a component’s constraints wins. Higher = worse. Order: error family (3) > indeterminate/adjusting (2) > satisfied (1) > disabled (0).