Skip to content

Refactor draft order sync flows#1384

Open
pbennett1-godaddy wants to merge 29 commits into
mainfrom
refactor-draft-order-sync-flows
Open

Refactor draft order sync flows#1384
pbennett1-godaddy wants to merge 29 commits into
mainfrom
refactor-draft-order-sync-flows

Conversation

@pbennett1-godaddy
Copy link
Copy Markdown
Collaborator

Summary

Refactors the React checkout draft-order synchronization flow to make checkout state updates more reliable before payment confirmation.

This branch centralizes draft-order sync behavior, reduces duplicate order mutations, improves recovery/error handling when syncs fail, and ensures payment flows flush pending draft-order changes
before attempting checkout confirmation. It also expands checkout test coverage across validation, shipping, pickup, totals, tips, discounts, payment methods, redirects, hydration, tracking, and error
states.

Changeset

  • Changeset added (docs)

Added:

  • .changeset/quiet-checkouts-sync.md
    • Patch release for @godaddy/react

Test Plan

  • Ran TypeScript validation:

    pnpm --filter @godaddy/react typecheck                                                                                                                                                                
                                                                                                                                                                                                          
- [x] Added and updated checkout test coverage for:                                                                                                                                                       
    - Draft order sync provider behavior                                                                                                                                                                  
    - Checkout confirmation blocking while sync is pending                                                                                                                                                
    - Sync failure recovery paths and displayed errors                                                                                                                                                    
    - Shipping method re-application and tax recalculation                                                                                                                                                
    - Free order / free payment transitions                                                                                                                                                               
    - Pickup selection and fulfillment location flows                                                                                                                                                     
    - Billing and address validation behavior                                                                                                                                                             
    - Payment flush behavior before confirmation                                                                                                                                                          
    - Wallet/payment method rendering and gating                                                                                                                                                          
    - Totals, tips, discounts, redirects, hydration, and tracking contracts                                                                                                                               
- [x] Verified the current @godaddy/react TypeScript errors are resolved.                                                            

…actor-draft-order-sync-flows

# Conflicts:
#	packages/react/src/components/checkout/payment/utils/use-confirm-checkout.ts
#	packages/react/src/components/checkout/shipping/shipping-method.tsx
@pbennett1-godaddy pbennett1-godaddy requested a review from a team as a code owner June 3, 2026 15:57
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jun 3, 2026

🦋 Changeset detected

Latest commit: 71ec219

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@godaddy/react Patch
nextjs Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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