From 79a8f2b23419251a146f6f7f0251e9d79eed2727 Mon Sep 17 00:00:00 2001 From: abhishek Date: Thu, 10 Sep 2026 11:26:09 +0530 Subject: [PATCH] map is the resting state of the rider and store views MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Opening dispatch showed "Pick one to see its stops" over an empty panel. That wastes the first look: the whole day IS the answer to "where is my work", and an operator usually only wants to narrow after seeing it. Both views now open on the map, drawn from every stop in range. Picking a rider or a shop filters it; it no longer summons it. The customer view keeps its placeholder — one customer's drops are all at one address, so there is no shape to open onto. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01JYEsb8PNZ19G9R8gUjTU7n --- .../store-admin/pages/DispatchPage.tsx | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/features/store-admin/pages/DispatchPage.tsx b/src/features/store-admin/pages/DispatchPage.tsx index d7da91e..1a263aa 100644 --- a/src/features/store-admin/pages/DispatchPage.tsx +++ b/src/features/store-admin/pages/DispatchPage.tsx @@ -337,6 +337,31 @@ export function DispatchPage() { } : {})} /> + ) : mode === 'riders' || mode === 'stores' ? ( + /* + The map is the resting state of these two views, not a reward for + picking something. Opening dispatch to a placeholder that says + "pick one" wastes the first look: the whole day IS the answer to + "where is my work", and the operator often only wants to narrow + after seeing it. Picking a rider or a shop filters this map; it + does not summon it. + */ + + + + + {mode === 'riders' ? 'Everyone on the road' : 'Every shop'} + + + {stops.length} stop{stops.length === 1 ? '' : 's'} · {moneyExact(totals.value)} + + + + + ) : (