{#- Status not by color alone (architecture.md §6): 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. -#}
{#- ``use`` draws the cue as a reference to a shape the page holds once
(``cue_sprite``, which every page includes at its end, `_page_end.html`, outside
the grid the refresh swaps): the wall draws a cue on every chip, every box's head
and every coded line, several hundred on a deployment's tree (backlog #91 §3.9),
and the shape's path in each would be a third of the fragment; and a status a text
names in braces is drawn as a sign whose cue refers to it, on any page. The pages
that draw a cue here and there keep the whole shape in place. -#}
{% macro cue_shape(code) -%}
{%- if code.name == 'OK' -%}
{%- elif code.name == 'WARN' -%}
{%- elif code.name == 'ERROR' -%}
{%- elif code.name == 'MAINTENANCE' -%}
{%- else -%}
{%- endif -%}
{%- endmacro %}
{% macro status_cue(code, labeled=false, use=false) -%}
{%- if use -%}
{%- else -%}
{%- endif -%}
{%- endmacro %}
{#- The five shapes, drawn once for a page whose cues refer to them. -#}
{% macro cue_sprite() -%}
{%- endmacro %}