Add T9 modal system update

2026-05-20 22:37:13 -04:00
parent 1e195c47a1
commit 3d7e10bdd1
+10
@@ -23,6 +23,14 @@ Mobile-first web app for tracking physical assets via barcode scanning, OCR stic
- Replaced 3 native `prompt()` calls: geofence naming (2x), database reset confirmation (1x)
- 7 Playwright E2E tests passing
### T6 Map Page Improvements — May 2026
- **Marker clustering** — Leaflet.markercluster groups dense asset pins, spiderfies on click
- **Real GPS heatmap** — Heatmap layer now uses actual check-in GPS coordinates (was placebo based on visit counts)
- **Dismissible GPS warning** — ✕ button on GPS error badge, with "re-enable" option later
- **Address geocoding fallback** — When GPS is denied, geocodes asset addresses to get lat/lng for map pins
- **Map legend** — Color-coded legend showing asset category markers (Furniture, Appliances, Equipment, etc.)
- **Modal fixes** — Prompt area and actions container properly integrated into modal HTML
### T5 Dashboard Fixes — May 2026
- **Active Technicians** now queries `users WHERE role='technician'` (was counting from visit data — showed 0 when no visits yet)
- **Interactive bar charts** — hover shows label + count tooltip; click drills down to filtered asset list (Category, Status, Make)
@@ -85,6 +93,8 @@ When building_number is entered in the manual asset form or location form, it au
| `/api/checkins` | POST/GET | GPS check-ins |
| `/api/ocr` | POST | Extract machine_id from sticker image |
| `/api/geocode?lat=&lng=` | GET | Reverse geocode GPS → address |
| `/api/geocode-address?address=` | GET | Forward geocode address → GPS |
| `/api/checkins/heatmap?days=&limit=` | GET | Real check-in GPS coords for heatmap |
| `/api/export/assets` | GET | CSV export |
## Environment