Commit Graph

2451 Commits

Author SHA1 Message Date
Darren Ethier 309b3614c5 Revert "Rest API batching support (https://github.com/woocommerce/woocommerce-blocks/pull/3899)"
This reverts commit 5b65a02297.

This commit broke cart updates for the cart block (surfaced with changing quantity)

There were also legit e2e test fails for the cart-update middleware behaviour that weren’t addressed.
2021-04-18 11:58:51 -04:00
Nadir Seghir ab142f5b53 bring back changes from 4.9.1 2021-04-18 16:54:43 +01:00
Nadir Seghir c8f2aedd1b Revert "Merge branch 'release/4.9.0' into trunk"
This reverts commit f79b960b59, reversing
changes made to 5b65a02297.
2021-04-18 16:33:08 +01:00
Nadir Seghir f79b960b59 Merge branch 'release/4.9.0' into trunk 2021-04-18 16:13:58 +01:00
github-actions[bot] 6905cf0e62 Release: 4.9.1 (https://github.com/woocommerce/woocommerce-blocks/pull/4058)
* Check if Cart and Checkout are registered before removing payment methods so it won't break Elementor (https://github.com/woocommerce/woocommerce-blocks/pull/4056)

* Empty commit for release pull request

* update versions and add testing file

* add download file

* Bumping version strings to new version.

Co-authored-by: Seghir Nadir <nadir.seghir@gmail.com>
Co-authored-by: github-actions <github-actions@github.com>
2021-04-18 15:56:34 +01:00
Mike Jolley 5b65a02297 Rest API batching support (https://github.com/woocommerce/woocommerce-blocks/pull/3899)
* Add batch route

* Register batch route

* Allow batching on writable endpoints

* Batch in client

* Batch non-GET requests

* Batching support with typescript defs

* Remove unused hook

* Prevent multiple fragment updates

* Only use batch route if detected

* Correct var name

* Move nonce check to validate_callback so it runs before requests are completed

* remove unused imports

* updateCartFragments function as const

* Add phpunit tests for batching functionality

* Reduce batch delay

* increase timeout
2021-04-16 13:45:56 +01:00
Thomas Roberts d057618b24 Fix failing e2e tests (https://github.com/woocommerce/woocommerce-blocks/pull/4068)
* Remove unused fixtures

* Update package-lock.json

* Update product-search fixture and snapshot

* Ensure the product is selected before continuing with the test.

This clicks the test at least once, or at most thrice to ensure it is checked before trying to evaluate the rest of the test.

* Revert "Remove unused fixtures"

This reverts commit e4a4e11b72c6723341d60391bd9cb9cc4197efaf.

* Look for button with aria-label: 'Toggle block inserter'

* Revert "Look for button with aria-label: 'Toggle block inserter'"

This reverts commit a25ea8d9abafead372ef24b2feb92ff58bd95cea.

* Update @wordpress/e2e-test-utils to 5.1.2

* Check for existence of add block button
2021-04-16 11:48:27 +01:00
Raluca Stan c141f37f25 Update the initial checklist for the release md (https://github.com/woocommerce/woocommerce-blocks/pull/4067) 2021-04-15 17:22:03 +01:00
Albert Juhé Lluveras 5e0c4cf0ce Add initial e2e tests to Checkout block frontend (https://github.com/woocommerce/woocommerce-blocks/pull/4004)
* Add initial e2e tests to Checkout block frontend

* Fix comment format

* Scroll to payment methods before checking if they are clickable

* Typos

* Implement caching in getBlockPagePermalink to improve e2e test performance

* Revert "Typos"

This reverts commit 1b544276056084f73d5bcdfa391d5438590e4782.

* Simplify product price definitions

* Move scrollTo function to utils
2021-04-14 15:50:27 +01:00
Seghir Nadir 54785ada90 Check if Cart and Checkout are registered before removing payment methods so it won't break Elementor (https://github.com/woocommerce/woocommerce-blocks/pull/4056) 2021-04-13 14:27:05 +01:00
Albert Juhé Lluveras 80afb33eb6 Update version to 5.0.0-dev 2021-04-12 15:31:49 +02:00
github-actions[bot] 13f297843e Release: 4.9.0 (https://github.com/woocommerce/woocommerce-blocks/pull/4053)
* Empty commit for release pull request

* Update changelog

* Add testing steps

* Update 4.9.0 testing steps

* Bumping version strings to new version.

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Albert Juhé Lluveras <contact@albertjuhe.com>
2021-04-12 15:29:41 +02:00
Albert Juhé Lluveras cbaabccbca Bumping version strings to new version. 2021-04-12 15:20:46 +02:00
Mike Jolley 40834e86df Remove BackCompatAssetDataRegistry (https://github.com/woocommerce/woocommerce-blocks/pull/4054) 2021-04-12 14:17:20 +01:00
Albert Juhé Lluveras d1e78f3d49 Update 4.9.0 testing steps 2021-04-12 14:45:00 +02:00
Albert Juhé Lluveras f7b30700c6 Add testing steps 2021-04-12 12:51:35 +02:00
Albert Juhé Lluveras 71cfe52731 Update changelog 2021-04-12 12:18:59 +02:00
Seghir Nadir 7c06674bbc Load translation file for JS files (https://github.com/woocommerce/woocommerce-blocks/pull/4050) 2021-04-12 12:05:26 +02:00
Mike Jolley 7556d47b5c Fix TwentyX styling issues for cart/checkout form fields (https://github.com/woocommerce/woocommerce-blocks/pull/4046)
* Fix checkbox styling in 2020 and 2017 themes by setting input font size

* 2017 button hover style fixes

* Fix editor dark inputs

* Restore dark color
2021-04-12 12:03:36 +02:00
renovate[bot] 4703f5b5fa Lock file maintenance (https://github.com/woocommerce/woocommerce-blocks/pull/4052)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-12 10:46:47 +01:00
Albert Juhé Lluveras 79f4fccbd5 Use font color in payment methods border (https://github.com/woocommerce/woocommerce-blocks/pull/4051) 2021-04-09 17:19:32 +02:00
Thomas Roberts 98687d48d0 Add word-break: break-word to components title (https://github.com/woocommerce/woocommerce-blocks/pull/4049) 2021-04-09 16:01:34 +01:00
Seghir Nadir e668fbf1b6 provide fallback for extensions when store didn't load yet (https://github.com/woocommerce/woocommerce-blocks/pull/4033) 2021-04-09 15:56:11 +01:00
renovate[bot] f1d0458b54 Update dependency @types/react to v16.14.5 (https://github.com/woocommerce/woocommerce-blocks/pull/4043)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-09 15:52:39 +01:00
renovate[bot] 3e2cc4c8da Lock file maintenance (https://github.com/woocommerce/woocommerce-blocks/pull/4035)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-09 15:39:33 +01:00
Darren Ethier 52a16542fb Add note about including changelog for WooCommerce Core package updates for patch releases. 2021-04-08 13:29:03 -04:00
Darren Ethier cc9f94908a Update release-initial-checklist.md
Add note about including changelog in package bump for WooCommerce Core updates.
2021-04-08 13:27:39 -04:00
Seghir Nadir cda0252d12 unqeueue scripts (https://github.com/woocommerce/woocommerce-blocks/pull/4034) 2021-04-08 13:44:17 +01:00
Mike Jolley 25544f3ce4 Remove deprecated shortcode save handling from SSR Blocks (https://github.com/woocommerce/woocommerce-blocks/pull/4010) 2021-04-08 13:42:03 +01:00
Mike Jolley 9bdcbe0b4d Fix Circular Dependencies During Builds (https://github.com/woocommerce/woocommerce-blocks/pull/4025)
* Fix circular dependencies in Icons package

* CircularDependencyPlugin

* Fix deriveSelectedShippingRates CD

* Move useStoreNotices to context/hooks

* Move useStoreCart to base/context/hooks

* Move useStoreEvents to base/context/hooks

* Move collection/product hooks

* Move useStoreAddToCart

* Move useCustomerData

* move shipping hooks

* Move checkout and payment hooks

* Context should import hooks with relative paths

* Prevent circular dependency in store notices container components

* Move address fields to settings so they are shared

* Import PaymentMethod components direct

* relative import

* Fix select CD

* Move ValidationInputError

* Move components consumed by context

* Fix up internal imports in context

* fix CD in checkout package

* Separate providers

* Fixing context exports

* Fix base context hook import

* fix mocks

* Pass hooks to Slot Fills as Fill Props to avoid imports from base-context

* Export components, not hooks

* Pass props to ExperimentalOrderMeta

* Run CD plugin when using `npm start` only

* Rename CIRCULAR_DEPS to CHECK_CIRCULAR_DEPS

* Remove duplicate key from rebase

* Move packages component back to main file

* Remove dashicon module replacement

* Restore SVG import from package not external

* Move core locale handling to avoid impact settings package size

* Remove deleted file from rebase
2021-04-08 13:31:12 +01:00
Michael P. Pfeiffer 4ea7a8d138 Cart: fix headline alignment in empty cart (https://github.com/woocommerce/woocommerce-blocks/pull/4044) 2021-04-08 08:48:59 +02:00
Albert Juhé Lluveras 24b01bb81e Remove useCheckoutRedirectUrl() (https://github.com/woocommerce/woocommerce-blocks/pull/4032) 2021-04-07 18:11:39 +02:00
renovate[bot] cb3b26def1 Update dependency @testing-library/jest-dom to v5.11.10 (https://github.com/woocommerce/woocommerce-blocks/pull/4042)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-07 02:55:45 +00:00
renovate[bot] 405a4ec1ee Update babel monorepo to v7.13.14 (https://github.com/woocommerce/woocommerce-blocks/pull/4041)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-07 00:56:42 +00:00
Albert Juhé Lluveras 7ac2fb3ec7 Add emitResponse prop to the Payment Method Nodes props docs (https://github.com/woocommerce/woocommerce-blocks/pull/3999)
* Typo

* Add emitResponse prop in the Payment Method Nodes props docs
2021-04-06 18:07:55 +02:00
Albert Juhé Lluveras 7744af9818 Update @woocommerce/components 2021-04-06 15:30:01 +02:00
Mike Jolley f67d25ffbd Add KSES before formatting content and for other HTML content (https://github.com/woocommerce/woocommerce-blocks/pull/2)
* Apply kses before wc_format_content

* Add kses to price HTML strings

* KSES in product grid

* kses in featured product

* Switch short description filter to wc_format_content in featured product block
2021-04-06 15:27:36 +02:00
Mike Jolley 8f78528245 Enable Google Analytics Integration (https://github.com/woocommerce/woocommerce-blocks/pull/4020)
* Remove experimental flag

* Add experimental docs
2021-04-06 12:59:31 +01:00
Thomas Roberts 6014a3d046 Update @automattic/data-stores and remove mapped-types.ts (https://github.com/woocommerce/woocommerce-blocks/pull/4024)
* Update @automattic/data-stores to 2.0.1 and remove mapped-types.ts

* Update exported types of CartAction
2021-04-06 12:15:14 +01:00
Albert Juhé Lluveras f22ab7f4f4 Fix Featured Product and Featured Category button alignment (https://github.com/woocommerce/woocommerce-blocks/pull/4028) 2021-04-06 08:16:55 +02:00
Raluca Stan 8d68dceacb Update to 4.9.0-dev version 2021-04-01 12:13:18 +01:00
github-actions[bot] 65fae9a44c Release: 4.8.0 (https://github.com/woocommerce/woocommerce-blocks/pull/4018)
Create testing instructions for 4.8.0 realease

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Raluca Stan <ralucastn@gmail.com>
2021-04-01 11:55:08 +01:00
Albert Juhé Lluveras 9e5b5041b8 Update experimental flags documentation (https://github.com/woocommerce/woocommerce-blocks/pull/4017) 2021-04-01 11:34:09 +02:00
Mike Jolley 86e54c19a0 Add Google Analytics Product Block and Checkout Events (https://github.com/woocommerce/woocommerce-blocks/pull/3967)
* Move PHP GA code to service class

* product search tracking

* Improve inline script handling

* trackViewProduct

* Product link events

* Rename events

* Add checkout specific event hook

* Prevent useStoreCart response changing on rerender

* Move address step into form so progress can be more easily tracked

* Checkout progress events

* Checkout events

* Tidy up tracking code

* Track error exceptions

* add_payment_info event

* remove console log

* Track product grid block views Closes woocommerce/woocommerce-blocks#3959

* Checkout context was unused

* Add comments to checkout events

* correct step number

* Standardize prefixes for events

* Tracking requires GA extension

* Fix select content events

* adjust product list render tracking so it's inline

* Inline search event handling

* remove render callback hook

* revert render callback changes

* Update GA bootstrap code
2021-03-31 15:22:27 +01:00
renovate[bot] 40c569d9ef Update dependency @stripe/stripe-js to v1.13.2 (https://github.com/woocommerce/woocommerce-blocks/pull/3995)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-31 16:07:35 +02:00
Raluca Stan 853a05c77c Fix click on Proceed to checkout bug when Coupon error is visible. (https://github.com/woocommerce/woocommerce-blocks/pull/3996)
* Fix click on Proceed to checkout bug when Coupon error is visible.

The bug happened because of the layout shift produced by the error message disappearance.
2021-03-31 10:50:00 +01:00
Mike Jolley 5e997628b5 Avoid get_billing and get_shipping method when updating the order (https://github.com/woocommerce/woocommerce-blocks/pull/4013) 2021-03-31 11:26:59 +02:00
renovate[bot] 3373219b2a Update dependency @testing-library/user-event to v12.8.3 (https://github.com/woocommerce/woocommerce-blocks/pull/4016)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-31 11:12:56 +02:00
renovate[bot] a0512be2bd Pin dependencies (https://github.com/woocommerce/woocommerce-blocks/pull/4015)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-31 01:50:19 +00:00
renovate[bot] 51c188f059 Lock file maintenance (https://github.com/woocommerce/woocommerce-blocks/pull/4007)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-29 15:15:55 +02:00