4
0
forked from crowetic/commerce

912 Commits

Author SHA1 Message Date
okbel
4c0c7ebf10 changes 2021-03-19 15:39:57 -03:00
Joe Refoy
b5ba5e76be
Fix yarn package installation command (#240)
* Fix yarn package installation command

* Update README.md

Co-authored-by: B <curciobelen@gmail.com>
Co-authored-by: B <belen@vercel.com>
2021-03-19 13:07:35 -03:00
Vinicius Zucatti
a85772a73e
Click image in cart should go to product (#227)
Co-authored-by: B <curciobelen@gmail.com>
2021-03-19 13:02:59 -03:00
Sam Ko
8dee3bdf94
Update .env.template (#232)
* Update .env.template

* Update .env.template (framework/shopify/)
2021-03-15 15:00:52 -07:00
Luis Alvarez
18d8d9acc8 Update to latest Next.js canary 2021-03-10 23:07:53 -06: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
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
Jamie Isaksen
7c70f645cc
Improve import statements (#191)
Co-authored-by: B <curciobelen@gmail.com>
2021-02-01 20:32:57 -03:00
Marcelo Fortunato
8b70794036
chore: Remove import never used (#189) 2021-02-01 20:32:28 -03:00
B
b7fbdc4e90
Update README.md 2021-01-29 12:01:56 -03:00
B
ec54b79d7a
Update README.md 2021-01-29 12:01:03 -03: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
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
mohammadou1
027c4aca70
@hotfix/fixing brand id in use-search (#174)
to set searchParam brand, should check brandId and not categoryId

Co-authored-by: mohux <m.alolabi@uxbert.com>
2021-01-22 13:59:25 -03:00
B
742ac5786e
Update README.md 2021-01-09 12:49:11 -03:00
B
8d489bf665
Fix useCallback (#152) 2021-01-09 12:43:43 -03:00
B
8698794c96
Fix Typo (#151)
* Fix typo (#135)

The defaultPageProps object had a typo in the name

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

* changes

* changes

Co-authored-by: JD <jonathan.dawber@icloud.com>
2021-01-09 12:36:48 -03:00
B
66b8bdb6bb
Focus trap and Modal Functionality (#145)
* Focus trap and Modal Functionality

* Changes

* Changes

* Update components/ui/Modal/Modal.tsx

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

* changes

Co-authored-by: Luis Alvarez D. <luis@vercel.com>
2021-01-09 11:03:03 -03:00
Nader Dabit
86c396edd5
updates to improve lighthouse performance (#149) 2021-01-08 16:15:03 -03:00
Joe Haddad
79269edbd3
Upgrade to latest Next.js canary (#148) 2021-01-06 19:21:50 -03:00
B
4028e308bf
Fix for layout shift (#147) 2021-01-06 15:15:52 -05:00
Joe Haddad
b6f80b7245
fix(css): apply workaround for chrome bug (#146) 2021-01-06 15:01:07 -05:00
B
eedfdc0a10
Update README.md 2021-01-06 15:56:14 -03:00
B
c1a1c39562
Merge pull request #140 from vercel/framework-bc
Add framework folder and move BC hooks
2021-01-06 15:44:52 -03:00
B
06e0b02795
Merge branch 'master' into framework-bc 2021-01-06 12:58:40 -03:00
B
7401f4e417
Update README.md 2021-01-06 12:25:30 -03:00
Luis Alvarez
cf359cb774 Updated imports and deps 2020-12-29 20:04:26 -05:00
Luis Alvarez
bedc6cd317 Added codegen config 2020-12-29 20:04:19 -05:00
Luis Alvarez
9f0cbe2a8a Moved two packages 2020-12-29 19:22:12 -05:00
Luis Alvarez
4b14131e82 Added deps for hooks 2020-12-29 19:20:51 -05:00
Luis Alvarez
ed0783cfb3 Added framework folder 2020-12-29 19:14:49 -05:00
Luis Alvarez
5b5c8702a3 Updated tsconfig to include the framework folder 2020-12-29 19:14:23 -05:00
B
0f7152050a
Merge pull request #138 from tkapitein/fix/product-slider
Fix Product Image slider
2020-12-29 17:57:38 -03:00
B
d51160b1a4
Merge branch 'master' into fix/product-slider 2020-12-29 17:51:22 -03:00
B
d04f951e0a
Merge pull request #139 from vercel/fix-rewrites
Update Next.js to latest canary and fix rewrites with locales
2020-12-29 17:50:01 -03:00
Luis Alvarez
dfdad2cd7a Updated rewrites 2020-12-29 15:47:18 -05:00
Luis Alvarez
3eb9fd87ec Update to latest canary 2020-12-29 15:00:44 -05:00
Tim Kapitein
96f4f26632 fix(ProductView): fixed issue #136 2020-12-29 12:14:24 +01:00
B
4e5a81d0d5
Merge pull request #132 from shuding/improve-slider
Prevent system navigation on swipe
2020-12-28 09:57:23 -03:00
Shu Ding
147632f929
improve the detection algorithm to consider touch area 2020-12-24 14:37:50 +08:00
Shu Ding
eee3830613
prevent system navigation on swipe 2020-12-23 13:40:27 +08:00
B
29c74f6cff
Merge pull request #129 from vercel/dependabot/npm_and_yarn/ini-1.3.8
Bump ini from 1.3.5 to 1.3.8
2020-12-21 14:51:52 -03:00
dependabot[bot]
dad2bfbc61
Bump ini from 1.3.5 to 1.3.8
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-21 17:48:36 +00:00
B
1365ed151c
Update README.md 2020-12-21 14:47:53 -03:00
B
fe0870a08a
Merge pull request #128 from vercel/develop
Fix Round
2020-12-21 14:46:18 -03:00
Belen Curcio
a565e0b87c Adding new future flag 2020-12-21 14:42:46 -03:00
B
f5ee316ff9
Merge pull request #91 from ricardolmsilva/product-filters-mobile
put filters inside a dropdown in mobile devices
2020-12-21 14:20:53 -03:00
B
a5f40f65f2
Merge branch 'master' into product-filters-mobile 2020-12-21 14:16:23 -03:00
B
9137b52340
Merge pull request #127 from vercel/develop
Merge PRs to Main
2020-12-21 14:16:03 -03:00
B
786dba98f5
Merge branch 'master' into develop 2020-12-21 14:15:21 -03:00