Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
jorgemoya
approved these changes
Mar 16, 2026
Contributor
Author
Unlighthouse Performance Comparison — VercelComparing PR preview deployment Unlighthouse scores vs production Unlighthouse scores. Summary ScoreAggregate score across all categories as reported by Unlighthouse.
Category Scores
Core Web Vitals
|
b5e907e to
637751b
Compare
Contributor
Author
Bundle Size ReportComparing against baseline from No bundle size changes detected. |
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to canary, this PR will be updated.
Releases
@bigcommerce/catalyst-core@1.6.0
Minor Changes
#2896
fc84210Thanks @jamesqquick! - Add reCAPTCHA v2 support to storefront forms. The reCAPTCHA widget is rendered on the registration, contact, and product review forms when enabled in the BigCommerce admin. All validation and error handling is performed server-side in the corresponding form actions. The token is read from the nativeg-recaptcha-responsefield that the widget injects into the form, eliminating the need for manual token extraction on the client.Migration steps
Step 1: Install dependencies
Add
react-google-recaptchaand its type definitions:Step 2: Add the reCAPTCHA server library
Create
core/lib/recaptcha/constants.ts:Create
core/lib/recaptcha.tswith the server-side helpers for fetching reCAPTCHA settings, extracting the token from form data, and asserting the token is present. See the file in this release for the full implementation.Step 3: Add reCAPTCHA translation strings
Update
core/messages/en.jsonto add therecaptchaRequiredmessage in each form namespace:"Auth": { "Register": { + "recaptchaRequired": "Please complete the reCAPTCHA verification.","Product": { "Reviews": { "Form": { + "recaptchaRequired": "Please complete the reCAPTCHA verification.","WebPages": { "ContactUs": { "Form": { + "recaptchaRequired": "Please complete the reCAPTCHA verification.","Form": { + "recaptchaRequired": "Please complete the reCAPTCHA verification.",Step 4: Update GraphQL mutations to accept reCAPTCHA token
Update
core/app/[locale]/(default)/(auth)/register/_actions/register-customer.ts:Update
core/app/[locale]/(default)/product/[slug]/_actions/submit-review.ts:Update
core/app/[locale]/(default)/webpages/[id]/contact/_actions/submit-contact-form.ts:Step 5: Add server-side reCAPTCHA validation to form actions
In each of the three server actions above, add the validation block after the
parseWithZodcheck and pass the token to the GraphQL mutation. For example inregister-customer.ts:Apply the same pattern to
submit-review.tsandsubmit-contact-form.ts.Step 6: Pass
recaptchaSiteKeyto form componentsFetch the site key in each page and pass it down through the component tree.
Update
core/app/[locale]/(default)/(auth)/register/page.tsx:Update
core/app/[locale]/(default)/product/[slug]/page.tsx:Update
core/app/[locale]/(default)/webpages/[id]/contact/page.tsx:Step 7: Render the reCAPTCHA widget in form components
Update
core/vibes/soul/form/dynamic-form/index.tsx:Update
core/vibes/soul/sections/reviews/review-form.tsx:Step 8: Thread
recaptchaSiteKeythrough intermediate componentsAdd the
recaptchaSiteKey?: stringprop and pass it through in:core/vibes/soul/sections/dynamic-form-section/index.tsxcore/vibes/soul/sections/product-detail/index.tsxcore/vibes/soul/sections/reviews/index.tsxcore/app/[locale]/(default)/product/[slug]/_components/reviews.tsxEach of these accepts the prop and forwards it to the form component that renders the widget.
Patch Changes
4e2f8f8Thanks @bc-svc-local! - Update translations.