How kristoffer-0328/pesoflow works
PesoFlow is a personal-finance web app for tracking transactions, wallets, budgets, savings goals, debts, and spending. A signed-in user enters through the routed app, records financial activity, and views balances and summaries; live user data is assembled from Firestore subscriptions. The graph preserves the documented page-level capabilities, though some feature implementations were not excerpted. Edges reflect explicit imports, calls, or routing references in the supplied excerpts and source index; unsampled internals are not inferred.
Main entry points: App.tsx App routing · userData.ts Live user data · WalletsPage.tsx Wallets · DashboardPage.tsx Dashboard
Components 28
App and access
- App routing
pesoflow/src/App.tsx - Auth context
pesoflow/src/features/components/authProvider.tsx - Protected routes
pesoflow/src/app/routes/protectedRoutes.tsx - Guest routes
pesoflow/src/app/routes/guestRoutes.tsx - App layout
pesoflow/src/features/components/AppLayout.tsx - Login and register
pesoflow/src/pages/LoginPage.tsx - Account settings
pesoflow/src/pages/SettingsPage.tsx
Finance features
- Transactions
pesoflow/src/pages/TransactionsPage.tsx - Transaction entry
pesoflow/src/features/transactions/components/addTransactionsModal.tsx - Budgets
pesoflow/src/pages/BudgetsPage.tsx - Budget creation
pesoflow/src/features/budgets/components/NewBudgetModal.tsx - Wallets
pesoflow/src/pages/WalletsPage.tsx - Savings goals
pesoflow/src/pages/GoalsPage.tsx - Debts
pesoflow/src/pages/DebtsPage.tsx - Dashboard
pesoflow/src/pages/DashboardPage.tsx - Dashboard summaries
pesoflow/src/features/dashboard/components
User data
- Live user data
pesoflow/src/features/auth/hooks/userData.ts - Authentication services
pesoflow/src/features/auth/services/authServices.ts - Wallet services
pesoflow/src/features/auth/services/walletServices.ts - Budget services
pesoflow/src/features/budgets/budgetServices.ts - Transaction services
pesoflow/src/features/transactions/services/transactionServices.ts - Category services
pesoflow/src/features/auth/services/categoryServices.ts - Firebase Firestore
pesoflow/src/lib/firebase.ts - Firebase Auth
pesoflow/src/lib/firebase.ts
Shared logic
- Finance calculations
pesoflow/src/utils/calculation.ts - Date utilities
pesoflow/src/utils/date.ts - Money formatting
pesoflow/src/utils/money.ts
Other components
- User
Connections 40
- User → App routing: opens
pesoflow/src/App.tsx - App routing → Guest routes: routes guests
pesoflow/src/App.tsx - App routing → Protected routes: routes members
pesoflow/src/App.tsx - App routing → Auth context: provides auth
pesoflow/src/App.tsx - App routing → Login and register: routes to
pesoflow/src/App.tsx - App routing → Transactions: routes to
pesoflow/src/App.tsx - App routing → Budgets: routes to
pesoflow/src/App.tsx - App routing → Wallets: routes to
pesoflow/src/App.tsx - App routing → Savings goals: routes to
pesoflow/src/App.tsx - App routing → Debts: routes to
pesoflow/src/App.tsx - App routing → Dashboard: routes to
pesoflow/src/App.tsx - App routing → Account settings: routes to
pesoflow/src/App.tsx - Protected routes → App layout: wraps pages
pesoflow/src/App.tsx - Login and register → Authentication services: authenticates
pesoflow/src/pages/LoginPage.tsx - Account settings → Authentication services: updates account
pesoflow/src/pages/SettingsPage.tsx - App layout → Transaction entry: opens entry
pesoflow/src/features/components/AppLayout.tsx - Transactions → Live user data: loads live data
pesoflow/src/pages/TransactionsPage.tsx - Dashboard → Live user data: loads live data
pesoflow/src/pages/DashboardPage.tsx - Dashboard → Dashboard summaries: renders summaries
pesoflow/src/pages/DashboardPage.tsx - Dashboard → Finance calculations: calculates summaries
pesoflow/src/pages/DashboardPage.tsx - Live user data → Wallet services: subscribes wallets
pesoflow/src/features/auth/hooks/userData.ts - Live user data → Category services: subscribes categories
pesoflow/src/features/auth/hooks/userData.ts - Live user data → Transaction services: subscribes transactions
pesoflow/src/features/auth/hooks/userData.ts - Live user data → Budget services: subscribes budgets
pesoflow/src/features/auth/hooks/userData.ts - Transaction entry → Transaction services: creates transactions
pesoflow/src/features/transactions/components/addTransactionsModal.tsx - Budgets → Budget services: loads budgets
pesoflow/src/pages/BudgetsPage.tsx - Budgets → Budget creation: opens creation
pesoflow/src/pages/BudgetsPage.tsx - Budget creation → Budget services: creates budgets
pesoflow/src/features/budgets/components/NewBudgetModal.tsx - Wallets → Wallet services: manages wallets
pesoflow/src/pages/WalletsPage.tsx - Savings goals → Finance calculations: calculates progress
pesoflow/src/pages/GoalsPage.tsx - Debts → Live user data: loads live data
pesoflow/src/pages/DebtsPage.tsx - Authentication services → Firebase Auth: signs in users
pesoflow/src/features/auth/services/authServices.ts - Authentication services → Firebase Firestore: stores profiles
pesoflow/src/features/auth/services/authServices.ts - Wallet services → Firebase Firestore: reads and writes
pesoflow/src/features/auth/services/walletServices.ts - Budget services → Firebase Firestore: reads and writes
pesoflow/src/features/budgets/budgetServices.ts - Transaction services → Firebase Firestore: reads and writes
pesoflow/src/features/transactions/services/transactionServices.ts - Transaction services → Date utilities: normalizes dates
pesoflow/src/features/transactions/services/transactionServices.ts - Savings goals → Money formatting: formats amounts
pesoflow/src/pages/GoalsPage.tsx - Wallets → Finance calculations: calculates balances
pesoflow/src/pages/WalletsPage.tsx - Wallets → Money formatting: formats amounts
pesoflow/src/pages/WalletsPage.tsx