What to build
The SaaS dashboard currently uses CSS bar charts. We should add a lightweight charting approach using pure CSS/SVG or integrate a small chart library. The dashboard should feel like a real analytics tool with line charts, donut charts, and sparklines.
Files to modify/create
templates/saas/nextjs-monolith/app/page.tsx (Modify)
templates/saas/nextjs-monolith/app/analytics/page.tsx (Modify)
templates/saas/nextjs-monolith/components/BarChart.tsx (Create)
templates/saas/nextjs-monolith/components/LineChart.tsx (Create)
templates/saas/nextjs-monolith/components/DonutChart.tsx (Create)
templates/saas/nextjs-monolith/components/SparkLine.tsx (Create)
Specs
- Charts must be pure CSS/SVG — no external chart library dependency (keeps bundle small and avoids version conflicts).
- Line chart: SVG polyline with gradient fill.
- Bar chart: CSS flexbox bars with labels.
- Donut chart: SVG circle with
stroke-dasharray.
- Sparkline: Inline SVG for metric cards.
Acceptance criteria
Dependencies
What to build
The SaaS dashboard currently uses CSS bar charts. We should add a lightweight charting approach using pure CSS/SVG or integrate a small chart library. The dashboard should feel like a real analytics tool with line charts, donut charts, and sparklines.
Files to modify/create
templates/saas/nextjs-monolith/app/page.tsx(Modify)templates/saas/nextjs-monolith/app/analytics/page.tsx(Modify)templates/saas/nextjs-monolith/components/BarChart.tsx(Create)templates/saas/nextjs-monolith/components/LineChart.tsx(Create)templates/saas/nextjs-monolith/components/DonutChart.tsx(Create)templates/saas/nextjs-monolith/components/SparkLine.tsx(Create)Specs
stroke-dasharray.Acceptance criteria
package.json.npm run buildpasses.Dependencies