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.4.1
Patch Changes
#2811
b57bffaThanks @chanceaclark! - Fix pagination cursor persistence when changing sort order. Thebeforeandafterquery parameters are now cleared when the sort option changes, preventing stale pagination cursors from causing incorrect results or empty pages.#2813
ea9d633Thanks @jorgemoya! - Delete duplicate Select component.#2816
b4b87a3Thanks @chanceaclark! - Add support for additional HTML attributes on script tags. The scripts transformer now extracts and passes through attributes likeasync,defer,crossorigin, anddata-*attributes from BigCommerce script tags to the C15T consent manager, ensuring scripts load with their intended behavior.#2817
d469078Thanks @jorgemoya! - Persist the checkbox product modifier since it can modify pricing and other product data. By persisting this and tracking in the url, this will trigger a product refetch when added or removed. Incidentally, now we manually control what fields are persisted, sinceoption.isVariantOptiondoesn't apply tocheckbox, additionally multi options modifiers that are not variant options can also modify price and other product data.Migration
Step 1
Update
product-options-transformer.tsto manually track persisted fields:Fields that persist and can affect product pricing when selected:
Step 2
Remove
isVariantOptionfrom GQL query since we no longer use it:Step 3
Update
product-detail-form.tsxto include separate handing of the checkbox field:Step 4
Update schema in
core/vibes/soul/sections/product-detail/schema.ts:#2814
fcb946eThanks @matthewvolk! - Shoppers will now see the store's actual password complexity requirements in the tooltip on the new customer registration form, preventing confusion and failed registration attempts. The schema() function in core/vibes/soul/form/dynamic-form/schema.ts now accepts an optional second parameter passwordComplexity to enable dynamic password validation. The DynamicForm, DynamicFormSection components and their associated server actions also accept an optional passwordComplexity prop that flows through to the schema. Action Required: If you have custom registration or password forms and want to use store-specific password complexity settings, fetch passwordComplexitySettings from the GraphQL API (under site.settings.customers.passwordComplexitySettings) and pass it to your DynamicFormSection component and maintain it in your server action's state. If you don't pass it, password validation defaults to: minimum 8 characters, at least one number, and at least one special character. Conflict Resolution: If merging into custom forms, ensure the passwordComplexity prop is threaded through: Page → DynamicFormSection → DynamicForm → useActionState → schema(). In server actions, add passwordComplexity?: Parameters[1] to your state type and include it in all return statements to maintain state consistency.#2809
dd559b2Thanks @jorgemoya! - Minor UX improvements for the Reviews section:totalCountfor reviews.averageRatingup to the first decimal.averageRatingnext to rating stars when there are no reviews.