{%- macro stage_item(stage) -%}
  • {{ include_raw('icons/chevron-right.svg') | replace("lucide ", "min-w-3 w-3 max-w-3 min-h-3 h-3 max-h-3 mt-1 stroke-neutral-400 dark:stroke-neutral-600 transition-all group-hover/item:stroke-current ") }}

    {{- stage.name -}} {{- ': ' + stage.message if stage.message else '' -}}

    {% if ('actual_result' in stage) or ('expected_result' in stage) or stage.severity or stage.result or stage.timestamp %}
    {% if ('actual_result' in stage) or ('expected_result' in stage) %}
    {% if ('expected_result' in stage) %}
    Expected: {{stage.expected_result}}
    {% endif %} {% if ('actual_result' in stage) %}
    Actual: {{ stage.actual_result }}
    {% endif %}
    {% endif %} {% if stage.severity %}
    Severity: {{ stage.severity }}
    {% endif %} {% if stage.result %}
    Result: {{ stage.result }}
    {% endif %} {% if stage.timestamp %}
    {{ include_raw('icons/calendar-clock.svg') | replace("lucide ", "size-4 ") }} {{ stage.timestamp }}
    {% endif %} {% if stage.exception %}
    Exception:
    {{ stage.exception }}
    {% endif %}
    {% endif %}
  • {%- endmacro -%}