How smt12000/sale-report-dashboard works
Sales Studio is a local THB sales dashboard. Its main workflow is to import sales and target spreadsheets, review the detected records, save them in a browser workspace, and view forecasts and historical evaluation. The README also documents workspace recovery and preferences, currency lookup, and optional text translation. The excerpts do not include the dashboard or domain module implementations, so some internal wiring is omitted; the documented capabilities and sampled local API behavior guide this map.
Main entry points: app.js Application runtime · import-worker.js Spreadsheet import · api.mjs Local API routes · index.html Dashboard interface
Components 15
Dashboard workflow
- Dashboard interface
dist/index.html - Application runtime
dist/app.js
Sales processing
- Spreadsheet import
dist/import-worker.js - Flexible periods
dist/flexible.js - CSV and records
dist/io.js - Sales domain
dist/domain.js - Forecast evaluation
dist/analysis-worker.js
Workspace state
- Workspace persistence
dist/storage.js - Browser workspace
- Interface languages
dist/i18n.js
External integrations
- Local web server
scripts/serve.mjs - Local API routes
scripts/api.mjs
Other components
- Dashboard user
- Frankfurter rates
- Google Translation
Connections 14
- Dashboard user → Dashboard interface: uses
- Dashboard interface → Application runtime: loads
- Application runtime → Spreadsheet import: dispatches import
- Spreadsheet import → Flexible periods: detects periods
- Spreadsheet import → CSV and records: parses records
- Application runtime → Sales domain: uses sales rules
- Application runtime → Forecast evaluation: dispatches evaluation
- Application runtime → Workspace persistence: reads and saves
- Workspace persistence → Browser workspace: persists workspace
- Application runtime → Interface languages: uses translations
- Application runtime → Local web server: requests local APIs
- Local web server → Local API routes: dispatches API routes
- Local API routes → Frankfurter rates: fetches rates
- Local API routes → Google Translation: sends requested text