diff --git a/src/pages/nearle/dispatch/CLAUDE.md b/src/pages/nearle/dispatch/CLAUDE.md index ad96718..39eab6d 100644 --- a/src/pages/nearle/dispatch/CLAUDE.md +++ b/src/pages/nearle/dispatch/CLAUDE.md @@ -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 [ { 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 ] ``` diff --git a/src/pages/nearle/dispatch/Dispatch.js b/src/pages/nearle/dispatch/Dispatch.js index f0cf83c..60e2d80 100644 --- a/src/pages/nearle/dispatch/Dispatch.js +++ b/src/pages/nearle/dispatch/Dispatch.js @@ -124,9 +124,9 @@ const BATCHES_DEFAULT_RAW = [ { 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. -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 // 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.v5', '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