map the selected rider and shop, drop the map tab
The separate Map tab is gone. "By rider" and "By store" now draw the map where the stops table was, so picking a rider from the rail shows their round on a map and picking a branch shows its day. A round and a shop's day are both shapes — where the work is, in what order, how far apart — and a table of addresses shows neither. You can read twenty rows and still not see that a rider crossed the city twice. Two views keep the table, on purpose: the waiting queue, whose rows are ticked to assign them (a checkbox cannot live on a map pin, and nothing there has been worked yet), and "By customer", where one customer's drops are all at one address. The map draws all three places a delivery has, not just the rider: shop a square, one per branch — pickuplat/pickuplon, 500/500 rows drop a circle per stop, by status — droplat/droplon, 500/500 rows rider a hollow ring — riderslat/riderslon, 461/500 and 324/500 Shop and drop are on every row, so the map is never empty on a day with work in it. The rider fix is real: on delivered rows it sits a median 134 m from the drop, a reading taken at the customer's door. The endpoints spell the columns differently — `pickuplon` on getdeliveries against `pickuplong` on getorders, one letter, and reading the wrong one puts every shop off the coast of Ghana. `droplat` is filled on deliveries and empty on orders. `coordOf` takes every spelling so a waiting order maps the same as a delivered one. Also fixes the rail itself: it named each group from its first stop's `ridername`, and that column holds a delivery status on more rows than a name for two riders in five. The board was listing a phantom rider called "delivered" carrying 100 of the day's stops, next to the real riders. Grouping was never wrong — that is on userid — only the label. `isRealName` now excludes the status vocabulary and both the rail and the map take the most common name that survives. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JYEsb8PNZ19G9R8gUjTU7n
This commit is contained in:
@@ -471,3 +471,41 @@
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
/* ── The map key ─────────────────────────────────────────────────────────── */
|
||||
|
||||
/* Three shapes, named. Without it a square and a hollow ring are two more
|
||||
things to work out; with it the map needs no other explanation. */
|
||||
.map-key {
|
||||
display: inline-flex;
|
||||
gap: 5px;
|
||||
align-items: center;
|
||||
font-size: 11px;
|
||||
color: var(--color-ink-4);
|
||||
}
|
||||
|
||||
.map-key i {
|
||||
width: 9px;
|
||||
height: 9px;
|
||||
margin-left: 6px;
|
||||
border-radius: 50%;
|
||||
background: var(--color-ink-4);
|
||||
}
|
||||
|
||||
.map-key i:first-child {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.map-key i[data-key='shop'] {
|
||||
border-radius: 2px;
|
||||
background: var(--color-brand);
|
||||
}
|
||||
|
||||
.map-key i[data-key='drop'] {
|
||||
background: #10b981;
|
||||
}
|
||||
|
||||
.map-key i[data-key='rider'] {
|
||||
background: transparent;
|
||||
border: 2px solid var(--color-ink-3);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user