WFDASHDRIVER-APP/app
Dave bb5a585af6 fix(reporting): never strand a collected item, and log real PB errors
Two failure paths were swallowing their errors.

1. handleCollect returned early when the photo upload failed. Status
   was already flipped to `collected` at that point, but the early
   return skipped `setItems`, leaving a successfully-collected item
   on screen still looking un-collected. The driver re-collected it
   and re-attempted the same oversized upload — one record picked up
   29 failed attempts in a single morning. The item now clears off
   the list either way, and a photo failure is a warning toast
   telling the driver to add it from the office, not a silent stall.

2. handleProblem logged nothing. PocketBase puts the real reason in
   `response.data` keyed by field name; the top-level message is
   always the useless "Something went wrong while processing your
   request." That is exactly what hid the problem_type mismatch
   fixed separately in PB today: the select was missing
   out_of_stock/partial_stock/quality_issue/wrong_item, so four of
   the five Report Problem buttons 400'd with no visible reason.
2026-10-14 16:12:41 +02:00
..
login refactor(ui): rebrand app, fix supplier naming 2026-07-05 22:32:20 +02:00
map feat(pocketbase): merge stock_purchase_items into Assigned list 2026-08-17 22:33:10 +02:00
settings feat: add complete dark mode support with settings toggle 2026-07-07 18:28:19 +02:00
.DS_Store Refactor collections to order items 2026-05-25 00:47:47 +02:00
globals.css feat: add complete dark mode support with settings toggle 2026-07-07 18:28:19 +02:00
layout.tsx feat: add pickup proof photos, improve performance and UX 2026-07-07 20:43:17 +02:00
page.tsx fix(reporting): never strand a collected item, and log real PB errors 2026-10-14 16:12:41 +02:00