{% comment %} Metric dropdown card with chevron pill, full-row click target, and per-case breakdown. Variables: metric_key: Alpine key for openMetrics toggle (e.g. "cost", "latency") metric_label: Display label (e.g. "Avg Total Cost") metric_value: Formatted average value (e.g. "$0.0142") delta: Delta object with .arrow, .formatted, .css_class (optional) delta_key: Key for delta lookup (same as metric_key usually) threshold: Threshold status object with .met (bool) and .bound (str) (optional) Expects parent x-data to have: openMetrics (object), cases (array), thresholds (object, optional) {% endcomment %}
{{ metric_label }}
{{ metric_value }}
{% if delta %}{{ delta.arrow }} {{ delta.formatted }}
{% endif %} {% include "eval/components/_threshold_badge.html" with threshold=threshold %}by gold set case