How alwipratama/financial-tracker works
FinaryApp is a personal-finance tracker: users sign in, record income and expenses, review balances and reports, and manage account settings. Authentication supports local accounts and Google OAuth; transactions are stored per account in browser localStorage. Reports can be downloaded as PDFs or uploaded to Google Drive. The graph follows relationships shown in excerpts and the SOURCE INDEX; unsampled implementation details are not inferred.
Main entry points: src/App.tsx Finance interface · AuthContext.tsx Authentication context · src/App.tsx App shell · useTransactions.ts Transaction hook
Components 18
App and access
- App shell
src/App.tsx - Background visuals
src/src/components/Background.tsx - Brand mark
src/src/components/Logo.tsx - Install prompt
src/src/components/InstallPrompt.tsx
Finance tracking
- Finance interface
src/src/App.tsx - Transaction hook
src/src/hooks/useTransactions.ts - Browser transaction storage
- Currency and dates
src/src/utils/formatters.ts - Categories and translations
src/src/constants/index.ts
Accounts and identity
- Login and registration
src/src/components/LoginPage.tsx - Authentication context
src/src/contexts/AuthContext.tsx - Browser account storage
- Supabase Auth
- Account settings
src/src/components/AccountManager.tsx
Reports and export
- Reports view
src/src/components/ReportsTab.tsx - PDF and Drive export
src/src/utils/reportExport.ts
Other components
- User
- Google Drive
Connections 23
- User → App shell: opens app
- App shell → Authentication context: provides auth
src/App.tsx - App shell → Finance interface: renders
src/App.tsx - Finance interface → Authentication context: reads account
src/src/App.tsx - Finance interface → Transaction hook: uses transactions
src/src/App.tsx - Finance interface → Login and registration: renders when signed out
src/src/App.tsx - Finance interface → Account settings: renders settings
src/src/App.tsx - Finance interface → Reports view: renders reports
src/src/App.tsx - Finance interface → Background visuals: renders
src/src/App.tsx - Finance interface → Install prompt: renders
src/src/App.tsx - Finance interface → Currency and dates: formats amounts and dates
src/src/App.tsx - Finance interface → Categories and translations: uses labels
src/src/App.tsx - Login and registration → Authentication context: uses auth actions
src/src/components/LoginPage.tsx - Account settings → Authentication context: uses account actions
src/src/components/AccountManager.tsx - Transaction hook → Authentication context: reads current account
src/src/hooks/useTransactions.ts - Transaction hook → Browser transaction storage: reads and writes
src/src/hooks/useTransactions.ts - Authentication context → Browser account storage: reads and writes
src/src/contexts/AuthContext.tsx - Authentication context → Supabase Auth: checks session and OAuth
src/src/contexts/AuthContext.tsx - Reports view → Currency and dates: uses date and currency formatting
src/src/components/ReportsTab.tsx - Reports view → PDF and Drive export: uses export functions
src/src/components/ReportsTab.tsx - PDF and Drive export → Supabase Auth: gets session token
src/src/utils/reportExport.ts - PDF and Drive export → Google Drive: uploads PDF
src/src/utils/reportExport.ts - Finance interface → Brand mark: renders
src/src/App.tsx