I'll build a comprehensive Raspberry Pi management analytics dashboard. Let me start by exploring the project structure and then implement the full solution.
Now I'll install recharts for the charts and update the title.
Let me create the theme CSS with dark mode support:
Now I'll create the sample data generator with live-updating capability:
Now let me create the UI components. Starting with the top bar and filters:
Now the KPI card with animated numbers:
Now the three chart cards:
Now the sortable data table:
Now the main App composition:
Let me build to check for errors:
The build succeeded. Let me fix one issue — dynamic Tailwind class names in the DataTable (text-${align} won't be picked up by Tailwind's JIT compiler). Let me fix that:
Let me also improve the donut chart center text positioning for robustness:
Let me run a final build to verify everything works:
Build succeeded. Here's a summary of what I built:
PiPulse — Raspberry Pi Fleet Analytics Dashboard
A fully interactive, single-page analytics dashboard tailored for a local user managing their Pi fleet.
Architecture (9 files)
src/App.tsx — orchestrator, filter state, live ticker
src/data/sampleData.ts — deterministic sample data generator + live drift function
src/context/ThemeContext.tsx — dark mode (persisted, respects system pref)
src/components/TopBar.tsx — logo, live/pause toggle, theme toggle, user chip
src/components/Filters.tsx — date range + model/status/location + search
src/components/KPICard.tsx — animated counters + custom SVG sparklines
src/components/Charts.tsx — area, line, bar, donut (all Recharts)
src/components/DataTable.tsx — sortable, paginated, with progress bars
src/index.css — theme tokens, grid backgrounds, animations
Key features delivered
- 4 KPI cards (Active Devices, Avg CPU Temp, Network Throughput, Failed Services) with trend indicators, easing-animated numbers, and sparklines
- 4 chart types: dual-area CPU/Memory, network line chart (rx/tx), top-8 memory/disk bar chart, and status donut with centered total — all with custom tooltips and smooth 700–800 ms transitions
- Sortable, filterable table with click-to-sort headers (asc/desc), color-coded temp cells, memory + SD-health bars, status pills, and pagination
- Global filters (24H/7D/30D/90D, model, status, location, text search) that recompute every KPI, chart, and row live
- Live mode toggles a 3-second interval that drifts device metrics and appends a new time-series point — the line chart visibly updates, KPI numbers animate to their new values
- Dark mode via Tailwind v4 class variant, smooth 300 ms cross-fade, saved to localStorage
- Responsive grid (1→2→4 KPIs, stacked charts on mobile, horizontal-scroll table on small screens)
- Polish: subtle grid + radial background, pulse-ring on live indicator, fade-up entrance animations, Inter-style typography, rose/pink Pi-themed accents
Files built: index.html, src/index.css, src/types.ts, src/data/sampleData.ts, src/context/ThemeContext.tsx, src/components/TopBar.tsx, src/components/Filters.tsx, src/components/KPICard.tsx, src/components/Charts.tsx, src/components/DataTable.tsx, src/App.tsx