How vaibhav025/capacity-connect works
Capacity Connect is a role-based learning-management prototype for IMD trainees, trainers, and administrators. Its main learner journey is to find a course, study learning notes, take a knowledge check, and view a certificate when the score qualifies; the trainer and admin workspaces provide separate content, project, approval, and competency capabilities. The demo store supplies session-local learning and UI state, while selected server routes read or update Supabase when configured. Some page implementations and client data wiring were not sampled, so uncertain connections are omitted.
Main entry points: Shell.tsx Workspace shell · index.js Express API · App.tsx Role router · CourseDetail.tsx Course learning path
Components 25
Role workspaces
- Role router
src/App.tsx - Workspace shell
src/components/layout/Shell.tsx - Login screen
src/pages/Login.tsx - Role dashboards
src/pages/Dashboard.tsx - Announcements and discussion
src/pages/Announcements.tsx - Calendar and events
src/pages/CalendarPage.tsx
Learning journey
- Course catalogue
src/pages/Courses.tsx - Course learning path
src/pages/CourseDetail.tsx - Learning notes
src/data/learning.ts - Knowledge check
src/components/trainee/AssessmentPlayer.tsx - Certificates
src/pages/Certificates.tsx - Certificate verification
src/pages/CertificateVerify.tsx
Training management
- Trainer authoring
src/components/trainer/QuestionnaireBuilder.tsx - Content staging
src/components/trainer/DragDropContentUploader.tsx - Projects and submissions
src/pages/Projects.tsx - User approvals
src/pages/UsersPage.tsx - Competency matching
src/components/admin/CompetencyMatchModal.tsx - Readiness and KPIs
src/components/admin/ReadinessOverview.tsx - Audit trail
src/pages/AuditTrail.tsx
Runtime and data
- Session demo state
src/lib/demoStore.ts - Express API
server/index.js - Trainer ranking
server/services/competency.js - Seeded trainer data
server/services/demoTrainers.js
Other components
- Admin / trainer / trainee
- Supabase
Connections 23
- Admin / trainer / trainee → Role router: opens workspace
- Role router → Login screen: routes login
- Role router → Workspace shell: routes by role
- Workspace shell → Role dashboards: routes pages
- Workspace shell → Course catalogue: routes pages
- Workspace shell → Course learning path: routes pages
- Workspace shell → Certificates: routes pages
- Workspace shell → Certificate verification: routes pages
- Workspace shell → User approvals: routes pages
- Workspace shell → Announcements and discussion: routes pages
- Workspace shell → Calendar and events: routes pages
- Workspace shell → Audit trail: routes pages
- Course learning path → Learning notes: uses notes
- Course learning path → Knowledge check: offers knowledge check
- Knowledge check → Session demo state: saves learning state
- Knowledge check → Certificates: links earned certificate
- Content staging → Trainer authoring: stages course materials
- Projects and submissions → Session demo state: updates project state
- Competency matching → Express API: requests recommendations
- Express API → Trainer ranking: ranks trainers
- Express API → Seeded trainer data: reads fallback data
- Express API → Supabase: reads and updates
- Express API → User approvals: serves approval action