diff --git a/.changeset/sync-canary-1-10-0.md b/.changeset/sync-canary-1-10-0.md new file mode 100644 index 000000000..7003a9d6d --- /dev/null +++ b/.changeset/sync-canary-1-10-0.md @@ -0,0 +1,5 @@ +--- +"@bigcommerce/catalyst-makeswift": minor +--- + +Pulls in changes from the `@bigcommerce/catalyst-core@1.10.0` release. For more information about what was included in the `@bigcommerce/catalyst-core@1.10.0` release, see the [changelog entry](https://github.com/bigcommerce/catalyst/blob/75724656c9edc1ee662aadd49de2909fdfc10dfa/core/CHANGELOG.md#1100). diff --git a/.github/workflows/changesets-release.yml b/.github/workflows/changesets-release.yml index bae05ce28..37121218b 100644 --- a/.github/workflows/changesets-release.yml +++ b/.github/workflows/changesets-release.yml @@ -93,5 +93,10 @@ jobs: with: access_key: ${{ secrets.LINEAR_ACCESS_KEY }} command: complete - version: ${{ steps.headline.outputs.tag }} + # No `version`: the `catalyst-release` pipeline is a scheduled pipeline + # whose started release is unversioned (the accumulating `sync` steps + # above run without a version). Passing `version` makes `complete` look + # up an existing release with that exact version, which never exists and + # fails with `No release found with version "…"`. Omitting it completes + # the latest started release — the one sync has been accumulating into. release_notes: /tmp/release-notes.md diff --git a/core/messages/en.json b/core/messages/en.json index a1e7bfca5..d4e44bea3 100644 --- a/core/messages/en.json +++ b/core/messages/en.json @@ -624,6 +624,9 @@ "search": "Search" }, "Components": { + "ProductCard": { + "moreOffers": "+{count, plural, =1 {# more offer} other {# more offers}}" + }, "Header": { "home": "Home", "toggleNavigation": "Toggle navigation", diff --git a/core/package.json b/core/package.json index f3bf3d521..f4d7a006a 100644 --- a/core/package.json +++ b/core/package.json @@ -3,8 +3,8 @@ "description": "BigCommerce Catalyst is a Next.js starter kit for building headless BigCommerce storefronts.", "version": "1.9.0", "catalyst": { - "version": "1.9.0", - "ref": "@bigcommerce/catalyst-makeswift@1.9.0" + "version": "1.10.0", + "ref": "@bigcommerce/catalyst-core@1.10.0" }, "private": true, "engines": { diff --git a/core/vibes/soul/primitives/product-card/index.tsx b/core/vibes/soul/primitives/product-card/index.tsx index 458ee66c4..48a8ebdda 100644 --- a/core/vibes/soul/primitives/product-card/index.tsx +++ b/core/vibes/soul/primitives/product-card/index.tsx @@ -1,4 +1,5 @@ import { clsx } from 'clsx'; +import { useTranslations } from 'next-intl'; import { Content as CalloutContent, Description as CalloutDescription, @@ -40,7 +41,6 @@ export interface ProductCardProps { imageSizes?: string; compareLabel?: string; compareParamName?: string; - moreOffersLabel?: string; product: Product; showRating?: boolean; } @@ -88,10 +88,11 @@ export function ProductCard({ aspectRatio = '5:6', compareLabel, compareParamName, - moreOffersLabel = 'more offers', imagePriority = false, imageSizes = '(min-width: 80rem) 20vw, (min-width: 64rem) 25vw, (min-width: 42rem) 33vw, (min-width: 24rem) 50vw, 100vw', }: ProductCardProps) { + const t = useTranslations('Components.ProductCard'); + return (
{promotions.length > 1 && ( - +{promotions.length - 1} {moreOffersLabel} + {t('moreOffers', { count: promotions.length - 1 })} )} diff --git a/packages/catalyst/CHANGELOG.md b/packages/catalyst/CHANGELOG.md index c74b12620..d8e665e80 100644 --- a/packages/catalyst/CHANGELOG.md +++ b/packages/catalyst/CHANGELOG.md @@ -1,5 +1,11 @@ # @bigcommerce/catalyst +## 1.1.1 + +### Patch Changes + +- [#3119](https://github.com/bigcommerce/catalyst/pull/3119) [`bd72110`](https://github.com/bigcommerce/catalyst/commit/bd721106dbded48e823acad6548019d1210258f6) Thanks [@jordanarldt](https://github.com/jordanarldt)! - Add `store_v2_products`, `store_v2_content`, and `store_sites` OAuth scopes so `catalyst create` no longer errors when creating a new channel with sample data. + ## 1.1.0 ### Minor Changes diff --git a/packages/catalyst/package.json b/packages/catalyst/package.json index 3d6544f82..631832898 100644 --- a/packages/catalyst/package.json +++ b/packages/catalyst/package.json @@ -1,6 +1,6 @@ { "name": "@bigcommerce/catalyst", - "version": "1.1.0", + "version": "1.1.1", "type": "module", "repository": { "type": "git", diff --git a/packages/catalyst/src/cli/lib/auth.ts b/packages/catalyst/src/cli/lib/auth.ts index ef75cd96c..1eea0fc66 100644 --- a/packages/catalyst/src/cli/lib/auth.ts +++ b/packages/catalyst/src/cli/lib/auth.ts @@ -5,11 +5,16 @@ import { httpError } from './http-errors'; export const DEVICE_OAUTH_CLIENT_ID = 'b8063bu6hhml4e0lqh22yut63atsbyv'; export const DEVICE_OAUTH_SCOPES = [ 'store_v2_information', + 'store_v2_products', + 'store_v2_content', + 'store_sites', + 'store_storefront_api', 'store_infrastructure_deployments_manage', 'store_infrastructure_logs_read_only', 'store_infrastructure_projects_manage', 'store_channel_settings', ].join(' '); + export const DEFAULT_LOGIN_URL = 'https://login.bigcommerce.com'; export const DeviceCodeResponseSchema = z.object({ diff --git a/packages/create-catalyst/CHANGELOG.md b/packages/create-catalyst/CHANGELOG.md index 15ad54d2f..f90f3dcac 100644 --- a/packages/create-catalyst/CHANGELOG.md +++ b/packages/create-catalyst/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.0.2 + +### Patch Changes + +- Updated dependencies [[`bd72110`](https://github.com/bigcommerce/catalyst/commit/bd721106dbded48e823acad6548019d1210258f6)]: + - @bigcommerce/catalyst@1.1.1 + ## 2.0.1 ### Patch Changes diff --git a/packages/create-catalyst/package.json b/packages/create-catalyst/package.json index b99202e55..2e3a6ab0d 100644 --- a/packages/create-catalyst/package.json +++ b/packages/create-catalyst/package.json @@ -1,6 +1,6 @@ { "name": "@bigcommerce/create-catalyst", - "version": "2.0.1", + "version": "2.0.2", "repository": { "type": "git", "url": "https://github.com/bigcommerce/catalyst",