How sidhuprakash-creater/meil-project works
MEIL ESG & BRSR is a multi-role enterprise portal for collecting unit-level ESG disclosures, reviewing and approving submissions across an organizational hierarchy, and producing consolidated BRSR reporting and analytics. The principal flow is contributor data entry and evidence capture, followed by staged review and sign-off, then group-level consolidation and dashboards. Separate workspaces support group, subsidiary, business-unit, project-admin, and site-operations roles; the product also includes BRSR guidance and an AI copilot. Edges reflect README-described capabilities and shown source calls; many unsampled routes prevent tracing the full request wiring.
Main entry points: data-entry/route.ts ESG data entry · db.ts Unified database · collection-status/route.ts Submission review · pu-app.tsx Unit workspaces
Components 24
Role Workspaces
- Portal entry
src/app/page.tsx - Unit workspaces
src/components/pu/pu-app.tsx - Site operations
src/components/site-ops/modules/module-router.tsx - Group workspace
src/components/workspace/view-registry.tsx - Subsidiary workspace
src/components/subsidiary/view-registry.tsx - Project admin
src/components/project-admin/view-registry.tsx
Disclosure & Review
- ESG data entry
src/app/api/pu/data-entry/route.ts - Evidence handling
src/components/shared/data-entry/engine-evidence-panel.tsx - Submission review
src/app/api/project-admin/collection-status/route.ts - Submission workflow
src/lib/pu/workflow.ts
BRSR & Insights
- BRSR reporting
src/app/api/esg/brsr/route.ts - ESG consolidation
src/app/api/esg/hierarchy/route.ts - Dashboards & analytics
src/app/api/esg/analytics/route.ts - AI copilot
src/app/api/copilot/chat/route.ts
Platform Services
- Session & access
src/lib/session.ts - ESG API services
src/lib/esg/server.ts - Project-admin access
src/lib/project-admin/server.ts - Subsidiary access
src/lib/sa/server.ts - Unit data access
src/lib/pu/db.ts - Level records
src/lib/pu/level-records.ts - ESG calculation engines
src/lib/so/engines.ts - Portal cache
src/lib/portal-cache.ts - Unified database
src/lib/db.ts
Other components
- Portal users
Connections 23
- Portal users → Portal entry: enter portal
README.md - Portal users → Unit workspaces: contribute disclosures
README.md - Unit workspaces → ESG data entry: submit data
README.md - ESG data entry → Level records: save records
src/app/api/pu/data-entry/route.ts - ESG data entry → Submission workflow: append history
src/app/api/pu/data-entry/route.ts - ESG data entry → Unit data access: sync records
src/app/api/pu/data-entry/route.ts - Portal users → Evidence handling: attach evidence
README.md - Portal users → Submission review: review submissions
README.md - Submission review → Level records: load records
src/app/api/project-admin/collection-status/route.ts - Submission review → Project-admin access: resolve context
src/app/api/project-admin/collection-status/route.ts - Portal users → Subsidiary workspace: manage subsidiary
README.md - Subsidiary workspace → Subsidiary access: authorize scope
src/lib/sa/server.ts - Portal users → Group workspace: manage group
README.md - Portal users → Site operations: manage site data
README.md - Portal users → Project admin: review project data
README.md - Portal users → BRSR reporting: prepare BRSR filing
README.md - Portal users → ESG consolidation: consolidate ESG
README.md - Portal users → Dashboards & analytics: view KPI dashboards
README.md - Portal users → AI copilot: use AI copilot
- ESG API services → Unified database: write audit data
src/lib/esg/server.ts - Unit data access → Unified database: shares client
src/lib/pu/db.ts - ESG calculation engines → Unified database: query factors
src/lib/so/engines.ts - Session & access → Unified database: read sessions
src/lib/session.ts