2.3 KiB
2.3 KiB
Django to Next.js Parity Backlog
Target Scope
Only these legacy areas are being rebuilt in Next.js/PocketBase:
wfdashbasics: customers, companies, suppliersquotesordersdriver_list, combined withcollection_pooldelivery_notesrepairs- stock flow, combined into
order_itemsfirst and later separated into a dedicatedstockcollection
Current Next.js migration status
Core CRM
- Customers: partial/live
- Companies: partial/live
- Suppliers: partial/live
- Quotes: partial/live — email intake ✅ done (n8n IMAP poll → MCP
quotes.create_from_email/quotes.append_reply; see quotes-email-monitor.md) - Orders: partial/live
Not migrated / minimal
- Driver list workflows: partially started through new
collection_poolfoundation - Delivery notes: not migrated
- Stock management: intentionally folded into
order_itemsworkflow for now - Repairs: not migrated
Mandatory parity recheck order
- Customers
- Companies
- Quotes
- Orders
- Driver list / collection pool
- Delivery notes
- Repairs
- Future stock collection
For each module, parity definition
- Data model parity: required fields + relations
- Workflow parity: statuses and transitions
- UI parity: list/detail/edit actions available
- Automation parity: n8n or API hooks in place
- Reporting parity: exports/reports needed
Immediate next build tasks
- Customer: duplicate handling and merge strategy (replace legacy management commands)
- Company: details/address consistency and relation integrity checks
Quotes: explicit quote-to-order action + safeguards against duplicate conversions(covered byquote → orderflow on Orders board; duplicates prevented viafindOrCreateByMessageIdon the email side)- Orders: status board + drv/collection states reflected in UI
- Collection pool: assignment UI and filtered work queue
- Delivery notes: generate delivery records from delivered/loaded order items
- Repairs: rebuild only the useful repair request/order flow
Out of Scope
stock_orderscustomer_portalrep_portalinternal_stockas a separate moduleposai_ordersinside the appsystem_monitorinside the app
AI/email/system monitoring moves to n8n and should integrate through API/webhook endpoints only.