Skip to content

Commit

Permalink
Migrate Cart i1 to Cart i2 (woocommerce#4973)
Browse files Browse the repository at this point in the history
* move empty cart

* remove Cart and rename Cart i2 to Cart

* graduate blocks

* setup template migration from Cart i1 to Cart i2

* back to js so we have a good diff

* add migration

* fix bug in empty cart template

* add useForceLayout hook to edit

* migrate from old block to new block

* migrate styles

* respect align

* add tests

* Include latest cart line item improvements from cart-i1

* Missing changes from cart-i1

* Line items table should be disabled

* Fix e2e tests for cart i2

* update tests to adapt for inner blocks

* update select to resolveSelect to remove warning checker

* rename test/block to test/index

* move blocks to their own file

* undo rename to keep diff clean

* remove .tsx and update jest config

* Revert "update select to resolveSelect to remove warning checker"

This reverts commit 79d55de.

* revert resolveControl

* Fix empty cart editor E2E test by scrolling to the view switch

* parse attributes for order summary block

* migrate attributes when resaving

* Update documentation

Automatic update after running npm run build:docs

* add align options to filled cart and empty cart

* append instead of replcae

* import style.scss in frontend

Co-authored-by: Mike Jolley <[email protected]>
Co-authored-by: Raluca Stan <[email protected]>
  • Loading branch information
3 people authored and jonny-bull committed Dec 14, 2021
1 parent 78d8a1f commit 9c3d5b0
Show file tree
Hide file tree
Showing 92 changed files with 741 additions and 4,448 deletions.
17 changes: 0 additions & 17 deletions assets/js/blocks/cart-checkout/cart-i2/attributes.js

This file was deleted.

118 changes: 0 additions & 118 deletions assets/js/blocks/cart-checkout/cart-i2/block.js

This file was deleted.

Loading

0 comments on commit 9c3d5b0

Please sign in to comment.