Skip to content

Migrate deprecated Google Maps autocomplete widget#17

Open
theimpostor wants to merge 1 commit intomasterfrom
fix/place-autocomplete-migration
Open

Migrate deprecated Google Maps autocomplete widget#17
theimpostor wants to merge 1 commit intomasterfrom
fix/place-autocomplete-migration

Conversation

@theimpostor
Copy link
Member

@theimpostor theimpostor commented Mar 18, 2026

Summary

  • replace the deprecated google.maps.places.Autocomplete widget with google.maps.places.PlaceAutocompleteElement
  • keep the existing location lookup flow by fetching displayName, formattedAddress, and location from the selected place, with geocoder fallback for manual text searches
  • restyle the new widget to fit the existing Bootstrap layout and mirror the app's disabled/loading state

Validation

  • npm run build
  • loaded the local app and confirmed the new Place Autocomplete element renders as the search control
  • local Google-backed request validation is limited because the site API key denies Places requests on http://localhost:5000, so autocomplete calls return the widget's backend error there even though the live domain is authorized

@github-actions
Copy link

Visit the preview URL for this PR (updated for commit 3d76532):

https://praytime-b76cb--pr17-fix-place-autocomple-r43cyfsz.web.app

(expires Wed, 25 Mar 2026 23:27:03 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 2c14af45296b0e93f1d4fd9a7f2875a7bb2aafbf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant