mega-plant/docs/verification/plant-map.md
Dave 2594dead84 feat: add user access and improve plant dashboard
Add PocketBase login, first-sign-in password changes, account settings,
and user activation, reactivation and deletion with self-removal guards.
Protect application pages and APIs and keep private pages out of PWA
caches.

Resolve plant locations from site assignments and improve map controls,
profit chart views, navigation and mobile table layouts.

Validation: production build and TypeScript passed; 28 unit tests passed.
Backend access integration tests and mobile verification are documented.
2026-10-06 04:02:08 +02:00

15 lines
2.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Plant map verification — 5 October 2026
The map resolves current assets.site assignments against saved site coordinates at read time. Existing manual asset coordinates remain stored separately. Missing site coordinates never send an assigned vehicle back to the headquarters placeholder. Unassigned vehicles keep their own pin, and headquarters defaults are labelled explicitly.
Verified against saved PocketBase records: WB01 at Cedar Gate (-25.761766, 28.335060), and TLB04, TLB06, TLB07, RV01, WB02 and WT01 at The Hills (-25.848100, 28.350000). Ten other assigned assets await site coordinates. Headquarters and two pinned sites have distinct blue/orange waypoints; site popups link to the site detail.
Esri returned placeholder images above zoom 16 in this area. Detailed OpenStreetMap tiles now serve both themes; browser checks confirmed loaded zoom-19 tiles, with surrounding controls following the theme. Verified the Cedar Gate popup, fit-all control and manual-placement mode without console errors. Pin placement now runs inside the Leaflet map context.
- Production webpack build and TypeScript check passed.
- Full Node test suite: 28 passed, 4 skipped, 0 failed. The skips are the existing credential-dependent authentication integrations and absent source-PDF tests.
- Six map location tests cover assigned-site precedence, reassignment/site edits, missing coordinates, removing an assignment, cleared coordinates and invalid coordinate pairs. Five failed against the old placement rules before the fix.
- Final mobile checks in light and dark at 375×812 and 768×1024: page overflow false; no text below 12px; no targets below 44×44px. No wide tables on this route. Numeric results: plant-map-mobile.json.
- Screenshots: /tmp/plant-map-mobile-light/plant-map-375.png, /tmp/plant-map-mobile-light/plant-map-768.png, /tmp/plant-map-mobile-dark/plant-map-375.png, /tmp/plant-map-mobile-dark/plant-map-768.png, /tmp/plant-map-dark-zoom19.png and /tmp/plant-map-light-zoom19.png.
These are assignment-based locations, not live GPS measurements or geofences. No site boundaries are stored, so the map cannot verify physical presence within a site. No production deployment or coordinate/assignment data writes were performed.