Skip to content

Add Google Places Autocomplete with international support - #9

Draft
ewdlop with Copilot wants to merge 6 commits into
masterfrom
copilot/suggestions-in-turkiye
Draft

ewdlop with Copilot wants to merge 6 commits into
masterfrom
copilot/suggestions-in-turkiye

Conversation

Copilot AI commented Dec 9, 2025

Copy link
Copy Markdown

Implements address autocomplete for contact form using Google Places API with no country restrictions, enabling suggestions for Turkey (Türkiye) and globally.

Changes

  • New PlacesAutocomplete component

    • Wraps Google Places Autocomplete API with Material-UI TextField
    • No geographic restrictions on suggestions
    • Validates API key presence before loading
    • Degrades to manual input on API failure
    • Anonymizes analytics events (no PII logged)
  • Updated ContactForm

    • Adds optional address field for pickup/delivery
    • Address included in mailto body when provided

Usage

<PlacesAutocomplete
    label="Address (optional)"
    value={address}
    onChange={setAddress}
    placeholder="Enter your pickup/delivery address"
/>

Component accepts all Material-UI TextField props and handles loading/error states transparently.

Original prompt

This section details on the original issue you should resolve

<issue_title>Suggestions in Türkiye</issue_title>
<issue_description></issue_description>

<agent_instructions>A clean prompt.</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 5 commits December 9, 2025 23:53
Co-authored-by: ewdlop <25368970+ewdlop@users.noreply.github.com>
Co-authored-by: ewdlop <25368970+ewdlop@users.noreply.github.com>
…operty

Co-authored-by: ewdlop <25368970+ewdlop@users.noreply.github.com>
…lidate API key

Co-authored-by: ewdlop <25368970+ewdlop@users.noreply.github.com>
Co-authored-by: ewdlop <25368970+ewdlop@users.noreply.github.com>
Copilot AI changed the title [WIP] Add suggestions feature for Türkiye Add Google Places Autocomplete with international support Dec 10, 2025
Copilot AI requested a review from ewdlop December 10, 2025 00:03

@ewdlop ewdlop left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

General Data Protection Regulation (GDPR)

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.

Suggestions in Türkiye

2 participants