{#- Status not by color alone (ADR-0024): a small shape cue per state — a check (ok), triangle (warn), filled disc (error), pause bars (maintenance), hollow ring (idle / undefined) — so a status reads without leaning on the fill color, and a red/green color-blind viewer can separate error from ok. Drawn in ``currentColor`` so it inherits each surface's readable text color. ``labeled`` names the cue for assistive tech (WCAG 1.1.1): a **coded reason line** (ADR-0042) has no status word, so its cue is its only status channel (role=img + aria-label). Every other cue — cards, boxes, the strip — stays ``aria-hidden``: a status word beside it already speaks (a box gained its word with the state cluster), and a named cue would double-announce. Its own partial (rather than a macro inside the grid) because the leaf detail page needs it too, and importing the grid template would execute the grid's body without the grid's context — StrictUndefined rightly refuses that. -#} {% macro status_cue(code, labeled=false) -%} {%- if code.name == 'OK' -%} {%- elif code.name == 'WARN' -%} {%- elif code.name == 'ERROR' -%} {%- elif code.name == 'MAINTENANCE' -%} {%- else -%} {%- endif -%} {%- endmacro %}