@graphcommerce/magento-search-overlay 9.1.0-canary.48 → 9.1.0-canary.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/components/SearchOverlayCategories.tsx +1 -1
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @graphcommerce/magento-search-overlay
|
|
2
2
|
|
|
3
|
+
## 9.1.0-canary.49
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2533](https://github.com/graphcommerce-org/graphcommerce/pull/2533) [`88abcbf`](https://github.com/graphcommerce-org/graphcommerce/commit/88abcbf011b65b0cd1235e984f5d8306256bd518) - When loading the category/search page in the case that there are no filters applied, the amount or product related queries is reduced from 2 to 1 (ProductFilters is skipped). Pagination, sorting and search terms also do not affect this. When a filter is applied we fall back to the previous functionality and do a second query to retrieve the filters.
|
|
8
|
+
|
|
9
|
+
This did not matter when the categories/search pages were served by Magento as Magento would cache the result of the ProductFilters query. When the the catalog is served by an external service like Algolia this might be a problem.
|
|
10
|
+
|
|
11
|
+
Implementation details: When filters are applied (e.g., filtering by color:blue), the ProductList query only returns products matching that filter, which means other filter options (like other colors) are excluded from the filter options. This behavior is expected since those other options wouldn't return any products. However, when no filters are applied, the ProductList query returns all products along with all available filter options, eliminating the need for a separate ProductFilters query. ([@paales](https://github.com/paales))
|
|
12
|
+
|
|
3
13
|
## 9.1.0-canary.48
|
|
4
14
|
|
|
5
15
|
## 9.1.0-canary.47
|
|
@@ -41,7 +41,7 @@ const SearchOverlayCategory = forwardRef<HTMLAnchorElement, SearchOverlayCategor
|
|
|
41
41
|
component={NextLink}
|
|
42
42
|
ref={ref}
|
|
43
43
|
href={productListLink({
|
|
44
|
-
filters: { category_uid: {
|
|
44
|
+
filters: { category_uid: { in: [category.uid] } },
|
|
45
45
|
sort: {},
|
|
46
46
|
url: category.url_path ?? '',
|
|
47
47
|
})}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-search-overlay",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "9.1.0-canary.
|
|
5
|
+
"version": "9.1.0-canary.49",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,18 +12,18 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@graphcommerce/ecommerce-ui": "^9.1.0-canary.
|
|
16
|
-
"@graphcommerce/eslint-config-pwa": "^9.1.0-canary.
|
|
17
|
-
"@graphcommerce/framer-utils": "^9.1.0-canary.
|
|
18
|
-
"@graphcommerce/graphql": "^9.1.0-canary.
|
|
19
|
-
"@graphcommerce/image": "^9.1.0-canary.
|
|
20
|
-
"@graphcommerce/magento-product": "^9.1.0-canary.
|
|
21
|
-
"@graphcommerce/magento-search": "^9.1.0-canary.
|
|
22
|
-
"@graphcommerce/magento-store": "^9.1.0-canary.
|
|
23
|
-
"@graphcommerce/next-ui": "^9.1.0-canary.
|
|
24
|
-
"@graphcommerce/prettier-config-pwa": "^9.1.0-canary.
|
|
25
|
-
"@graphcommerce/react-hook-form": "^9.1.0-canary.
|
|
26
|
-
"@graphcommerce/typescript-config-pwa": "^9.1.0-canary.
|
|
15
|
+
"@graphcommerce/ecommerce-ui": "^9.1.0-canary.49",
|
|
16
|
+
"@graphcommerce/eslint-config-pwa": "^9.1.0-canary.49",
|
|
17
|
+
"@graphcommerce/framer-utils": "^9.1.0-canary.49",
|
|
18
|
+
"@graphcommerce/graphql": "^9.1.0-canary.49",
|
|
19
|
+
"@graphcommerce/image": "^9.1.0-canary.49",
|
|
20
|
+
"@graphcommerce/magento-product": "^9.1.0-canary.49",
|
|
21
|
+
"@graphcommerce/magento-search": "^9.1.0-canary.49",
|
|
22
|
+
"@graphcommerce/magento-store": "^9.1.0-canary.49",
|
|
23
|
+
"@graphcommerce/next-ui": "^9.1.0-canary.49",
|
|
24
|
+
"@graphcommerce/prettier-config-pwa": "^9.1.0-canary.49",
|
|
25
|
+
"@graphcommerce/react-hook-form": "^9.1.0-canary.49",
|
|
26
|
+
"@graphcommerce/typescript-config-pwa": "^9.1.0-canary.49",
|
|
27
27
|
"@lingui/core": "^4.2.1",
|
|
28
28
|
"@lingui/macro": "^4.2.1",
|
|
29
29
|
"@lingui/react": "^4.2.1",
|