Skip to content

Commit

Permalink
Added variant to facets query
Browse files Browse the repository at this point in the history
  • Loading branch information
salesfelipe committed Oct 30, 2024
1 parent e66aea1 commit 10a0bda
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Added

- `variant` to `facets` query, used to execute A/B tests.

## [3.133.1] - 2024-10-02

### Fixed
Expand Down
1 change: 1 addition & 0 deletions react/components/SearchQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ const useQueries = (variables, facetsArgs, price) => {
fuzzy: variables.fuzzy,
searchState: variables.searchState || undefined,
initialAttributes: getInitialAttributes(),
variant: getCookie('sp-variant'),
},
skip: !facetsArgs.withFacets,
})
Expand Down
2 changes: 1 addition & 1 deletion react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"vtex.store-drawer": "http://vtex.vtexassets.com/_v/public/typings/v1/[email protected]/public/@types/vtex.store-drawer",
"vtex.store-graphql": "http://vtex.vtexassets.com/_v/public/typings/v1/[email protected]/public/@types/vtex.store-graphql",
"vtex.store-icons": "http://vtex.vtexassets.com/_v/public/typings/v1/[email protected]/public/@types/vtex.store-icons",
"vtex.store-resources": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-resources@0.95.0/public/@types/vtex.store-resources",
"vtex.store-resources": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-resources@0.101.0/public/@types/vtex.store-resources",

Check failure

Code scanning / CodeQL

Dependency download using unencrypted communication channel High

Dependency downloaded using unencrypted communication channel.
"vtex.structured-data": "http://vtex.vtexassets.com/_v/public/typings/v1/[email protected]/public/@types/vtex.structured-data",
"vtex.styleguide": "http://vtex.vtexassets.com/_v/public/typings/v1/[email protected]/public/@types/vtex.styleguide",
"vtex.tab-layout": "http://vtex.vtexassets.com/_v/public/typings/v1/[email protected]/public/@types/vtex.tab-layout"
Expand Down
6 changes: 3 additions & 3 deletions react/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5624,9 +5624,9 @@ validate-npm-package-license@^3.0.1:
version "0.18.0"
resolved "http://vtex.vtexassets.com/_v/public/typings/v1/[email protected]/public/@types/vtex.store-icons#0ee94d549aa283ce3a13ab987c13eac4fdfd1bba"

"vtex.store-resources@http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-resources@0.95.0/public/@types/vtex.store-resources":
version "0.95.0"
resolved "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-resources@0.95.0/public/@types/vtex.store-resources#74a95451b866ad56d7032e78298eba2174e5e2a0"
"vtex.store-resources@http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-resources@0.101.0/public/@types/vtex.store-resources":
version "0.101.0"
resolved "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-resources@0.101.0/public/@types/vtex.store-resources#d692dadaabcbbd879a611dc5bec3dcd0d4f3fb31"

"vtex.structured-data@http://vtex.vtexassets.com/_v/public/typings/v1/[email protected]/public/@types/vtex.structured-data":
version "0.9.1"
Expand Down

0 comments on commit 10a0bda

Please sign in to comment.