This commit is contained in:
2026-06-01 18:56:23 +05:30
parent e662154916
commit 77ad9c5eea
2 changed files with 5 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ Dispatch.js defines the canonical batch hour ranges. `deliveries.js` mirrors the
// BATCH_OPTIONS — half-open [startHour, endHour) in LOCAL time, not UTC // BATCH_OPTIONS — half-open [startHour, endHour) in LOCAL time, not UTC
[ [
{ id: 'morning', startHour: 0, endHour: 8 }, // 12 AM 8 AM { id: 'morning', startHour: 0, endHour: 8 }, // 12 AM 8 AM
{ id: 'afternoon', startHour: 9, endHour: 12 }, // 9 AM 12 PM { id: 'afternoon', startHour: 9, endHour: 12.5 }, // 9 AM 12:30 PM
{ id: 'evening', startHour: 16, endHour: 19 } // 4 PM 7 PM { id: 'evening', startHour: 16, endHour: 19 } // 4 PM 7 PM
] ]
``` ```

View File

@@ -124,9 +124,9 @@ const BATCHES_DEFAULT_RAW = [
{ id: 'evening', name: 'Evening Batch', startHour: 16, endHour: 19 } { id: 'evening', name: 'Evening Batch', startHour: 16, endHour: 19 }
]; ];
// v8: afternoon batch extended to 12:30 PM. Bumping from v7 wipes the // v9: afternoon batch extended to 12:30 PM. Bumping from v8 wipes the
// cached layouts that still hold the old endHour: 12 value. // cached layouts that still hold the old endHour: 12 value.
const SLOTS_STORAGE_KEY = 'dispatch.slots.v8'; const SLOTS_STORAGE_KEY = 'dispatch.slots.v9';
// Every prior storage key. Wiped once on mount so stale layouts // Every prior storage key. Wiped once on mount so stale layouts
// from earlier code versions can't reappear on the next page load. // from earlier code versions can't reappear on the next page load.
@@ -137,7 +137,8 @@ const LEGACY_SLOTS_STORAGE_KEYS = [
'dispatch.slots.v4', 'dispatch.slots.v4',
'dispatch.slots.v5', 'dispatch.slots.v5',
'dispatch.slots.v6', 'dispatch.slots.v6',
'dispatch.slots.v7' 'dispatch.slots.v7',
'dispatch.slots.v8'
]; ];
// Build a label like "Slot 1 · 8 AM" (or "Slot 2 · 12:30 PM") from a // Build a label like "Slot 1 · 8 AM" (or "Slot 2 · 12:30 PM") from a