Skip to main content

Module assembly_status

Module assembly_status 

Source
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.status word. 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).