How charintornnillapat/incomeandexpence works
FinLife Tracker is a personal-finance and wellbeing PWA. The main workflow is entering or importing transactions, applying category rules, updating wallet/debt records, and reviewing financial summaries alongside diary entries. FinanceContext is the central state and mutation layer, with local persistence and optional Supabase synchronization. README capabilities are represented; unsampled view internals and some integration details are shown only where documented, so uncertain calls are omitted.
Main entry points: App.tsx App shell · FinanceContext.tsx Finance state and mutations · TransactionForm.tsx Transaction entry · TransactionsView.tsx Transactions
Components 21
App experience
- App shell
src/App.tsx - Dashboard
src/views/DashboardView.tsx - Account access
src/components/AuthModal.tsx
Financial tracking
- Transactions
src/views/TransactionsView.tsx - Transaction entry
src/components/TransactionForm.tsx - CSV exchange
src/components/transaction/ImportCsvModal.tsx - Wallet management
src/views/WalletsView.tsx - Wallet transfers
src/components/wallet/WalletTransferForm.tsx - Debt goals
src/views/DebtsView.tsx - Categories and rules
src/views/CategoriesView.tsx
Wellbeing and insights
- Wellbeing diary
src/views/DiaryView.tsx - Diary entry form
src/components/diary/DiaryEntryForm.tsx - Spending insights
src/components/dashboard/SpendingInsightsCard.tsx - Classification API
api/classify.ts - Insights API
api/insights.ts
State and services
- Finance state and mutations
src/context/FinanceContext.tsx - Ledger calculations
src/selectors/ledger.ts - Local storage
- Supabase client
src/lib/supabase.ts
Other components
- Finance user
- Supabase service
Connections 25
- Finance user → App shell: uses
README.md - App shell → Dashboard: routes to
src/App.tsx - App shell → Transactions: routes to
src/App.tsx - App shell → Wallet management: routes to
src/App.tsx - App shell → Debt goals: routes to
src/App.tsx - App shell → Wellbeing diary: routes to
src/App.tsx - App shell → Categories and rules: routes to
src/App.tsx - Transactions → Transaction entry: opens
src/views/TransactionsView.tsx - Transactions → CSV exchange: imports
src/views/TransactionsView.tsx - Wallet management → Wallet transfers: supports
README.md - Debt goals → Transaction entry: records repayments
src/views/DebtsView.tsx - Wellbeing diary → Diary entry form: edits entries
src/components/diary/DiaryEntryForm.tsx - Transaction entry → Finance state and mutations: submits mutations
src/components/TransactionForm.tsx - CSV exchange → Finance state and mutations: imports rows
src/components/transaction/ImportCsvModal.tsx - Wallet transfers → Finance state and mutations: submits transfer
src/components/wallet/WalletTransferForm.tsx - Diary entry form → Finance state and mutations: submits entries
src/components/diary/DiaryEntryForm.tsx - Dashboard → Spending insights: shows
README.md - Finance state and mutations → Ledger calculations: uses calculations
src/context/FinanceContext.tsx - Finance state and mutations → Local storage: persists locally
README.md - Finance state and mutations → Supabase client: syncs through
src/context/FinanceContext.tsx - Supabase client → Supabase service: connects to
README.md - App shell → Account access: opens
src/App.tsx - Account access → Supabase client: authenticates with
src/components/AuthModal.tsx - Transaction entry → Classification API: classifies descriptions
- Spending insights → Insights API: requests insights