I'll build a comprehensive personal finance analytics dashboard with interactive charts, KPI cards, data tables, filters, and dark mode. Let me start by exploring the project and installing dependencies.
Now let me install the needed packages and then build all the components.
Now let me build the entire dashboard. I'll create all the files systematically.
Now let me create all the main components:
Let me fix the unused imports and continue creating the chart and table components:
Let me fix the type errors and create the DataTable:
Now let me create the DataTable component:
Now let me create the main App.tsx and update the index.html:
I need to export the helper functions and fix unused imports:
Let me check the cn utility and fix the imports:
Now let me update the index.html title and try building:
The build succeeds. Let me now enhance the charts with better dark mode support and add more visual polish:
Let me rewrite the Charts component with proper dark mode awareness:
The build succeeds. Let me enhance the CSS with smooth transitions and custom scrollbar styles for a polished look:
Let me enhance the Filters component with a click-outside handler:
Now let me add a Quick Summary bar to the App that shows filtered totals:
Now let me update App.tsx to include the QuickSummary:
The project builds successfully. Here's a summary of what I built:
FinTrack - Personal Finance Analytics Dashboard
Features Implemented:
📊 KPI Summary Cards
- Total Balance, Monthly Income, Monthly Expenses, Savings Rate
- Trend indicators with percentage change vs previous month
- Color-coded icons and hover animations
📈 Interactive Charts
- Area Chart — Income vs Expenses comparison with gradient fills
- Line Chart — Cumulative balance growth over time with active dots
- Donut/Pie Chart — Spending breakdown by top 6 categories with legend
- Bar Chart — Budget vs Actual comparison with rounded bars
- All charts feature smooth animations, custom tooltips, and dark mode support
📋 Data Table
- Sortable by any column (click headers)
- Real-time search across description, category, tags, and payment method
- Pagination with 10 items per page
- Color-coded amounts (green for income, red for expenses)
- Category badges and transaction type icons
🔍 Live Filters
- Date Range — Quick presets (7d, 30d, 90d, 6mo, 1yr, all) + manual date inputs
- Segment Filter — All / Income / Expenses toggle pills
- Category Filter — Dropdown with all available categories
- All views update reactively when filters change
🎨 Design & UX
- Dark mode toggle with system preference detection
- Collapsible sidebar navigation (responsive)
- Gradient Quick Summary bar with savings rate progress indicator
- Custom scrollbar styling
- Smooth transitions throughout
- Fully responsive layout (mobile → desktop)
📦 Data
- 12 months of realistic sample data with 200+ transactions
- Multiple income sources and 12 expense categories
- Budget tracking with realistic amounts
Files built: src/data/generateData.ts, src/context/ThemeContext.tsx, src/components/Filters.tsx, src/components/KpiCards.tsx, src/components/Charts.tsx, src/components/DataTable.tsx, src/App.tsx, index.html, src/index.css, src/components/QuickSummary.tsx