4
0
forked from crowetic/commerce

1321 Commits

Author SHA1 Message Date
Michael Novotny
67a192eba8
Adds documentation on how to configure Next.js Commerce and Shopify (#974) 2023-04-20 06:46:35 -04:00
Michael Novotny
e9a26c2935
Fixes cart item button layout shift (#971) 2023-04-18 12:08:18 -05:00
Lee Robinson
fd9450aecb
Next.js Commerce refresh. (#966)
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
Catalin Pinte
d1d9e8c434
Fix auth & wishlist (#918)
* Fix auth & wishlist

* Revert files

* Update signup.ts

* Update signup.ts

* Requested changes

* Revert fetch options
v1
2023-01-30 10:50:25 -05:00
Catalin Pinte
252355717d
Fix image sizes & category filters (#939)
* Fix image height & missing query string

* Update ProductView.tsx

* Update ProductView.tsx

* Update index.tsx

* Remove unused path
2023-01-26 09:19:19 -05:00
Rohit Mistry
e66cd12f4c
Fix turbo issues: (#912)
> Declaring an environment variable in "dependsOn" is deprecated, found $COMMERCE_PROVIDER. Use the "env" key or use `npx @turbo/codemod migrate-env-var-dependencies`.
 main
2023-01-02 13:29:52 -03:00
Catalin Pinte
4efa502666
Update to Next.js 13 (#870) 2022-12-21 09:51:55 -06:00
Catalin Pinte
6d783eae35
Footer theme switcher (#894)
* Footer theme switcher

* Remove lazy loading & change rotation animation

* Changes

* Update ThemeSwitcher.tsx

* Requested style changes

* Update ThemeSwitcher.tsx

* Fix alignment

* Update ThemeSwitcher.tsx
2022-11-30 10:07:44 -05:00
Catalin Pinte
6bc223adb3
Improve error handling (#886)
* Improve error handling

* Update fetch-graphql-api.ts
2022-11-28 08:17:43 +02:00
Lorenzo Stramaccia
d09aff1745
Fix 500 when a product is not found (#880) 2022-11-28 08:15:22 +02:00
Catalin Pinte
90aa798891
Fix Commerce.js product normalizer (#877)
* Fix normalizer, since assets is optional now.

* Fix missing categories & options

* Update cart normalizer
2022-11-16 08:36:16 +02:00
skinheadz
190420a1fb
Fix typos (#868) 2022-11-15 11:34:17 -05:00
Catalin Pinte
c75b0fc001
Dynamic API routes (#836)
* Add dynamic API endpoints

* Add missing dependency

* Update api handlers

* Updates

* Fix build errors

* Update package.json

* Add checkout endpoint parser & update errors

* Update tsconfig.json

* Update cart.ts

* Update parser

* Update errors.ts

* Update errors.ts

* Move to Edge runtime

* Revert to local

* Fix switchable runtimes

* Make nodejs default runtime

* Update pnpm-lock.yaml

* Update handlers

* Fix build errors

* Change headers
2022-10-30 13:41:21 -05:00
Catalin Pinte
a5b367a747
Update get-search-variables.ts (#846) 2022-10-13 08:03:58 -05:00
Catalin Pinte
990bdf1e6a
Fix bigcommerce brands (#837) 2022-10-06 17:08:58 +03:00
Catalin Pinte
6c2610584d
Update types (#831)
* Update product types

* Cart types progress, add zod & initial schema validator

* Update normalize.ts

* Update with-schema-parser.ts

* Updated types, schemas & providers

* Fix providers after schema parse errors

* Fix paths

* More provider fixes

* Fix kibocommerce & commercejs

* Add customer updated types & fixes

* Add checkout & customer types

* Import core types only from commerce

* Update tsconfig.json

* Convert hooks interfaces to types

* Requested changes

* Change to relative paths

* Move Zod dependency
2022-10-05 09:02:29 +03:00
Catalin Pinte
8398a96215
Update Shopify API version (#833) 2022-09-28 18:06:31 +03:00
Catalin Pinte
11609a9e71
Upgrade dependencies & pnpm (#785)
* Updated log

* Updates to root

* Updates to pnpm

* successfully moved to pnpm

* type issue

* Local as the default provider

* Upgrade dependencies

* Revert to local

* Upgrade React

* Update node-fetch deps

* Fix types

* Ignore warnings

* Fix missing dependency

* Update pnpm-lock.yaml

* Add missing @types/cookie

* Upgrade dependencies

* Fix missing dependencies

* Update README.md

Co-authored-by: Bel Curcio <curciobel@gmail.com>
2022-09-19 08:14:49 +03:00
Catalin Pinte
87134e2990
Fix mobile side menu (#783)
Co-authored-by: cond0r <1243434+cond0r@users.noreply.github.com>
2022-07-12 19:13:19 +03:00
Lukas Schüth
2c8d46ce90
Fix navigation between cart and menu on mobile (#709)
* Fix navigation between cart and menu on mobile

On mobile when the Sidebar menu is open and you want to switch to cart, it would toggle the sidebar and close it instead of switching view.

* Adds missing openSidebar to useUI hook

* Sets correct Sidebar view when adding a product

If the last selected view on mobile was the menu, it was shown instead of the cart when adding a product.

Co-authored-by: Bel <curciobelen@gmail.com>
2022-06-13 15:11:01 -04:00
Marin Heđeš
0c5597fb93
fix: put issue templates inside .github folder (#761) 2022-06-13 14:59:00 -04:00
Gaspar Garcia Jr
9f88a14c96
Update turbo version (#764) 2022-06-02 17:43:20 -05:00
Eduardo Fortuna
f059d4e6c4
Update Shopify Storefront API Version (#736) 2022-05-16 16:02:19 +02:00
pfcodes
cf8ff6ccf2
docs: README.md spelling fix (#747) 2022-05-04 16:29:27 +01:00
Dom Sip
4bb8fcb06d
docs(sfcc): demo link (#744) 2022-04-28 12:54:14 -05:00
Dom Sip
a40cefc528
issue templates (#733) 2022-04-20 12:40:39 -05:00
Dom Sip
66e3269b0e
SFCC provider (#727)
* new SFCC provider

* add search

* normalization + search

* categories as search results

* adress PR feedback

* Update README.md

* get all paths for SSG

* product variants and options

* Apply suggestions from code review

Co-authored-by: Luis Alvarez D. <luis@vercel.com>

* remove console log

* prettier

* clean console log

* ran prettier

* Updated readme

* remove static data and revert config changes

* set default site

Co-authored-by: Luis Alvarez D. <luis@vercel.com>
2022-04-20 12:08:26 -05:00
Dom Sip
a46057c5ef
docs(core): how to run locally (#716) 2022-04-19 15:19:41 -03:00
Dom Sip
95d09f7ef3
chore: add prettier vscode settings (#735)
* chore: add prettier vscode settings

* simplify
2022-04-19 12:49:30 -05:00
Stefan Horne
dd726aabb5
chore(docs): update .env.template provider names (#721)
Co-authored-by: Stefan Horne <stefanhorne@gmail.com>
2022-04-13 16:45:31 +01:00
markus
acf14b8889
Import config with POSIX path (#728) 2022-04-13 16:19:33 +01:00
Bel
52b25b85d6
Bug Fix Round and Updates (#719)
* Kibo missing dependency
* return 404 for invalid page
* fix and simplify types for pages

Co-authored-by: Dominik Sipowicz <dom@vercel.com>
2022-03-24 11:42:33 +00:00
Stefan Horne
fee16e795c
feat(core): add GBP currency code to product price type (#717)
Co-authored-by: Stefan Horne <stefanhorne@gmail.com>
2022-03-23 15:29:13 +00:00
Lukasz Ostrowski
ee62ea659a
Add lodash.debounce to Shopify provider package.json dependencies (#691)
* Add lodash.debounce to package.json dependencies

Shopify provider requires `lodash.debounce` package. This package is installed in BigCommerce provider, but not in Shopify provider. After BigCommerce is removed, Shopfify provider can't be installed.

This PR fixes this error

* Install lodash debounce and its @types to providers that use this package
2022-03-16 15:27:13 +01:00
Luis Orbaiceta
38df404ab5
Prevent click-outside from losing children refs (#626)
fix(site): prevent click-outside to close children ref
* feat: Add forwardRef for compatibility
* fix(site): remove asChild for dropdown Fragment

Co-authored-by: Dom Sip <dom@vercel.com>
2022-03-16 13:55:41 +00:00
Tommy Sørensen
ac8d4bf63d
Update product.ts (#708) 2022-03-16 12:11:04 +01:00
Bel
172deeee86
Fixes & Updates (#704)
* Adding Dropdown Component

* Styling Issues

* Wishlist Fix

* Fixes for Wishlist View

* Hearts now work again

* Rollback ts

* Removing extra config to disable BigCommerce

* Fixes for Wishlist View

* Remove transition/animation for mobile

* New Updates.

* New Updates.

* Dropdown fix

* Polish

* export

* export

* revert tsconfig

Co-authored-by: Luis Alvarez D. <luis@vercel.com>

Co-authored-by: Dom Sip <dom@vercel.com>
Co-authored-by: Luis Alvarez D. <luis@vercel.com>
2022-03-16 12:05:58 +01:00
Luis Alvarez D
6e6db0773b
Updated deploy button (#705) 2022-03-08 23:24:23 -05:00
Luis Alvarez D
9a45329ad2
Disabled wishlist and user login in bigcommerce (#703) 2022-03-08 00:34:59 +00:00
B
5af4004b57
Bug: Visual Regressions (#699)
* ProductTag offset

* ProductTag offset
2022-03-02 13:59:13 +01:00
Dom Sip
0ae927fbcf
fix(vendure): add new image domain (#698) 2022-03-02 12:49:12 +01:00
B
bbe97ab0cb
Update README.md with correct Shopify provider variable value (#697) 2022-03-02 09:51:31 +00:00
Dom Sip
ddc6f83c2e
add FAQ for cannot find module error (#695) 2022-03-01 18:50:32 -05:00
Andrea Barani
9387178538
fix(bigcommerce): add limit on product variants (#655)
add explicit limit on product variants field to load more than default
2022-02-18 04:40:59 -05:00
Dom Sip
db170558d5
feat: replace next-seo with custom solution (#660)
* replace next-seo with custom solution

* Updated check

Co-authored-by: LFades <luis@vercel.com>
2022-02-18 04:26:31 -05:00
Luis Alvarez D
65c9d39ae6
Add env vars used for provider detection as keys (#679) 2022-02-11 11:42:25 -05:00
Luis Alvarez D
541491f169
Replace tsc with SWC for package compilation and file watching (#675)
* Updated turbo version

* Added taskr to packages/local

* Move json files

* Include missing extension

* Fixed prettierignore

* Updated swc plugin

* Moved swc plugin to its own package

* Added note

* Removed unused package

* Added watch for file changes

* Added taskr deps to every package

* Added taskfile to every package

* Updated scripts in every package

* Added 2 utiity scripts

* Fix turbo dev script

* Update swc plugin to include jsx import

* Updated build script in main package.json
2022-02-09 10:30:59 -05:00
Dom Sip
c11b1ca868
refactor: SOL-122: replace classnames with clsx (#656)
refactor: SOL-122: replace classnames with clsx
2022-02-08 11:53:32 -05:00
Dom Sip
4508b13a3c
update run and build docs (#667) 2022-02-04 10:51:30 -05:00
Luis Alvarez D
0afe686fe9
Monorepo with Turborepo (#651)
* 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