// Scarf dashboard widget renderer — the dogfood piece. // // Takes the SAME `dashboard.json` shape the Scarf macOS app renders // (see scarf/scarf/Core/Models/ProjectDashboard.swift) and produces an // HTML approximation for the catalog site. A template's detail page // shows a live preview of exactly what the user's project dashboard // will look like after install. // // Widget types mirrored from the Swift dispatcher: // stat — big number + label + icon + color // progress — label + 0..1 bar // text — markdown (tiny subset renderer) // table — plain HTML table // list — bulleted list with optional status badge // chart — SVG line/bar by series // webview — sandboxed