327 Commits

Author SHA1 Message Date
Bel Curcio
a17e0f8309 Merge branch 'master' of https://github.com/vercel/commerce into custom-checkout 2021-06-14 17:43:09 -03:00
Tobias Koppers
d2688df15f Merge branch 'local-provider' into custom-checkout 2021-06-14 21:19:18 +02:00
Tobias Koppers
f8fca2dd4d allow requests in getStaticProps to execute in parallel 2021-06-14 20:32:21 +02:00
Tobias Koppers
d23da23dc0 rewrite search rewrites to multiple pages 2021-06-14 20:32:21 +02:00
Bel Curcio
cbcc53e342 default to local if no env available 2021-06-14 15:10:25 -03:00
Bel Curcio
f769a3531b Changes 2021-06-11 14:13:43 -03:00
Bel Curcio
9039a27f99 Progress with LocalProvider 2021-06-10 10:51:42 -03:00
Luis Alvarez
ddd4631ade Exclude prop 2021-06-10 01:52:09 -05:00
Jakub Neander
3b2bf654fe
Updated Saleor Provider (#356)
* Initial work, copied from the Shopify provider

* Added basis setup and type generation for the products queries

* refactor: adjust the types

* task: relax the Node.js constraint

* fix: page/product properties

* disable unknown fields

* mention Saleor in the README

* setup debugging for Next.js

* Check nextjs-commerce bug if no images are added for a product

* fix: client/server pecularities for env visibility

Must prefix with `NEXT_PUBLIC_` so that the API URL is
visible on the client

* re: make search work with Saleor API (WIP)

* task: update deps

* task: move to Webpack 5.x

* saleor: initial cart integration

* update deps

* saleor: shall the cart appear!

* task: remove deprecated packages

* saleor: adding/removing from the cart

* saleor: preliminary signup process

* saleor: fix the prices in the cart

* update deps

* update deps

* Added the options for a variant to the product page

* Mapped options to variants

* Mapped options to variants

* saleor: refine the auth process

* saleor: remove unused code

* saleor: handle customer find via refresh

temporary solution

* saleor: update deps

* saleor: fix the session handling

* saleor: fix the variants

* saleor: simplify the naming for GraphQL statements

* saleor: fix the type for collection

* saleor: arrange the error codes

* saleor: integrate collections

* saleor: fix product sorting

* saleor: set cookie location

* saleor: update the schema

* saleor: attach checkout to customer

* saleor: fix the checkout flow

* saleor: unify GraphQL naming approach

* task: update deps

* Add the env variables for saleor to the template

* task: prettier

* saleor: stub API for build/typescript compilation

thanks @cond0r

* task: temporarily disable for the `build`

* saleor: refactor GraphQL queries

* saleor: adjust the config

* task: update dependencies

* revert: Next.js to `10.0.9`

* saleor: fix the checkout fetch query

* task: update dependencies

* saleor: adapt for displaying featured products

* saleor: update the provider structure

* saleor: make the home page representable

* feature/cart: display the variant name (cond)

Co-authored-by: Patryk Zawadzki <patrys@room-303.com>
Co-authored-by: royderks <10717410+royderks@users.noreply.github.com>
2021-06-10 01:46:28 -05:00
Bel Curcio
7a9ed2ad91 Adding 404 with Layout 2021-06-09 12:22:03 -03:00
Bel Curcio
685fb932db Adding revalidate to search - categories change too 2021-06-09 09:39:32 -03:00
Bel Curcio
5b2155a556 Changing 2021-06-09 09:34:32 -03:00
Bel Curcio
600248f671 Index revalidate 2021-06-08 14:29:44 -03:00
Bel Curcio
6656fe4878 Search issue ui 2021-06-08 13:06:23 -03:00
Bel Curcio
e46036a3e6 Search issue ui 2021-06-08 12:58:13 -03:00
Bel Curcio
f2c4ff32b5 changes 2021-06-08 12:30:22 -03:00
Bel Curcio
7ef0e2273e Perf changes 2021-06-08 11:31:48 -03:00
Bel Curcio
5c79f7a8fd Changes 2021-06-07 18:18:43 -03:00
cond0r
2d0c6e0c8a
Add blocking fallback to pages (#357)
* Update [...pages].tsx

* Fix provider config overwrite

* Shopify changes
2021-06-07 17:12:20 -03:00
Bel Curcio
677bba308d Search now with Geist Colors 2021-06-07 00:59:52 -03:00
Bel Curcio
191a401ea6 Latest Updates 2021-06-05 16:20:02 -03:00
Bel Curcio
97984c3691 Styling updates 2021-06-05 13:57:51 -03:00
Bel Curcio
f557274f62 More updates 2021-06-04 17:43:27 -03:00
Bel Curcio
0c960884dc Merge branch 'master' of https://github.com/vercel/commerce into custom-checkout 2021-06-03 12:37:47 -03:00
Bel Curcio
627237ec06 Changes 2021-06-01 15:25:23 -03:00
Luis Alvarez D
a98c95d447
[WIP] Node.js provider for the API (#252)
* Adding multiple initial files

* Updated the default cart endpoint

* Fixes

* Updated CommerceAPI class for better usage

* Adding more migration changes

* Taking multiple steps into better API types

* Adding more experimental types

* Removed many testing types

* Adding types, fixes and other updates

* Updated commerce types

* Updated types for hooks now using the API

* Updated mutation types

* Simplified cart types for the provider

* Updated cart hooks

* Remove normalizers from the hooks

* Updated cart endpoint

* Removed cart handlers

* bug fixes

* Improve quantity input behavior in cart item

* Removed endpoints folder

* Making progress on api operations

* Moved method

* Moved types

* Changed the way ops are created

* Added customer endpoint

* Login endpoint

* Added logout endpoint

* Add missing logout files

* Added signup endpoint

* Removed customers old endpoints

* Moved endpoints to nested folder

* Removed old customer endpoint builders

* Updated login operation

* Updated login operation

* Added getAllPages operation

* Renamed endpoint operations to handlers

* Changed import

* Renamed operations to handlers in usage

* Moved getAllPages everywhere

* Moved getPage

* Updated getPage usage

* Moved getSiteInfo

* Added def types for product

* Updated type

* moved products catalog endpoint

* removed old catalog endpoint

* Moved wishlist

* Removed commerce.endpoint

* Replaced references to commerce.endpoint

* Updated catalog products

* Moved checkout api

* Added the get customer wishlist operation

* Removed old wishlist stuff

* Added getAllProductPaths operation

* updated reference to operation

* Moved getAllProducts

* Updated getProduct operation

* Removed old getConfig and references

* Removed is-allowed-method from BC

* Updated types for auth hooks

* Updated useCustomer and core types

* Updated useData and util hooks

* Updated useSearch hook

* Updated types for useWishlist

* Added index for types

* Fixes

* Updated urls to the API

* Renamed fetchInput to fetcherInput

* Updated fetch type

* Fixes in search hook

* Updated Shopify Provider Structure (#340)

* Add codegen, update fragments & schemas

* Update checkout-create.ts

* Update checkout-create.ts

* Update README.md

* Update product mutations & queries

* Uptate customer fetch types

* Update schemas

* Start updates

* Moved Page, AllPages & Site Info

* Moved product, all products (paths)

* Add translations, update operations & fixes

* Update api endpoints, types & fixes

* Add api checkout endpoint

* Updates

* Fixes

* Update commerce.config.json

Co-authored-by: B <curciobelen@gmail.com>

* Added category type and normalizer

* updated init script to exclude other providers

* Excluded swell and venture temporarily

* Fix category & color normalization

* Fixed category normalizer in shopify

* Don't use getSlug for category on /search

* Update colors.ts

Co-authored-by: cond0r <pinte_catalin@yahoo.com>
Co-authored-by: B <curciobelen@gmail.com>
2021-06-01 03:18:10 -05:00
John Vandivier
d71646a60d
feat: concise card code (#348) 2021-05-31 21:31:16 -05:00
B
1bc721de83
Improved Categories (#339)
* Improved Categories

* Improved Categories

* Improved Categories

* Improved Categories

* Improved Categories

* Improved Categories
2021-05-31 17:44:08 -05:00
Bel Curcio
025a89bc73 Changes 2021-05-31 18:00:55 -03:00
Bel Curcio
0ab429ed37 Changes 2021-05-28 12:38:41 -03:00
Michael Bromley
da4371090d
Vendure provider (#223)
* Minimal list/detail views working with Vendure

* Implement useCart/useAddItem

* Implement useUpdateItem & useRemoveItem

* Implement useSearch

* Add operations codegen, tidy up

* Dummy checkout page

* Implement auth/customer hooks

* Use env var for Shop API url

* Add some documentation

* Improve error handling

* Optimize preview image size

* Fix accidental change

* Update Vendure provider to latest changes

* Vendure provider: split out gql operations, remove unused files

* Update Vendure provider readme

* Add local next.config to Vendure provider, update docs

* Update to use demo server

* Fix build errors

* Use proxy for vendure api

* Simplify instructions in Vendure readme

* Refactor Vendure checkout api handler

* Improve image quality
2021-05-27 18:06:56 -03:00
Bel Curcio
7c1344a19e Custom Checkout Progress 2021-05-27 14:23:55 -03:00
B
50be2a7e6e
Removing Blog and changes in Footer (#328) 2021-05-26 18:57:03 -03:00
cond0r
d981475818 Default to Bigcommerce 2021-05-13 17:00:10 +03:00
cond0r
bff94e73ae Fix build errors 2021-05-13 16:10:09 +03:00
Luis Alvarez
751011767a multiple changes to fix the wishlist 2021-02-26 21:35:09 -05:00
okbel
3acca7cc17 Adding customCheckout 2021-02-26 15:52:09 -03:00
Luis Alvarez
fc023de844 Ignore some types 2021-02-25 18:10:59 -05:00
okbel
bcd1d46e30 updates 2021-02-24 14:37:25 -03:00
Luis Alvarez
67d05ea165 Moved the features to be environment variable only 2021-02-23 11:32:54 -05:00
Luis Alvarez
a8607f24cd Updates to wishlist feature 2021-02-22 19:06:03 -05:00
okbel
4cfa0418dd Adding wishlist api 2021-02-18 13:11:57 -03:00
okbel
c620355448 Adding Features APO 2021-02-18 12:59:18 -03:00
okbel
c8536ff720 Merge branch 'agnostic' of github.com:vercel/commerce into agnostic 2021-02-18 11:45:57 -03:00
Luis Alvarez
bb0b8d2771 Fixed remaining issues with types 2021-02-15 12:02:24 -05:00
okbel
de64b6d991 New changes and initial Features API 2021-02-12 17:10:17 -03:00
Luis Alvarez
2f903cc66c Merge branch 'master' of https://github.com/vercel/commerce into agnostic 2021-02-12 14:56:03 -05:00
okbel
4dd2c3fde0 Wishlist 2021-02-12 16:49:32 -03:00
B
b121078151
Updates (#192)
* userAvatar

* Avatar background

* Changes

* Removing unused dependencies

* Count Bag small and for bigger numbers

* decresed bundle size
2021-02-04 15:03:44 -05:00
Luis Alvarez
c06d9dae3a Merge branch 'master' of https://github.com/vercel/commerce into agnostic 2021-02-03 17:13:59 -05:00