How gmsads/new-gms-crm works
This is a multi-role CRM/ERP application with a React frontend and Node/Express backend. Users work across sales and lead management, order fulfillment, production, field service, workforce tracking, and administration. The graph highlights the order and lead paths, plus the documented tracking flow and major operational workspaces. The README is empty, and several backend routes and frontend API calls were not sampled; those connections are omitted where their ownership cannot be verified.
Main entry points: timelineEngine.service.js Timeline engine · App.jsx Frontend routes · AuthContext.jsx Session and auth · lead.controller.js TeleCRM lead API
Components 30
Application entry
- Frontend routes
frontend/src/App.jsx - Session and auth
frontend/src/context/AuthContext.jsx
Sales and leads
- Sales workspace
frontend/src/modules/sales/pages/SalesManagerWorkspace.jsx - Lead workspace
frontend/src/modules/leads/pages/LeadDashboard.jsx - Prospects
backend/src/domains/sales/prospects/prospect.model.js - TeleCRM lead API
backend/src/domains/telecrm/controllers/lead.controller.js - Lead service
backend/src/domains/telecrm/services/lead.service.js - Call lifecycle
backend/src/domains/telecrm/services/callLifecycle.service.js - Lead calls
backend/src/domains/telecrm/models/leadCall.model.js
Order fulfillment
- Order workspace
frontend/src/modules/orders/pages/OrdersPage.jsx - Production dashboard
frontend/src/modules/production/manager/ProductionManagerDashboard.jsx - Service manager routes
frontend/src/modules/service/manager/ServiceManagerRoutes.jsx - Service dashboard
frontend/src/modules/service/manager/ServiceManagerDashboard.jsx - Design workflow routes
frontend/src/modules/design/DesignRoutes.jsx - Order API
backend/src/api/controllers/order.controller.js - Orders
backend/src/domains/orders/order.model.js - Order workflow
backend/src/workflows/order.workflow.js
Workforce operations
- GPS tracking client
frontend/src/services/workforceEngine.service.js - Today's work widget
frontend/src/components/widgets/TodayWorkWidget.jsx - Workday ping API
- Timeline engine
backend/src/domains/timeline/services/timelineEngine.service.js - Workday sessions
backend/src/domains/timeline/models/workdaySession.model.js - Timeline events
backend/src/domains/timeline/models/timelineEvent.model.js - Location segments
backend/src/domains/timeline/models/locationSegment.model.js - Workday session service
backend/src/domains/timeline/services/workdaySession.service.js - Movement detection
backend/src/domains/timeline/services/movementDetector.service.js - Stop detection
backend/src/domains/timeline/services/stopDetector.service.js - Location intelligence
backend/src/domains/timeline/services/locationIntelligence.service.js - Workday summary
backend/src/domains/timeline/services/workdaySummary.service.js
Other components
- Employee
Connections 28
- Frontend routes → Session and auth: mounts
frontend/src/App.jsx - Frontend routes → Order workspace: routes to
frontend/src/App.jsx - Frontend routes → Sales workspace: routes to
frontend/src/App.jsx - Frontend routes → Lead workspace: routes to
frontend/src/App.jsx - Frontend routes → Production dashboard: routes to
frontend/src/App.jsx - Frontend routes → Service manager routes: routes to
frontend/src/App.jsx - Frontend routes → Design workflow routes: routes to
frontend/src/App.jsx - Session and auth → GPS tracking client: starts tracking
frontend/src/context/AuthContext.jsx - Employee → Session and auth: signs in
- Production dashboard → Today's work widget: renders
frontend/src/modules/production/manager/ProductionManagerDashboard.jsx - Service manager routes → Service dashboard: routes to
frontend/src/modules/service/manager/ServiceManagerRoutes.jsx - Order API → Orders: reads and writes
backend/src/api/controllers/order.controller.js - Order API → Order workflow: invokes
backend/src/api/controllers/order.controller.js - Order API → Prospects: reads
backend/src/api/controllers/order.controller.js - TeleCRM lead API → Lead service: invokes
backend/src/domains/telecrm/controllers/lead.controller.js - TeleCRM lead API → Call lifecycle: uses
backend/src/domains/telecrm/controllers/lead.controller.js - TeleCRM lead API → Lead calls: creates calls
backend/src/domains/telecrm/controllers/lead.controller.js - GPS tracking client → Workday ping API: posts pings
frontend/src/services/workforceEngine.service.js - Session and auth → Workday ping API: posts logout
frontend/src/context/AuthContext.jsx - Timeline engine → Workday session service: calls
backend/src/domains/timeline/services/timelineEngine.service.js - Timeline engine → Stop detection: runs detection
backend/src/domains/timeline/services/timelineEngine.service.js - Timeline engine → Location intelligence: uses
backend/src/domains/timeline/services/timelineEngine.service.js - Timeline engine → Movement detection: uses
backend/src/domains/timeline/services/timelineEngine.service.js - Timeline engine → Workday sessions: reads and writes
backend/src/domains/timeline/services/timelineEngine.service.js - Timeline engine → Timeline events: creates events
backend/src/domains/timeline/services/timelineEngine.service.js - Timeline engine → Location segments: updates segments
backend/src/domains/timeline/services/timelineEngine.service.js - Timeline engine → Workday summary: recalculates
backend/src/domains/timeline/services/timelineEngine.service.js - Workday ping API → Timeline engine: feeds pings