{# Metrics region — UX-035 adopter #6. Contract: ~/.claude/skills/ux-architect/components/metrics-region.md (UX-042) v0.62 CSS refactor: inline Tailwind → semantic .dz-metrics-* / .dz-metric-* classes (components/regions.css). Per-tile and per- delta-arrow tone tinting still routes through dz-tones.css keyed off data-dz-tone / data-dz-delta-tone (unchanged). #} {% from 'macros/region_wrapper.html' import region_card %} {% call region_card(title) %} {# Metrics tiles grid — responsive 1/2/4 column layout #} {% if metrics %}
{{ empty_message | default("No metrics available.") }}
{% endif %} {# v0.61.67 (#905): No items table here. `display: summary` and `display: metrics` are about the headline number — rendering an underlying rows table inside a hero tile bloats it with ~400px of vertical waste per card and crowds prototype-tight hero strips. Authors who want both metrics AND a list should declare two regions: one METRICS, one LIST. The runtime still fetches a paginated row count for `total` — but it is never rendered here. #} {% endcall %}