diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c3f090292..39bd1d0ce9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## Draft +- Add validationDictionary to search page for price range filter error messages [#2553](https://github.com/bigcommerce/cornerstone/pull/2553) + +## 6.16.2 (06-11-2025) - Patch security vulnerabilities [#2548](https://github.com/bigcommerce/cornerstone/pull/2548) - Update code standards based on updated linter expectancies [#2548](https://github.com/bigcommerce/cornerstone/pull/2548) diff --git a/assets/js/theme/search.js b/assets/js/theme/search.js index 08add87658..7144121cd9 100644 --- a/assets/js/theme/search.js +++ b/assets/js/theme/search.js @@ -8,11 +8,17 @@ import Url from 'url'; import collapsibleFactory from './common/collapsible'; import 'jstree'; import nod from './common/nod'; +import { createTranslationDictionary } from './common/utils/translations-utils'; const leftArrowKey = 37; const rightArrowKey = 39; export default class Search extends CatalogPage { + constructor(context) { + super(context); + this.validationDictionary = createTranslationDictionary(context); + } + formatCategoryTreeForJSTree(node) { const nodeData = { text: node.data, @@ -264,8 +270,13 @@ export default class Search extends CatalogPage { } initFacetedSearch() { - // eslint-disable-next-line object-curly-newline - const { onMinPriceError, onMaxPriceError, minPriceNotEntered, maxPriceNotEntered, onInvalidPrice } = this.context; + const { + price_min_evaluation: onMinPriceError, + price_max_evaluation: onMaxPriceError, + price_min_not_entered: minPriceNotEntered, + price_max_not_entered: maxPriceNotEntered, + price_invalid_value: onInvalidPrice, + } = this.validationDictionary; const $productListingContainer = $('#product-listing-container'); const $contentListingContainer = $('#search-results-content'); const $facetedSearchContainer = $('#faceted-search-container'); diff --git a/config.json b/config.json index fbccc15761..11db5376d2 100644 --- a/config.json +++ b/config.json @@ -1,6 +1,6 @@ { "name": "Cornerstone", - "version": "6.16.2-rc.1", + "version": "6.16.2", "template_engine": "handlebars_v4", "meta": { "price": 0, diff --git a/package-lock.json b/package-lock.json index 26fbddb339..58d03b91c7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "bigcommerce-cornerstone", - "version": "6.16.2-rc.1", + "version": "6.16.2", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/package.json b/package.json index 5dd192bd82..f9fb15f750 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "bigcommerce-cornerstone", "description": "The BigCommerce reference theme for the Stencil platform", - "version": "6.16.2-rc.1", + "version": "6.16.2", "private": true, "author": "BigCommerce", "license": "MIT",