How chandra-006/financial-review works
FINZ is a financial review application: users import transactions, classify and review uncertain entries, then inspect dashboard P&L and variance analysis or ask questions about the data. The React pages call a shared API client; Express routes dispatch to transaction controllers, which query PostgreSQL and invoke calculation and analyst services. The README documents the broader capabilities; unsampled page and service internals are represented at subsystem level, and edges are limited to documented or indexed relationships.
Main entry points: transactionController.js Transaction controller · database.js Database connection · App.jsx Page router · api.js API client
Components 19
Review interface
- Page router
frontend/src/App.jsx - Dashboard
frontend/src/pages/Dashboard.jsx - Transaction review
frontend/src/pages/Review.jsx - Variance view
frontend/src/pages/Variances.jsx - Analyst interface
frontend/src/pages/Analyst.jsx - API client
frontend/src/services/api.js
Transaction API
- Transaction routes
backend/src/routes/transactionRoutes.js - Transaction controller
backend/src/controllers/transactionController.js
Financial analysis
- P&L calculations
backend/src/services/pnlService.js - Variance calculations
backend/src/services/varianceService.js - Variance drivers
backend/src/services/driverService.js - Transaction categorization
backend/src/services/categorizationService.js
AI analyst
- Question answering
backend/src/services/analystQuestionService.js - Financial context
backend/src/services/analystService.js - LLM responses
backend/src/services/llmAnalystService.js
Data storage
- Database connection
backend/src/config/database.js - PostgreSQL
Other components
- Finance user
- Transaction CSV
data/finz_transactions.csv
Connections 25
- Finance user → Page router: uses
README.md - Page router → Dashboard: routes to
frontend/src/App.jsx - Page router → Transaction review: routes to
frontend/src/App.jsx - Page router → Variance view: routes to
frontend/src/App.jsx - Page router → Analyst interface: routes to
frontend/src/App.jsx - Dashboard → API client: requests data
frontend/src/pages/Dashboard.jsx - Transaction review → API client: loads and updates
frontend/src/pages/Review.jsx - Variance view → API client: requests analysis
frontend/src/pages/Variances.jsx - Analyst interface → API client: submits questions
frontend/src/pages/Analyst.jsx - API client → Transaction routes: calls endpoints
frontend/src/services/api.js - Transaction routes → Transaction controller: dispatches
backend/src/routes/transactionRoutes.js - Transaction controller → Transaction CSV: parses uploads
backend/src/controllers/transactionController.js - Transaction controller → Transaction categorization: categorizes
backend/src/controllers/transactionController.js - Transaction controller → P&L calculations: calculates P&L
backend/src/controllers/transactionController.js - Transaction controller → Variance calculations: calculates variance
backend/src/controllers/transactionController.js - Transaction controller → Variance drivers: gets drivers
backend/src/controllers/transactionController.js - Transaction controller → Question answering: answers questions
backend/src/controllers/transactionController.js - Question answering → Financial context: loads context
backend/src/services/analystQuestionService.js - Question answering → LLM responses: requests fallback
backend/src/services/analystQuestionService.js - P&L calculations → Database connection: queries through
backend/src/services/pnlService.js - Variance calculations → Database connection: queries through
backend/src/services/varianceService.js - Variance drivers → Database connection: queries through
backend/src/services/driverService.js - Financial context → Database connection: queries through
backend/src/services/analystService.js - Database connection → PostgreSQL: connects to
backend/src/config/database.js - Transaction controller → Database connection: queries through
backend/src/controllers/transactionController.js