How manyisanewton/customer-engagement-platform works
Customer-Engagement-Platform is a Vue customer-service workspace backed by a FastAPI API and PostgreSQL, with ERPNext integrated as a GET-only data source. Users sign in, then work role-specific queues, customer context, ERPNext customer records, notifications, reports, or administration. The backend handles these domains through versioned routes and services, persisting portal workflows and cached or audited data. The graph preserves major documented capabilities; several route, view, and integration details are unsampled, so those connections are left unverified rather than inferred.
Main entry points: App.vue Workspace Shell · routes Versioned Routes · reporting/service.py Reporting · notifications/service.py Notification Service
Components 23
Customer Workspace
- Workspace Shell
frontend/src/App.vue - Workspace State
frontend/src/composables/usePortalWorkspace.ts - Request Queue
frontend/src/components/queue/QueueView.vue - Customer Portal
frontend/src/components/customer/CustomerPortalView.vue - ERPNext CRM
frontend/src/components/erpnext/ErpnextCrmView.vue - Reports
frontend/src/components/reports/ReportsView.vue - Administration
frontend/src/components/admin/AdminView.vue - Notifications
frontend/src/components/notifications/NotificationsView.vue
API and Identity
- API Client
frontend/src/services/api.ts - HTTP Transport
frontend/src/services/http.ts - Versioned Routes
backend/app/api/v1/routes - Authentication
backend/app/services/auth.py
Domain Services
- Request Workflow
backend/app/services/portal_requests/service.py - Customer Context
backend/app/services/customer_context/service.py - ERP Customer Cache
backend/app/services/erpnext_customer_cache/service.py - ERP Read Service
backend/app/services/erpnext/read_service.py - Notification Service
backend/app/services/notifications/service.py - Reporting
backend/app/services/reporting/service.py - Admin Operations
backend/app/services/admin_ops/service.py
Persistence and Integrations
- PostgreSQL
backend/app/db/session.py - ERPNext
- SMTP Mail
Other components
- Workspace User
Connections 28
- Workspace User → Workspace Shell: uses
frontend/src/App.vue - Workspace Shell → Workspace State: creates
frontend/src/App.vue - Workspace Shell → Request Queue: renders
frontend/src/App.vue - Workspace Shell → Customer Portal: renders
frontend/src/App.vue - Workspace Shell → ERPNext CRM: renders
frontend/src/App.vue - Workspace Shell → Reports: renders
frontend/src/App.vue - Workspace Shell → Administration: renders
frontend/src/App.vue - Workspace Shell → Notifications: renders
frontend/src/App.vue - Workspace State → API Client: calls
frontend/src/composables/usePortalWorkspace.ts - API Client → HTTP Transport: uses
frontend/src/services/auth.ts - API Client → Versioned Routes: HTTP requests
- Versioned Routes → Authentication: delegates
- Versioned Routes → Request Workflow: delegates
- Versioned Routes → Customer Context: delegates
- Versioned Routes → ERP Customer Cache: delegates
- Versioned Routes → Reporting: delegates
- Versioned Routes → Admin Operations: delegates
- Request Workflow → Notification Service: notifies
backend/app/services/portal_requests/service.py - Notification Service → SMTP Mail: queues email
backend/app/services/notifications/service.py - Reporting → Notification Service: creates
backend/app/services/reporting/service.py - Reporting → SMTP Mail: queues email
backend/app/services/reporting/service.py - Customer Context → ERP Read Service: reads
backend/app/services/customer_context/service.py - ERP Customer Cache → ERP Read Service: reads
backend/app/services/erpnext_customer_cache/service.py - ERP Read Service → ERPNext: GET requests
backend/app/services/erpnext/read_service.py - Request Workflow → PostgreSQL: persists workflow
- ERP Customer Cache → PostgreSQL: stores cache
backend/app/services/erpnext_customer_cache/service.py - Notification Service → PostgreSQL: stores notices
- Reporting → PostgreSQL: reads report data