How narapat/aeternum-ally works
Aeternum Ally is a multi-tenant sustainability management and ESRS/CSRD reporting platform. The main workflow starts with company setup and business-model context, proceeds through SWOT and double materiality assessment, then turns findings into prioritized actions, KPI tracking, carbon management, and a sustainability statement. The graph also includes the documented AI-assistance and evidence capabilities. Source excerpts show some client/data-service behavior, but not all screen-to-function wiring, so uncertain links are omitted.
Main entry points: App.tsx Tenant application · dbService.ts Data service · supabaseClient.ts Supabase · evidenceService.ts Evidence attachments
Components 28
Assessment workflow
- Company profile
components/CompanyProfileForm.tsx - Business model canvas
components/BusinessModelCanvas.tsx - SWOT analysis
components/SwotAnalysisWizard.tsx - Materiality assessment
components/AssessmentForm.tsx - DMA insight hub
components/DMAInsightHub.tsx - Materiality matrix
components/MaterialityMatrix.tsx
Action and reporting
- Task management
components/TaskManagement.tsx - KPI dashboard
components/PerformanceDashboard.tsx - Carbon management
components/CarbonWizard.tsx - Carbon dashboard
components/CarbonDashboard.tsx - Sustainability statement
components/SustainabilityStatement.tsx - Evidence attachments
services/evidenceService.ts
Application platform
- Tenant application
App.tsx - Authentication
hooks/useAuth.ts - Organization setup
hooks/useOrganization.ts - Organization data hook
hooks/useOrgData.ts
Backend services
- Data service
services/dbService.ts - Emission services
services/emissionFactorService.ts - AI request API
netlify/functions/api.ts - Assessment generation
netlify/functions/assessment-background.ts - DMA analysis
netlify/functions/dma-background.ts - Report generation
netlify/functions/report-background.ts - Company context
netlify/functions/_shared/companyContext.js - Supabase
lib/supabaseClient.ts
Platform administration
- Admin portal
AdminApp.tsx - Admin functions
netlify/functions/admin.ts
Other components
- SME user
- Google Gemini
Connections 40
- SME user → Tenant application: uses
- Tenant application → Authentication: authenticates
- Tenant application → Organization setup: loads org
- Tenant application → Company profile: opens
- Tenant application → Business model canvas: opens
- Tenant application → SWOT analysis: opens
- Tenant application → Materiality assessment: opens
- Tenant application → DMA insight hub: opens
- Tenant application → Materiality matrix: shows
- Tenant application → Task management: opens
- Tenant application → KPI dashboard: opens
- Tenant application → Carbon management: opens
- Tenant application → Carbon dashboard: opens
- Tenant application → Sustainability statement: opens
- Organization setup → Data service: fetches membership
- Organization data hook → Data service: loads and saves
- Data service → Supabase: reads and writes
- Emission services → Supabase: reads and writes
- Evidence attachments → Supabase: stores links
- Evidence attachments → SME user: uploads via
- SME user → Evidence attachments: attaches
- Materiality assessment → Assessment generation: requests drafting
- DMA insight hub → DMA analysis: requests analysis
- Sustainability statement → Report generation: requests generation
- Assessment generation → Company context: builds grounding
- DMA analysis → Company context: builds grounding
- Report generation → Company context: builds grounding
- Company context → Supabase: reads profile data
- Assessment generation → Google Gemini: generates with
- DMA analysis → Google Gemini: analyzes with
- Report generation → Google Gemini: generates with
- Tenant application → AI request API: requests AI
- AI request API → Google Gemini: calls
- Admin portal → Admin functions: manages platform
- Admin functions → Supabase: reads and writes
- Carbon management → Emission services: manages emissions
- Carbon dashboard → Emission services: summarizes emissions
- Materiality assessment → Evidence attachments: links evidence
- Task management → Data service: loads and saves
- KPI dashboard → Data service: loads and saves