AddressSearchInputFallbackForm) has two distinct paths: the autocomplete search path and the manual entry path. The geocoding fallback chain (full address → city/state/zip → zip code alone) exists only in the manual entry submitForm function. The autocomplete path (handleAutoCompleteClick) takes coordinates directly from Mapbox's suggestion result — no fallback runs if Mapbox returns a result with an imprecise coordinate, or if the user is forced into manual entry after a failed autocomplete.service-area/find-containing) runs against address.lat and address.lng in PropertyStep.tsx. If those coordinates are wrong or represent a fallback location (e.g., a city centroid for a zip code that straddles the service area boundary), the property is silently blocked.Locked
Open
Frontend — The geocoding fallback chain in attik-frontend/src/components/forms/AddressSearchInputFallbackForm.tsx (submitForm) covers manual entry but not the autocomplete path. handleAutoCompleteClick takes foundAdd.center directly from the Mapbox Places response without any validation or fallback. If Mapbox returns coordinates that don't match the real property location (common for new construction), those bad coordinates propagate silently. The callMapboxPlaces and geocodeAddress utilities in attik-frontend/src/util/functions/fetching/callMapboxPlaces.ts are the entry points for any geocoding quality improvements.
The service area check is triggered in attik-frontend/src/app/scheduler/property/PropertyStep.tsx via callServerAction to service-area/find-containing — it receives whatever coordinates were produced upstream with no validation layer.
attik-frontend/src/components/forms/AddressSearchInputFallbackForm.tsxattik-frontend/src/app/scheduler/property/PropertyStep.tsxattik-frontend/src/app/scheduler/utils/checkEscapeHatch.tsattik-frontend/src/util/functions/fetching/callMapboxPlaces.tsPlease authenticate to join the conversation.
Planned
Main App
About 3 hours ago
Linear
Get notified by email when there are changes.
Planned
Main App
About 3 hours ago
Linear
Get notified by email when there are changes.