1.6 KiB
1.6 KiB
Refactoring Progress & Plan
✅ Completed Tasks (v6.2.5)
CRM v2.5 Implementation
- Migration 6.2.5: Added
department_idtocrm_deals, SLA tables - Schema: Added
attendance_sla_policiesandattendance_sla_eventstables - Structs: Added
department_idtoCrmDeal, updatedListQuerywith filters - API: Department filtering on
list_leadsandlist_opportunities - SLA Module: Created
attendance/sla.rswith breach detection background task - Tests: Unit tests for CRM and SLA modules
- Documentation: Updated
sales-pipeline.mdwith new stages and department filtering - Consolidation: Merged
crm-marketing.md,crm-sales.md,crm-service.md→crm.md
Previous Fixes
- WhatsApp Adapter Error Handling
- Third-Party Config Robustness
- BASIC Script Preprocessing
❌ Pending (Full Implementation)
- Unified
/api/crm/dealsroutes - Add CRUD handlers - Marketing campaign execution -
send_campaignin triggers.rs - Marketing dynamic lists refresh - Query-based list resolution
- Email tracking endpoints - Open/click pixel tracking
- Marketing AI content generation - LLM prompt integration
- Attendance skills-based routing - Filter by attendant preferences
- Attendance webhooks - HMAC-signed POST events
- Attendance kanban endpoint - Sessions grouped by status
- WhatsApp attendant commands - /queue, /take, /tips, etc.
📋 Current Status
cargo check -p botserver: ✅cargo clippy -p botserver: ✅ (0 warnings)- Migration ready: ✅
See prompts/crm.md for detailed implementation guide.