How mabdalladev/azm-support-crm works
AZM Squad is a Django/DRF and React customer-support CRM. Agents work tickets with status, assignment, activity, and SLA tracking; customers can use a separate self-service portal; managers have reports. Other documented capabilities include customer 360, bilingual knowledge base, and mock AI assistance. The graph shows the frontend route entry, the documented product areas, and the backend ticket/SLA layers. Some backend views and feature-to-API calls were not sampled, so those connections are omitted or marked unverified.
Main entry points: main.tsx React application · urls.py API route registry · tickets/views.py Ticket API · portal/views.py Portal API
Components 29
Web application
- React application
frontend/src/main.tsx - Agent workspace
frontend/src/routes/Tickets.tsx - New ticket
frontend/src/features/tickets/NewTicket.tsx - Dashboard
frontend/src/routes/Dashboard.tsx
Ticket operations
- Ticket API
backend/apps/tickets/views.py - Ticket workflow rules
backend/apps/tickets/services/ticket_service.py - SLA calculations
backend/apps/tickets/services/sla_service.py - Ticket records
backend/apps/tickets/models.py
Customer and knowledge
- Customer 360
frontend/src/features/customers/Customer360.tsx - Agent knowledge base
frontend/src/features/kb/KBBrowse.tsx - Knowledge editor
frontend/src/features/kb/KBEditor.tsx - Customer API
backend/apps/customers/views.py - Knowledge API
backend/apps/kb/views.py
Portal, reporting, AI
- Customer portal
frontend/src/routes/PortalHome.tsx - Portal ticket detail
frontend/src/features/portal/PortalTicketDetail.tsx - Portal ticket submission
frontend/src/features/portal/SubmitTicket.tsx - Portal knowledge base
frontend/src/features/portal/PortalKB.tsx - Manager reports
frontend/src/features/reports/ReportsPage.tsx - Report query hooks
frontend/src/api/reportsManager.ts - Portal API
backend/apps/portal/views.py - Reports API
backend/apps/reports/views.py - AI assistance API
backend/apps/ai/views.py - Mock AI backend
backend/apps/ai/services/mock.py
Identity and API
- HTTP client
frontend/src/api/client.ts - Session token store
frontend/src/api/tokenStore.ts - API route registry
backend/config/urls.py - Accounts and auth
backend/apps/accounts/views.py - Notifications
backend/apps/accounts/notifications.py
Other components
- CRM user
Connections 38
- CRM user → React application: uses
README.md - React application → Agent workspace: routes to
frontend/src/main.tsx - React application → New ticket: routes to
frontend/src/main.tsx - React application → Dashboard: routes to
frontend/src/main.tsx - React application → Customer 360: routes to
frontend/src/main.tsx - React application → Agent knowledge base: routes to
frontend/src/main.tsx - React application → Knowledge editor: routes to
frontend/src/main.tsx - React application → Customer portal: routes to
frontend/src/main.tsx - React application → Portal ticket detail: routes to
frontend/src/main.tsx - React application → Portal ticket submission: routes to
frontend/src/main.tsx - React application → Portal knowledge base: routes to
frontend/src/main.tsx - React application → Manager reports: routes to
frontend/src/main.tsx - Report query hooks → HTTP client: requests reports
frontend/src/api/reportsManager.ts - HTTP client → Session token store: reads tokens
frontend/src/api/client.ts - API route registry → Ticket API: routes requests
backend/config/urls.py - API route registry → Accounts and auth: routes requests
backend/config/urls.py - API route registry → Customer API: routes requests
backend/config/urls.py - API route registry → Knowledge API: routes requests
backend/config/urls.py - API route registry → Portal API: routes requests
backend/config/urls.py - API route registry → Reports API: routes requests
backend/config/urls.py - API route registry → AI assistance API: routes requests
backend/config/urls.py - Ticket workflow rules → Ticket records: updates records
backend/apps/tickets/services/ticket_service.py - Ticket workflow rules → Notifications: notifies
backend/apps/tickets/services/ticket_service.py - SLA calculations → Ticket records: computes deadlines
backend/apps/tickets/services/sla_service.py - AI assistance API → Mock AI backend: uses configured backend
- Ticket API → Ticket workflow rules: delegates workflow
- Ticket API → SLA calculations: uses SLA logic
- Agent workspace → Ticket API: works tickets
- New ticket → Ticket API: submits ticket
- Customer 360 → Customer API: loads customer
- Agent knowledge base → Knowledge API: browses articles
- Knowledge editor → Knowledge API: manages articles
- Customer portal → Portal API: uses portal
- Portal ticket detail → Portal API: uses portal
- Portal ticket submission → Portal API: submits ticket
- Portal knowledge base → Portal API: reads articles
- Manager reports → Report query hooks: loads reports
- Reports API → Ticket records: reports on tickets