{{/* Metric Card Partial - ShadCN-style individual card Usage: {{ partial "metric-card.html" (dict "label" "Open Issues" "value" 42 "subtext" "5 new this week" "info" "Tooltip text") }} Parameters: - label: The metric label - value: The metric value - descriptor: Optional muted descriptor shown at bottom (e.g., ">30 days", "last 7d") - subtext: Optional subtext below the value - info: Optional tooltip text explaining the metric - sparkline: Optional array of values for a mini chart (last 10 data points) - sparklineColor: Optional color for sparkline (default: primary blue) - trend: Optional trend percentage (positive = up, negative = down, 0 = no change) - trendGoodDirection: Optional "up" or "down" to indicate which direction is good (default: "down" for issues/PRs) - link: Optional URL to link to (e.g., GitHub filtered issues/PRs) - total: Optional total to display (e.g., 50) - shown as "/50" after value - percent: Optional percentage to display (e.g., 45.2 for "45.2%") - shown after total - percentLabel: Optional label for the percent tooltip (e.g., "of opened") */}} {{- $hasLink := .link -}} {{- $linkClasses := cond $hasLink "hover:border-base-content/30 hover:shadow-sm transition-all cursor-pointer group" "" -}}