diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7f81e0088..f2fee2f8d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,13 +1,16 @@ name: test on: pull_request + +# Cancel in progress workflows on pull_requests. +# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: test: runs-on: ubuntu-latest steps: - - name: Cancel running workflows - uses: styfle/cancel-workflow-action@0.12.0 - with: - access_token: ${{ github.token }} - name: Checkout repo uses: actions/checkout@v4 - name: Set node version diff --git a/README.md b/README.md index 2623a7a4c..981685d2b 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ # Next.js Commerce -A Next.js 13 and App Router-ready ecommerce template featuring: +A Next.js 14 and App Router-ready ecommerce template featuring: - Next.js App Router - Optimized for SEO using Next.js's Metadata diff --git a/app/error.tsx b/app/error.tsx index e0a7416a3..80b32a42a 100644 --- a/app/error.tsx +++ b/app/error.tsx @@ -2,7 +2,7 @@ export default function Error({ reset }: { reset: () => void }) { return ( -
+

Oh no!

There was an issue with our storefront. This could be a temporary issue, please try your diff --git a/app/product/[handle]/page.tsx b/app/product/[handle]/page.tsx index 5079be340..3598ff75d 100644 --- a/app/product/[handle]/page.tsx +++ b/app/product/[handle]/page.tsx @@ -80,7 +80,7 @@ export default async function ProductPage({ params }: { params: { handle: string }} />

-
+
-
+
diff --git a/components/cart/modal.tsx b/components/cart/modal.tsx index aee2f7a47..a30818940 100644 --- a/components/cart/modal.tsx +++ b/components/cart/modal.tsx @@ -64,7 +64,7 @@ export default function CartModal({ cart }: { cart: Cart | undefined }) { leaveFrom="translate-x-0" leaveTo="translate-x-full" > - +

My Cart

diff --git a/components/layout/footer-menu.tsx b/components/layout/footer-menu.tsx index 4f6387edd..444406294 100644 --- a/components/layout/footer-menu.tsx +++ b/components/layout/footer-menu.tsx @@ -19,7 +19,7 @@ const FooterMenuItem = ({ item }: { item: Menu }) => { -
+
- + {SITE_NAME} diff --git a/components/layout/navbar/mobile-menu.tsx b/components/layout/navbar/mobile-menu.tsx index d982ac754..9091f93d3 100644 --- a/components/layout/navbar/mobile-menu.tsx +++ b/components/layout/navbar/mobile-menu.tsx @@ -35,7 +35,7 @@ export default function MobileMenu({ menu }: { menu: Menu[] }) { diff --git a/components/layout/search/filter/index.tsx b/components/layout/search/filter/index.tsx index d05a770fb..11a7cd367 100644 --- a/components/layout/search/filter/index.tsx +++ b/components/layout/search/filter/index.tsx @@ -21,7 +21,7 @@ export default function FilterList({ list, title }: { list: ListItem[]; title?: <>