How tharns1999-cmyk/qms_latest works
QMS Portal is a modular ISO 9001 quality-management application with DCC document control, VCC calibration/verification, and system administration. Users enter through the web app, authenticate and navigate module routes, then perform document, review, task, or calibration workflows; the web client can communicate with a Cloudflare Workers API backed by D1 and R2. The graph preserves documented periodic-review, controlled-document, VCC planning/work-order, notification, and governance capabilities. Some frontend-to-backend wiring is not visible in the excerpts, so those links are marked unverified.
Main entry points: App.jsx App routes · vcc.js VCC route dispatch · client.js API client · TaskReview.jsx Review and task workflow
Components 24
Portal and access
- App routes
apps/web/src/app/App.jsx - Module portal
apps/web/src/modules/portal/pages/PortalLandingPage.jsx - Governance admin
apps/web/src/modules/admin/pages/ModuleGovernancePage.jsx
Document control
- Document control
apps/web/src/modules/dcc/pages/DarWorkflow/DarNewForm.jsx - Review and task workflow
apps/web/src/modules/dcc/pages/Tasks/TaskReview.jsx - Periodic reviews
apps/web/src/modules/dcc/store/periodicReviewSlice.js - Review scheduling
apps/web/src/modules/dcc/services/PeriodicReviewService.js - Master data and distribution
apps/web/src/modules/dcc/services/MasterDataService.js - Document file storage
apps/web/src/modules/dcc/utils/fileStorage.js - DCC administration
apps/web/src/modules/dcc/pages/Admin/MasterDataHub.jsx
Calibration center
- VCC interface
apps/web/src/modules/vcc/pages/AssetRegisterPage.jsx
API and governance
- VCC route dispatch
apps/api/src/vcc.js - Plans and approvals
apps/api/src/vccPlans.js - Work orders
apps/api/src/vccWorkOrders.js - VCC dashboard
apps/api/src/vccDashboard.js - Notifications
apps/api/src/vccNotifications.js - VCC access control
apps/api/src/vccAuth.js - Module governance API
apps/api/src/moduleGovernance.js - API entry and DCC
apps/api/src/index.js - D1 database
- R2 file storage
Shared state and services
- API client
apps/web/src/api/client.js - Application state
apps/web/src/store/useStore.js
Other components
- Portal user
Connections 29
- Portal user → App routes: uses
README.md - App routes → Module portal: routes to
apps/web/src/app/App.jsx - App routes → Governance admin: routes to
apps/web/src/app/App.jsx - App routes → Application state: reads state
apps/web/src/app/App.jsx - App routes → Document control: routes to
apps/web/src/app/App.jsx - App routes → Review and task workflow: routes to
apps/web/src/app/App.jsx - App routes → Periodic reviews: initializes
apps/web/src/app/App.jsx - App routes → VCC interface: routes to
apps/web/src/app/App.jsx - Review and task workflow → Document file storage: uses files
apps/web/src/modules/dcc/pages/Tasks/TaskReview.jsx - Review and task workflow → Master data and distribution: uses master data
apps/web/src/modules/dcc/pages/Tasks/TaskReview.jsx - Periodic reviews → Review scheduling: generates schedules
apps/web/src/modules/dcc/store/periodicReviewSlice.js - Review scheduling → Master data and distribution: normalizes domain
- Document file storage → API client: fetches file
apps/web/src/modules/dcc/utils/fileStorage.js - DCC administration → API client: calls API
- API client → API entry and DCC: sends requests
- VCC interface → API client: calls API
- API entry and DCC → Module governance API: dispatches governance
apps/api/src/index.js - API entry and DCC → VCC route dispatch: dispatches VCC
apps/api/src/index.js - Module governance API → VCC access control: uses access rules
apps/api/src/moduleGovernance.js - VCC route dispatch → Plans and approvals: dispatches plans
apps/api/src/vcc.js - VCC route dispatch → Work orders: dispatches work orders
apps/api/src/vcc.js - VCC route dispatch → VCC dashboard: dispatches dashboard
apps/api/src/vcc.js - VCC route dispatch → Notifications: dispatches notifications
apps/api/src/vcc.js - Plans and approvals → Notifications: fetches tasks
apps/api/src/vccPlans.js - Plans and approvals → D1 database: queries data
- Work orders → D1 database: persists records
- Notifications → D1 database: queries alerts
apps/api/src/vccNotifications.js - VCC route dispatch → VCC access control: checks access
apps/api/src/vcc.js - Document file storage → R2 file storage: retrieves files