How sauravpanigrahi/spent-analyzer works
Spend Analyzer is a client-side personal-finance dashboard. Users enter through public landing and account screens, then navigate protected views to manage transactions, budgets, and savings or review dashboard and analytics results. React contexts hold app state in browser storage, with mock data and shared date, calculation, and CSV helpers supporting the financial workflows. The README documents CSV transfer and several dashboard and analytics capabilities; some page and component internals were not sampled, so their detailed call relationships are not inferred.
Main entry points: App.jsx Route dispatcher · Dashboard.jsx Financial dashboard · BudgetContext.jsx Budget and goal state · TransactionContext.jsx Transaction state
Components 26
Navigation and access
- Route dispatcher
src/App.jsx - Landing page
src/pages/Landing.jsx - Login and signup
src/pages/Signup.jsx - Protected app layout
src/components/layout/Layout.jsx - Account settings
src/pages/Settings.jsx - Security settings
src/pages/Security.jsx
Financial workflows
- Transaction management
src/pages/Transactions.jsx - Transaction list
src/components/transactions/TransactionList.jsx - Transaction entry
src/components/transactions/TransactionForm.jsx - Budget management
src/pages/Budgets.jsx - Budget tracking
src/components/budgets/BudgetList.jsx - Savings goals
src/pages/Savings.jsx - Goal tracking
src/components/savings/SavingsGoalsList.jsx
Reporting and insights
- Financial dashboard
src/pages/Dashboard.jsx - Summary cards
src/components/dashboard/StatCards.jsx - Dashboard charts
src/components/dashboard/Charts.jsx - Analytics
src/pages/Analytics.jsx
State and calculations
- Authentication
src/context/AuthContext.jsx - Transaction state
src/context/TransactionContext.jsx - Budget and goal state
src/context/BudgetContext.jsx - Financial helpers
src/utils/helpers.js - Sample financial data
src/data/mockData.js - Browser local storage
Shared presentation
- Reusable UI components
src/components/ui - Theme state
src/context/ThemeContext.jsx
Other components
- App user
Connections 37
- App user → Route dispatcher: opens app
src/App.jsx - Route dispatcher → Landing page: routes to
src/App.jsx - Route dispatcher → Login and signup: routes to
src/App.jsx - Route dispatcher → Authentication: checks access
src/App.jsx - Route dispatcher → Protected app layout: wraps protected views
src/App.jsx - Route dispatcher → Transaction management: routes to
src/App.jsx - Route dispatcher → Budget management: routes to
src/App.jsx - Route dispatcher → Analytics: routes to
src/App.jsx - Route dispatcher → Savings goals: routes to
src/App.jsx - Route dispatcher → Financial dashboard: routes to
src/App.jsx - Route dispatcher → Account settings: routes to
src/App.jsx - Route dispatcher → Security settings: routes to
src/App.jsx - Login and signup → Authentication: uses auth
src/pages/Signup.jsx - Financial dashboard → Transaction state: reads transactions
src/pages/Dashboard.jsx - Financial dashboard → Budget and goal state: reads budgets
src/pages/Dashboard.jsx - Financial dashboard → Financial helpers: generates insights
src/pages/Dashboard.jsx - Financial dashboard → Summary cards: renders
src/pages/Dashboard.jsx - Financial dashboard → Dashboard charts: renders
src/pages/Dashboard.jsx - Transaction management → Transaction list: presents transactions
- Transaction management → Transaction entry: supports entry
- Transaction list → Transaction state: uses transaction state
src/components/transactions/TransactionList.jsx - Transaction entry → Sample financial data: loads categories
src/components/transactions/TransactionForm.jsx - Budget management → Budget tracking: presents budgets
- Budget tracking → Budget and goal state: uses budget state
src/components/budgets/BudgetList.jsx - Savings goals → Goal tracking: presents goals
- Goal tracking → Budget and goal state: uses goal state
src/components/savings/SavingsGoalsList.jsx - Transaction state → Financial helpers: filters and exports
src/context/TransactionContext.jsx - Budget and goal state → Financial helpers: calculates progress
src/context/BudgetContext.jsx - Transaction state → Sample financial data: loads sample data
src/context/TransactionContext.jsx - Budget and goal state → Sample financial data: loads sample data
src/context/BudgetContext.jsx - Authentication → Sample financial data: loads demo user
src/context/AuthContext.jsx - Transaction state → Browser local storage: persists transactions
src/context/TransactionContext.jsx - Budget and goal state → Browser local storage: persists budgets and goals
src/context/BudgetContext.jsx - Authentication → Browser local storage: persists account state
src/context/AuthContext.jsx - Financial dashboard → Reusable UI components: uses shared UI
src/pages/Dashboard.jsx - Transaction list → Reusable UI components: uses shared UI
src/components/transactions/TransactionList.jsx - Theme state → Browser local storage: stores theme choice