4
0
forked from crowetic/commerce

307 Commits

Author SHA1 Message Date
Florian Cargouet
d4d22a3ce7
Replace button custom checkout enabled on /cart (#535)
Co-authored-by: Gonzalo Pozzo <gonzalo.pozzo4@gmail.com>
2021-11-23 16:48:41 -03:00
Emrah
e991b54b0e
Add loading state (#458) 2021-09-22 21:28:14 -05:00
Gonzalo Pozzo
1720bd698c
Implement custom checkout (#487)
* Implement custom checkout core

* Fix elements on core

* Add files to providers

* Adapt providers

* Update types

* Update shopify file

* Format files
2021-09-22 19:20:58 -05:00
B
78cc378a72
New Release (#371)
* Custom Checkout Progress

* Updates to Checkout

* Custom Checkout Progress

* Adding tabs

* Adding Collapse

* Adding Collapse

* Improving Sidebar Scroll

* Modif footer

* Changes

* More design updates

* sidebar cart

* More design updates

* More design updates

* More design updates

* More design updates

* Types

* Types

* Design Updates

* More changes

* More changes

* More changes

* Changes

* Changes

* Changes

* New tailwind required changes

* Sidebar Styling issues with Mobile

* Latest changes - Normalizing cart

* Styling Fixes

* New changes

* Changes

* latest

* Refactor and Renaming some UI Props

* Adding Quantity Component

* Adding Rating Component

* Rating Component

* More updates

* User Select disabled, plus hidding horizontal scroll bars

* Changes

* Adding ProductOptions Component and more helpers

* Styling updates

* Styling updates

* Fix for slim tags

* Missmatch with RightArrow

* Footer updates and some styles

* Latest Updates

* Latest Updates

* Latest Updates

* Removing Portal, since it's not needed. We might add it later I'd rather not to.

* Removing Portal, since it's not needed. We might add it later I'd rather not to.

* Sam backdrop filter

* General UI Improvements

* General UI Improvements

* Search now with Geist Colors

* Now with Geist Colors

* Changes

* Scroll for Mobile on IOs devises

* LoadingDots Working (:

* Changes

* More Changes

* Perf changes

* More perf changes

* Fade to the Nametags in the ProductCard

* changes

* Search issue ui

* Search issue ui

* Make sure to only refresh navbar and modals when required

* Index revalidate

* Fixed image issue

* hide album scroll on windows

* Fix scrollbar

* Changing

* Adding 404 with Layout

* Removing Toast

* Adding Assets

* Adding Assets

* Progress with LocalProvider

* New productTag

* Only images for the drop

* changes

* Empty SWRhooks

* Adding Local Provider

* Working local

* Working view of a LocalProvider

* More updates

* Changes

* Removed react-ticker

* default to local if no env available

* default to local if no env available

* add missing `@` to css import

* rewrite search rewrites to multiple pages

* allow requests in getStaticProps to execute in parallel

* make type import explicit

* add a tsconfig.js file

* use local provider in tsconfig.js

* avoid a circular dependency

* Saleor was not in the providers list

* avoid circular dependency in bigcommerce

* Adding more to the Local Provider (#366)

* Adding more data

* Adding more data

* optimize assets (#370)

* Optimize assets (#372)

* optimize assets

* remove assets

* remove assets

* cart enabled

* Adding saleor

* Changes with Webpack

* Changes

Co-authored-by: Luis Alvarez <luis@vercel.com>
Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
Co-authored-by: Shu Ding <g@shud.in>
2021-06-15 20:23:17 -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
685fb932db Adding revalidate to search - categories change too 2021-06-09 09:39:32 -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
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
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
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
Jamie Isaksen
7c70f645cc
Improve import statements (#191)
Co-authored-by: B <curciobelen@gmail.com>
2021-02-01 20:32:57 -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
Luis Alvarez
2ffe1ab71b Removed import 2021-01-28 19:00:26 -05:00
Luis Alvarez
59a4535f0e More corrections for useCart 2021-01-28 18:34:44 -05: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
1db974dabd Changed the way isEmpty works 2021-01-20 15:29:02 -05:00
okbel
48b484011d More updates 2021-01-19 12:33:50 -03:00
Belen Curcio
de0ba8cee8 changes breaking 2021-01-17 12:53:34 -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
28b244760a changes 2021-01-11 13:25:25 -03:00
Belen Curcio
deadb1675b Cleanup 2021-01-11 12:22:18 -03:00
Belen Curcio
72b5fb0c1a Merge Issues 2021-01-11 12:17:55 -03:00
Belen Curcio
9ffc60ec95 Merge branch 'master' into agnostic 2021-01-11 12:15:26 -03:00
Belen Curcio
e42c511e3d changes 2021-01-11 12:12:51 -03:00
Belen Curcio
ac58e4a351 Normalizer 2021-01-10 16:16:49 -03:00
Belen Curcio
0a05182f3b Changes 2021-01-10 15:55:11 -03:00
Belen Curcio
3ba60fcafc Changes 2021-01-10 14:11:00 -03:00
Belen Curcio
0d4355b431 Progress, Changes types, readme and restoring functionality 2021-01-10 13:08:34 -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