How contactoiusasol/monitoreoiusasol works
Monitoreo IUSASOL is a private React dashboard for energy-monitoring and operational reporting. Users sign in, enter the protected dashboard, and choose views for generation, meters, contracts, reports, solar listings, or billing; billing loads workbook and meter-generation data to calculate invoice totals. Authentication is handled through Supabase, while the meter database view fetches a CSV. The graph preserves the documented route capabilities and major page modules; several page-to-data relationships are unverified because their implementations were not excerpted.
Main entry points: routes.jsx Route map · app.jsx Application · auth-context.jsx Auth context · facturacion.jsx Billing
Components 26
Application shell
- Application
src/app.jsx - Route map
src/routes.jsx - Dashboard layout
src/layouts/dashboard/layout.jsx - Private route
src/components/private-route.jsx - Loading screen
src/components/loading-screen.jsx
Authentication
- Login and signup
src/pages/login.jsx - Signup page
src/pages/signup.jsx - Auth context
src/contexts/auth-context.jsx - Supabase auth
src/lib/supabase.js
Monitoring views
- Generation charts
src/pages/graficas.jsx - Generation table
src/pages/tabla.jsx - Five-minute data
src/pages/cincominutal.jsx - Meter views
src/pages/medidores.jsx - Meter database
src/pages/databaseiusasol.jsx - Meter CSV
- Reports
src/pages/reportes.jsx
Operations and billing
- Porteo view
src/pages/porteo.jsx - Contracts
src/pages/contratos.jsx - Solar listing
src/pages/listadoSFV.jsx - Billing
src/pages/facturacion.jsx - Billing calculations
src/lib/facturacion.js - Receipt PDF
src/components/recibo-pdf.jsx - Settings
src/pages/settings.jsx
Shared presentation
- Theme factory
src/theme/index.jsx - Component styling
src/theme/create-components.jsx
Other components
- Dashboard user
Connections 28
- Dashboard user → Application: opens
- Application → Route map: resolves routes
src/app.jsx - Application → Auth context: provides auth
src/app.jsx - Application → Theme factory: creates theme
src/app.jsx - Application → Loading screen: shows while loading
src/app.jsx - Route map → Login and signup: routes to
src/routes.jsx - Route map → Signup page: routes to
src/routes.jsx - Route map → Private route: guards dashboard
src/routes.jsx - Route map → Dashboard layout: wraps private views
src/routes.jsx - Login and signup → Auth context: authenticates through
- Signup page → Auth context: registers through
- Auth context → Supabase auth: calls auth API
src/contexts/auth-context.jsx - Private route → Auth context: checks session
- Route map → Generation charts: routes to
src/routes.jsx - Route map → Generation table: routes to
src/routes.jsx - Route map → Five-minute data: routes to
src/routes.jsx - Route map → Meter views: routes to
src/routes.jsx - Route map → Meter database: routes to
src/routes.jsx - Route map → Reports: routes to
src/routes.jsx - Route map → Porteo view: routes to
src/routes.jsx - Route map → Contracts: routes to
src/routes.jsx - Route map → Solar listing: routes to
src/routes.jsx - Route map → Billing: routes to
src/routes.jsx - Route map → Settings: routes to
src/routes.jsx - Meter database → Meter CSV: fetches
src/pages/databaseiusasol.jsx - Billing → Billing calculations: calls calculations
src/pages/facturacion.jsx - Billing → Receipt PDF: renders receipt
- Theme factory → Component styling: builds styles
src/theme/index.jsx