Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
15 changes: 13 additions & 2 deletions assets/js/theme/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Cornerstone",
"version": "6.16.2-rc.1",
"version": "6.16.2",
"template_engine": "handlebars_v4",
"meta": {
"price": 0,
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down