How john0931-st/pesobudget works
PesoBudget is an offline-ready Philippine payroll and expense workbook. Users enter monthly or 15th-cutoff obligations in the sheet; the app recalculates totals and balances, then presents summaries and analytics. Supporting branches provide audit history, import/export and printable reports, offline persistence and queued sync, and account security with cloud backup. The graph follows the sampled app/storage calls and source-index references; several feature links are documented in the README, while unsampled implementation details are not inferred.
Main entry points: App.tsx App coordinator · BudgetTable.tsx Budget sheet · storage.ts Workbook storage · firebaseSyncService.ts Cloud sync service
Components 26
Budget workspace
- App coordinator
src/App.tsx - Budget sheet
src/components/BudgetTable.tsx - Month tabs
src/components/MonthSheetTabs.tsx - Budget models
src/types/budget.ts - Cell merging
src/utils/cellMerge.ts - Currency hook
src/hooks/useCurrency.ts
Budget calculations
- Budget calculations
src/utils/computation.ts - Formula evaluator
src/utils/formula.ts - Currency settings
src/utils/currency.ts
Insights and reporting
- Monthly summary
src/components/MonthlySummary.tsx - Analytics charts
src/components/DataVisualization.tsx - Workbook aggregation
src/utils/monthGrouping.ts - Audit history
src/utils/changeLogService.ts - PDF reports
src/utils/printService.ts
Persistence and sync
- Workbook storage
src/utils/storage.ts - Offline edit queue
src/utils/offlineQueue.ts - Sync controls
src/components/SyncOfflineModal.tsx - Cloud sync service
src/services/firebaseSyncService.ts - Firebase setup
src/firebase.ts
Security and export
- Import and export
src/components/ImportExportModal.tsx - Excel conversion
src/utils/excelService.ts - Security and backup
src/services/securityService.ts - Settings and exports
src/components/SettingsModal.tsx - Portable encryption
src/utils/portableCrypto.ts
Other components
- Budget user
- Firebase services
Connections 31
- Budget user → App coordinator: uses
README.md - App coordinator → Budget sheet: shows sheet
src/App.tsx - App coordinator → Month tabs: shows tabs
src/App.tsx - App coordinator → Workbook storage: loads workbook
src/App.tsx - App coordinator → Budget calculations: recalculates
src/App.tsx - Budget sheet → Cell merging: resolves merges
src/components/BudgetTable.tsx - Budget sheet → Workbook storage: reads sheet data
src/components/BudgetTable.tsx - Workbook storage → Budget calculations: recalculates data
src/utils/storage.ts - Budget calculations → Formula evaluator: evaluates formulas
src/utils/computation.ts - App coordinator → Monthly summary: shows summary
src/App.tsx - App coordinator → Analytics charts: shows analytics
src/App.tsx - Analytics charts → Workbook aggregation: aggregates sheets
src/components/DataVisualization.tsx - Analytics charts → Currency settings: formats values
src/components/DataVisualization.tsx - App coordinator → Currency hook: selects currency
src/App.tsx - Currency hook → Currency settings: reads and updates
src/hooks/useCurrency.ts - Import and export → Excel conversion: imports and exports
src/components/ImportExportModal.tsx - Excel conversion → Budget calculations: recalculates imports
src/utils/excelService.ts - Excel conversion → Workbook aggregation: aggregates workbook
src/utils/excelService.ts - PDF reports → Workbook aggregation: aggregates reports
src/utils/printService.ts - PDF reports → Audit history: includes history
src/utils/printService.ts - App coordinator → Audit history: records changes
src/App.tsx - Sync controls → Offline edit queue: manages queued edits
src/components/SyncOfflineModal.tsx - Sync controls → Cloud sync service: controls sync
src/components/SyncOfflineModal.tsx - Cloud sync service → Firebase setup: uses Firebase
src/services/firebaseSyncService.ts - Cloud sync service → Firebase services: syncs workbook
README.md - Settings and exports → Security and backup: manages security
src/components/SettingsModal.tsx - Security and backup → Cloud sync service: creates cloud backup
src/App.tsx - Settings and exports → Portable encryption: configures encryption
src/components/SettingsModal.tsx - Settings and exports → PDF reports: offers PDF manual
README.md - Budget sheet → Budget models: uses budget models
src/components/BudgetTable.tsx - Workbook storage → Budget models: stores workbook models
src/utils/storage.ts