How aninajwa/sistem-jala-mutu works
JALA-MUTU is a road-survey QA/QC dashboard with a role-oriented, staged workflow; the frontend currently keeps its package, demo-session, and notification data in browser localStorage and does not call the backend. The workflow covers operational survey work, production validation, audit, acceptance, and document/evidence handling. The separate Express backend is still a skeleton: the README identifies health as its only active endpoint, while its source tree also contains package, personnel, calibration, qualification, and document routes. Those backend routes use Supabase; the frontend-to-backend link is intentionally absent.
Main entry points: OperationalWorkflowWorkspace.tsx Operational workflow · App.tsx Dashboard shell · supabase.ts Supabase client · WorkflowDocuments.tsx Workflow documents
Components 22
Dashboard
- Dashboard shell
frontend/src/App.tsx - Survey modules
frontend/src/SubmoduleWorkspace.tsx
QA/QC Workflow
- Package hub
frontend/src/workflow/PackageHub.tsx - Local package state
frontend/src/workflow/packageStore.ts - Operational workflow
frontend/src/workflow/OperationalWorkflowWorkspace.tsx - Workflow state model
frontend/src/workflow/model.ts - Survey standards
frontend/src/workflow/surveyStandards.ts - Workflow rules
frontend/src/workflow/flowRules.ts - Source checklists
frontend/src/workflow/Stage3BSourceChecklist.tsx - Source alignment
frontend/src/workflow/SourceAlignmentChecklist.tsx - Production validation
frontend/src/workflow/ProductionValidationChecklist.tsx - Workflow documents
frontend/src/workflow/WorkflowDocuments.tsx - Audit and acceptance
frontend/src/workflow/stages
Backend API
- Express API app
backend/src/app.ts - Health endpoint
backend/src/routes/health.ts - Package routes
backend/src/routes/paket.ts - Domain routes
backend/src/routes - Authentication middleware
backend/src/middleware/auth.ts
Backend Storage
- Supabase client
backend/src/services/supabase.ts - PDF storage
backend/src/services/pdf-storage.ts
Other components
- Dashboard user
- Supabase service
Connections 25
- Dashboard user → Dashboard shell: uses
- Dashboard shell → Local package state: reads and updates
frontend/src/App.tsx - Dashboard shell → Package hub: renders
frontend/src/App.tsx - Dashboard shell → Operational workflow: renders
frontend/src/App.tsx - Dashboard shell → Survey modules: renders
frontend/src/App.tsx - Operational workflow → Workflow state model: uses state types
frontend/src/workflow/OperationalWorkflowWorkspace.tsx - Workflow state model → Survey standards: uses standards
frontend/src/workflow/model.ts - Operational workflow → Workflow rules: uses rules
frontend/src/workflow/OperationalWorkflowWorkspace.tsx - Operational workflow → Source checklists: renders
frontend/src/workflow/OperationalWorkflowWorkspace.tsx - Operational workflow → Source alignment: renders
frontend/src/workflow/OperationalWorkflowWorkspace.tsx - Operational workflow → Production validation: renders
frontend/src/workflow/OperationalWorkflowWorkspace.tsx - Operational workflow → Workflow documents: renders
frontend/src/workflow/OperationalWorkflowWorkspace.tsx - Workflow documents → Workflow state model: uses types
frontend/src/workflow/WorkflowDocuments.tsx - Workflow documents → Workflow rules: uses rules
frontend/src/workflow/WorkflowDocuments.tsx - Workflow documents → Source checklists: uses artifacts
frontend/src/workflow/WorkflowDocuments.tsx - Dashboard shell → Audit and acceptance: routes to
- Express API app → Health endpoint: mounts routes
- Express API app → Package routes: mounts API
- Express API app → Domain routes: mounts API
backend/src/app.ts - Authentication middleware → Supabase client: validates identity
backend/src/middleware/auth.ts - Package routes → Supabase client: requests data
backend/src/routes/paket.ts - Domain routes → Supabase client: requests data
backend/src/routes/paket.ts - Domain routes → PDF storage: handles documents
backend/src/routes/dokumen.ts - PDF storage → Supabase client: uploads and reads
backend/src/services/pdf-storage.ts - Supabase client → Supabase service: calls API
backend/src/services/supabase.ts