4
0
forked from crowetic/commerce

50 Commits

Author SHA1 Message Date
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
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
Luis Alvarez
cf359cb774 Updated imports and deps 2020-12-29 20:04:26 -05:00
Ricardo Silva
77ce22d8e5 put filters inside a dropdown in mobile devices 2020-11-18 16:17:20 +00:00
Belen Curcio
be11f7f32b Renaming and removing enhanced image 2020-11-04 11:50:23 -03:00
Luis Alvarez
eddf338bfb Removed /utils 2020-10-27 05:53:30 -05:00
Luis Alvarez
7aa9019ada Updated imports 2020-10-27 04:53:21 -05:00
Luis Alvarez
16d6369b64 Merge branch 'master' of https://github.com/okbel/e-comm-example 2020-10-27 04:48:49 -05:00
Luis Alvarez
c1d0395c4e Added locale to all pages 2020-10-27 04:00:42 -05:00
Luis Alvarez
c9b4a9ad4c Add preview where applicable 2020-10-27 00:47:29 -05:00
luc
86ee3cce21 import from @bigcommerce/storefront-data-hooks 2020-10-27 03:02:27 +01:00
luc
c7b5c3ddc9 use @bigcommerce/storefront-data-hooks 2020-10-27 02:35:40 +01:00
Luis Alvarez
7c677afd17 UX improvements for the search page 2020-10-25 22:33:32 -05:00
Luis Alvarez
5706e7afa2 Search results fix 2020-10-25 21:47:19 -05:00
Luis Alvarez
d70132734b Add links to the categories & brands in the landing 2020-10-25 21:43:13 -05:00
Belen Curcio
6b4d32a7d3 Decrese size 2020-10-24 19:35:16 -03:00
Luis Alvarez
dc80358bc6 Added image component to product images 2020-10-21 21:28:28 -05:00
Belen Curcio
f530f7d597 Changes to the headings 2020-10-21 11:36:38 -03:00
Luis Alvarez
f6e0fd761e Don't import from 'lodash' 2020-10-19 13:56:29 -05:00
Luis Alvarez
9309bff517 Type fixes 2020-10-19 12:40:26 -05:00
Belen Curcio
453b7b54e8 Changes to search UI 2020-10-19 11:23:10 -03:00
Belen Curcio
526b291f4f Adding Correct Sizes and Colors 2020-10-17 17:56:38 -03:00
Luis Alvarez
f60ee2d9ec Updated pages to include BC pages 2020-10-15 18:55:39 -05:00
Luis Alvarez
b332609f96 Merge branch 'master' of https://github.com/okbel/e-comm-example 2020-10-15 15:20:54 -05:00
Luis Alvarez
a0b85bcf5b Added links to pages in the footer 2020-10-15 14:00:41 -05:00
Belen Curcio
ab45e28813 Normalizing Style Sheets 2020-10-15 16:00:11 -03:00
Belen Curcio
a0e5448210 Better Search Experience 2020-10-15 12:19:19 -03:00
Belen Curcio
014d195463 Adding Search Skeleton 2020-10-15 12:12:28 -03:00
Belen Curcio
fddf85df4b Adding Search Skeleton 2020-10-15 11:45:01 -03:00
Belen Curcio
bf1ffcace9 Skeleton Component 2020-10-15 11:10:07 -03:00
Luis Alvarez
df24786d18 Added selected state to sort options 2020-10-14 13:50:56 -05:00
Luis Alvarez
8905089fd7 bug fixes 2020-10-14 13:12:34 -05:00
Luis Alvarez
32da7ddcc1 Updated sorting logic 2020-10-14 12:47:22 -05:00
Luis Alvarez
cdb2cbdebd Added sort option to the UI 2020-10-14 11:50:38 -05:00
Luis Alvarez
398feac176 Add sorting to the API for search 2020-10-14 10:53:03 -05:00
Luis Alvarez
e3591302b7 Added sort filters to the UI 2020-10-13 22:43:11 -05:00
Luis Alvarez
6f763f6913 Keep the query and sort while navigating 2020-10-13 22:20:23 -05:00
Luis Alvarez
f37fbc00bf Add missing links 2020-10-13 20:43:56 -05:00
Luis Alvarez
fa625b5d06 Filter by brand too 2020-10-13 20:16:43 -05:00
Luis Alvarez
63c0713151 Add underline 2020-10-13 19:31:00 -05:00
Luis Alvarez
fa6a5cff5c Add additional routes for search 2020-10-13 18:52:02 -05:00
Luis Alvarez
0fc4ea7363 Fix white text 2020-10-13 11:56:12 -05:00
Belen Curcio
2ad115af61 Layout Changes 2020-10-13 09:41:37 -03:00
Luis Alvarez
ee6b65725f Search 2020-10-13 07:07:35 -05:00
Luis Alvarez
d561f26beb Merge branch 'master' of https://github.com/okbel/e-comm-example 2020-10-13 03:50:20 -05:00
Luis Alvarez
beed2d23e0 Added useSearch hook 2020-10-13 03:49:24 -05:00
Belen Curcio
6bf209eccd Adding partial night mode 2020-10-12 21:40:39 -03:00
Belen Curcio
2a087905a7 Search functionality 2020-10-12 11:10:20 -03:00
Belen Curcio
2d347d487b Search Page 2020-10-12 10:25:36 -03:00