{# M11.1 task 5.2 — /analyzing sections A (요약) + B (즉시 분석 큐). HTMX 5초 polling target: hx-get="/analyzing/partial" hx-trigger="every 5s" Sections C+D (배치 job 목록 + 취소) 는 task 5.3 에서 추가. #}
{# ── Section A — 요약 ──────────────────────────────────────────── #}

{{ _("Summary") }}

{{ _("Interactive queue") }}: {{ summary.interactive_count }} · {{ _("Batch image") }}: {{ summary.batch_image }} · {{ _("Batch spritesheet") }}: {{ summary.batch_spritesheet }} · {{ _("Batch audio") }}: {{ summary.batch_audio }} · {{ _("Batch embed") }}: {{ summary.batch_embed }} {% if summary.eta_seconds is not none and summary.eta_seconds > 0 %} · ETA: ~{{ (summary.eta_seconds / 60) | round(0) | int }} {{ _("minutes") }} {% endif %}

{# ── Section B — 즉시 분석 큐 ─────────────────────────────────── #}

{{ _("Interactive queue") }}

{% if interactive.in_flight_path %}

{{ _("Now analyzing") }}: {{ interactive.in_flight_path }}

{% endif %} {% if interactive.queue %} {% for a in interactive.queue %} {% endfor %}
path kind
{{ a.path }} {{ a.kind }}
{% else %}

{{ _("Queue empty") }}

{% endif %}
{# ── Section C — 진행 중 Batch jobs ──────────────────────────────── #}

{{ _("Batch jobs") }}

{% if batch_jobs %} {% for job in batch_jobs %}
{{ job.modality }} #{{ job.id }} · {{ job.backend }} · {{ job.asset_count }} {{ _("assets") }} · {{ job.submitted_minutes_ago }} {{ _("minutes ago") }} / 24h SLO · {{ job.state }}
{% endfor %} {% else %}

{{ _("No active batch jobs") }}

{% endif %}
{# ── Section D — 최근 실패 ────────────────────────────────────────── #}

{{ _("Recent failures") }}

{% if recent_failures %} {% for a in recent_failures %} {% endfor %}
path kind error
{{ a.path }} {{ a.kind }} {{ a.analysis_error or "" }}
{% else %}

{{ _("No recent failures") }}

{% endif %}