How yashawasthiawasthicse25-droid/codex works
ApprovalGuard helps Maharashtra pharmaceutical businesses organize approval evidence and assess readiness through deterministic, rule-based checks. The principal workflow is to enter a business profile and structured facts, upload approval documents, complete document checklists, and review readiness issues and recommendations. A separate Information Vault embeds Approval Tracking for user-managed approval statuses, dependencies, timelines, and notifications. The README documents backend APIs and MongoDB persistence, but their server implementation is absent from this tree; those connections are shown at the documented API boundary. Frontend and model paths are based on the supplied tree and excerpts.
Main entry points: document-vault.js Vault Interface · approval-tracking.js Approval Dashboard · approvalStatusService.js Status Service · information-vault.js Information Vault
Components 20
Business Information
- Vault Interface
frontend/html/JS/document-vault.js - Business Profile
frontend/html/JS/profile.js - Information Vault
frontend/html/JS/information-vault.js
Document Readiness
- Document Vault
frontend/html/JS/document-vault.js - Document Templates
models/DocumentTemplate.js
Approval Tracking
- Approval Dashboard
frontend/html/JS/approval-tracking.js - Approval Data
frontend/html/JS/approvalData.js - Status Service
frontend/html/JS/approvalStatusService.js - Dependency Rules
frontend/html/JS/dependencyEngine.js - Notifications
frontend/html/JS/notificationService.js - Approval Tracking Data
frontend/html/JS/approvalStatusService.js - Notification Data
frontend/html/JS/notificationService.js - Approval Catalog
frontend/html/JS/application.js
Data Models
- Uploaded Documents
models/Document.js - Readiness Evaluation
models/ReadinessEvaluation.js - Business Record
models/Business.js - Information Records
models/InformationRecord.js
Other components
- Business User
- Backend API
- MongoDB
Connections 25
- Business User → Vault Interface: uses
- Vault Interface → Business Profile: opens
- Vault Interface → Information Vault: opens
- Vault Interface → Document Vault: opens
- Business Profile → Backend API: fetches profile
- Information Vault → Backend API: uses records API
- Document Vault → Backend API: uploads and checks
- Backend API → Document Templates: loads templates
- Backend API → Uploaded Documents: stores files
- Backend API → Readiness Evaluation: stores results
- Backend API → Business Record: stores profiles
- Backend API → Information Records: stores facts
- Document Templates → MongoDB: persists
- Uploaded Documents → MongoDB: persists
- Readiness Evaluation → MongoDB: persists
- Business Record → MongoDB: persists
- Information Records → MongoDB: persists
- Information Vault → Approval Dashboard: embeds
- Approval Dashboard → Approval Data: uses
- Approval Dashboard → Status Service: manages status
- Status Service → Dependency Rules: checks prerequisites
- Status Service → Notifications: creates alerts
- Status Service → Approval Tracking Data: reads and writes
- Notifications → Notification Data: reads and writes
- Approval Dashboard → Approval Catalog: renders approvals