How benameuraimad-beep/excel works
FinSight AI is a browser-based financial analysis dashboard. Users can sign in or continue as guests, upload a spreadsheet for parsed financial metrics and generated insights, explore dashboard charts and reports, and ask an advisor questions about the data. Sample templates, exports, authentication, localization, and PWA installation are additional capabilities. The README is empty; relationships below rely on the supplied excerpts and source index, so unsampled subsystem links are omitted where their callers are not shown.
Main entry points: App.tsx Dashboard App · ReportsView.tsx Financial Reports · AdvisorChat.tsx Advisor Chat · AuthContext.tsx Authentication
Components 26
Application
- Dashboard App
src/App.tsx
Financial Analysis
- Number Formatting
src/utils/formatters.ts - Spreadsheet Upload
src/components/UploadSection.tsx - Spreadsheet Parser
src/utils/excelParser.ts - Insight Generator
src/utils/aiInsightsGenerator.ts - KPI Cards
src/components/KpiCards.tsx - Revenue Chart
src/components/RevenueTrendChart.tsx - Expense Chart
src/components/ExpenseDistributionChart.tsx - Financial Reports
src/components/ReportsView.tsx - Print Report
src/components/PrintReportTemplate.tsx - Workbook Exporter
src/utils/excelExporter.ts - Sample Templates
src/data/sampleData.ts - Template Picker
src/components/SampleTemplatesModal.tsx
Advisor
- Advisor View
src/components/ChatAdvisorView.tsx - Advisor Chat
src/components/AdvisorChat.tsx - Chat Service
src/utils/aiChatService.ts - Speech Recognition
src/utils/useSpeechRecognition.ts - Chat API
Identity and Preferences
- Sign-in View
src/components/AuthView.tsx - Authentication
src/context/AuthContext.tsx - Supabase Auth
src/lib/supabase.ts - Language and Theme
src/context/ThemeLanguageContext.tsx - Translations
src/i18n/translations.ts - PWA Install Hook
src/hooks/usePWAInstall.ts - Install Prompt
src/components/PWAInstallPrompt.tsx
Other components
- User
Connections 22
- User → Dashboard App: uses
- Dashboard App → Authentication: checks session
src/App.tsx - Sign-in View → Authentication: signs in
src/components/AuthView.tsx - Authentication → Supabase Auth: authenticates
src/context/AuthContext.tsx - Dashboard App → Spreadsheet Parser: parses upload
src/App.tsx - Dashboard App → Insight Generator: generates insights
src/App.tsx - Dashboard App → KPI Cards: renders
src/App.tsx - Dashboard App → Revenue Chart: renders
src/App.tsx - Dashboard App → Spreadsheet Upload: renders
src/App.tsx - Dashboard App → Financial Reports: routes to
src/App.tsx - Dashboard App → Template Picker: renders
src/App.tsx - Template Picker → Sample Templates: reads templates
src/components/SampleTemplatesModal.tsx - Financial Reports → Workbook Exporter: exports workbook
src/components/ReportsView.tsx - Financial Reports → Print Report: renders print header
src/components/ReportsView.tsx - Dashboard App → Expense Chart: renders
src/App.tsx - Advisor View → Advisor Chat: renders
src/components/ChatAdvisorView.tsx - Advisor Chat → Chat Service: requests advice
src/components/AdvisorChat.tsx - Advisor Chat → Speech Recognition: uses speech input
src/components/AdvisorChat.tsx - Chat Service → Chat API: posts request
src/utils/aiChatService.ts - Language and Theme → Translations: loads translations
src/context/ThemeLanguageContext.tsx - Language and Theme → Number Formatting: formats currency
src/context/ThemeLanguageContext.tsx - Install Prompt → PWA Install Hook: uses install hook
src/components/PWAInstallPrompt.tsx