{# Plan node detail panel - loaded via HTMX #} {% set status_color = 'green' if status in ('cached', 'completed') else 'yellow' %}

{{ step.name or step.step_id[:20] }}

{{ step.node_type or 'EFFECT' }} {{ status }} Level {{ step.level or 0 }}
{# Output preview #} {% if output_preview %}
Output
{% if output_media_type == 'video' %} {% elif output_media_type == 'image' %} {% elif output_media_type == 'audio' %} {% endif %}
{% elif ipfs_cid %}
Output (IPFS)
{% endif %} {# Output link #} {% if ipfs_cid %} {{ ipfs_cid[:24] }}... View {% elif has_cached and cache_id %} {{ cache_id[:24] }}... View {% endif %} {# Input media previews #} {% if inputs %}
Inputs ({{ inputs|length }})
{% for inp in inputs %} {% if inp.media_type == 'video' %} {% elif inp.media_type == 'image' %} {% else %}
{{ inp.media_type or 'File' }}
{% endif %}
{{ inp.name }}
{{ inp.cache_id[:12] }}...
{% endfor %}
{% endif %} {# Parameters/Config #} {% if config %}
Parameters
{% for key, value in config.items() %}
{{ key }}: {{ value if value is string else value|tojson }}
{% endfor %}
{% endif %} {# Metadata #}
Step ID: {{ step.step_id[:32] }}...
Cache ID: {{ cache_id[:32] }}...