How sakthivelan08/green-metrics works
The tree describes an ESGRC/PIM web application: users configure reporting structures, enter assessment and compliance data, manage audits and workflows, and view reports. The client is a React/TypeScript app backed by ASP.NET API and BAL services, with PostgreSQL-oriented persistence and file handling. The README is a template without product details; feature branches are identified from the source tree. Only a few backend relationships are evidenced by sampled source or the SOURCE INDEX, so other likely links are marked unverified rather than asserted.
Main entry points: Program.cs HTTP API · AppLayout.tsx Application UI · AuthManagerService.ts Authentication · MasterController.cs Master data API
Components 27
Web client
- Application UI
ESGRC/client/joy-pim/src/layouts/AppLayout.tsx - Authentication
ESGRC/client/joy-pim/src/services/AuthManagerService.ts - API client
ESGRC/client/joy-pim/src/services/ApiManager.ts - Assessments
ESGRC/client/joy-pim/src/pages/Assessment/assessment.tsx - Compliance queries
ESGRC/client/joy-pim/src/pages/Compliance/QueryRaise.tsx - Reports and dashboard
API surface
- HTTP API
ESGRC/api/ESGRC/Joy.PIM.Api/Program.cs - Master data API
ESGRC/api/ESGRC/Joy.PIM.Api/Controllers/api/MasterController.cs - Integration API
ESGRC/api/ESGRC/Joy.PIM.Api/Controllers/IntegrationController.cs - Workflow API
ESGRC/api/ESGRC/Joy.PIM.Api/Controllers/api/WorkFlowController.cs - Assessment API
ESGRC/api/ESGRC/Joy.PIM.Api/Controllers/api/AssessmentController.cs - Compliance API
ESGRC/api/ESGRC/Joy.PIM.Api/Controllers/api/ComplianceController.cs - Report API
ESGRC/api/ESGRC/Joy.PIM.Api/Controllers/api/PdfReportController.cs
ESGRC services
- Master data services
ESGRC/api/ESGRC/Joy.PIM.BAL/Contracts/IMasterManager.cs - Process and workflow
ESGRC/api/ESGRC/Joy.PIM.BAL/Implementations/ProcessManager.cs - Assessment handling
ESGRC/api/ESGRC/Joy.PIM.BAL/Implementations/AssessmentRepository.cs - Compliance handling
ESGRC/api/ESGRC/Joy.PIM.BAL/Implementations/ComplianceRepo.cs - Metrics and templates
ESGRC/api/ESGRC/Joy.PIM.BAL/Implementations/MetricRepository.cs - File ingestion
ESGRC/api/ESGRC/Joy.PIM.Processor/Controllers/api/FileManagerController.cs - Report generation
ESGRC/api/ESGRC/Joy.PIM.BAL/Implementations/PdfReportManager.cs - User management
ESGRC/api/ESGRC/Joy.PIM.BAL/Implementations/PgUserManager.cs
Storage and integrations
- Database cache
ESGRC/api/ESGRC/Joy.PIM.BAL/Contracts/IDbCache.cs - Blob storage
ESGRC/api/ESGRC/Joy.PIM.BAL/Implementations/Storage/PostgreSqlBlobStorage.cs - Email delivery
ESGRC/api/ESGRC/Joy.PIM.BAL/SmtpMailEngine.cs
Other components
- ESGRC user
- Identity provider
- External data services
Connections 26
- ESGRC user → Application UI: uses
- Application UI → Authentication: authenticates through
- Authentication → API client: calls
ESGRC/client/joy-pim/src/services/AuthManagerService.ts - Authentication → Identity provider: obtains token
- Application UI → Assessments: opens
- Application UI → Compliance queries: opens
- Application UI → Reports and dashboard: opens
- API client → HTTP API: sends requests
- HTTP API → Master data API: routes requests
- HTTP API → Integration API: routes requests
- HTTP API → Workflow API: routes requests
- HTTP API → Assessment API: routes requests
- HTTP API → Compliance API: routes requests
- HTTP API → Report API: routes requests
- Master data API → Database cache: reads cached data
ESGRC/api/ESGRC/Joy.PIM.Api/Controllers/api/MasterController.cs - Master data API → Master data services: searches master data
ESGRC/api/ESGRC/Joy.PIM.Api/Controllers/api/MasterController.cs - Workflow API → Process and workflow: delegates workflow
- Assessment API → Assessment handling: delegates assessment
- Compliance API → Compliance handling: delegates compliance
- Report API → Report generation: delegates reporting
- Integration API → External data services: configures integration
ESGRC/api/ESGRC/Joy.PIM.Api/Controllers/IntegrationController.cs - Process and workflow → Database cache: uses cache
ESGRC/api/ESGRC/Joy.PIM.BAL/Implementations/ProcessManager.cs - Process and workflow → Blob storage: uses file storage
ESGRC/api/ESGRC/Joy.PIM.BAL/Implementations/ProcessManager.cs - File ingestion → Database cache: uses cache
ESGRC/api/ESGRC/Joy.PIM.Processor/Controllers/api/FileManagerController.cs - User management → Identity provider: requests authentication
- User management → Email delivery: sends account email