initial commit

This commit is contained in:
2026-08-26 15:01:15 +05:30
parent aa42d9ee81
commit cf4f4ecd9c
87 changed files with 12814 additions and 2328 deletions

View File

@@ -22,14 +22,11 @@
// ============================================================================
export const ORDER_STATUS_GROUPS = {
pending: ['pending_pickup'],
assigned: ['converted_to_consignment', 'miler_assigned', 'pickup_scheduled'],
// The Orders page has no tab for this one — a booking that is out for
// delivery has left the operator's queue. It stays in the map so a status
// breakdown accounts for every row rather than silently dropping some.
active: ['out_for_delivery'],
delivered: ['delivered'],
cancelled: ['cancelled']
pending: ['pending_pickup', 'pending', 'created', 'new', 'booked', 'order_placed', 'unassigned', ''],
assigned: ['converted_to_consignment', 'collected_by_miler', 'miler_assigned', 'pickup_scheduled', 'arrived', 'picked', 'assigned', 'rider_assigned'],
active: ['out_for_delivery', 'active', 'in_transit', 'picked_up', 'in_progress'],
delivered: ['delivered', 'completed', 'success'],
cancelled: ['cancelled', 'rejected', 'failed']
};
export const ORDER_STATUS_LABELS = {