From 3d7e10bdd1611b10639f03cc14db7dd7728a4252 Mon Sep 17 00:00:00 2001 From: Shawn Date: Wed, 20 May 2026 22:37:13 -0400 Subject: [PATCH] Add T9 modal system update --- Home.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Home.md b/Home.md index 69bb34a..f89772c 100644 --- a/Home.md +++ b/Home.md @@ -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