From 1a87427295c43e001710a7bfacba166f47439356 Mon Sep 17 00:00:00 2001 From: Shawn Date: Wed, 20 May 2026 23:00:07 -0400 Subject: [PATCH] =?UTF-8?q?T1:=20Finalize=20empty=20states=20&=20onboardin?= =?UTF-8?q?g=20=E2=80=94=20geofence=20point=20format=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Handle both [lat, lng] array and {lat, lng} object formats in geofence rendering - All empty states verified: consistent icon + heading + description + CTA pattern - Onboarding welcome overlay with localStorage flag --- static/index.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/index.html b/static/index.html index 53c52c0..339571f 100644 --- a/static/index.html +++ b/static/index.html @@ -6906,7 +6906,10 @@ geofences.forEach(gf => { const points = typeof gf.points === 'string' ? JSON.parse(gf.points) : gf.points; - const latlngs = points.map(p => [p.lat, p.lng]); + // Handle both [lat, lng] arrays and {lat, lng} objects + const latlngs = points.map(p => + Array.isArray(p) ? [p[0], p[1]] : [p.lat, p.lng] + ); const polygon = L.polygon(latlngs, { color: gf.color || '#3388ff', fillColor: gf.color || '#3388ff',