How bhumik1395/corob-crm works
This is a full-stack service-engineer operations and analytics application. Users authenticate, choose an operational dashboard or upload/manage data, and receive analytics, reports, or editable records. Distinct product areas include service calls, PM, installation, engineer performance, machine ownership, and point-table scoring. The backend exposes these domains through FastAPI and uses shared data-loading, database, and identity layers. The tree and excerpts support several workflows directly; other listed capabilities are represented without asserting unverified internal call chains.
Main entry points: engineer.py Engineer endpoints · App.tsx Dashboard application · main.py FastAPI application · service_calls_repo.py Service-call data loader
Components 31
Web application
- Dashboard application
frontend/src/App.tsx - Session context
frontend/src/auth/AuthContext.tsx - Engineer dashboard
frontend/src/components/engineers/EngineerPanel.tsx - Engineer visits
frontend/src/components/engineers/EngineerVisits.tsx - Engineer API client
frontend/src/api/engineers.ts - PM dashboard and review
frontend/src/pages/customer/PmDashboard.tsx - PM API client
frontend/src/api/pm.ts - Upload interface
frontend/src/pages/UploadPage.tsx
API and access
- FastAPI application
backend/app/main.py - Authentication endpoints
backend/app/api/login.py - Engineer endpoints
backend/app/api/engineer.py
Operational analytics
- Service-call analytics
backend/app/domains/service_calls - PM workflows
backend/app/domains/pm - Installation analytics
backend/app/domains/installation - Engineer analytics
backend/app/domains/engineers/analytics.py
Data management
- Machine ownership API
backend/app/domains/machine_ownership/router.py - Ownership service and history
backend/app/domains/machine_ownership/service.py - Ownership models
backend/app/domains/machine_ownership/models.py - Point-table API
backend/app/domains/point_table/router.py - Point-table scoring
backend/app/domains/point_table/analytics.py - Point-table storage
backend/app/domains/point_table/storage.py
Shared data layer
- Application database
backend/app/core/db.py - Runtime configuration
backend/app/core/config.py - Source data repository
backend/app/data/source_repo.py - Source definitions
backend/app/data/source_map.py - Service-call data loader
backend/app/data/service_calls_repo.py - Service-call normalization
backend/app/domains/service_calls/excel_service.py - Employee mapping
backend/app/shared/employee_mapping_service.py - Domain access adapters
backend/app/domains/_adapters.py - Domain utilities
backend/app/domains/_common.py
Other components
- Employee
Connections 27
- Employee → Dashboard application: uses
- Dashboard application → Session context: provides session
- Dashboard application → Engineer dashboard: renders
- Engineer dashboard → Engineer API client: requests analytics
frontend/src/components/engineers/EngineerPanel.tsx - Engineer visits → Engineer API client: requests visits
frontend/src/components/engineers/EngineerVisits.tsx - Engineer API client → Engineer endpoints: calls endpoints
frontend/src/api/engineers.ts - Engineer endpoints → Engineer analytics: computes results
backend/app/api/engineer.py - Engineer endpoints → Service-call analytics: loads service data
backend/app/api/engineer.py - Engineer endpoints → PM workflows: loads PM data
backend/app/api/engineer.py - Engineer endpoints → Installation analytics: loads installation data
backend/app/api/engineer.py - Dashboard application → PM dashboard and review: renders
- PM dashboard and review → PM API client: uses API
- Dashboard application → Upload interface: renders
- FastAPI application → Engineer endpoints: registers routes
backend/app/main.py - FastAPI application → Authentication endpoints: registers routes
backend/app/main.py - FastAPI application → Machine ownership API: registers routes
backend/app/main.py - FastAPI application → Point-table API: registers routes
backend/app/main.py - Machine ownership API → Ownership service and history: delegates
backend/app/domains/machine_ownership/router.py - Ownership service and history → Ownership models: uses records
backend/app/domains/machine_ownership/service.py - Point-table API → Point-table scoring: computes scores
backend/app/domains/point_table/router.py - Point-table API → Point-table storage: reads and writes
backend/app/domains/point_table/router.py - Point-table storage → Application database: queries database
backend/app/domains/point_table/storage.py - Point-table storage → Ownership models: reads ownership
backend/app/domains/point_table/storage.py - Service-call data loader → Source data repository: loads raw data
backend/app/data/service_calls_repo.py - Source data repository → Source definitions: uses source definition
backend/app/data/service_calls_repo.py - Service-call data loader → Service-call normalization: normalizes rows
backend/app/data/service_calls_repo.py - Service-call data loader → Employee mapping: learns mappings
backend/app/data/service_calls_repo.py