Lovable·Prompt

Lovable Prompt: Build an Analytics Dashboard

When to Use This Prompt

Use this when you need a data dashboard for your product, internal tool, or client project. Works well for SaaS admin panels.

The Prompt

Build an analytics dashboard with:

1. Sidebar navigation with sections: Overview, Analytics, Users, Settings
2. Top bar with search, notifications, and user menu
3. Overview page with 4 KPI cards (total users, revenue, active sessions, conversion rate)
4. Charts section: line chart (trend over time), bar chart (by category), pie chart (distribution)
5. Data table with sorting, filtering, pagination, and export
6. Date range picker that filters all data
7. Real-time indicator showing live data updates

Use Recharts for visualizations. Connect to Supabase for data. Mobile-responsive with collapsible sidebar.

What to Customize

Replace the KPI names with your actual metrics. Adjust the chart types and data sources to match your data.

Expected Output

A fully functional dashboard with sidebar navigation, KPI cards, interactive charts, and a filterable data table. Supabase provides the data layer.