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-1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@bigcommerce/catalyst-makeswift": patch
---

Pulls in changes from the `@bigcommerce/catalyst-core@1.10.1` release. For more information about what was included in the `@bigcommerce/catalyst-core@1.10.1` release, see the [changelog entry](https://github.com/bigcommerce/catalyst/blob/36f8fc85c484ab2446b404fa6dc170e986341e8d/core/CHANGELOG.md#1101).
3 changes: 3 additions & 0 deletions .github/workflows/changesets-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- canary
- integrations/makeswift
- integrations/b2b-makeswift

concurrency: ${{ github.workflow }}-${{ github.ref }}

Expand Down Expand Up @@ -72,6 +73,8 @@ jobs:
PACKAGE_NAME="@bigcommerce/catalyst-core"
if [ "${{ github.ref_name }}" = "integrations/makeswift" ]; then
PACKAGE_NAME="@bigcommerce/catalyst-makeswift"
elif [ "${{ github.ref_name }}" = "integrations/b2b-makeswift" ]; then
PACKAGE_NAME="@bigcommerce/catalyst-b2b-makeswift"
fi
VERSION=$(echo '${{ steps.changesets.outputs.publishedPackages }}' | jq -r --arg name "$PACKAGE_NAME" '.[] | select(.name == $name) | .version')
if [ -z "$VERSION" ]; then
Expand Down
3 changes: 3 additions & 0 deletions core/app/[locale]/(default)/(faceted)/brand/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ interface Props {

export async function generateMetadata(props: Props): Promise<Metadata> {
const { slug, locale } = await props.params;

setRequestLocale(locale);

const customerAccessToken = await getSessionCustomerAccessToken();

const brandId = Number(slug);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ interface Props {

export async function generateMetadata(props: Props): Promise<Metadata> {
const { slug, locale } = await props.params;

setRequestLocale(locale);

const customerAccessToken = await getSessionCustomerAccessToken();

const categoryId = Number(slug);
Expand Down
3 changes: 3 additions & 0 deletions core/app/[locale]/(default)/product/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ interface Props {

export async function generateMetadata({ params }: Props): Promise<Metadata> {
const { slug, locale } = await params;

setRequestLocale(locale);

const customerAccessToken = await getSessionCustomerAccessToken();

const productId = Number(slug);
Expand Down
2 changes: 2 additions & 0 deletions core/globals.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import 'storefront-kit/styles';

@tailwind base;
@tailwind components;
@tailwind utilities;
Expand Down
8 changes: 4 additions & 4 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.10.0",
"ref": "@bigcommerce/catalyst-core@1.10.0"
"version": "1.9.0",
"ref": "@bigcommerce/catalyst-makeswift@1.9.0"
},
"private": true,
"engines": {
Expand Down Expand Up @@ -67,7 +67,7 @@
"lodash.debounce": "^4.0.8",
"lru-cache": "^11.1.0",
"lucide-react": "^0.474.0",
"next": "~16.2.6",
"next": "~16.2.11",
"next-auth": "5.0.0-beta.30",
"next-intl": "^4.6.1",
"nuqs": "^2.4.3",
Expand All @@ -82,7 +82,7 @@
"set-cookie-parser": "^2.7.1",
"sharp": "^0.33.5",
"sonner": "^1.7.4",
"storefront-kit": "^0.24.0",
"storefront-kit": "^0.32.3",
"swr": "^2.2.5",
"tailwindcss-radix": "^3.0.5",
"uuid": "^11.1.0",
Expand Down
2 changes: 1 addition & 1 deletion core/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const config = {
'./app/**/*.{ts,tsx}',
'./components/**/*.{ts,tsx}',
'./vibes/**/*.{ts,tsx}',
'!./node_modules/**', // Exclude everything in node_modules to speed up builds
'./node_modules/storefront-kit/dist/**/*.{js,mjs}',
],
theme: {
extend: {
Expand Down
12 changes: 3 additions & 9 deletions core/vibes/soul/primitives/product-card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,18 +185,12 @@ export function ProductCard({
)}
{promotions != null && promotions.length > 0 && (
<div className="mt-1.5">
<CalloutRoot
className="items-start rounded-md border border-yellow-300 bg-yellow-50 px-2.5 py-1.5"
size="small"
variant="warning"
>
<CalloutRoot size="small" variant="warning">
<CalloutContent>
<CalloutHeader>
<CalloutTitle className="text-xs font-semibold leading-snug text-yellow-900">
{promotions[0]?.text ?? ''}
</CalloutTitle>
<CalloutTitle>{promotions[0]?.text ?? ''}</CalloutTitle>
{promotions.length > 1 && (
<CalloutDescription className="text-xs text-yellow-900/70">
<CalloutDescription>
{t('moreOffers', { count: promotions.length - 1 })}
</CalloutDescription>
)}
Expand Down
11 changes: 2 additions & 9 deletions core/vibes/soul/sections/product-detail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -216,17 +216,10 @@ export function ProductDetail<F extends Field>({
callouts.length > 0 ? (
<div className="flex flex-col gap-2">
{callouts.map((callout) => (
<CalloutRoot
className="items-start rounded-md border border-yellow-300 bg-yellow-50 px-2.5 py-1.5"
key={callout.id}
size="small"
variant="warning"
>
<CalloutRoot key={callout.id} size="small" variant="warning">
<CalloutContent>
<CalloutHeader>
<CalloutTitle className="text-xs font-semibold leading-snug text-yellow-900">
{callout.text}
</CalloutTitle>
<CalloutTitle>{callout.text}</CalloutTitle>
</CalloutHeader>
</CalloutContent>
</CalloutRoot>
Expand Down
Loading
Loading