Commit Graph

40001 Commits

Author SHA1 Message Date
Ron Rennick 98b63e027f
Merge pull request #31207 from woocommerce/fix/api-package-tests
Replace `moxios` With `axios-mock-adapter` in @woocommerce/api Package
2021-11-16 10:47:56 -04:00
David Stone 74cd6f9be0
Allow empty arrays to be cached (#31077)
* Allow empty arrays to be cached

* Fix second check

* Add tests for attribute function changes

* Use InvokedRecorder to explicitly assert invocation count.

Provides more friendly failure messages and self documenting code.

* Code format fixes
2021-11-16 07:16:00 -07:00
And Finally 0bc7e4bc65
Combine My Subscriptions and Marketplace back into one Extensions page (#31085)
* Reverting changes in https://github.com/woocommerce/woocommerce/pull/30380, preparatory to merging the My Subscriptions and Marketplace pages back into one Extensions page.

* Moved category nav to a separate file.

* Added main nav tabs.

* Added category nav, styled the mobile version.

* Experiments with doing category tabs as a list.

* Styling category menu as a list of links in rectangular pills on desktop.

* Adjusting margins of product list in in-app marketplace.

* Removed `submenu_file` filter which called deleted `update_menu_highlight` method.

* Restored styling for update count bubble on My Subscriptions tab.

* Styling update bubble on My Subscriptions tab.

* Addressing design feedback. Restyled category pills to make them more obvious. Added `Browse categories` title before category menu on desktop. Changed `.addon-product-group-title` to an h2.

* Addressing feedback from https://github.com/woocommerce/woocommerce/pull/31085#pullrequestreview-806319880.

- Removing addition of `admin_title` filter calling deleted `update_my_subscriptions_title` method.
- Prepending `__DIR__` constant before path in `require` call.
2021-11-16 06:23:21 -07:00
Christopher Allford 2a29754ab2 Revised @woocommerce/api Test Suite
This commit replaces the moxios package with the
axios-mock-adapter, in order to fix all of the failing
tests. This felt necessary because changing the
TypeScript configuration would have the largest
potential impact on this package, due to it
being written natively in it. This package is a
great candidate for testing all of the new
configuration changes out on.
2021-11-15 23:06:47 -08:00
Christopher Allford c91dda177d
Fix E2E Tests (#31205)
* Removed Changlogger Autoload

* Changed Jetpack Changelogger Formatter Loading

Rather than using the Composer autoload, we should use the
changelogger's "filename" option to point directly at the file.
This keeps the file out of the autoloads, since it's possible that
plugins or packages may be symlinked and break the relative
path to the plugin.
2021-11-16 15:01:50 +13:00
Barry Hughes 0df6cc108d
Merge pull request #31026 from woocommerce/update/in-app-marketplace-price-suffix
Support dynamic `price_suffix` in in-app marketplace
2021-11-15 17:34:23 -08:00
Barry Hughes be1c879e47
Merge pull request #31196 from woocommerce/fix/30733
Set autocomplete off in cart quantity input field to show actual value.
2021-11-15 17:30:54 -08:00
Greg c3c96c1b26
Merge pull request #31125 from woocommerce/fix/30865
make expect calls in withRestApi optional
2021-11-15 11:38:40 -07:00
Barry Hughes a236bdca19
Merge pull request #31004 from matt-h/review-filter
Add Product Reviews filter for `review` comment type.
2021-11-15 10:26:28 -08:00
Ron Rennick e13869c442 fix merge conflicts 2021-11-15 13:03:14 -04:00
Ron Rennick 873fad37ce update utils changelog and readme 2021-11-15 12:59:28 -04:00
And Finally 24bafaa74d
Update plugins/woocommerce/includes/admin/class-wc-admin-addons.php
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2021-11-15 16:33:20 +00:00
Néstor Soriano 88621c6d01
Merge pull request #31169 from woocommerce/fix/unit-tests
Fix unit tests
2021-11-15 11:14:27 +01:00
vedanshujain 907c8d403b Set autocomplete off in cart quanity input field to show actual value.
Autocomplete is default to on in most browsers, this is usually fine, but FireFox will overwrite actual value with whatever user entered last. This means if we change the quanity in some other page, and then refresh the cart page, the last entered value in cart page will be displayed, overwriting the actual value passed by server.

So autcomplete is disabled by default for quanity input field, further a filter is added like other fields in case this needs to be modified.
2021-11-15 11:38:39 +05:30
vedanshujain 90bae59c43 Fix polyfill path. 2021-11-12 18:57:57 +05:30
vedanshujain dfdf593be1 Lock PHP platform confirm to last 7.0.x release to build correct dep tree. 2021-11-12 18:57:57 +05:30
vedanshujain 6c71a84b56 Fix unit test for WP 5.9 nightly by changing error message. 2021-11-12 18:57:57 +05:30
Christopher Allford 6b1aa73ab7 Moved Test File
It looks like a test file ended up at the top of the repository, this
moved it to the correct location.
2021-11-12 18:57:44 +05:30
Claudio Sanches fd3dfdbf3e
Merge pull request #31129 from woocommerce/distignore/project.json
Remove project.json from distribution
2021-11-11 18:34:22 -03:00
Claudio Sanches 7c145b9f69
Merge pull request #31148 from woocommerce/fix/repository-structure
Moved Test File
2021-11-11 18:33:45 -03:00
jonathansadowski 9db5589bcb
Merge pull request #31136 from woocommerce/add/changelogger
Add Jetpack Changelogger
2021-11-11 15:33:21 -06:00
Christopher Allford f3bd2739b8 Moved Test File
It looks like a test file ended up at the top of the repository, this
moved it to the correct location.
2021-11-11 13:16:27 -08:00
Paul Sealock ea14125d03 change reference to monorepo 2021-11-11 17:23:47 +13:00
Paul Sealock 15f26ee8f7 update to 3.0.2 of changelogger 2021-11-11 17:03:44 +13:00
Paul Sealock 5d6539d209 lock files 2021-11-11 16:55:05 +13:00
Paul Sealock 5c68568bb7 Revert "add nx composer-install targets"
This reverts commit ffaef64343.
2021-11-11 16:47:50 +13:00
Paul Sealock ffaef64343 add nx composer-install targets 2021-11-11 16:43:27 +13:00
Paul Sealock 20fb81eb5a point to next changelog 2021-11-11 16:38:38 +13:00
Paul Sealock e08cc18e16 js packages next changelogs 2021-11-11 16:34:50 +13:00
Paul Sealock 40918d28f2 core changelog content 2021-11-11 16:30:22 +13:00
Paul Sealock a5abab9ab0 Add Jetpack Changelogger 2021-11-11 16:28:10 +13:00
Paul Sealock ba87a69d6f
Build Core (#31117) 2021-11-11 15:13:08 +13:00
Paul Sealock a22de18f3f
Mirror Core to production repo (#31073) 2021-11-11 11:04:36 +13:00
Greg 8e69b7c477
Merge pull request #31104 from woocommerce/fix/29178
move clickAndWaitForSelector to utils package
2021-11-10 13:58:21 -07:00
Greg 405400cbf5
Merge pull request #31121 from woocommerce/fix/29381
add generic container environment variable support for PHP, DB
2021-11-10 13:24:16 -07:00
Ron Rennick ea16fab857
Merge pull request #31127 from woocommerce/fix/readme-shipping-classes
Fix minor issue in README table
2021-11-10 16:09:21 -04:00
roykho f75523a2ca
Remove project.json from distribution 2021-11-10 12:02:13 -08:00
Ron Rennick 7fc5e1e088 fix merge conflicts 2021-11-10 15:51:00 -04:00
Ron Rennick 7850b930ce fix merge conflicts 2021-11-10 15:48:20 -04:00
jonathansadowski 392d79ab01
Merge pull request #31122 from woocommerce/woocommerce-composer
Add some common composer executor commands for woocommerce so it can …
2021-11-10 12:08:34 -06:00
barryhughes 13f598a0b1
Whitespace. 2021-11-10 13:06:46 -05:00
barryhughes 55503c6bd6
Fix hook/callback name, add type hints. 2021-11-10 13:06:46 -05:00
Matt Harrison 594eedeca1
Add Product Reviews filter for `review` comment type.
Creates the filter option for the WordPress Comments page to filter to
product reviews.

Closes #29920
2021-11-10 13:06:20 -05:00
Greg 6ecafbbf2a Fix minor issue in README table 2021-11-10 10:52:09 -07:00
Greg 008e4f19c4
Merge pull request #31114 from woocommerce/fix/30867
move coupon delete, add tax classes, rates to withRestApi
2021-11-10 10:49:26 -07:00
Ron Rennick 6d4e90ef59 make expect calls in withRestApi optional 2021-11-10 12:25:09 -04:00
roykho 898ccb986f
Add some common composer executor commands for woocommerce so it can be used in Nx context 2021-11-10 06:34:54 -08:00
Ron Rennick ce20bd0931 add generic container environment variable support for PHP, DB 2021-11-10 06:48:59 -04:00
Ron Rennick 34e72a5f5f update readme, changelog 2021-11-10 05:24:54 -04:00
Roy Ho 9d08ac8ac3
Merge pull request #31095 from woocommerce/setup-nx
Setup nx
2021-11-09 20:26:37 -08:00