feat(09-02): add WeightSummaryCard with donut chart and classification subtotals

- Install recharts dependency for donut chart visualization
- Create WeightSummaryCard component with pill toggle (category/classification views)
- Compute base/worn/consumable/total weight subtotals from items array
- Render donut chart with colored segments, center total, and hover tooltips
- Wire WeightSummaryCard into setup detail page below sticky bar
This commit is contained in:
2026-03-16 15:20:41 +01:00
parent 83103251b1
commit d098277797
4 changed files with 344 additions and 1 deletions

View File

@@ -40,6 +40,7 @@
"lucide-react": "^0.577.0",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"recharts": "^3.8.0",
"tailwindcss": "^4.2.1",
"zod": "^4.3.6",
"zustand": "^5.0.11"