Commit Graph

2810 Commits

Author SHA1 Message Date
Albert Juhé Lluveras 3f55ed5566 Make SortSelect components controlled (https://github.com/woocommerce/woocommerce-blocks/pull/4580)
* Make ReviewSortSelect controlled

* Remove defaultValue prop from SortSelect and ProductSortSelect
2021-08-18 09:33:13 +02:00
renovate[bot] 51d8ae29b8 Update dependency core-js to v3.16.2 (https://github.com/woocommerce/woocommerce-blocks/pull/4595)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-18 04:21:35 +00:00
renovate[bot] cb83581401 Update dependency @types/react to v16.14.13 (https://github.com/woocommerce/woocommerce-blocks/pull/4594)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-18 04:19:42 +00:00
renovate[bot] d1190755e5 Update Node.js to v12.22.5 (https://github.com/woocommerce/woocommerce-blocks/pull/4593)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-18 02:33:12 +00:00
renovate[bot] 172d177a83 Pin dependency patch-package to 6.4.7 (https://github.com/woocommerce/woocommerce-blocks/pull/4592)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-18 02:22:59 +00:00
Mike Jolley 976e3d057a Fix eslint notice in BlockTitle component 2021-08-17 17:09:04 +01:00
Tom Cafferkey 4420819a1f Add label for Block Title component to satisfy accessibility (https://github.com/woocommerce/woocommerce-blocks/pull/4585) 2021-08-17 16:21:07 +01:00
Mike Jolley 22e1560c89 update to dev version 2021-08-17 14:17:27 +01:00
github-actions[bot] 04d54915fd Release: 5.7.0 (https://github.com/woocommerce/woocommerce-blocks/pull/4584)
* Empty commit for release pull request

* Update changelog

* Supported versions

* Add testing notes

* Add padding in 2020 and 2021

* add todo

* Combobox patch

* Update a package to invalidate CI cache

* Update cache handling

* revert eslint package change

* Bumping version strings to new version.

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Mike Jolley <mike.jolley@me.com>
2021-08-17 14:10:09 +01:00
Mike Jolley 717465ed99 Combobox patch to prevent the suggestion list being left open after browser autocomplete (https://github.com/woocommerce/woocommerce-blocks/pull/4590)
* Combobox patch

* Update a package to invalidate CI cache

* Update cache handling

* revert eslint package change
2021-08-17 13:25:11 +01:00
Mike Jolley 71851f25a5 Add padding in 2020 and 2021 (https://github.com/woocommerce/woocommerce-blocks/pull/4588)
* Add padding in 2020 and 2021

* add todo
2021-08-17 12:03:07 +01:00
Mike Jolley 4d72866925 Remove top rule so validation messages are positioned correctly below the fields (https://github.com/woocommerce/woocommerce-blocks/pull/4582) 2021-08-16 13:46:37 +01:00
Seghir Nadir 0d6bb11135 Call validation before submitting the order (https://github.com/woocommerce/woocommerce-blocks/pull/4561)
* run validation again on submit

* hook into onCheckoutValidationBeforeProcessing instead

* back to isBeforeProcessing

* add todo
2021-08-16 12:53:26 +01:00
Seghir Nadir 5a0840506e update Checkout i2 locks to attributes. (https://github.com/woocommerce/woocommerce-blocks/pull/4571)
* update locks to attributes instead

* remove lock from support attribute
2021-08-16 11:20:27 +01:00
Albert Juhé Lluveras 70ec1f8b31 Add optimizations around checkout filter calls (https://github.com/woocommerce/woocommerce-blocks/pull/4570)
* Extract productPriceValidation out of the component

* Extract checkout filter args outside of component

* Remove unnecessary default fallback

* Mark ProductName optional props as not required

* Use an empty array constant for the filteredNotices default value when there are no notices

* Refactor Panel component so hidden contents are not rendered

* Prevent extensions changing on each call of __experimentalApplyCheckoutFilter if it was an empty object

* Add missing line break

* Update tests
2021-08-13 15:42:09 +02:00
Albert Juhé Lluveras ff9c73bec5 Implement memoization in several selectors and hooks (https://github.com/woocommerce/woocommerce-blocks/pull/4548)
* Memoize cartErrors from useStoreCart

* Implement memoization to other selectors

* Use EMPTY_ARRAY in more cases

* Create getArrayOrEmptyConstant function

* Remove DEFAULT_EMPTY_ARRAY constant and use EMPTY_ARRAY instead

* Wrap removeItem into useCallback

* Fix tests

* Do not default to empty array/object for values that should exist and use different constant for empty values

* Type two empty array constants from default-states.ts
2021-08-13 15:28:41 +02:00
Niels Lange 5ec99c15f0 Reviews by Category: Show review count instead of product count (https://github.com/woocommerce/woocommerce-blocks/pull/4552) 2021-08-13 12:02:15 +01:00
NekoJonez 162739d4f7 Delete unneeded double spaces in text strings (https://github.com/woocommerce/woocommerce-blocks/pull/4569)
Deleted an unneeded double space in a string on line 271.
2021-08-13 12:10:44 +02:00
Mike Jolley a7d7ea32bb Fix unfiltered html usage of blocks (https://github.com/woocommerce/woocommerce-blocks/pull/4551)
* SSR search

* deprecation handling for search

* Update snaps

* Fix duplicate class and align class property
2021-08-12 17:39:38 +01:00
Mike Jolley a40893ae3a Switch from Select to Combobox for Country and State Inputs (https://github.com/woocommerce/woocommerce-blocks/pull/4369)
* Add combobox control

* Implement in country and state

* mobile styling

* styling across themes

* Remove validated select component

* Use focus-within

* Update tests

* Use @wordpress/compose

* Move field clearing to effect hook

* Patch combobox component

PR https://github.com/WordPress/gutenberg/pull/33928

* patch package after install

* update package

* Prevent autofill handling impacting manual input

* Add todo

* combo requires option to be selected
2021-08-12 17:30:42 +01:00
Brett Shumaker 946e05d70b Fix store notice classes (https://github.com/woocommerce/woocommerce-blocks/pull/4568)
The `StoreNoticesContainer` component is using an incorrect class name for a "success" notice and also applying the general `woocommerce-message` (what's used by WC core for the "success" notice) to all notices. In some instances, this could cause the general `woocommerce-message` styles to be applied instead of the `woocommerce-error` or `woocommerce-info` styles.

This PR changes the use of `woocommerce-success` to `woocommerce-message` and prevents `woocommerce-message` from being applied to all notices.
2021-08-12 14:43:35 +02:00
renovate[bot] e0c3ae4704 Update dependency core-js to v3.16.1 (https://github.com/woocommerce/woocommerce-blocks/pull/4565)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-11 01:49:54 +00:00
renovate[bot] 56c8166588 Update dependency @types/react to v16.14.12 (https://github.com/woocommerce/woocommerce-blocks/pull/4564)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-11 01:47:39 +00:00
Sandip Mondal e831faa007 Enable re-select category for Featured Category block (https://github.com/woocommerce/woocommerce-blocks/pull/4559)
* Enable re-select category for featured category block

* update shop now button url on re-select

* Update comments

Co-authored-by: Albert Juhé Lluveras <aljullu@gmail.com>

Co-authored-by: Albert Juhé Lluveras <aljullu@gmail.com>
2021-08-09 14:09:48 +02:00
renovate[bot] 5a042ce75b Lock file maintenance (https://github.com/woocommerce/woocommerce-blocks/pull/4560)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-09 09:20:10 +02:00
dependabot[bot] e1be5e6afc Bump tar from 6.1.0 to 6.1.6 (https://github.com/woocommerce/woocommerce-blocks/pull/4556)
Bumps [tar](https://github.com/npm/node-tar) from 6.1.0 to 6.1.6.
- [Release notes](https://github.com/npm/node-tar/releases)
- [Changelog](https://github.com/npm/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/npm/node-tar/compare/v6.1.0...v6.1.6)

---
updated-dependencies:
- dependency-name: tar
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-06 15:45:39 +01:00
Mike Jolley f0fb1af7d3 Fix handpicked product selections when a store has over 100 products. (https://github.com/woocommerce/woocommerce-blocks/pull/4534)
* Convert withSearchedProducts to typescript

* isLargeCatalog query needs no limit

* Pass tests
2021-08-06 14:25:12 +01:00
Niels Lange cbe9afd38e Twenty Twenty: Fix broken sale badge left alignment (https://github.com/woocommerce/woocommerce-blocks/pull/4549)
* Twenty Twenty: Fix broken sale badge left alignment

* Twenty Twenty: Refactor sale badge alignment fix
2021-08-06 10:37:24 +02:00
Niels Lange 7b57028b77 Twenty Twenty-One: Adjust removable chip background color (https://github.com/woocommerce/woocommerce-blocks/pull/4547)
* Twenty Twenty-One: Adjust removable chip background color

* Twenty Twenty-One: Remove GitHub reference from implementation
2021-08-05 14:50:06 +02:00
Mike Jolley b941b0c332 Update Dependencies to Latest Versions supporting React 16x (https://github.com/woocommerce/woocommerce-blocks/pull/4532)
* Update storybook to 6.3.6

* @storybook/addon-knobs

* Remove need for wordpress-compose imports

This functionality exists in WP 5.5 so we don't need to import the package any more.

* Update to latest non 17x packages

* Composer update

* Fix for @babel/plugin-proposal-nullish-coalescing-operator and spinner style

* onSelect was called before init

* Add back env

* Update locks

* Revert browserlist config increase (ie11 support dropped needs separate discussion)

* update locks

* SVG can come from the external

* Import from components package where possible (5.5 has Gutenberg 9.2.0) and revert component package version change

* Revert component imports. Import from wordpress-components in the frontend context. This removes `wp-components`  dependency from all -frontend asset files.
2021-08-05 10:26:00 +01:00
Niels Lange b601055db4 Use hidden HTML element instead of .screen-reader-text for CSS class toggling helper texts (https://github.com/woocommerce/woocommerce-blocks/pull/4530) 2021-08-04 10:07:48 +02:00
renovate[bot] 7f221ad7e2 Update dependency core-js to v3.16.0 (https://github.com/woocommerce/woocommerce-blocks/pull/4542)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-04 04:18:51 +00:00
renovate[bot] 37d6e6a956 Update dependency downshift to v6.1.5 (https://github.com/woocommerce/woocommerce-blocks/pull/4541)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-04 04:16:55 +00:00
renovate[bot] 6b594650d4 Update dependency chalk to v4.1.2 (https://github.com/woocommerce/woocommerce-blocks/pull/4540)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-04 02:38:44 +00:00
renovate[bot] c44c808421 Update dependency @types/lodash to v4.14.172 (https://github.com/woocommerce/woocommerce-blocks/pull/4539)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-04 02:27:40 +00:00
renovate[bot] ab3502e655 Update dependency @babel/preset-env to v7.14.9 (https://github.com/woocommerce/woocommerce-blocks/pull/4536)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-04 01:48:41 +00:00
renovate[bot] 23713ebadc Update Node.js to v12.22.4 (https://github.com/woocommerce/woocommerce-blocks/pull/4535)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-04 01:38:24 +00:00
Albert Juhé Lluveras 1103716389 Bump version to 5.7.0-dev 2021-08-02 16:50:40 +02:00
github-actions[bot] 23bf14ea3a Release: 5.6.0 (https://github.com/woocommerce/woocommerce-blocks/pull/4529)
* Empty commit for release pull request

* Add 5.6.0 changelog

* Add 5.6.0 testing notes

* 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-08-02 16:48:10 +02:00
Albert Juhé Lluveras db9b84d837 Update pagination class names to match our coding guidelines (https://github.com/woocommerce/woocommerce-blocks/pull/4528) 2021-08-02 13:36:46 +02:00
Seghir Nadir 420b400f8d fix possible memory leak (https://github.com/woocommerce/woocommerce-blocks/pull/4524) 2021-08-02 10:19:07 +01:00
Darren Ethier 5ebbd41220 Update relevant files due to L2->L0 policy change for minimum required versions. (https://github.com/woocommerce/woocommerce-blocks/pull/4484)
* update README files with version requirements

* update phpcs config

* update default environment for tests locally

* update workflows to only test against versions matching new policy

* update plugin header for new version policy

* restore older WP version support in E2E tests and PHPCS

I realized that we might still want to test against L2 WP versions in our E2E tests until those tests can be moved to WC core. While the feature plugin is L0, we still need to support L2 for existing features that are already surfaced in the WooCommerce plugin package.

Also with PHPCS if there are fixes to older things in the codebase, we will need to preserve the usage of L2 friendly (back-compat) code.

* add detection of Woo Core version to bootstrap

* update version used in phpunit tests

* add links to version policy update post

* restore 5.5.1 for Woo Core version

Getting errors with 5.5.2 - not sure what's going on but might be the tag isn't available as expected for 5.5.2 maybe?

* switch to hardcoded version header reference

PHPUNIT was tripping on this for some reason.

* remove older WP version e2e test workflows

* fix phpunit tests for new woo test suite

Woo Core now uses a container and has some mocks that are used in some legacy test helpers.

* remove explicit set WOO_VERSION for phpunit tests.

This should default to latest for the GH workflow runs.

* Update release PR template.

Add some explicit instructions around updating required WP and WC versions at time of release.

* use latest WOO_VERSION in .env

* some improvements to reduce the things needing updated

* remove extraneous code

* Add some more checklist items to release PR templates

* remove unnecessary conditional

* remove is-dismissible css classes

* Improve clarity of error messaging

* Update README.md

Co-authored-by: Albert Juhé Lluveras <contact@albertjuhe.com>

* remove checklist items about versions for patch releases

Co-authored-by: Albert Juhé Lluveras <contact@albertjuhe.com>
2021-07-29 10:52:34 -04:00
renovate[bot] 651495467f Update dependency core-js to v3.15.2 (https://github.com/woocommerce/woocommerce-blocks/pull/4515)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-28 17:31:38 +01:00
renovate[bot] 3fab2e7c88 Update dependency eslint to v7.31.0 (https://github.com/woocommerce/woocommerce-blocks/pull/4517)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-28 12:19:15 +00:00
renovate[bot] c9a0b2a6ab Update dependency dinero.js to v1.9.0 (https://github.com/woocommerce/woocommerce-blocks/pull/4516)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-28 04:09:41 +00:00
renovate[bot] 645446f48a Update npm to v6.14.14 (https://github.com/woocommerce/woocommerce-blocks/pull/4514)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-28 02:28:08 +00:00
renovate[bot] 6f35905cb8 Update dependency github-label-sync to v2.0.2 (https://github.com/woocommerce/woocommerce-blocks/pull/4513)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-28 01:44:19 +00:00
renovate[bot] 3fc33ff1aa Pin dependency @types/wordpress__block-editor to v2.2.9 (https://github.com/woocommerce/woocommerce-blocks/pull/4512)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-28 01:33:52 +00:00
renovate[bot] 7ef8c44f10 Update dependency autoprefixer to v10.3.1 (https://github.com/woocommerce/woocommerce-blocks/pull/4488)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-27 18:38:35 +00:00
renovate[bot] 98388f4cb0 Update dependency @types/wordpress__deprecated to v2.4.3 (https://github.com/woocommerce/woocommerce-blocks/pull/4486)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-27 18:25:35 +01:00