How anphuoc0408/ecometric-dashboard-website works
EcoMetric is a React dashboard for measuring operational resource use and turning it into carbon/ESG insights, recommendations, and reports. The documented loop runs from bulk data input through dashboard, carbon and ESG views, then AI-guided decisions and action plans before remeasurement. Source excerpts establish the dashboard’s orchestration, API-hook fallback, and parts of upload/export behavior; the deeper implementations of several pages were not sampled, so their internal links are limited to documented relationships.
Main entry points: App.jsx Dashboard shell · useApiData.js API state hook · CarbonEmissions.jsx Carbon inventory · ESGReporting.jsx ESG reporting
Components 20
Measure and insights
- Operational data input
ecometric-app/src/DataInput.jsx - Bulk file uploader
ecometric-app/src/components/DataUploader.jsx - ESG dashboard
ecometric-app/src/App.jsx - Carbon inventory
ecometric-app/src/CarbonEmissions.jsx - ESG reporting
ecometric-app/src/ESGReporting.jsx - Dashboard metrics and charts
ecometric-app/src/components/MetricsCard.jsx
Decide and act
- AI recommendations
ecometric-app/src/AIRecommendations.jsx - Action plan
ecometric-app/src/components/ActionPlanModal.jsx
Application and data
- Dashboard shell
ecometric-app/src/App.jsx - Settings
ecometric-app/src/Settings.jsx - QR integration
ecometric-app/src/QRCodeCard.jsx - Dashboard mock data
ecometric-app/src/data/dashboardData.js - API state hook
ecometric-app/src/hooks/useApiData.js - HTTP service
ecometric-app/src/services/api.js - FastAPI backend
- Report export
ecometric-app/src/lib/export.js - Formatting utilities
ecometric-app/src/lib/format.js - Navigation and dashboard cards
ecometric-app/src/components/Topbar.jsx - Data provenance tag
ecometric-app/src/components/DataProvenanceTag.jsx
Other components
- Enterprise user
Connections 30
- Enterprise user → Dashboard shell: uses
ecometric-app/src/App.jsx - Dashboard shell → Operational data input: routes to
ecometric-app/src/App.jsx - Dashboard shell → Carbon inventory: routes to
ecometric-app/src/App.jsx - Dashboard shell → AI recommendations: routes to
ecometric-app/src/App.jsx - Dashboard shell → ESG reporting: routes to
ecometric-app/src/App.jsx - Dashboard shell → Settings: routes to
ecometric-app/src/App.jsx - Enterprise user → Operational data input: uploads data
README.md - Operational data input → Bulk file uploader: embeds
ecometric-app/src/DataInput.jsx - Dashboard shell → ESG dashboard: renders
ecometric-app/src/App.jsx - Dashboard shell → Navigation and dashboard cards: renders
ecometric-app/src/App.jsx - Dashboard shell → Dashboard metrics and charts: renders
ecometric-app/src/App.jsx - Dashboard shell → API state hook: loads via
ecometric-app/src/App.jsx - API state hook → HTTP service: calls fetcher
- HTTP service → FastAPI backend: HTTP requests
ecometric-app/src/services/api.js - API state hook → Dashboard mock data: fallback data
ecometric-app/src/App.jsx - Enterprise user → Carbon inventory: reviews emissions
README.md - Enterprise user → ESG reporting: reviews compliance
README.md - Enterprise user → AI recommendations: reviews proposals
README.md - ESG dashboard → Action plan: opens plan
ecometric-app/src/App.jsx - AI recommendations → Action plan: opens plan
README.md - Carbon inventory → Report export: exports reports
ecometric-app/src/CarbonEmissions.jsx - ESG reporting → Report export: exports reports
ecometric-app/src/ESGReporting.jsx - Navigation and dashboard cards → QR integration: shows QR
README.md - Dashboard metrics and charts → Formatting utilities: formats values
ecometric-app/src/components/MetricsCard.jsx - Dashboard mock data → Formatting utilities: formats money
ecometric-app/src/data/dashboardData.js - Data provenance tag → Formatting utilities: reads tokens
ecometric-app/src/components/DataProvenanceTag.jsx - Action plan → Data provenance tag: renders tag
ecometric-app/src/components/ActionPlanModal.jsx - Carbon inventory → API state hook: loads data
- ESG reporting → API state hook: loads data
ecometric-app/src/ESGReporting.jsx - AI recommendations → API state hook: loads data
ecometric-app/src/AIRecommendations.jsx