feat: render sparklines + wire trend-chart pill toggle (#6)

This commit is contained in:
Samuel Enocsson
2026-05-21 14:34:28 +02:00
parent 6129b6fd3b
commit b51ae19ae1
4 changed files with 130 additions and 0 deletions
+9
View File
@@ -19,6 +19,15 @@
<div style="display: flex; justify-content: flex-end; gap: 12px; margin-bottom: 16px;">
<a href="#" onclick="clearCache(); return false;" style="color: var(--text-muted); font-size: 12px; text-decoration: none; opacity: 0.4;" title="Clear cache"><i class="fas fa-cog"></i></a>
</div>
<div class="table-toolbar">
<button id="trendchart-toggle" class="pill-toggle" type="button" aria-pressed="false">
<svg class="pill-icon" width="12" height="12" viewBox="0 0 12 12" fill="none" aria-hidden="true">
<polyline points="1,9 4,5 7,7 11,2" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
<span class="pill-label">Trend chart</span>
<span class="pill-dot"></span>
</button>
</div>
<div id="ratings-table" hx-get="/partials/ratings-table" hx-trigger="load"></div>
`; %>