Error Toast and Location Validation
"/home/yossef/notes/git/projects/maplibra/risks/Error Toast and Location Validation.md"
path: maplibra/risks/Error Toast and Location Validation.md
- **fileName**: Error Toast and Location Validation
- **Created on**: 2026-06-16 00:48:42
Error Toast and Location Validation
Migrated from: obs_vault
Parent: ../modules/UI Components.md
This note covers the user-facing toast system and the location checker used for map-data sanity checks.
Main Source Files
What It Does
ErrorToastrenders transient warnings and errors and keeps the latest few visible.check-locations.jsscans a packaged map for named locations and named geometry so search suggestions have something to work with.
Why It Matters
- This is the support surface for visible failures and for validating that search has meaningful input data.
Risks
check-locations.jsproves names exist, but not that search can actually resolvegeometryIdandfloorIdthe way the UI needs.- Toasts need to stay small and disposable or they can hide the map instead of explaining it.
See Also
-
continue:[[]]
before:[[]]