How marwaneproo/finsight-ai works
FinSight AI is a financial analytics and business-intelligence application. Users import financial files, manage datasets, and explore live analysis, alerts, forecasts, AI-assisted answers, and reports. The graph follows the documented product stages and source-visible React routing and workspace/data-service responsibilities. Several feature implementations are unsampled; their placement follows the README and tree, while uncertain internal links are omitted.
Main entry points: App.tsx App Router · useWorkspace.tsx Workspace State · cashFlowEngine.ts Cash Flow Engine · Reports.tsx Financial Reports
Components 24
Application Experience
- App Router
src/App.tsx - Landing & Pricing
src/components/LandingPage.tsx - Dashboard Overview
src/components/modules/Overview.tsx
Data Ingestion & Workspace
- Workspace State
src/hooks/useWorkspace.tsx - Dataset Manager
src/components/modules/DataManager.tsx - File Upload
src/components/UploadPanel.tsx - File Parser
src/lib/fileParser.ts
Financial Intelligence
- BI Analytics
src/components/modules/Analytics.tsx - Cash Flow Engine
src/lib/cashFlowEngine.ts - Anomaly Review
src/components/modules/Anomalies.tsx - Anomaly Detector
src/lib/anomalyDetector.ts - Health Score
src/lib/healthScore.ts - Executive Insights
src/lib/insights.ts
Decision Support
- Scenario Simulator
src/components/modules/Simulator.tsx - AI Copilot
src/components/Copilot.tsx - Copilot Engine
src/lib/copilotEngine.ts - Financial Reports
src/components/modules/Reports.tsx - Report Export
src/lib/exportReport.ts - Alert Settings
src/components/modules/AlertsSettings.tsx - Alert Engine
src/lib/alertEngine.ts
Plans & Persistence
- Data Service
src/lib/dataService.ts - Local & Supabase Store
src/lib/dataService.ts - Plan Entitlements
src/lib/plans.ts
Other components
- Business User
Connections 36
- Business User → App Router: opens
README.md - App Router → Landing & Pricing: renders
src/App.tsx - App Router → Dashboard Overview: routes to
src/App.tsx - App Router → Dataset Manager: routes to
src/App.tsx - App Router → BI Analytics: routes to
src/App.tsx - App Router → Anomaly Review: routes to
src/App.tsx - App Router → Scenario Simulator: routes to
src/App.tsx - App Router → AI Copilot: routes to
src/App.tsx - App Router → Financial Reports: routes to
src/App.tsx - App Router → Alert Settings: routes to
src/App.tsx - Business User → File Upload: uploads data
README.md - Dataset Manager → File Upload: renders
src/components/modules/DataManager.tsx - File Upload → Workspace State: submits file
src/components/UploadPanel.tsx - Workspace State → File Parser: parses file
src/hooks/useWorkspace.tsx - Workspace State → Data Service: loads and saves
src/hooks/useWorkspace.tsx - Data Service → Local & Supabase Store: persists datasets
src/lib/dataService.ts - Local & Supabase Store → Business User: syncs remotely
- Workspace State → Cash Flow Engine: computes analysis
src/hooks/useWorkspace.tsx - Dashboard Overview → Workspace State: reads analysis
src/components/modules/Overview.tsx - BI Analytics → Workspace State: reads dataset
- Workspace State → Anomaly Detector: detects anomalies
src/hooks/useWorkspace.tsx - Anomaly Review → Workspace State: reads findings
src/components/modules/Anomalies.tsx - Cash Flow Engine → Anomaly Detector: uses leak metrics
src/lib/cashFlowEngine.ts - Workspace State → Health Score: computes health
src/hooks/useWorkspace.tsx - Dashboard Overview → Executive Insights: generates summary
src/components/modules/Overview.tsx - Scenario Simulator → Cash Flow Engine: projects scenarios
src/components/modules/Simulator.tsx - AI Copilot → Copilot Engine: answers questions
src/components/Copilot.tsx - Copilot Engine → Cash Flow Engine: uses calculations
src/lib/copilotEngine.ts - Copilot Engine → Anomaly Detector: checks leaks
src/lib/copilotEngine.ts - Financial Reports → Report Export: exports reports
src/components/modules/Reports.tsx - Financial Reports → Health Score: shows score
src/components/modules/Reports.tsx - Financial Reports → Executive Insights: shows findings
src/components/modules/Reports.tsx - Alert Settings → Alert Engine: evaluates rules
src/components/modules/AlertsSettings.tsx - Alert Engine → Cash Flow Engine: formats metrics
src/lib/alertEngine.ts - Landing & Pricing → Business User: offers plans
README.md - Dataset Manager → Plan Entitlements: gates features