Assigned tab was previously unfiltered by date — every assigned row in the system was shown, including items scheduled for the future (e.g. operator pre-assigns for tomorrow, driver sees them today). Live PB probe (2026-08-11) shows `assigned_at` is set to the SCHEDULED pickup date, not the moment of assignment: 15 currently assigned rows split evenly across Aug 18/19/20. New filter: `assigned_at` must fall within a rolling 2-day window in driver-local time (yesterday 00:00 → today 23:59:59.999). This covers today's work plus any carryover from yesterday that didn't get completed. Items scheduled for tomorrow or later stay hidden until their day rolls around. Window boundaries are computed in the driver's local timezone (this is a browser app, so `new Date()` is local) then converted to UTC ISO for the PB filter — works as long as driver + operator share a timezone, which is the case for the current single-region deployment. Empty-state copy updated so drivers understand why nothing might show even when they know there are upcoming pickups. check-pb-schema probe updated to match the new clauses so future regressions fail the build instead of silently showing everything. |
||
|---|---|---|
| .. | ||
| check-pb-schema.mjs | ||
| generate-icons.js | ||