{# Self-replacing status panel: re-fetches itself every 2s until terminal. #}

{{ v.app.status }} {{ v.counts.get('done', 0) + v.counts.get('skipped', 0) }} done · {{ v.counts.get('running', 0) }} running · {{ v.counts.get('failed', 0) }} failed {% if v.app.setup_pr_url %} · Setup PR ↗{% endif %} {% if v.app.status == 'awaiting_pr' %}

(auto-detection via webhook is coming) {% endif %} {% if v.app.status == 'failed' %}
{% elif v.terminal %} {# re-run for healthy apps: verifies every step, refreshes the setup PR if the generator moved on. Without this the only re-provision path is delete + reconnect — the wrecking ball. #}
{% endif %}

{% if v.steps %}
{% for s in v.steps %}
{{ s.status }} {{ s.name }}{% if s.scope %} @{{ s.scope }}{% endif %} {% if s.error %}{{ s.error }} {% elif s.resource_ref %}{{ s.resource_ref }}{% endif %}
{% endfor %}
{% else %}

Waiting for the first step…

{% endif %}