sync latest checkout library changes#1201
Merged
wcole1-godaddy merged 13 commits intomainfrom Oct 30, 2025
Merged
Conversation
- Tracking field additions - draftOrder and draftOrderTotals refactor - Address autocomplete options - fix country & region matching
There was a problem hiding this comment.
Pull Request Overview
This pull request synchronizes the latest changes to the checkout library, primarily focusing on enabling address autocomplete for US addresses and cleaning up region data. The changes improve the checkout address form by restoring address autocomplete functionality, correcting country region data, and enhancing form field reset logic when countries or regions change.
Key Changes:
- Re-enabled US address autocomplete using the
AutoCompletecomponent with debounced input and selection handling - Corrected region data by replacing
"undefined"string values with actualundefinedvalues across multiple countries - Improved form reset logic to clear address fields when changing countries or regions
Reviewed Changes
Copilot reviewed 77 out of 78 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/react/src/components/checkout/address/address-form.tsx | Restored address autocomplete for US addresses and improved country/region change handling |
| packages/react/src/components/checkout/address/country-region-data.ts | Fixed region data by replacing string "undefined" with undefined values and removed invalid region |
| packages/react/src/types.ts | Consolidated type definitions and removed unused DraftOrderTotalsQuery |
| packages/react/src/lib/godaddy/queries.ts | Removed redundant query definitions (DraftOrderTotalsQuery, DraftOrderShippingQuery) |
| packages/react/src/lib/godaddy/godaddy.ts | Updated to use environment-based host selection and consolidated queries |
| packages/react/src/tracking/tracking-provider.tsx | Added support for custom tracking properties |
| Multiple localization files | Added missing translations for accessibility labels and error messages |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
packages/react/src/components/checkout/address/address-form.tsx
Outdated
Show resolved
Hide resolved
packages/react/src/components/checkout/address/utils/check-is-valid-address.ts
Outdated
Show resolved
Hide resolved
packages/react/src/components/checkout/address/get-country-region.ts
Outdated
Show resolved
Hide resolved
packages/react/src/components/checkout/address/utils/use-address-verification.ts
Outdated
Show resolved
Hide resolved
…finite zod defintions
wcole1-godaddy
requested changes
Oct 29, 2025
wcole1-godaddy
approved these changes
Oct 29, 2025
packages/react/src/components/checkout/payment/utils/use-load-square.ts
Outdated
Show resolved
Hide resolved
wcole1-godaddy
approved these changes
Oct 30, 2025
rmarkins-godaddy
approved these changes
Oct 30, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This pull request makes several improvements to the checkout address form and its supporting data, mainly focusing on enabling address autocomplete for US addresses, cleaning up temporary code comments, and correcting region data for several countries. The most significant changes are grouped below by theme.
Checkout Address Form Improvements (
address-form.tsx):AutoCompletecomponent, which is now conditionally shown based on the session'senableAddressAutocompleteflag. This includes wiring upuseAddressMatches, debounced input, and handling selection events. [1] [2] [3] [4] [5] [6]AddressLine1,AdminArea1,AdminArea2, andPostalCodefields to empty strings, ensuring form consistency. Also resetsPostalCodewhen the region changes. [1] [2]tabIndex={0}andaria-requiredto relevant form fields. [1] [2] [3]Region Data Corrections (
country-region-data.ts):"undefined"string values withundefined(actual JavaScript value), improving type consistency and downstream usage. This affects Cook Islands, Falkland Islands, Faroe Islands, French Guiana, French Polynesia, French Southern and Antarctic Lands, Gibraltar, Guadeloupe, Guam, and others. [1] [2] [3] [4] [5]These changes collectively improve the user experience in the checkout flow, especially for US addresses, and ensure more accurate and consistent region data for global addresses.
Changeset
Test Plan