Skip to content
Merged
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
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@
.env
.shopify
/node_modules
.DS_Store
.DS_Store
# Snyk Security Extension - AI Rules (auto-generated)
.cursor/rules/snyk_rules.mdc
2 changes: 1 addition & 1 deletion app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ const FOOTER_QUERY = `#graphql
` as const;

const FOOTER_META_OBJECT_QUERY = `#graphql
query MetaObject($country: CountryCode, $language: LanguageCode)
query RootMetaObject($country: CountryCode, $language: LanguageCode)
@inContext(country: $country, language: $language) {
metaobjects(first: 100, type: "footer") {
nodes {
Expand Down
8 changes: 4 additions & 4 deletions app/routes/($locale)._index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1092,7 +1092,7 @@ const COLLECTIONS_QUERY = `#graphql
` as const;

const NEW_ARRIVALS_QUERY = `#graphql
query FeaturedCollection($country: CountryCode, $language: LanguageCode)
query FeaturedCollectionNewArrivals($country: CountryCode, $language: LanguageCode)
@inContext(country: $country, language: $language) {
collection(handle: "new-arrivals") {
handle
Expand All @@ -1116,7 +1116,7 @@ query FeaturedCollection($country: CountryCode, $language: LanguageCode)
}` as const;

const TOP_CATEGORIES_QUERY = `#graphql
query FeaturedCollection($country: CountryCode, $language: LanguageCode)
query FeaturedCollectionTopCategories($country: CountryCode, $language: LanguageCode)
@inContext(country: $country, language: $language) {
collections(first:8, reverse:true) {
edges {
Expand Down Expand Up @@ -1148,7 +1148,7 @@ const TOP_CATEGORIES_QUERY = `#graphql
` as const;

const BEST_SELLER_QUERY = `#graphql
query FeaturedCollection($country: CountryCode, $language: LanguageCode)
query FeaturedCollectionBestSeller($country: CountryCode, $language: LanguageCode)
@inContext(country: $country, language: $language) {
collection(handle: "womens-fashion") {
handle
Expand All @@ -1172,7 +1172,7 @@ query FeaturedCollection($country: CountryCode, $language: LanguageCode)
}` as const;

const META_OBJECT_QUERY = `#graphql
query MetaObject($country: CountryCode, $language: LanguageCode)
query MetaObjectHome($country: CountryCode, $language: LanguageCode)
@inContext(country: $country, language: $language) {
metaobjects(first: 100, type: "home") {
nodes {
Expand Down
2 changes: 1 addition & 1 deletion app/routes/($locale).about.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function RecommendedProducts({metaObject}: {metaObject: any}) {
}

const META_OBJECT_QUERY = `#graphql
query MetaObject($country: CountryCode, $language: LanguageCode)
query MetaObjectAbout($country: CountryCode, $language: LanguageCode)
@inContext(country: $country, language: $language) {
metaobjects(first: 100, type: "about_us") {
nodes {
Expand Down
4 changes: 2 additions & 2 deletions app/routes/($locale).collections._index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const COLLECTIONS_QUERY = `#graphql
height
}
}
query StoreCollections(
query StoreCollectionsIndex(
$country: CountryCode
$endCursor: String
$first: Int
Expand Down Expand Up @@ -142,7 +142,7 @@ const COLLECTIONS_QUERY = `#graphql
` as const;

const HEADING_QUERY = `#graphql
query MetaObject($country: CountryCode, $language: LanguageCode)
query MetaObjectCollectionsPageHeading($country: CountryCode, $language: LanguageCode)
@inContext(country: $country, language: $language) {
metaobjects(first: 100, type: "product_page_contents") {
nodes {
Expand Down
8 changes: 4 additions & 4 deletions app/routes/($locale).collections.all.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ function RecommendedProducts({
}

const RECOMMENDED_PRODUCTS_QUERY = `#graphql
fragment Product on Product {
fragment CollectionProduct on Product {
id
title
handle
Expand Down Expand Up @@ -214,7 +214,7 @@ const RECOMMENDED_PRODUCTS_QUERY = `#graphql
}
}
}
query RecommendedProducts ( $country: CountryCode
query RecommendedProductsAllPage ( $country: CountryCode
$endCursor: String
$first: Int
$language: LanguageCode
Expand All @@ -229,7 +229,7 @@ const RECOMMENDED_PRODUCTS_QUERY = `#graphql
reverse: true
) {
nodes {
...Product
...CollectionProduct
}
pageInfo {
hasNextPage
Expand All @@ -242,7 +242,7 @@ const RECOMMENDED_PRODUCTS_QUERY = `#graphql
` as const;

const HEADING_QUERY = `#graphql
query MetaObject($country: CountryCode, $language: LanguageCode)
query MetaObjectAllProductsPageHeading($country: CountryCode, $language: LanguageCode)
@inContext(country: $country, language: $language) {
metaobjects(first: 100, type: "product_page_contents") {
nodes {
Expand Down
8 changes: 4 additions & 4 deletions app/routes/($locale).products.$handle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@ const PRODUCT_VARIANT_FRAGMENT = `#graphql
` as const;

const PRODUCT_FRAGMENT = `#graphql
fragment Product on Product {
fragment ProductDetails on Product {
id
title
vendor
Expand Down Expand Up @@ -951,7 +951,7 @@ const PRODUCT_QUERY = `#graphql
$selectedOptions: [SelectedOptionInput!]!
) @inContext(country: $country, language: $language) {
product(handle: $handle) {
...Product
...ProductDetails
collections(first: 1) {
edges {
node {
Expand Down Expand Up @@ -1048,7 +1048,7 @@ const RELATED_PRODUCT_QUERY = `#graphql
` as const;

const META_OBJECT_QUERY = `#graphql
query MetaObject($country: CountryCode, $language: LanguageCode, $first: Int, $after: String)
query MetaObjectProductDetailPage($country: CountryCode, $language: LanguageCode, $first: Int, $after: String)
@inContext(country: $country, language: $language) {
metaobjects(first: $first, after: $after, type: "product_detail_page") {
edges {
Expand All @@ -1075,7 +1075,7 @@ query MetaObject($country: CountryCode, $language: LanguageCode, $first: Int, $a
}` as const;

const HEADING_QUERY = `#graphql
query MetaObject($country: CountryCode, $language: LanguageCode)
query MetaObjectPdpPageContents($country: CountryCode, $language: LanguageCode)
@inContext(country: $country, language: $language) {
metaobjects(first: 100, type: "product_page_contents") {
nodes {
Expand Down
12 changes: 6 additions & 6 deletions app/routes/_index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@ const RECOMMENDED_PRODUCTS_QUERY = `#graphql
}
}
}
query RecommendedProducts ($country: CountryCode, $language: LanguageCode)
query RecommendedProductsRoot ($country: CountryCode, $language: LanguageCode)
@inContext(country: $country, language: $language) {
products(first: 3, sortKey: CREATED_AT, reverse: true) {
nodes {
Expand All @@ -1055,7 +1055,7 @@ const COLLECTIONS_QUERY = `#graphql
height
}
}
query StoreCollections(
query StoreCollectionsRoot(
$country: CountryCode
$endCursor: String
# $first: Int
Expand Down Expand Up @@ -1092,7 +1092,7 @@ const COLLECTIONS_QUERY = `#graphql
` as const;

const NEW_ARRIVALS_QUERY = `#graphql
query FeaturedCollection($country: CountryCode, $language: LanguageCode)
query FeaturedCollectionNewArrivalsRoot($country: CountryCode, $language: LanguageCode)
@inContext(country: $country, language: $language) {
collection(handle: "new-arrivals") {
handle
Expand All @@ -1116,7 +1116,7 @@ query FeaturedCollection($country: CountryCode, $language: LanguageCode)
}` as const;

const TOP_CATEGORIES_QUERY = `#graphql
query FeaturedCollection($country: CountryCode, $language: LanguageCode)
query FeaturedCollectionTopCategoriesRoot($country: CountryCode, $language: LanguageCode)
@inContext(country: $country, language: $language) {
collections(first:8, reverse:true) {
edges {
Expand Down Expand Up @@ -1148,7 +1148,7 @@ const TOP_CATEGORIES_QUERY = `#graphql
` as const;

const BEST_SELLER_QUERY = `#graphql
query FeaturedCollection($country: CountryCode, $language: LanguageCode)
query FeaturedCollectionBestSellerRoot($country: CountryCode, $language: LanguageCode)
@inContext(country: $country, language: $language) {
collection(handle: "womens-fashion") {
handle
Expand All @@ -1172,7 +1172,7 @@ query FeaturedCollection($country: CountryCode, $language: LanguageCode)
}` as const;

const META_OBJECT_QUERY = `#graphql
query MetaObject($country: CountryCode, $language: LanguageCode)
query MetaObjectHomeRoot($country: CountryCode, $language: LanguageCode)
@inContext(country: $country, language: $language) {
metaobjects(first: 100, type: "home") {
nodes {
Expand Down
Loading