Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ui changes #77

Closed
wants to merge 55 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
60ddcc8
feat(navbar): remove border-top and change search button border-radius
kasin-it Oct 17, 2024
09755e0
feat: tweak added to cart notification design
kasin-it Oct 17, 2024
7639ed3
feat: tweak footer design
kasin-it Oct 17, 2024
3b9be33
fix: prettier
kasin-it Oct 17, 2024
ef60b1d
feat: tweak hero design
kasin-it Oct 17, 2024
32a3f12
feat: new design for new-arrivals and featured-categories
kasin-it Oct 17, 2024
458f881
feat: tweak cart-sheet design
kasin-it Oct 17, 2024
3a3efcc
feat: tweak product page
kasin-it Oct 18, 2024
a37d367
Merge pull request #67 from Blazity/511-tweak-navbar-design
kasin-it Oct 18, 2024
3e65e9a
Merge pull request #68 from Blazity/512-tweak-added-to-cart-notificat…
kasin-it Oct 18, 2024
5ce136c
Merge pull request #69 from Blazity/515-tweak-footer-design
kasin-it Oct 18, 2024
4195f5b
Merge pull request #70 from Blazity/517-tweak-hero-design
kasin-it Oct 18, 2024
30b2266
Merge pull request #72 from Blazity/513-tweak-cart-sheet-design
kasin-it Oct 18, 2024
972ffc3
feat: tweak breadcrumbs design
kasin-it Oct 18, 2024
b88d2f5
fix: prettier
kasin-it Oct 18, 2024
7c18002
Merge pull request #71 from Blazity/516-tweak-featured-categories-design
kasin-it Oct 18, 2024
ea278f1
Merge pull request #75 from Blazity/523-tweak-breadcrumbs-design
kasin-it Oct 18, 2024
4130a16
feat: introduce some design tweaks
kasin-it Oct 18, 2024
b975c8c
Merge pull request #74 from Blazity/524-tweak-product-page
kasin-it Oct 18, 2024
78a4f65
Merge pull request #76 from Blazity/521-redesign-products-hits
kasin-it Oct 18, 2024
0cfc19a
feat: change filters title
kasin-it Oct 18, 2024
38794c9
fix: lint
kasin-it Oct 18, 2024
29a50d6
feat: center footer on mobile
kasin-it Oct 18, 2024
ac80eac
Merge pull request #78 from Blazity/520-redesign-filters
kasin-it Oct 18, 2024
09671d5
feat: small changes to ui
kasin-it Oct 18, 2024
6503423
feat: add flex wrap to product card
kasin-it Oct 18, 2024
82b13d5
fix: pagination bug
kasin-it Oct 18, 2024
0134ab8
feat: small ui changes to product-card & categories-section
kasin-it Oct 22, 2024
cc35681
feat: tweak added to cart notification design
kasin-it Oct 17, 2024
10269f5
feat: tweak footer design
kasin-it Oct 17, 2024
00ca27d
fix: prettier
kasin-it Oct 17, 2024
e2f459d
feat: tweak hero design
kasin-it Oct 17, 2024
56d617b
feat: tweak cart-sheet design
kasin-it Oct 17, 2024
eebd4fa
feat: new design for new-arrivals and featured-categories
kasin-it Oct 17, 2024
343f586
feat: tweak breadcrumbs design
kasin-it Oct 18, 2024
9fc38cb
fix: prettier
kasin-it Oct 18, 2024
a233303
feat: tweak product page
kasin-it Oct 18, 2024
53ce157
feat: introduce some design tweaks
kasin-it Oct 18, 2024
84738e9
feat: center footer on mobile
kasin-it Oct 18, 2024
34f7d84
feat: change filters title
kasin-it Oct 18, 2024
d2bae21
fix: lint
kasin-it Oct 18, 2024
6bcebe1
feat: small changes to ui
kasin-it Oct 18, 2024
a3c4947
feat: add flex wrap to product card
kasin-it Oct 18, 2024
cde3e81
fix: pagination bug
kasin-it Oct 18, 2024
82c4368
feat: small ui changes to product-card & categories-section
kasin-it Oct 22, 2024
8659055
Merge branch 'staging' of https://github.com/Blazity/enterprise-comme…
kasin-it Oct 22, 2024
1d4c5ad
Revert "feat: small ui changes to product-card & categories-section"
kasin-it Oct 22, 2024
16101a0
feat: add subtle overlay to categories
kasin-it Oct 22, 2024
867027b
feat: remove unused sections
kasin-it Oct 22, 2024
68bee9b
refactor(shopify-algolia): standardize naming convention (#79)
ddaoxuan Oct 18, 2024
a2c6c34
chore: cleanup (#80)
ddaoxuan Oct 18, 2024
0560d2e
chore: add starter readme
ddaoxuan Oct 18, 2024
fc3a29f
chore: update root readme
ddaoxuan Oct 18, 2024
12f5af9
feat: tweak footer design
kasin-it Oct 17, 2024
4095c81
fix: prettier
kasin-it Oct 17, 2024
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
43 changes: 8 additions & 35 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,41 +14,14 @@ Run this command and let our CLI do the job or [see our documentation for manual
$ yarn create commerce
```

[See the live demo](https://blazity.com/r/commerce) or deploy it straight to Vercel:

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fblazity%2Fenterprise-commerce%2Ftree%2Fmain%2Fstarters%2Fshopify-algolia) - Shopify & Algolia starter

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fblazity%2Fenterprise-commerce%2Ftree%2Fmain%2Fstarters%2Fshopify-meilisearch) - Shopify & Meilsearch starter

**Note:** To enable all features, ensure [required environment variables](https://docs.commerce.blazity.com/setup#manual) are set in your `.env.local`

## Features

- [Next.js App Router](https://nextjs.org/docs/app) & [Turborepo](https://turbo.build/repo)
- [React Server Components](https://nextjs.org/docs/app/building-your-application/rendering/server-components) (RSCs), [Suspense and Streaming](https://nextjs.org/docs/app/building-your-application/routing/loading-ui-and-streaming)
- [Server Actions](https://nextjs.org/docs/app/building-your-application/data-fetching/server-actions-and-mutations)
- [Dynamic OG Images](https://nextjs.org/docs/app/api-reference/file-conventions/metadata/opengraph-image)
- [AI Vector Search](https://www.meilisearch.com/docs/learn/experimental/vector_search)
- [Lightning fast search & filtering](https://www.meilisearch.com/)
- [Designed with v0](https://v0.dev/)
- [Vercel Toolbar](https://vercel.com/docs/workflow-collaboration/vercel-toolbar) (feature flags, comments, deployment sharing, etc.)
- AI Image captioning
- Perfect Performance & SEO
- Extremely strict TypeScript
- Draft Mode
- A/B Tests
- Shadcn UI
- TailwindCSS
- Analytics (GTM, Vercel)
- Highly Scalable SEO Redirects ([Bloom Filters](https://nextjs.org/docs/app/building-your-application/routing/redirecting#managing-redirects-at-scale-advanced))
- Easy migration - migrate your existing solution in minutes
- Playwright - write end-to-end tests like a pro
- Storybook - create, test, and showcase your components
- T3 Env - manage your environment variables with ease
- Patch-package - fix external dependencies without losing your mind
- Components coupling and cohesion graph - a tool for managing component relationships
- Category Landing Page detached from Product Listing for fast SEO indexing & better performance
- Reviews & Ratings with [Judge.me](https://judge.me/)
[See the live demo](https://blazity.com/r/commerce)

## Starters

Each starter is a combination of commerce platform and search engine. While each starter follows very similar features crucial for every storefront, they may be different therefore we recommend checking the documentation for each starter.

- [Shopify + Algolia Starter](https://github.com/Blazity/enterprise-commerce/tree/main/starters/shopify-algolia)
- [Shopify + Meilisearch Starter](https://github.com/Blazity/enterprise-commerce/tree/main/starters/shopify-meilisearch)

## Architecture

Expand Down
92 changes: 92 additions & 0 deletions starters/shopify-algolia/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
🚀 Shopify + Algolia Starter for your next storefront

Run this command and let our CLI do the job or [see our documentation for manual setup instruction](https://blazity.com/r/commerce-docs).

```bash
$ yarn create commerce
```

[See the live demo](https://blazity.com/r/commerce) or deploy it straight to Vercel:

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fblazity%2Fenterprise-commerce%2Ftree%2Fmain%2Fstarters%2Fshopify-algolia)

**Note:** To enable all features, ensure [required environment variables](https://docs.commerce.blazity.com/providers) are set in your `.env.local`

## Features

- [Next.js App Router](https://nextjs.org/docs/app) & [Turborepo](https://turbo.build/repo)
- [React Server Components](https://nextjs.org/docs/app/building-your-application/rendering/server-components) (RSCs), [Suspense and Streaming](https://nextjs.org/docs/app/building-your-application/routing/loading-ui-and-streaming)
- [Server Actions](https://nextjs.org/docs/app/building-your-application/data-fetching/server-actions-and-mutations)
- [Dynamic OG Images](https://nextjs.org/docs/app/api-reference/file-conventions/metadata/opengraph-image)
- [AI Product recommendations](https://www.algolia.com/doc/guides/algolia-recommend/overview/)
- [Lightning fast search & filtering](https://www.algolia.com/)
- [Designed with v0](https://v0.dev/)
- [Vercel Toolbar](https://vercel.com/docs/workflow-collaboration/vercel-toolbar) (feature flags, comments, deployment sharing, etc.)
- AI Image captioning
- Perfect Performance & SEO
- Draft Mode
- A/B Tests
- Shadcn UI
- TailwindCSS
- Analytics (GTM, Vercel)
- Highly Scalable SEO Redirects ([Bloom Filters](https://nextjs.org/docs/app/building-your-application/routing/redirecting#managing-redirects-at-scale-advanced))
- Easy migration - migrate your existing solution in minutes
- Playwright - write end-to-end tests like a pro
- Storybook - create, test, and showcase your components
- T3 Env - manage your environment variables with ease
- Patch-package - fix external dependencies without losing your mind
- Components coupling and cohesion graph - a tool for managing component relationships
- Category Landing Page detached from Product Listing for fast SEO indexing & better performance
- Reviews & Ratings [Judge.me](https://judge.me/)

## Architecture

In Enterprise Commerce high-level architecture, Search Engine serves as the primary source for all product data and potentially other types of data in the future. The system is designed to easily integrate AI personalization tools without needing to modify any frontend code. While we are integrated with Shopify by default, we are not tightly bound to it, you can use any commerce platform and adapt data to our format.

<img width="1841" alt="architecture diagram" src="https://github.com/Blazity/enterprise-commerce/assets/28964599/c5d3a0b3-6c3e-47df-9c45-4ecb583f5a64">

## Performance

At Blazity, we prioritize speed. Enterprise Commerce is meticulously crafted to deliver top-notch performance for your online store.

Lighthouse scores offer a valuable comparison tool, but they don’t directly translate to SEO or user experience (UX).
For a true picture, prioritize real user data. Tools like CrUX or Vercel Speed Insights provide user-based performance metrics, ensuring your online store delivers a seamless experience for your customers.

![performance diagram](https://github.com/Blazity/enterprise-commerce/assets/28964599/8aba9b68-38d6-41c9-81a8-234003e7e1b0)

## 🤝 Contribution

Contributions are always welcome! To contribute, please follow these steps:

1. Fork the repository.
2. Create a new branch with a descriptive name.
3. Make your changes, and commit them using the [Conventional Commits](https://www.conventionalcommits.org/) format.
4. Push your changes to the forked repository.
5. Create a pull request, and we'll review your changes.

## Support

If you're looking for help or simply want to share your thoughts about the project, we encourage you to join our Discord community. Here's the link: [https://blazity.com/discord](https://blazity.com/discord). It's a space where we exchange ideas and help one another. Everyone's input is appreciated, and we look forward to welcoming you.

<br />
<a href="https://discord.gg/fyWtyNKmfX" style="width: 100%; display: flex; justify-content: center;">
<img src="https://discordapp.com/api/guilds/1111676875782234175/widget.png?style=banner2" alt="Blazity Discord Banner"/>
</a>
<br />

## 📜 License

This project is licensed under the MIT License. For more information, see the [LICENSE](./LICENSE) file.

[check-workflow-badge]: https://img.shields.io/github/actions/workflow/status/blazity/enterprise-commerce/check.yml?label=check
[github-license-badge]: https://img.shields.io/github/license/blazity/enterprise-commerce?link=https%3A%2F%2Fgithub.com%2FBlazity%2Fenterprise-commerce%2Fblob%2Fmain%2FLICENSE
[github-contributors-badge]: https://img.shields.io/github/contributors/blazity/enterprise-commerce?link=https%3A%2F%2Fgithub.com%2FBlazity%2Fenterprise-commerce%2Fgraphs%2Fcontributors
[discord-badge]: https://img.shields.io/discord/1111676875782234175?color=7b8dcd&link=https%3A%2F%2Fblazity.com%2Fdiscord
[made-by-blazity-badge]: https://img.shields.io/badge/made_by-Blazity-blue?color=FF782B&link=https://blazity.com/
[made-with-v0-badge]: https://img.shields.io/badge/designed_with-v0-red?color=black&link=https://blazity.com/
[check-workflow-badge-link]: https://github.com/Blazity/enterprise-commerce/actions/workflows/check.yml
[github-license-badge-link]: https://github.com/Blazity/enterprise-commerce/blob/main/LICENSE
[github-contributors-badge-link]: https://github.com/Blazity/enterprise-commerce/graphs/contributors
[discord-badge-link]: https://blazity.com/discord
[made-by-blazity-badge-link]: https://blazity.com/?utm_source=nextenterprise&utm_medium=github
[made-with-v0-link]: https://v0.dev/
4 changes: 2 additions & 2 deletions starters/shopify-algolia/app/actions/cart.actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import { revalidateTag, unstable_cache } from "next/cache"
import { cookies } from "next/headers"
import { storefrontClient } from "clients/storefrontClient"
import { storefrontClient } from "clients/storefront"
import { COOKIE_CART_ID, TAGS } from "constants/index"
import { isDemoMode } from "utils/demoUtils"
import { isDemoMode } from "utils/demo-utils"

export const getCart = unstable_cache(async (cartId: string) => storefrontClient.getCart(cartId), [TAGS.CART], { revalidate: 60 * 15, tags: [TAGS.CART] })

Expand Down
2 changes: 1 addition & 1 deletion starters/shopify-algolia/app/actions/collection.actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { unstable_cache } from "next/cache"
import { algolia } from "clients/search"
import { getDemoSingleCategory, isDemoMode } from "utils/demoUtils"
import { getDemoSingleCategory, isDemoMode } from "utils/demo-utils"
import type { PlatformCollection } from "lib/shopify/types"
import { env } from "env.mjs"

Expand Down
2 changes: 1 addition & 1 deletion starters/shopify-algolia/app/actions/page.actions.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use server"

import { storefrontClient } from "clients/storefrontClient"
import { storefrontClient } from "clients/storefront"
import { unstable_cache } from "next/cache"

export const getPage = unstable_cache(async (handle: string) => await storefrontClient.getPage(handle), ["page"], { revalidate: 3600 })
Expand Down
2 changes: 1 addition & 1 deletion starters/shopify-algolia/app/actions/product.actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { env } from "env.mjs"
import { algolia } from "clients/search"
import type { Review } from "lib/reviews/types"

import { getDemoProductReviews, getDemoSingleProduct, isDemoMode } from "utils/demoUtils"
import { getDemoProductReviews, getDemoSingleProduct, isDemoMode } from "utils/demo-utils"
import type { CommerceProduct } from "types"
import { notifyOptIn } from "utils/opt-in"

Expand Down
2 changes: 1 addition & 1 deletion starters/shopify-algolia/app/actions/user.actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { PlatformUserCreateInput } from "lib/shopify/types"
import { cookies } from "next/headers"
import { storefrontClient } from "clients/storefrontClient"
import { storefrontClient } from "clients/storefront"
import { COOKIE_ACCESS_TOKEN } from "constants/index"

export async function signupUser({ email, password }: { email: string; password: string }) {
Expand Down
2 changes: 1 addition & 1 deletion starters/shopify-algolia/app/api/feed/sync/route.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { PlatformProduct } from "lib/shopify/types"
import { algolia } from "clients/search"
import { storefrontClient } from "clients/storefrontClient"
import { storefrontClient } from "clients/storefront"
import { env } from "env.mjs"
import { compareHmac } from "utils/compare-hmac"
import { enrichProduct } from "utils/enrich-product"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { env } from "env.mjs"
import { authenticate } from "utils/authenticate-api-route"
import { isOptIn, notifyOptIn } from "utils/opt-in"
import { unstable_noStore } from "next/cache"
import { isDemoMode } from "utils/demoUtils"
import { isDemoMode } from "utils/demo-utils"

const summarySchema = z.object({
products: z.array(
Expand Down
2 changes: 1 addition & 1 deletion starters/shopify-algolia/app/api/reviews/sync/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { authenticate } from "utils/authenticate-api-route"
import { isOptIn, notifyOptIn } from "utils/opt-in"
import type { Review } from "lib/reviews/types"
import type { CommerceProduct } from "types"
import { isDemoMode } from "utils/demoUtils"
import { isDemoMode } from "utils/demo-utils"

export const maxDuration = 60

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Metadata } from "next"
import { CategoryView } from "views/Category/CategoryView"
import { CategoryView } from "views/category/category-view"

export const revalidate = 86400
export const dynamic = "force-static"
Expand Down
4 changes: 2 additions & 2 deletions starters/shopify-algolia/app/category/clp/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { PlatformCollection } from "lib/shopify/types"
import { algolia } from "clients/search"
import { env } from "env.mjs"
import type { Metadata } from "next"
import { isDemoMode } from "utils/demoUtils"
import { CategoryView } from "views/Category/CategoryView"
import { isDemoMode } from "utils/demo-utils"
import { CategoryView } from "views/category/category-view"

export const revalidate = 86400
export const dynamic = "force-static"
Expand Down
2 changes: 1 addition & 1 deletion starters/shopify-algolia/app/category/plp/[slug]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Metadata } from "next"
import { SearchParamsType } from "types"
import { CategoryView } from "views/Category/CategoryView"
import { CategoryView } from "views/category/category-view"

export const runtime = "nodejs"

Expand Down
4 changes: 2 additions & 2 deletions starters/shopify-algolia/app/error.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use client"

import { Button } from "components/Button/Button"
import { isDemoMode } from "utils/demoUtils"
import { Button } from "components/ui/button-old"
import { isDemoMode } from "utils/demo-utils"

export default function Error({ error, reset }: { error: Error & { digest?: string }; reset: () => void }) {
return (
Expand Down
4 changes: 2 additions & 2 deletions starters/shopify-algolia/app/favorites/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { cookies } from "next/headers"
import { Suspense } from "react"
import { getProduct } from "app/actions/product.actions"
import { ProductCard } from "components/ProductCard/ProductCard"
import { Skeleton } from "components/Skeleton/Skeleton"
import { ProductCard } from "components/product-card"
import { Skeleton } from "components/ui/skeleton"
import { COOKIE_FAVORITES } from "constants/index"

export const revalidate = 86400
Expand Down
2 changes: 1 addition & 1 deletion starters/shopify-algolia/app/global-error.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client"

import { Button } from "components/Button/Button"
import { Button } from "components/ui/button-old"

export default function GlobalError({ error, reset }: { error: Error & { digest?: string }; reset: () => void }) {
return (
Expand Down
12 changes: 6 additions & 6 deletions starters/shopify-algolia/app/home/[bucket]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Suspense } from "react"
import { BUCKETS } from "constants/index"
import { BestOffersSection } from "views/Homepage/BestOffersSection"
import { CarouselSectionSkeleton } from "views/Homepage/CarouselSection"
import { CategoriesSection, CategoriesSectionSkeleton } from "views/Homepage/CategoriesSection"
import { EverythingUnderSection } from "views/Homepage/EverythingUnderSection"
import { AnnouncementBar } from "components/AnnouncementBar/AnnouncementBar"
import { HeroSection } from "views/Homepage/HeroSection"
import { BestOffersSection } from "views/homepage/best-offers-skeleton"
import { CarouselSectionSkeleton } from "views/homepage/carousel-section"
import { CategoriesSection, CategoriesSectionSkeleton } from "views/homepage/categories-section"
import { EverythingUnderSection } from "views/homepage/everything-under-section"
import { AnnouncementBar } from "components/announcement-bar"
import { HeroSection } from "views/homepage/hero-section"

export const revalidate = 86400

Expand Down
24 changes: 12 additions & 12 deletions starters/shopify-algolia/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@ import nextDynamic from "next/dynamic"
import Script from "next/script"
import { Suspense } from "react"
import { Toaster } from "sonner"
import { CallToAction } from "components/CallToAction/CallToAction"
import { Footer } from "components/Footer/Footer"
import { Modals } from "components/Modals/Modals"
import { mobileInlineScript } from "components/NavigationBar/mobileInlineScript"
import { NavigationBar } from "components/NavigationBar/NavigationBar"
import { NavItem } from "components/NavigationBar/types"
import { FlagValues } from "views/FlagValues"
import { ThirdParties } from "views/ThirdParties"
import { CallToAction } from "components/call-to-action"
import { Footer } from "components/footer"
import { Modals } from "components/modals/modals"
import { mobileInlineScript } from "components/navigation-bar/mobile-inline-script"
import { NavigationBar } from "components/navigation-bar/navigation-bar"
import type { NavItem } from "components/navigation-bar/types"
import { FlagValues } from "views/flag-values"
import { ThirdParties } from "views/third-parties"
import { env } from "env.mjs"
import { Metadata } from "next"
import { GithubBadge } from "views/GithubBadge"
import { DemoModeAlert } from "views/DemoModeAlert"
import { CartView } from "views/Cart/CartView"
import { GithubBadge } from "views/github-badge"
import { DemoModeAlert } from "views/demo-mode-alert"
import { CartView } from "views/cart/cart-view"

const DraftToolbar = nextDynamic(() => import("views/DraftToolbar"), { ssr: false })
const DraftToolbar = nextDynamic(() => import("views/draft-toolbar"), { ssr: false })

export const revalidate = 86400

Expand Down
24 changes: 12 additions & 12 deletions starters/shopify-algolia/app/product/[slug]/draft/page.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
import { unstable_cache } from "next/cache"
import { draftMode } from "next/headers"
import { notFound } from "next/navigation"
import { storefrontClient } from "clients/storefrontClient"
import { storefrontClient } from "clients/storefront"
import type { CommerceProduct } from "types"

import { Breadcrumbs } from "components/Breadcrumbs/Breadcrumbs"
import { Breadcrumbs } from "components/breadcrumbs"

import type { PlatformProduct } from "lib/shopify/types"
import { getCombination, getOptionsFromUrl, hasValidOption, removeOptionsFromUrl } from "utils/productOptionsUtils"
import { BackButton } from "views/Product/BackButton"
import { VariantsSection } from "views/Product/VariantsSection"
import { ProductTitle } from "views/Product/ProductTitle"
import { CurrencyType, mapCurrencyToSign } from "utils/mapCurrencyToSign"
import { ProductImages } from "views/Product/ProductImages"
import { RightSection } from "views/Product/RightSection"
import { AddToCartButton } from "views/Product/AddToCartButton"
import { FavoriteMarker } from "views/Product/FavoriteMarker"
import { FaqSection } from "views/Product/FaqSection"
import { getCombination, getOptionsFromUrl, hasValidOption, removeOptionsFromUrl } from "utils/product-options-utils"
import { BackButton } from "views/product/back-button"
import { VariantsSection } from "views/product/variants-section"
import { ProductTitle } from "views/product/product-title"
import { CurrencyType, mapCurrencyToSign } from "utils/map-currency-to-sign"
import { ProductImages } from "views/product/product-images"
import { RightSection } from "views/product/right-section"
import { AddToCartButton } from "views/product/add-to-cart-button"
import { FavoriteMarker } from "views/product/favorite-marker"
import { FaqSection } from "views/product/faq-section"

import { slugToName } from "utils/slug-name"

Expand Down
2 changes: 1 addition & 1 deletion starters/shopify-algolia/app/product/[slug]/loading.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PageSkeleton } from "views/Product/PageSkeleton"
import { PageSkeleton } from "views/product/page-skeleton"

export default function Loading() {
return <PageSkeleton />
Expand Down
4 changes: 2 additions & 2 deletions starters/shopify-algolia/app/product/[slug]/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { Metadata } from "next"
import { Product, WithContext } from "schema-dts"
import { getProduct } from "app/actions/product.actions"
import { env } from "env.mjs"
import { makeKeywords } from "utils/makeKeywords"
import { removeOptionsFromUrl } from "utils/productOptionsUtils"
import { makeKeywords } from "utils/make-keywords"
import { removeOptionsFromUrl } from "utils/product-options-utils"
import type { CommerceProduct } from "types"
import { slugToName } from "utils/slug-name"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import { ImageResponse } from "next/og"
import { getProduct } from "app/actions/product.actions"
import { removeOptionsFromUrl } from "utils/productOptionsUtils"
import { removeOptionsFromUrl } from "utils/product-options-utils"
import { env } from "env.mjs"

export const revalidate = 86400
Expand Down
Loading
Loading