Files
tiny-forge/web/src/lib
alexei.dolgolyov 793570f4a1 feat(stats): inline 30-min sparklines on container CPU + memory bars
Always-visible trend lines next to the existing bars on every running
instance and static-site card so the user can spot a slow drift or recent
spike at a glance, without expanding the full history chart. Implemented
as a tiny pure-SVG component (no ECharts on hot list paths) — values are
fetched once per 30s alongside the current snapshot via a 30m history
query that the collector already serves.

- Sparkline.svelte: pure-SVG polyline + optional area fill, normalises
  values to [0,100] and clamps out-of-range points
- ContainerStats: parallel fetch of stats + 30m history, two new
  $derived arrays for CPU% and memory%, sparklines slotted between the
  bar and the numeric readout
2026-05-07 02:20:06 +03:00
..