feat(checkout): CHECKOUT-10352 Swap phone LD experiment with a checkout setting - #3287
Draft
bc-maxy wants to merge 2 commits into
Draft
feat(checkout): CHECKOUT-10352 Swap phone LD experiment with a checkout setting#3287bc-maxy wants to merge 2 commits into
bc-maxy wants to merge 2 commits into
Conversation
Contributor
Author
|
cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 0676b2b. Configure here.
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.
What/Why?
Once we merge the SDK side: bigcommerce/checkout-sdk-js#3380
We can then just use a checkout setting instead of a LD flag to control rendering of new phone validation.
Since this is a controlled rollout which customers can opt-in or -out themselves, I also removed all other restrictions that we had previously in place like not rendering the component for Paypal Braintree merchants or not rendering when merchants set maxLength limits or placeholders on phone input fields.
Rollout/Rollback
Revert the PR
Testing
Updated CI tests.
Note
Medium Risk
Changes checkout address phone input behavior for merchants who enable the setting, including PayPal Fastlane and fields with max length/placeholders; rollout is setting-controlled but affects a core checkout form path.
Overview
Replaces the LaunchDarkly experiment
CHECKOUT-9019.use_new_phone_number_validationwith the checkout settingisPhoneNumberValidationEnabled(default off when missing) to control the IntlTelInput-based phone field on address forms.AddressFormno longer special-cases PayPal Fastlane custom checkout or readsproviderWithCustomCheckoutfor phone rendering; only the new setting gates the validated phone UI.DynamicFormFieldSelectoralways usesPhoneFormFieldfor telephone fields when the setting is on, including when merchants configuremaxLengthor a placeholder—those cases previously forced the legacy tel input. Props are renamed fromisNewPhoneValidationExperimentEnabledtoisPhoneNumberValidationEnabledthrough the form field stack, with tests updated to match.Reviewed by Cursor Bugbot for commit 0676b2b. Bugbot is set up for automated code reviews on this repo. Configure here.