How sushantshinde7/finsights works
Finsights is a React personal-finance and analytics application. Users can explore sample data as guests or sign in, then manage transaction datasets, import/export CSV, and view dashboard and insight summaries. The frontend owns transaction state and browser persistence; Firebase handles authentication. The README identifies the backend as a nonfunctional scaffold, so it is not represented as a working API. Edges are limited to relationships shown in excerpts, the source index, or README; unsampled feature internals are grouped at their exact directories.
Main entry points: TransactionContext.jsx Transaction state · main.jsx App bootstrap · TransactionsPage.jsx Transaction management · AuthContext.jsx Auth state
Components 23
App shell & access
- App bootstrap
src/main.jsx - Route dispatch
src/routes/AppRoutes.jsx - App layout
src/layouts/AppLayout.jsx - Route guards
src/components/auth - Motion utilities
src/lib/motion.js
Authentication & state
- Theme state
src/context/ThemeContext.jsx - Auth state
src/context/AuthContext.jsx - Firebase auth
src/services/firebase.js - Sign-in & signup
src/pages/auth
Transactions & datasets
- Transaction state
src/context/TransactionContext.jsx - Sample datasets
src/data/mockTransactions.js - Sample dataset two
src/data/mockTransactions2.js - Browser storage
- CSV utilities
src/lib/csv.js - Transaction management
src/pages/transactions/TransactionsPage.jsx - Transaction dialogs & table
src/pages/transactions/components
Financial views
- Dashboard KPIs & charts
src/pages/dashboard - Insights & summaries
src/pages/insights
Home experience
- Product home
src/pages/home/HomePage.jsx - Live previews
src/pages/home/components - Preview data
src/data/homePreviewData.js - Scroll reveal hook
src/hooks/useInView.js
Other components
- Visitor / user
Connections 24
- Visitor / user → App bootstrap: opens app
- App bootstrap → Route dispatch: renders
src/main.jsx - App bootstrap → Theme state: provides theme
src/main.jsx - App bootstrap → Auth state: provides auth
src/main.jsx - App bootstrap → Transaction state: provides transactions
src/main.jsx - Route dispatch → App layout: routes through
src/routes/AppRoutes.jsx - Route dispatch → Route guards: guards auth pages
src/routes/AppRoutes.jsx - Sign-in & signup → Auth state: requests auth
src/pages/auth/LoginPage.jsx - Auth state → Firebase auth: calls auth operations
src/context/AuthContext.jsx - Auth state → Transaction state: provides user identity
src/context/TransactionContext.jsx - Transaction state → Sample datasets: loads sample rows
src/context/TransactionContext.jsx - Transaction state → Sample dataset two: loads sample rows
src/context/TransactionContext.jsx - Transaction state → Browser storage: reads and writes
- Transaction state → CSV utilities: fingerprints rows
src/context/TransactionContext.jsx - Transaction management → Transaction state: manages datasets
src/pages/transactions/TransactionsPage.jsx - Transaction management → CSV utilities: validates imports
src/pages/transactions/TransactionsPage.jsx - Transaction management → Transaction dialogs & table: renders controls
src/pages/transactions/TransactionsPage.jsx - Dashboard KPIs & charts → Transaction state: reads active data
src/pages/dashboard/DashboardPage.jsx - Insights & summaries → Transaction state: reads active data
src/pages/insights/InsightsPage.jsx - Product home → Live previews: renders previews
src/pages/home/HomePage.jsx - Live previews → Preview data: reads illustrative data
src/pages/home/components/LiveLedgerPreview.jsx - Live previews → Scroll reveal hook: triggers reveal
src/pages/home/components/LiveLedgerPreview.jsx - Product home → Motion utilities: uses animations
src/pages/home/HomePage.jsx - Transaction management → Motion utilities: uses animations
src/pages/transactions/TransactionsPage.jsx