{# Status cards — grid of cards with status badge for each related entity #} {# Contract: ~/.claude/skills/ux-architect/components/related-displays.md (UX-032) #} {% from 'macros/status_badge.html' import render_status_badge %} {% for tab in group.tabs %} {% if tab.visible | default(true) %}
{% if group.tabs | length > 1 %}

{{ tab.label }}

{% endif %} {% if tab.create_url %}
+ New {{ tab.label }}
{% endif %} {% if tab.rows %}
{% for item in tab.rows %}
{% for col in tab.columns[:3] %} {% if loop.first %}

{{ item[col.key] | default("—") }}

{% else %}

{{ item[col.key] | default("—") }}

{% endif %} {% endfor %}
{% for col in tab.columns if col.type == "badge" %} {% if loop.first %} {{ render_status_badge(value=item[col.key]) }} {% endif %} {% endfor %}
{% endfor %}
{% else %}

No {{ tab.label | lower }} found.

{% endif %}
{% endif %} {% endfor %}