{#- Now 1's pieces (docs/design/now-1.md): a run strip, a phase sheet, a queue line, a
difficulty-by-model table. Imported `with context` so `f` (the formatters) is in scope. -#}
{%- macro summary(snap) -%}
{#- A field reading, not a score: each value is a literal fact repeated in the region it
links to. Attention leads only when the garden has explicitly asked for it. -#}
{%- set g = snap.garden -%}
{%- set runs = snap.now | selectattr("kind", "equalto", "run") | list -%}
{%- set hands = snap.now | rejectattr("kind", "equalto", "run") | list -%}
{%- set p = snap.where.primary -%}
Garden at a glance
{% if g.dispatch_paused or hands %}attention{% if g.dispatch_paused %}Dispatch paused{% else %}{{ hands | length }} waiting on you{% endif %}{% if g.dispatch_paused %}by {{ g.dispatch_paused.by }} since {{ g.dispatch_paused.at[11:16] }}Z{% if g.dispatch_paused.reason %} · {{ g.dispatch_paused.reason }}{% endif %}{% if hands %} · {{ hands | length }} item{{ 's' if hands | length != 1 }} need you{% endif %}{% else %}Open the current cards{% endif %}{% endif %}
| {% for col in columns %}{% set parts = col.split(':', 1) if ':' in col else col.split('-', 1) %} | {% if parts | length == 2 %}{{ parts[0] }}{{ ':' if ':' in col else '-' }}{{ parts[1] }}{% else %}{{ col }}{% endif %}{% if heads.get(col) %}{{ heads[col] }}{% endif %} | {% endfor %}|
|---|---|---|
| {{ d }} | {% for col in columns %}{% set c = m.rows[d].get(col) %}{% if c %}{% set cls = (['scaled'] if c.rank is not none else []) + (['best'] if c.best else []) + (['worst'] if c.worst else []) + (['thin'] if c.thin else []) %}{% if c.best %}▲{% elif c.worst %}▽{% endif %}{% if not (c.cost_complete | default(true)) %}partial {% endif %}{{ f.cell(m.unit, c.value) }}{% if c.thin %}~{% endif %}n {{ c.n }} | {% else %}— | {% endif %}{% endfor %}