1
0
mirror of https://github.com/vercel/commerce.git synced 2025-09-09 09:20:16 +00:00
Commit Graph

571 Commits

Author SHA1 Message Date
StephDietz
5e2035d70c Merge branch 'design-refresh' into DX-1744 2023-07-12 18:54:36 -05:00
Stephanie Dietz
3dd7f11bf0 Product page UI refresh () 2023-07-12 16:40:58 -05:00
StephDietz
46fb942cfa side nav design updates 2023-07-12 14:25:08 -05:00
Stephanie Dietz
65bd26b090 Update home page UI ()
* home page updated UI design

* prettier

* remove unused bg color prop

* change label margin on carousol labels

* move label ui into own component

* change space-x from 6 to 4 in carousel

---------

Co-authored-by: Michael Novotny <manovotny@gmail.com>
2023-07-11 15:36:46 -05:00
Stephanie Dietz
7bad98965a New header UI () 2023-07-11 14:04:41 -05:00
Stephanie Dietz
25c91dc590 Replace Icons with heroicons ()
* replace icons with heroicons

* prettier

* update chevron direction
2023-07-10 15:26:42 -05:00
Stephanie Dietz
85c2ebdbc0 Update cart UI () 2023-07-10 14:38:10 -05:00
Michael Novotny
87bb37efa6 Redesigns footer () 2023-07-10 12:57:10 -05:00
Michael Novotny
1918c25f4a Fixes bundle size for Hobby plan users () 2023-07-05 07:26:30 -07:00
Michael Novotny
8c8240956a Removes Framer Motion () 2023-06-21 15:13:58 -07:00
Michael Novotny
9678306b23 Fixes cart closing and reopening with first interaction ()
* Works

* Adds animation back
2023-06-21 13:13:10 -07:00
Michael Novotny
585b3bbff8 Replaces Route Handlers with Server Actions () 2023-06-17 11:18:00 -07:00
Logan
7eb8816854 Fixed misaligned navbar links () 2023-06-16 13:50:10 -05:00
Michael Novotny
87c385fcd6 Converts to Opengraph Image file convention. () 2023-06-07 20:57:31 -05:00
Lee Robinson
fecc60eb36 Update dependencies and fix TS errors. () 2023-06-06 20:36:44 -05:00
Michael Novotny
f5dade74fb Fixes search page bugs. () 2023-05-12 16:02:51 -07:00
Michael Novotny
a0c0d10fae Changes mobile menu animation to be consistent with cart animation. () 2023-05-11 12:53:04 -07:00
Tobias Lins
9ea5671579 Don't fail when collections are not found ()
* Don't fail when collections are not found

