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
5 changes: 5 additions & 0 deletions .changeset/sync-canary-1-10-0.md
Original file line number Diff line number Diff line change
@@ -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).
7 changes: 6 additions & 1 deletion .github/workflows/changesets-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions core/messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,9 @@
"search": "Search"
},
"Components": {
"ProductCard": {
"moreOffers": "+{count, plural, =1 {# more offer} other {# more offers}}"
},
"Header": {
"home": "Home",
"toggleNavigation": "Toggle navigation",
Expand Down
4 changes: 2 additions & 2 deletions core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
7 changes: 4 additions & 3 deletions core/vibes/soul/primitives/product-card/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { clsx } from 'clsx';
import { useTranslations } from 'next-intl';
import {
Content as CalloutContent,
Description as CalloutDescription,
Expand Down Expand Up @@ -40,7 +41,6 @@ export interface ProductCardProps {
imageSizes?: string;
compareLabel?: string;
compareParamName?: string;
moreOffersLabel?: string;
product: Product;
showRating?: boolean;
}
Expand Down Expand Up @@ -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 (
<article
className={clsx(
Expand Down Expand Up @@ -196,7 +197,7 @@ export function ProductCard({
</CalloutTitle>
{promotions.length > 1 && (
<CalloutDescription className="text-xs text-yellow-900/70">
+{promotions.length - 1} {moreOffersLabel}
{t('moreOffers', { count: promotions.length - 1 })}
</CalloutDescription>
)}
</CalloutHeader>
Expand Down
6 changes: 6 additions & 0 deletions packages/catalyst/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/catalyst/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bigcommerce/catalyst",
"version": "1.1.0",
"version": "1.1.1",
"type": "module",
"repository": {
"type": "git",
Expand Down
5 changes: 5 additions & 0 deletions packages/catalyst/src/cli/lib/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
7 changes: 7 additions & 0 deletions packages/create-catalyst/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/create-catalyst/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Loading