254 Commits

Author SHA1 Message Date
cond0r
a2c963f73b Fix missing images 2021-04-08 14:10:17 +03:00
cond0r
f20771a2c3 Add product descriptionHtml 2021-04-05 18:31:20 +03:00
cond0r
c2e5eb8501 Sell only available products / fix out of stock 2021-03-27 19:09:00 +02:00
cond0r
0c2c7343c3 Fixed types 2021-03-11 08:56:24 +02:00
cond0r
bb14651785 Merge branch 'shopify' of https://github.com/vercel/commerce into shopify 2021-03-11 07:21:37 +02:00
okbel
d9d3fb3578 Merge branch 'master' of github.com:vercel/commerce into shopify 2021-03-10 16:52:25 -03:00
okbel
a6cbd3d581 Adding support for default options and removing the one that we do not need 2021-03-10 16:39:08 -03:00
okbel
9669c426e0 Adding support for default option 2021-03-10 16:17:47 -03:00
B
9b71bd77fc
Agnostic UI (#199)
* changes

* Progress

* Normalized Products output

* Progress

* Restored Index Agnostic

* Progress

* Reordering

* Moved normalizer to BC function

* Removed Futures

* More Types

* More Types

* More Types

* Fix useCallback

* Progress, Changes types, readme and restoring functionality

* Changes

* TS Issues

* Changes

* Normalizer

* Normalizing more operations

* Normalizing more operations

* changes

* Merge Issues

* Cleanup

* change

* changes

* index.ts broke my tree shaking

* slug

* Normalized Options and Swatches

* Restored Add to cart

* Correct Variant Added to Cart

* Normalizing Cart Responses

* Changes

* changes breaking

* Adding immutable normalizer for Product

* Cart Normalized

* changes

* Progress

* More updates

* Removed some comments

* Add loading state for data hooks

* Bug fix

* Changed the way isEmpty works

* Improve navbar performance

* Added useResponse hook

* added useResponse to useWhishlist

* Added husky and lint-staged

* Ran prettier fix

* Added more cart types

* Moved types.d.ts to the commerce folder

* Minor changes

* Moved normalizer to happen after fetch

* updated useCart types

* Updated normalizer for useData

* Added new normalizer for the cart to the UI

* More corrections for useCart

* Updated cart update hooks

* Removed import

* Progress

* Switch away from global types

* Making multiple changes

* Improved types for operations

* Moved and updated cart types

* Updated the useAddItem and useRemoveItem hooks

* Minor life improvement

* Minor change

* Implement Shopify Provider

* Update README.md

* Update README.md

* normalizations & missing files

* Update index.ts

* fixes

* Update normalize.ts

* fix: cart error on first load

* shopify checkout redirect & api handler

* Update get-checkout-id.ts

* userAvatar

* Fix: color option

* Update normalize.ts

* changes

* Update next.config.js

* start customer auth & signup

* Update config.ts

* Login, Sign Up, Log Out, and checkout & customer association

* Automatic login after sign-up

* Update handle-login.ts

* MOving stuff around and adding temporal new files

* changes

* Replace use-cart with the new hook

* Removed old hook

* Improved HookHandler type

* Moved types

* Simplified useData types

* Updated Fetcher type

* Moved SwrOptions type

* Removed duplicated fetcher

* Moved provider to its own file

* Added proper type for fetch input

* Revert "Merge branch 'agnostic' of https://github.com/vercel/commerce into agnostic"

This reverts commit 23c8ed7c2d48d30e74ad94216f9910650fadf30c, reversing
changes made to bf50965a39ef0b1b956461ebe62070809fbe1d63.

* change readme

* Revert "Merge branch 'master' of https://github.com/vercel/commerce into agnostic"

This reverts commit bf50965a39ef0b1b956461ebe62070809fbe1d63, reversing
changes made to 0dad4ddedbf0bff2d0b5800ca469fda0073889ea.

* Revert "Revert "Merge branch 'agnostic' of https://github.com/vercel/commerce into agnostic""

This reverts commit c9a43f1bce0572d0eff41f3af893be8bdb00bedd.

* align with upstream changes

* Updated how the hook input is handled

* Add more options to the hook handler

* Final touches to the hook handler type

* Moved useWishlist to use new handler

* Move useCustomer to the new hook

* Added a default fetcher

* query all products for vendors & paths, improve search

* Update use-search.tsx

* fix cart after upstream changes

* Shopify Provider (#186)

* Start of Shopify provider

* add missing comment to documentation

* add missing env vars to documentation

* update reference to types file

* Moved useSearch to the new hook

* Removed old use-data lib

* Removed generics for result and body

* Removed normalizr

* Wishlist

* New changes and initial Features API

* Fixed some types

* Fixed more types

* fixes after upstream changes

* Fixed product types

* Fixed another product type

* Updated type

* Fixed remaining issues with types

* Added a MutationHandler

* Moved the handlers to each hook

* Moved the fetcher to its own file

* Moved handler to each hook

* Added initial version of useAddItem

* Added better mutation types, and moved some hooks

* Removed use-cart-actions

* Added initial version of useAddItem

* Updated types

* Update use-add-item.tsx

* changes

* Changes

* Reordering and changes

* Adding Features APO

* Adding wishlist api

* Implementing FeaturesAPI with Wishlist

* Removing bug with touchstart

* Adding tyni typing

* moved use-remove-item

* Removed MutationHandler type

* Moved more hooks and updated types to make them smaller

* Moved data hooks to new format

* Removed no longer required types

* Removed useResponse helper

* Updated useData type

* Moved wishlist use-add-item

* Moved wishlist use-remove-item to provider

* Moved use-login and use-logout

* Update use-signup

* Removed use-action helper

* Moved auth & cart hooks + several fixes

* Updated cart item, fixed deprecations

* Update next.config.js

* Updates to wishlist feature

* Moved the features to be environment variable only

* More changes for wishlist config

* Disable wishlist

* Removed useWishlistActions

* Updated readme

* updates

* typos

* Updated the way the provider config is set

* Removed features.ts

* Removed bootstrap.js

* Aligned with upstream changes

* Updates

* shopify: changes

* shopify: changes

* Update next.config.js

* Shopify Provider Updates (#209)

* Implement Shopify Provider

* Update README.md

* Update README.md

* normalizations & missing files

* Update index.ts

* fixes

* Update normalize.ts

* fix: cart error on first load

* shopify checkout redirect & api handler

* Update get-checkout-id.ts

* Fix: color option

* Update normalize.ts

* changes

* Update next.config.js

* start customer auth & signup

* Update config.ts

* Login, Sign Up, Log Out, and checkout & customer association

* Automatic login after sign-up

* Update handle-login.ts

* changes

* Revert "Merge branch 'agnostic' of https://github.com/vercel/commerce into agnostic"

This reverts commit 23c8ed7c2d48d30e74ad94216f9910650fadf30c, reversing
changes made to bf50965a39ef0b1b956461ebe62070809fbe1d63.

* change readme

* Revert "Merge branch 'master' of https://github.com/vercel/commerce into agnostic"

This reverts commit bf50965a39ef0b1b956461ebe62070809fbe1d63, reversing
changes made to 0dad4ddedbf0bff2d0b5800ca469fda0073889ea.

* Revert "Revert "Merge branch 'agnostic' of https://github.com/vercel/commerce into agnostic""

This reverts commit c9a43f1bce0572d0eff41f3af893be8bdb00bedd.

* align with upstream changes

* query all products for vendors & paths, improve search

* Update use-search.tsx

* fix cart after upstream changes

* fixes after upstream changes

* Moved handler to each hook

* Added initial version of useAddItem

* Updated types

* Update use-add-item.tsx

* Moved auth & cart hooks + several fixes

* Updated cart item, fixed deprecations

* Update next.config.js

* Aligned with upstream changes

* Updates

* Update next.config.js

* Updated the commerce config structure

* Removed @framework imports within framework providers

* Fixed types

* changes

* Adding extra config

* Adding shopify commit

* Adding env templates to the providers

* Ignore some types

* Adding link for Cart

* Adding customCheckout

* multiple changes to fix the wishlist

* Shopify Provier Updates (#212)

* changes

* Adding shopify commit

* Changed to query page by id

* Fixed page query, Changed use-search GraphQl query

* Update use-search.tsx

* remove unused util

* Changed cookie expiration

* Update tsconfig.json

Co-authored-by: okbel <curciobel@gmail.com>

* Bump and adding dependency

* Adding color checks

* Now colors work with lighter colors

* Stable commerce.config.json

* Updated main readme

* Readme changes

* Default to bigcommerce

Co-authored-by: bc <bc@bcs-MacBook-Pro.fibertel.com.ar>
Co-authored-by: Luis Alvarez <luis@vercel.com>
Co-authored-by: cond0r <pinte_catalin@yahoo.com>
Co-authored-by: Peter Mekhaeil <4616064+petermekhaeil@users.noreply.github.com>
2021-03-04 07:57:25 -03:00
cond0r
639863bb35 Update helpers.ts 2021-03-03 20:36:36 +02:00
cond0r
59dedf58cc Update helpers.ts 2021-03-03 20:06:21 +02:00
cond0r
e2368efa95 Fix add to cart & prepare for user activation 2021-03-03 17:48:11 +02:00
Bel Curcio
6e8dbf1156 Adding color checks 2021-03-01 19:02:56 -03:00
Bel Curcio
7780ec4818 Bump and adding dependency 2021-03-01 15:59:45 -03:00
okbel
ddd5497ac5 Adding shopify progress 2021-02-24 19:27:11 -03: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
19db5a7e1d Removing bug with touchstart 2021-02-18 13:24:46 -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
c621874250 Fixed another product type 2021-02-15 10:25:35 -05:00
Luis Alvarez
62ed50a646 Fixed product types 2021-02-15 10:15:20 -05:00
Luis Alvarez
c636fcbc4b Fixed more types 2021-02-15 00:09:57 -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
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
okbel
6cacfec8c7 Merge branch 'agnostic' of github.com:vercel/commerce into agnostic 2021-02-04 11:05:06 -03:00
Luis Alvarez
c06d9dae3a Merge branch 'master' of https://github.com/vercel/commerce into agnostic 2021-02-03 17:13:59 -05:00
B
3a7d5e2489
Latest Release (#187)
* Remove duplicated css rules. (#185)

* Fix typo in the Marquee component (#176)

Co-authored-by: Hugo Lopes <hugo.lopes@present-technologies.com>

* Remove duplicated css rules.
Fix invalid JSX props.

Co-authored-by: Hugo Lopes <hugo.lopes@present-technologies.com>

* Fix the body scroll when the sidebar is open (#184)

* Fix typo in the Marquee component (#176)

Co-authored-by: Hugo Lopes <hugo.lopes@present-technologies.com>

* Fix the body scroll when the sidebar is open

Co-authored-by: Hugo Lopes <hugo.lopes@present-technologies.com>

* Remove duplicate class in the I18nWidget comp (#183)

* Fix typo in the Marquee component (#176)

Co-authored-by: Hugo Lopes <hugo.lopes@present-technologies.com>

* Remove duplicate class name in the I18nWidget comp

This PR removes a duplicate class name in the I18nWidget component.

Co-authored-by: Hugo Lopes <hugo.rodrigues.lopes@gmail.com>
Co-authored-by: Hugo Lopes <hugo.lopes@present-technologies.com>

* add horizontal margin to pages when mobile screen (#180)

* Add cart item options like color and size (#177)

Co-authored-by: hlopes <hugo.lopes@present-technologies.com>

* Changes

Co-authored-by: Hugo Lopes <hugo.rodrigues.lopes@gmail.com>
Co-authored-by: Hugo Lopes <hugo.lopes@present-technologies.com>
Co-authored-by: Jamie Isaksen <jamie@jamie.no>
Co-authored-by: Vinicius Zucatti <51221635+vczb@users.noreply.github.com>
2021-01-29 12:00:16 -03:00
okbel
b8a0bb5a21 Progress 2021-01-29 11:22:41 -03:00
Leah Wagner
08a6b2efcf
Issue/79 fallback image (#179)
* Filter products from the homepage grid display when they do not have and image. Provide a fallback/placeholder image for the ProductCard for when a product does not have an image.

* Avoid repeating placeholder image reference and move to a variable

* Remove filter to avoid additional computations as per https://github.com/vercel/commerce/pull/80#discussion_r531142893. Placeholder images will display as fallback.

* Filter products from the homepage grid display when they do not have and image. Provide a fallback/placeholder image for the ProductCard for when a product does not have an image.

* Avoid repeating placeholder image reference and move to a variable

* Remove filter to avoid additional computations as per https://github.com/vercel/commerce/pull/80#discussion_r531142893. Placeholder images will display as fallback.

* Remove comment about filter. Code removed so no longer needed.

Co-authored-by: B <curciobelen@gmail.com>
2021-01-28 12:09:28 -05:00
Luis Alvarez
8784e05183 Ran prettier fix 2021-01-22 12:17:39 -05:00
okbel
48b484011d More updates 2021-01-19 12:33:50 -03:00
Bel Curcio
49b9efa395 changes 2021-01-18 20:17:10 -03:00
Belen Curcio
7f70cfd868 Changes 2021-01-14 12:58:41 -03:00
Belen Curcio
fc34856e50 Normalizing Cart Responses 2021-01-12 16:59:07 -03:00
Belen Curcio
287e690495 Correct Variant Added to Cart 2021-01-11 16:16:00 -03:00
Belen Curcio
9bbd7feed0 Restored Add to cart 2021-01-11 15:03:04 -03:00
Belen Curcio
4fdaae2197 Normalized Options and Swatches 2021-01-11 14:54:05 -03:00
Belen Curcio
dccc5ef430 slug 2021-01-11 14:13:29 -03:00
Belen Curcio
8f9bbe19ca index.ts broke my tree shaking 2021-01-11 13:55:45 -03:00
Belen Curcio
e42c511e3d changes 2021-01-11 12:12:51 -03:00
Belen Curcio
1742ae8ea6 Normalizing more operations 2021-01-10 16:25:25 -03:00
Belen Curcio
0a05182f3b Changes 2021-01-10 15:55:11 -03:00
Belen Curcio
4259136983 Removed Futures 2021-01-07 17:10:27 -03:00
Belen Curcio
4499f33f13 Reordering 2021-01-07 16:49:26 -03:00
Belen Curcio
c780852fbb Progress 2021-01-07 16:28:50 -03:00
Belen Curcio
e9dfda1e86 Restored Index Agnostic 2021-01-07 11:58:00 -03:00
Belen Curcio
812535caff Progress 2021-01-07 11:19:28 -03:00