* fix another error
2023-04-26 09:26:52 -05:00
Michael Novotny
af21b29b73 Disables Add to Cart while mutating () 2023-04-25 09:38:47 -05:00
Michael Novotny
8ff670d7d6 Fixes quirks with featured and related products. () 2023-04-21 12:19:08 -04:00
Michael Novotny
7de3ae5583 Removes unnecessary async on ProductGridItems () 2023-04-20 13:54:04 -05:00
Stephanie Dietz
acb4ff400b Updates recommended products to use ProductGridItems component () 2023-04-20 11:27:18 -05:00
Stephanie Dietz
a677c17f78 Update canary version to fix scroll to top. () 2023-04-20 10:40:29 -05:00
Michael Novotny
67a192eba8 Adds documentation on how to configure Next.js Commerce and Shopify () 2023-04-20 06:46:35 -04:00
Michael Novotny
e9a26c2935 Fixes cart item button layout shift () 2023-04-18 12:08:18 -05:00
Lee Robinson
fd9450aecb Next.js Commerce refresh. ()
We're making some updates to Next.js Commerce. Everything prior to this commit marks what we're calling [`v1`](https://github.com/vercel/commerce/releases/tag/v1) as a point in time to be able to reference and still use going into the future. The current architecture of Commerce is a multi-vendor, interoperable solution, including:

- [Shopify](https://shopify.vercel.store/)
- [Swell](https://swell.vercel.store/)
- [BigCommerce](https://bigcommerce.vercel.store/)
- [Vendure](https://vendure.vercel.store/)
- [Saleor](https://saleor.vercel.store/)
- [Ordercloud](https://ordercloud.vercel.store/)
- [Spree](https://spree.vercel.store/)
- [Kibo Commerce](https://kibocommerce.vercel.store/)
- [Commerce.js](https://commercejs.vercel.store/)
- [SalesForce Cloud Commerce](https://salesforce-cloud-commerce.vercel.store/)

All features can be toggled on or off, and it's easy to change between commerce providers. To support this, we needed to create a ["commerce metaframework"](d1d9e8c434/packages/commerce/new-provider.md) where providers could confirm to an API spec to add support for Next.js Commerce. While this worked and was successful for `v1`, we have different design goals and ambitions for `v2`.

**What You Need To Know**

- `v1` will not be updated moving forward. If you need to reference `v1`, you will still be able to clone and deploy the version tagged at this release.
- `v2` will be shifting to be a single provider vs. provider agnostic. Other providers are welcome to fork this repository and swap out the underlying `lib/` implementation that connects to the selected commerce provider (Shopify). This architecture was chosen to reduce the surface area of the codebase, remove the intermediate metaframework layer for provider-interoperability, and enable usage with the latest Next.js and React features.
- We will be sharing more about `v2` in the future as we continue to iterate before the marked release.
2023-04-17 22:00:47 -05:00
Luis Alvarez D
0afe686fe9 Monorepo with Turborepo ()
* Moved everything

* Figuring out how to make imports work

* Updated exports

* Added missing exports

* Added @vercel/commerce-local to `site`

* Updated commerce config

* Updated exports and commerce config

* Updated commerce hoc

* Fixed exports in local

* Added publish config

* Updated imports in site

* It's actually working

* Don't use debugger in dev for better speeds

* Improved DX when editing packages

* Set up eslint with husky

* Updated prettier config

* Added prettier setup to every package

* Moved bigcommerce

* Moved Bigcommerce to src and package updates

* Updated setup of bigcommerce

* Moved definitions script

* Moved commercejs

* Move to src

* Fixed types in commercejs

* Moved kibocommerce

* Moved kibocommerce to src

* Added package/tsconfig to kibocommerce

* Fixed imports and other things

* Moved ordercloud

* Moved ordercloud to src

* Fixed imports

* Added missing prettier files

* Moved Saleor

* Moved Saleor to src

* Fixed imports

* Replaced all imports to @commerce

* Added prettierignore/rc to all providers

* Moved shopify to src

* Build shopify in packages

* Moved Spree

* Moved spree to src

* Updated spree

* Moved swell

* Moved swell to src

* Fixed type imports in swell

* Moved Vendure to packages

* Moved vendure to src

* Fixed imports in vendure

* Added codegen to saleor

* Updated codegen setup for shopify

* Added codegen to vendure

* Added codegen to kibocommerce

* Added all packages to site's deps

* Updated codegen setup in bigcommerce

* Minor fixes

* Updated providers' names in site

* Updated packages based on Bel's changes

* Updated turbo to latest

* Fixed ts complains

* Set npm engine in root

* New lockfile install

* remove engines

* Regen lockfile

* Switched from npm to yarn

* Updated typesVersions in all packages

* Moved dep

* Updated SWR to the just released 1.2.0

* Removed "isolatedModules" from packages

* Updated list of providers and default

* Updated swell declaration

* Removed next import from kibocommerce

* Added COMMERCE_PROVIDER log

* Added another log

* Updated turbo config

* Updated docs

* Removed test logs

Co-authored-by: Jared Palmer <jared@jaredpalmer.com>
2022-02-01 14:14:05 -05:00
Alessandro Casazza
de24bd041c fix: Render item in wishlist properly if ID is a string () 2022-01-16 10:58:26 -03:00
B
f3cdbe682b Bump ()
* Packages Bump

* Code Updated

* More API Changes

* Working updates

* Updated Tailwind Config

* SWR API updates

* More changes

* Commercejs Types

* Commercejs Types

* Commercejs Types
2022-01-13 15:30:14 +01:00
Michael
4b2df2242c Fixes issue with next/dynamic when running next version > 12.0.3 ()
Co-authored-by: mdupree <mdupree@acromedia.com>
2021-12-22 13:19:27 -03:00
Lars Salling
98af5f4615 Remove unnecessary check in the Sidebar component ()
* refactor: remove unneccessary code

* refactor: remove excessive function call in modal

Co-authored-by: Gonzalo Pozzo <gonzalo.pozzo4@gmail.com>
2021-12-17 11:55:04 -03:00
Chris Vibert
d8b42acfa2 Commerce.js Provider ()
* commercejs: Initial commit with basic product list

* ui: Handle no variants on product

* commercejs: Support individual product pages

* commercejs: Use separate sdkFetch function

* commercejs: Show option hex colors based on option name

* commercejs: Support product search and filter

* commercejs: Enable carts feature

* commercejs: Remove unused API endpoints

* commercejs: Fix adding variants to cart

* commercejs: Fix types for update cart hook

* commercejs: Update README

* commercejs: Add sorting to product search

* commercejs: Add generic types to cart actions

* commercejs: Better cart normalization

* commercejs: Provide typing for sdkFetch function

* commercejs: Refactor product search logic

* commercejs: Update commercejs types package and export types from local directory

* commercejs: Remove unused checkout hooks

* commercejs: Enhance fetcher to allow custom API routes

* commercejs: Fix product types

* commercejs: Add checkout functionality

* commercejs: Add commercejs to README list of providers

* commercejs: Add login/logout auth hooks

* commercejs: Adds comment to sdkFetch function

* commercejs: Bring back empty useSignup hook to fix build

* commercejs: Refactor useCheckout hook logic

* commercejs: Add errors to fetcher function if using invalid resource/method

* commercejs: Remove use of hex colors for color variants

* ui: Fix undefined error when no variants

* commercejs: Handle add to cart when no variants

* commercejs: Enable customer auth feature

* commercejs: Rename public key env variable as commercejs

* commercejs: Remove duplicate customer fields

* commercejs: Use variants API to generate product variants

* commercejs: Fetch all products using sort order

* commercejs: Fix use of normalizeProduct function

* commercejs: Disable customer auth

* commercejs: Show selected variant details in cart view

* commercejs: Update to latest commercejs types

* commercejs: Fix login email

* commercejs: Remove unnecessary ts-ignore

* api: Allow parameter to be passed to login API

* api: Allow login handler to accept GET requests

* commercejs: Add login API for login callback email link

* commercejs: Remove unused argument to API

* commercejs: Add hook to fetch logged in customer

* commercejs: Rename token to match SDK name

* commercejs: Enable logout

* commercejs: Fix VERCEL_URL env variable

* commercejs: Fix using vercel deployment url

* commercejs: Add deployment url env vars to templates

* Replace yarn with npm

* commercejs: Allow checkout submit even without card/address details

* ui: Add loading and cart refresh to checkout

* commercejs: Leave link to issue on TODO comment

* Update docs/README/env.template for commercejs provider

* ui: Prevent toggle loading after component unmount

* commercejs: Handle product without images

* ui: Explicity set loading to false after checkout

* Revert "api: Allow parameter to be passed to login API"

This reverts commit c3713ec6e23f1b423a071a31221069995d419486.

* commercejs: Handle login using API redirect

* commercejs: Adds shipping and billing details to checkout data

* commercejs: Fix types for fetcher and submit checkout

* commercejs: Update README with demo url

* commercejs: Update checkout hooks to use checkout context

* commercejs: Update checkout logic to use customer fields

* ui: Clear checkout fields context after checkout

* commercejs: Remove unused clear checkout function

* commercejs: Import constants directly
2021-12-16 16:06:52 -03:00
Maaz
2271864057 Update keen-slider ()
Co-authored-by: Gonzalo Pozzo <gonzalo.pozzo4@gmail.com>
2021-12-15 14:24:06 -03:00
Gonzalo Pozzo
ea1bbcf1bb Fix cart item image error () 2021-12-09 16:41:29 +01:00
Gonzalo Pozzo
d65b2efe9a Custom checkout improvements ()
* Add context for storing checkout information

* Remove unused useState
2021-12-06 18:45:54 -03:00
Chris Vibert
950a7637a5 Fix typo and add missing feature to local config ()
* Add customCheckout feature flag to local config

* Fix typo
2021-11-29 10:52:43 -03:00
Nine
82cb719ad6 Feature/hamburger menu ()
* Setup Mobile Menu Sidebar

* Setup Basic Mobile Menu Items Styling

* Implement full width styling for mobile devices

* Cleanup

Co-authored-by: Nine <at059214@Abdurahmans-MacBook-Pro.local>
2021-11-25 15:09:21 -03:00
Gonzalo Pozzo
73470c9232 Run prettier fix on all files () 2021-11-25 09:17:13 -03:00
Gonzalo Pozzo
96e990268d Add aria attributes () 2021-11-24 14:29:55 -03:00
Luis Orbaiceta
c8787865b3 Fix dynamically import Modal component ()
* fix: dynamically import Modal component

fixes error "document is not defined" if the user decides to display a modal at the beginning (for ads, promotions, etc...)

* fix: remove spread operator

* remove top level modal import

* fix import path for Modal

Co-authored-by: Gonzalo Pozzo <gonzalo.pozzo4@gmail.com>
2021-11-24 11:00:33 -03:00
Tomek Niezgoda
e7fc93f9c7 Make wishlist's useRemoveItem call in WishlistCard consistent with WishlistButton () 2021-11-24 09:15:22 -03:00
Shaokun-X
179c10a53f Wrap mobile search bar in env condition ()
Co-authored-by: Gonzalo Pozzo <gonzalo.pozzo4@gmail.com>
2021-11-23 16:05:41 -03:00
Grey
0cfbe42d86 Fix variable name ()
Variable name should be `ChevronRight`
2021-11-18 11:58:30 -03:00
Luis Alvarez D
582e9257d9 Update Next.js to 12 and switch to npm ()
* Update Commerce to Next.js 12

* Switch to npm

* Removed yarn

* Updated fetch type

* Fixed issue with BC deployment
2021-11-09 10:12:00 -06:00
Vinicius Zucatti
c440ff06d4 Fix next/link should be used with anchor as children () 2021-09-23 17:32:17 -05:00
Pedro Vinícius
4b58f6365a Update ProductView.tsx ()
When you navigate to other product page, the options selected by default don't change and the options from the last product navigated are used. Adding a key to "ProductSideBar" component, makes it refresh default options and refresh actual product selected options when i navigate for many products.
2021-09-23 14:44:32 -03:00
Leah Wagner
fd10eba10d Add title to page and add styling for base typography elements for Text component ()
* Add title to page and add styling for base typography elements for Text component

* Remove additional title

Co-authored-by: B <curciobelen@gmail.com>
Co-authored-by: Luis Alvarez D <luis@vercel.com>
2021-09-22 20:40:20 -05:00
Gonzalo Pozzo
1720bd698c Implement custom checkout ()
* Implement custom checkout core

* Fix elements on core

* Add files to providers

* Adapt providers

* Update types

* Update shopify file

* Format files
2021-09-22 19:20:58 -05:00
Federico Joel Orlandau
61d075daf1 Improve a11y on the cart and sidebar ()
* Improve a11y on the cart

* Fix button style

* Remove extra space

* Move cart item count to the right position

Co-authored-by: Luis Alvarez D <luis@vercel.com>
2021-09-07 14:14:28 -05:00
Luis Alvarez D
0e7e7b7d5f Add Next.js ESLint ()
* Added Next.js eslint

* added eslint to lint-staged

* Added eslint config for prettier

* Fixed eslint issues in multiple files

* Fixed error in linter
2021-08-02 21:54:58 -05:00