I'll build a comprehensive personal finance analytics dashboard for Indian users. Let me start by exploring the project structure and planning the implementation.
Now let me install the required packages and start building the dashboard.
Now I'll build out the full dashboard. Let me create all the files:
Now let me create the dark mode hook:
Now let me create all the components. Starting with the Header:
Now creating the KPI Cards component:
Now creating the chart components:
Now creating the Filters component:
Now creating the DataTable component:
Now creating the Account Balances sidebar component:
Now creating a spending insights component:
Now creating the main App.tsx that brings everything together:
Fix the hook property name:
Now let's build the project to check for any remaining issues:
The project builds successfully. Let me verify all files are in place and do a final review of the complete dashboard:
The dashboard is complete and builds successfully. Here's a summary of what was built:
DhanSetu — Personal Finance Dashboard
Architecture & Files
| File | Purpose |
|---|
src/data/sampleData.ts | Realistic Indian finance data generator — salary credited to HDFC, SBI savings, Ola/Uber rides, BigBasket orders, Zomato, PPF/SIP contributions, etc. |
src/hooks/useDarkMode.ts | Dark mode toggle with localStorage persistence and system preference detection |
src/components/Header.tsx | Sticky navbar with logo, notification bell, dark mode toggle, user avatar |
src/components/KPICards.tsx | 6 KPI cards (Income, Expenses, Net Savings, Savings Rate, Investments, Avg Monthly Spend) with trend badges, staggered fade-in animation |
src/components/Charts.tsx | Area chart (income vs expenses vs savings), horizontal bar chart (spending by category), donut chart (investment portfolio allocation), bar chart (monthly investment growth) — all with custom INR tooltips and smooth recharts animations |
src/components/Filters.tsx | Date range picker with preset buttons (30/90/180/Full Year) + segment dropdown (Essential, Lifestyle, Financial, Health) — all views update live |
src/components/DataTable.tsx | Sortable by date/description/category/amount, searchable, filterable by type (All/Income/Expense), paginated with 10 rows per page |
src/components/AccountBalances.tsx | 5 account cards (SBI, HDFC, ICICI Credit, Axis, Kotak) with net balance summary |
src/components/SpendingInsights.tsx | 4 AI-style smart insight cards (savings goal, dining spike, SIP returns, tax saving tip) |
src/App.tsx | Main layout wiring all components with reactive filtering |
src/index.css | Tailwind v4 dark mode variant, custom animations (fade-in-up, slide-in), glassmorphism, custom scrollbar, Recharts theme integration |
Key Features
- Indian locale throughout: ₹ symbol,
en-IN formatting, real Indian brand names, ₹ Lakhs/Cr display
- Dark mode toggle with smooth 300ms CSS transitions
- Fully responsive grid layout (1→2→3 columns on larger screens)
- Live filtering: date range and segment filters propagate to KPIs, charts, and table simultaneously
- Staggered entry animations for each card/section
- Interactive tooltips on all charts with proper INR formatting
Files built: index.html, src/data/sampleData.ts, src/hooks/useDarkMode.ts, src/index.css, src/components/Header.tsx, src/components/KPICards.tsx, src/components/Charts.tsx, src/components/Filters.tsx, src/components/DataTable.tsx, src/components/AccountBalances.tsx, src/components/SpendingInsights.tsx, src/App.tsx