{# Health cards partial - loaded via hx-get, auto-refreshes every 30s #}

System Health {% if health.status == "all_healthy" %} All Healthy {% elif health.status == "some_degraded" %} Degraded {% elif health.status == "some_unhealthy" or health.status == "all_unhealthy" %} Unhealthy {% else %} Unknown {% endif %} {% if health.checked_at %} Last checked: {{ health.checked_at }} {% endif %}

{% if health.components %}
{% for component in health.components %}
{{ component.name }} {% if component.status == "healthy" %} Healthy {% elif component.status == "degraded" %} Degraded {% elif component.status == "unhealthy" %} Unhealthy {% else %} Unknown {% endif %}
{{ component.type }} {% if component.latency_ms %} {{ component.latency_ms }}ms {% endif %}
{% if component.message %}
{{ component.message }}
{% endif %}
{% endfor %}
{% else %}

No health checks registered.

Health checks will appear once the ops platform is configured.

{% endif %} {# Summary bar #}
Total: {{ health.summary.total }} Healthy: {{ health.summary.healthy }} Degraded: {{ health.summary.degraded }} Unhealthy: {{ health.summary.unhealthy }}