How hamzaqanazi/monitorflow works
MonitorFlow is a workforce operations and service-request platform, with a React oversight console and an Express API. Its central workflow is configuring services and their forms/workflows, receiving and assigning requests, then progressing employee tasks through gated status transitions; dashboards, reports, and audit records support oversight. The tree also shows scheduling, time clock, onboarding, knowledge, events, evaluations, and chatbot capabilities. The README is empty and sampled code is partial, so some feature links are omitted where call ownership is not evidenced.
Main entry points: index.js API application · db.js Application database · main.tsx Console routing · api.ts API client
Components 25
Web console
- Console routing
web/src/main.tsx - Console session
web/src/auth/AuthContext.tsx - Service builder
web/src/pages/AddServiceWizard.tsx - Service management
web/src/pages/ServicesPage.tsx - API client
web/src/lib/api.ts
API and access
- API application
backend/src/index.js - Authentication gates
backend/src/middleware/auth.js
Request operations
- Service configuration
backend/src/routes/services.js - Request handling
backend/src/routes/requests.js - Employee tasks
backend/src/routes/tasks.js - Transition engine
backend/src/lib/workflowEngine.js - Request filtering
backend/src/lib/requestQuery.js - Dashboard metrics
backend/src/routes/dashboard.js - Reports and exports
backend/src/routes/reports.js
Workforce modules
- Employee directory
backend/src/routes/employees.js - Scheduling
backend/src/routes/schedule.js - Time clock
backend/src/routes/timeclock.js - Company onboarding
backend/src/routes/onboarding.js - Knowledge base
backend/src/routes/knowledgeBase.js - Events and evaluations
backend/src/routes/events.js - Chatbot service
backend/src/routes/chatbot.js
Shared platform
- Application database
backend/src/db.js - Workflow and form rules
backend/src/lib/workflowSchema.js - Operational audit
backend/src/lib/audit.js
Other components
- Staff and admins
Connections 30
- Staff and admins → Console routing: uses console
- Console routing → Console session: provides session
- Console routing → Service management: routes to
- Console routing → Service builder: routes to
- Console session → API client: requests session
- Service management → API client: calls API
- Service builder → API client: submits config
- API client → API application: sends API requests
- API application → Authentication gates: guards routes
- API application → Service configuration: dispatches
- API application → Request handling: dispatches
- API application → Employee tasks: dispatches
- API application → Dashboard metrics: dispatches
- API application → Reports and exports: dispatches
- API application → Scheduling: dispatches
- API application → Time clock: dispatches
- API application → Company onboarding: dispatches
- API application → Knowledge base: dispatches
- API application → Events and evaluations: dispatches
- API application → Chatbot service: dispatches
- Service configuration → Application database: reads and writes
- Service configuration → Workflow and form rules: validates config
- Request handling → Transition engine: executes transitions
- Request handling → Request filtering: builds list filters
- Employee tasks → Application database: reads tasks
- Transition engine → Application database: updates state
- Transition engine → Operational audit: records transitions
- Authentication gates → Application database: loads account
- Dashboard metrics → Application database: queries metrics
- Reports and exports → Request filtering: shares filtering