update css vars

This commit is contained in:
Rami Bitar
2026-05-08 14:55:17 -04:00
parent 564c98c805
commit 6706a11f7b
21 changed files with 2513 additions and 97 deletions

View File

@@ -31,7 +31,7 @@ export const GET_COLLECTIONS_QUERY = `
// Get products in a collection
export const GET_COLLECTION_PRODUCTS_QUERY = `
${ProductFragment}
query GetCollectionProducts($handle: String!, $first: Int!, $sortKey: ProductCollectionSortKeys, $reverse: Boolean) {
query GetCollectionProducts($handle: String!, $first: Int!, $sortKey: ProductCollectionSortKeys, $reverse: Boolean, $filters: [ProductFilter!], $after: String) {
collection(handle: $handle) {
id
title
@@ -45,7 +45,7 @@ export const GET_COLLECTION_PRODUCTS_QUERY = `
width
height
}
products(first: $first, sortKey: $sortKey, reverse: $reverse) {
products(first: $first, sortKey: $sortKey, reverse: $reverse, filters: $filters, after: $after) {
edges {
node {
...ProductFragment

View File

@@ -105,6 +105,30 @@ export const GET_PRODUCT_QUERY = `
}
`;
// Search products with cursor-based pagination and full filter support
export const GET_SEARCH_QUERY = `
${ProductFragment}
query SearchProducts(
$first: Int!
$query: String
$sortKey: ProductSortKeys
$reverse: Boolean
$after: String
) {
products(first: $first, query: $query, sortKey: $sortKey, reverse: $reverse, after: $after) {
edges {
node {
...ProductFragment
}
}
pageInfo {
hasNextPage
endCursor
}
}
}
`;
// Get product recommendations
export const QUERY_PRODUCT_RECOMMENDATIONS = `
${ProductFragment}