Commit Graph

6863 Commits

Author SHA1 Message Date
Jeff Stieler 8e215949f8 Fix vertical alignment of prices on checkout. 2022-01-12 14:59:13 -07:00
Jeff Stieler 9c3afa0ab3 Fix product vendor display on checkout. 2022-01-12 14:58:54 -07:00
Josh Betz e9e7bed39b We can still assume the old status is pending
Per the code comment, we were already explicitly assuming draft posts
are "pending". That's fine and shouldn't block us from setting new posts
to auto-draft.
2022-01-12 14:53:52 -06:00
Josh Betz 58aca9855e PoC: Allow auto-draft in API orders
For some operations in the API, like calculating taxes or shipping, it's
helpful to be able to have an order saved in the database. Having an
order object with an ID lets us perform other API actions on that order.
However, we also don't necessarily want these to show up on certain
screens.

Here we adopt the auto-draft status from core WordPress as a way to save
an order as a discrete object while signalling that it's not ready to
action yet.

Suggestions:

* auto-draft might not make sense given that it's used in core. We might
  want to use something like `draft` instead.
* We may want to track this separate set of statuses (trash, auto-draft)
  in a more official way, so we don't have to copy/paste around the
  codebase.
2022-01-12 14:53:52 -06:00
Joshua T Flowers 583590ecf9 Add Magento migration note (https://github.com/woocommerce/woocommerce-admin/pull/8145)
* Add Magento migration note

* Add changelog entry
2022-01-12 15:41:12 -05:00
Joshua T Flowers 287b00d11b Add REST endpoint to retrieve address locales (https://github.com/woocommerce/woocommerce-admin/pull/8116)
* Add REST endpoint to retrieve address locales

* Add changelog entry
2022-01-12 15:40:52 -05:00
Vedanshu Jain 6e08e1802f
Checkout tweaks for 2022 compatibility (#31619) 2022-01-12 13:17:49 -05:00
dnwjn f48358403e Add comments 2022-01-12 18:30:08 +01:00
Josh Betz 947b9c8ff1 Add doc comment for WC_REST_Coupons_Controller::prepare_objects_query 2022-01-12 11:06:44 -06:00
Josh Betz a88a7255b1 Fix infinite loop
Oops. We can't call $this->prepare_objects_query() unconditionally inside
prepare_objects_query(). This was my fault 🙃

b43af2ae16

To explicitly reference the parent implementation, we use `parent::`
2022-01-12 11:01:53 -06:00
Peter Fabian 38931e401b
Merge pull request #31395 from woocommerce/fix/remove-old-images
Removed assets referred to from deprecated functions.
2022-01-12 16:21:51 +01:00
Kevin Ang d974373b1f
Use inline `onload` event instead of jQuery `load` 2022-01-12 08:30:05 -06:00
Moon 29d4e96114 Make sure WP_ENVIRONMENT_TYPE is defined before checking the value (https://github.com/woocommerce/woocommerce-admin/pull/8133) 2022-01-12 14:48:20 +08:00
Ilyas Foo a0ffceec06 Move WC Pay welcome page from wc-calypso-bridge (https://github.com/woocommerce/woocommerce-admin/pull/8151)
* Move WC Pay welcome page from wc-calypso-bridge (https://github.com/woocommerce/woocommerce-admin/pull/8083)

* Add wc-pay-welcome-screen flags

* Add wc pay welcome page from wc calpyso bridge

* Add changelog

* Rename var to pageViewTimestamp to prevent confusion

* Remove unused code

* Make sure hasViewedWelcomePage is a boolean value

* Simplify storeViewWelcome

* Add payments remind me later note (https://github.com/woocommerce/woocommerce-admin/pull/8085)

* Add payments remind me later note

Fix wcpay path

* Add changelogs

* Update src/Notes/PaymentsRemindMeLater.php

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>

* Fix possibly_add_note syntax error

Update Events.php

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>

* Replace flag icon with component and svg background to png (https://github.com/woocommerce/woocommerce-admin/pull/8101)

* Activate promo note after WC Pay is activated (https://github.com/woocommerce/woocommerce-admin/pull/8104)

* Activate promo after wcpay is a\ctivated

* Add changelogs

* Add experimental to promo API path and limit the promo names

* Use ExPlat to render the WC Pay menu conditionally (https://github.com/woocommerce/woocommerce-admin/pull/8115)

* Check ExPlat to render the menu conditionally

* Update the experiment name

* Fix letter case to follow feature class naming convention

* Enable wc-pay-welcome-page feature in core config (https://github.com/woocommerce/woocommerce-admin/pull/8124)

* Use wc_calypso_bridge_payments_dismissed option name to respect the previously saved setting from wp.com

* Missed wc_calypso_bridge_payments_dismissed rename

* Use the existing code to prevent duplication

* Fix warning (https://github.com/woocommerce/woocommerce-admin/pull/8141)

* Change experiment to come after checks (https://github.com/woocommerce/woocommerce-admin/pull/8142)

* Change track path to (https://github.com/woocommerce/woocommerce-admin/pull/8143)

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

* Replace deprecated wc-admin-settings package

Co-authored-by: Moon <moon.kyong@automattic.com>
Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2022-01-12 14:46:33 +08:00
Jeff Stieler 0c4035615a Style order details. 2022-01-11 22:46:49 -07:00
Jeff Stieler 497738ea71 Tweak show password icon again. 2022-01-11 21:51:26 -07:00
Jeff Stieler 59f57a631d Fix radio buttons on cart. 2022-01-11 21:51:14 -07:00
Jeff Stieler 4718c65352 Style order button and responsive form width. 2022-01-11 21:33:29 -07:00
Jeff Stieler 4b83fa9bca Style checkbox input. 2022-01-11 21:18:37 -07:00
Jeff Stieler cbc4d31ec5 Fix margin on my account address form. 2022-01-11 20:43:57 -07:00
Jeff Stieler 5c67ccdb86 Style radio buttons. 2022-01-11 20:43:40 -07:00
Jeff Stieler e4d51dc017 Style checkout form. 2022-01-11 20:43:32 -07:00
Jeff Stieler a3d83d4aec Fix checkout column layout. 2022-01-11 18:08:06 -07:00
Jeff Stieler e20d76a7f7 Style cart totals table. 2022-01-11 15:46:09 -07:00
Jeff Stieler 5224c4c83d Style "view cart" and "return to shop". 2022-01-11 15:14:31 -07:00
Jeff Stieler 9b8a73875d Fix add to cart buttons. 2022-01-11 14:58:16 -07:00
Jeff Stieler d20aa95d03 Fix password input. 2022-01-11 14:58:08 -07:00
Jeff Stieler 9ef7e0c778 Style cart items table. 2022-01-11 14:57:52 -07:00
Joel Thiessen 8ab602de9d Adding allowed plugins to composer configuration (https://github.com/woocommerce/woocommerce-admin/pull/8139) 2022-01-11 12:14:28 -08:00
Jeff Stieler 51f3e1c3f0 Style login form. 2022-01-11 11:04:11 -07:00
Jeff Stieler 96241487d5 Style tables on my account. 2022-01-11 11:04:11 -07:00
Jeff Stieler ca7a3eec62 Fix input height - affected add to cart. 2022-01-11 11:04:11 -07:00
Jeff Stieler c6dd0f0ab5 Remove button inner border. 2022-01-11 11:04:11 -07:00
Jeff Stieler d0f4691b65 Fix notice/message bottom margin. 2022-01-11 11:04:11 -07:00
Jeff Stieler 7e28e79f26 Style address edit form. 2022-01-11 11:04:11 -07:00
Jeff Stieler 540cbf587a Initial styles for my account template. 2022-01-11 11:04:11 -07:00
Jeff Stieler f07a9d40ad Fix message display on my account page. 2022-01-11 11:04:11 -07:00
Vedanshu Jain 487c4f6e17
2022 theme stylings for product and shop pages. (#31536)
* 2022 theme stylings for product and shop pages.

* Add support for variable products and gallery.

* Add margin to reset button.

* Add support grouped product.

* Disable breadcrumb and add notice styling child.

* Reduce heading size on title page.

* Reduce font-size for content in tabs.

* Fixes for PR 31536 (#31611)

* Set max width to 1000px for shop and products.

* Display breadcrumbs on product pages.

* Remove admin styles.

* Fix result count and ordering control alignment.

* Fix onsale alignment on single product pages.

Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>

Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>
2022-01-11 12:57:48 -05:00
Moon 7348c302ec Fix duplicated back button with two-cols experiment (https://github.com/woocommerce/woocommerce-admin/pull/8138)
* Do not render individual task in the extended component when it is rendered with two column task component
* Change var name to shouldRenderTask
2022-01-11 08:21:50 -08:00
Josh Betz b1da020e07 Fix indentation
We use spaces to align the `=>` instead of a mix of tabs and spaces.
2022-01-11 10:08:12 -06:00
Miguel Perez Pellicer 06faa5daa6 Fix logic in get_template_loader_default_file function for loading custom product taxonomies. 2022-01-11 12:30:14 +01:00
Tom Cafferkey c01e9e6582 Allow relevant block templates to be listed in the edit product view 2022-01-11 11:21:42 +00:00
anitaamurthy 9a34ccc7ba Merge branch 'trunk' into issue/31562-filter-coupons-by-status
# Conflicts:
#	plugins/woocommerce/includes/data-stores/class-wc-coupon-data-store-cpt.php
#	plugins/woocommerce/tests/legacy/unit-tests/coupon/data.php
2022-01-11 11:36:16 +05:30
Jeff Stieler 030cea98c8 Improve Customers Sync Performance (https://github.com/woocommerce/woocommerce-admin/pull/8021)
* Avoid unnecessary customer ID retrieval.

* Ignore order count when validating customers.

WC_Customer::get_order_count causes a full table scan without cache.

* Don't get customer names from their last order.

WC_Customer::get_last_order has to scan all _customer_user meta rows.

* Add changelog entry.

* Fix changelog.

* Cache customer ID in Order override classes.

* Check all user roles.
2022-01-10 19:22:09 -05:00
Joshua T Flowers 2dde3f5fa4 Add custom error for store details email and allow continue (https://github.com/woocommerce/woocommerce-admin/pull/8110)
* Add custom error for store details email and allow continue

* Add changelog entry
2022-01-10 14:18:19 -05:00
Anitaa Murthy 0a1b850fb3
Issue/31555 add status field coupons api (#31561)
* Added the status field to the GET Coupon(s) API endpoint

* Updated existing unit test for reading coupons from the db

* Updated tests for version 2&3 when fetching coupons

* Update plugins/woocommerce/includes/data-stores/class-wc-coupon-data-store-cpt.php

Co-authored-by: Josh Betz <j@joshbetz.com>

* Update plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-coupons-v2-controller.php

Co-authored-by: Josh Betz <j@joshbetz.com>

* Update plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-coupons-v2-controller.php

Co-authored-by: Josh Betz <j@joshbetz.com>

* Updated unit test for getters and setters

* Fix indentation

* Fix indentation.

Co-authored-by: Josh Betz <j@joshbetz.com>
Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>
2022-01-10 13:41:32 -05:00
jonathansadowski 4f482cff26
Merge pull request #31603 from woocommerce/fix/dep-sass-format
Use calc function to prevent deprecated warnings when building
2022-01-10 10:19:08 -06:00
Brian 26d8a667b5
small text change 2022-01-10 16:03:31 +01:00
roykho 39a048631c
Use calc function to prevent deprecated warnings when building 2022-01-10 06:40:40 -08:00
louwie17 48c2742099 Update changelog with 3.0.3 changes (https://github.com/woocommerce/woocommerce-admin/pull/8130) 2022-01-10 08:22:19 -04:00
Jeff Stieler 79c9b66714 Prevent photoswipe tap from interacting with elements directly underneath.
Props @Edsuns and @andi34.
2022-01-07 18:02:46 -07:00
Brian f736216f01
Update class-wc-settings-accounts.php 2022-01-08 01:17:33 +01:00
Brian 1d7b1a7171
fixes #31560
fixes #31560 - change string 'automatically generate an account password'
2022-01-08 01:13:22 +01:00
Brian 9a6ba5cac9
fix #31586
fix #31586 - Special characters in email subject
2022-01-08 01:05:43 +01:00
Raluca Stan cbb6c6b4ab
Merge branch 'trunk' into update/woocommerce-blocks-6.7.0 2022-01-07 18:37:05 +01:00
Raluca Stan 56bc2cec33 Update Woo Blocks version to 6.7.1 2022-01-07 18:23:32 +01:00
anitaamurthy f43ae46ff3 Merge branch 'issue/31562-filter-coupons-by-status' of https://github.com/woocommerce/woocommerce into issue/31562-filter-coupons-by-status 2022-01-07 16:46:20 +05:30
anitaamurthy 2a43c843ec Updated filter to support backward compatibility 2022-01-07 16:45:40 +05:30
Anitaa Murthy b43af2ae16
Update plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-coupons-controller.php
Co-authored-by: Josh Betz <j@joshbetz.com>
2022-01-07 16:38:36 +05:30
Nikos Papadakis 67d81bac8d Fix PHPDoc Type 2022-01-07 11:50:53 +02:00
Nestor Soriano d3036beff7
Changes in the notice for the PHP 7.2 bump:
- Update the link to the announcement post
- Extend the notice text with "Your server is currently running an
  older version of PHP, so this change will impact your store".
2022-01-07 10:25:19 +01:00
Chi-Hsuan Huang 016c8887c9 Fix storybook cannot resolve @woocommerce/settings error (https://github.com/woocommerce/woocommerce-admin/pull/8128) 2022-01-07 13:05:22 +08:00
Chi-Hsuan Huang b9d788c457 Fix variations table product filter (https://github.com/woocommerce/woocommerce-admin/pull/8120)
* Fix variations table product filter query

* Add changelogs
2022-01-07 12:25:44 +08:00
Chi-Hsuan Huang f47a5c7898 Fix misaligned status column on orders report (https://github.com/woocommerce/woocommerce-admin/pull/8121)
* Fix misaligned status column on order report

Add labelPositionToLeft prop to order-status component

Set labelPositionToLeft=true for <OrderStatus> on orders report table

Remove style import

* Add changelogs

Add changelogs
2022-01-07 11:37:47 +08:00
Lourens Schep af929b5b39 Version bump WooCommerce Admin to 3.0.3 2022-01-06 19:35:52 -04:00
louwie17 0e3286772e Check if WC Pay is supported before adding gateway (https://github.com/woocommerce/woocommerce-admin/pull/8122)
* Check if WC Pay is supported before adding gateway

* Add changelog
2022-01-06 18:15:08 -04:00
Joel Thiessen 9f107352ad Adding changelogs from 3.0.2 release (https://github.com/woocommerce/woocommerce-admin/pull/8118) 2022-01-06 09:34:11 -08:00
roykho 3953686056
Update the recommended engine versions to use 2022-01-06 09:14:13 -08:00
Raluca Stan 5d74f6a691 Fix the update of composer.lock 2022-01-06 14:41:19 +01:00
Raluca Stan 7f733646f1 Revert "Update WooCommerce blocks package to 6.7.0"
This reverts commit ccf5db4f3a.
2022-01-06 14:37:05 +01:00
louwie17 26a9089f58 Make use of the woocommerce_allow_marketplace_suggestions filter (https://github.com/woocommerce/woocommerce-admin/pull/8117)
* Make use of the woocommerce_allow_marketplace_suggestions filter in WooCommerce Payment promotion

* Add changelog
2022-01-06 09:00:38 -04:00
louwie17 3998f88597 Remove unpublished wc-admin-settings package and update getSetting usage (https://github.com/woocommerce/woocommerce-admin/pull/8057)
* Remove use of wc-admin-settings from packages

* Move getSetting to getAdminSetting and remove wc-admin-settings package

* Add changelog

* Update package.json and remove last use of wc-admin-settings
2022-01-06 08:53:30 -04:00
anitaamurthy 89d8cb6a9b Merge branch 'issue/31555-add-status-field-coupons-api' into issue/31562-filter-coupons-by-status 2022-01-06 10:54:41 +05:30
anitaamurthy 5b582de829 Updated unit test for getters and setters 2022-01-06 10:48:33 +05:30
Anitaa Murthy 74adbd18f5
Update plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-coupons-v2-controller.php
Co-authored-by: Josh Betz <j@joshbetz.com>
2022-01-06 10:42:04 +05:30
Anitaa Murthy b7e2a58cea
Update plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-coupons-v2-controller.php
Co-authored-by: Josh Betz <j@joshbetz.com>
2022-01-06 10:41:57 +05:30
Anitaa Murthy e6133734f2
Update plugins/woocommerce/includes/data-stores/class-wc-coupon-data-store-cpt.php
Co-authored-by: Josh Betz <j@joshbetz.com>
2022-01-06 10:41:46 +05:30
Chi-Hsuan Huang 0c028b4a87 Add resolution check to ensure setup-wizard redirection on homescreen is stable (https://github.com/woocommerce/woocommerce-admin/pull/8114)
* Add resolution check to ensure setup-wizard redirection is stable

* Add changelogs
2022-01-06 09:47:09 +08:00
Barry Hughes 747cb6b718
Merge pull request #30955 from drjamesj/fix/30828
Fixes #30828
2022-01-05 15:51:11 -08:00
James 232e47611b Fixes #30828 2022-01-05 14:11:57 -08:00
roykho 0f67d858e9
Use application installed Grunt instead of requiring global install 2022-01-05 13:18:09 -08:00
roykho 26c3171101
Explicitly add plugins allowed 2022-01-05 12:09:29 -08:00
anitaamurthy 820cdbe00c Added unit tests for filtering coupons by status 2022-01-05 21:05:24 +05:30
John Regan 757094ea43 Add var to woocommerce_variation_header hook 2022-01-05 08:56:01 -06:00
anitaamurthy 5f881728e5 Added new unit test class for coupons v3 controller 2022-01-05 18:38:48 +05:30
anitaamurthy 53cdfa9c24 Added option to filter coupons by status 2022-01-05 18:16:22 +05:30
anitaamurthy 07e8c0667b Updated tests for version 2&3 when fetching coupons 2022-01-05 16:36:09 +05:30
Chi-Hsuan Huang 91fc05dcfe Fix misaligned rows per page dropdown (https://github.com/woocommerce/woocommerce-admin/pull/8113)
* Fix misaligned rows per page dropdown

* Add changelogs

Add changelogs
2022-01-05 18:01:42 +08:00
Chi-Hsuan Huang af99137dff Truncate the site title with an ellipses on the second line (https://github.com/woocommerce/woocommerce-admin/pull/8112)
* Truncate the site title with ellipses on the second line

Fix style

* Add changelogs

* Add title property to nav site title

Update
2022-01-05 13:39:33 +08:00
anitaamurthy 160cf58410 Updated existing unit test for reading coupons from the db 2022-01-05 10:32:53 +05:30
renovate[bot] 1f0385561a Update dependency nth-check to 2.0.1 [SECURITY] (https://github.com/woocommerce/woocommerce-admin/pull/8050)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-05 11:02:20 +08:00
renovate[bot] 84ae45c2ef Update dependency json-schema to 0.4.0 [SECURITY] (https://github.com/woocommerce/woocommerce-admin/pull/8049)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-05 11:00:30 +08:00
Moon 8983852686 Render the activity panel when the tasklist is hidden (https://github.com/woocommerce/woocommerce-admin/pull/8111) 2022-01-04 18:23:34 -08:00
jonathansadowski 3ce4a7c911
Update class-wc-admin-notices.php 2022-01-04 13:03:02 -06:00
Nestor Soriano 860a8b9e84
Add an admin notice about the upcoming change in PHP requirements
The minimum required PHP version will be 7.2 as of WooCommerce 6.5.
This adds a dismissable admin notice to PHP 7.0 and 7.1 users.
2022-01-04 17:21:19 +01:00
Raluca Stan ccf5db4f3a Update WooCommerce blocks package to 6.7.0 2022-01-04 14:34:37 +01:00
renovate[bot] 233a8a1da1 Update dependency prismjs to 1.25.0 [SECURITY] (https://github.com/woocommerce/woocommerce-admin/pull/8051)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-04 20:00:18 +08:00
renovate[bot] 718aceac64 Update dependency ansi-regex to 5.0.1 [SECURITY] (https://github.com/woocommerce/woocommerce-admin/pull/8048)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-04 19:57:55 +08:00
Ján Mikláš fb9f50a2e5 Add MailPoet to Installed marketing extensions (https://github.com/woocommerce/woocommerce-admin/pull/8091)
* Add MailPoet to Installed marketing extensions

Fixes woocommerce/woocommerce-admin#8088

* Add changelogs
2022-01-04 18:00:22 +08:00
anitaamurthy 9fee3b0b4e Added the status field to the GET Coupon(s) API endpoint 2022-01-04 15:20:37 +05:30
Chi-Hsuan Huang f838727546 Replace all docs.woocommerce.com links with woocommerce.com's (https://github.com/woocommerce/woocommerce-admin/pull/8105)
* Replace all docs.woocommerce.com links with woocommerce.com/documentation
* Add changelogs

Update changelogs

* Update woocommerce-amazon-ebay-integration doc url
2022-01-04 17:03:58 +08:00
Chi-Hsuan Huang 4aaa938c3e Fix ci php unit tests with woocommerce >= 6.0.0 (https://github.com/woocommerce/woocommerce-admin/pull/8108) 2022-01-04 17:03:30 +08:00
Vedanshu Jain aee1f0880f
Merge pull request #31522 from woocommerce/fix/31518-support-for-new-block-templates-naming-conventions
Add support for Gutenberg 12.1.0 block template naming convention
2022-01-04 13:53:37 +05:30
Chi-Hsuan Huang 950455827b OBW: Fix free extensions list isn't updated after store location or industry is changed (https://github.com/woocommerce/woocommerce-admin/pull/8099)
* Rename variables and remove unnecessary select calls in selective-extensions-bundle

* Invalidate getFreeExtensions resolution whenever country or industry
changed

* Fix grammar

* Add changelogs
2022-01-04 11:31:58 +08:00
Chi-Hsuan Huang a2f0390ac8 Skip opening the dropdown if the click event is from the error message (https://github.com/woocommerce/woocommerce-admin/pull/8094)
* Skip focusing the dropdown if the click event is from the error message

fix woocommerce/woocommerce-admin#7906

Update conmments

* Add changelogs
2022-01-04 11:00:05 +08:00
Tom Cafferkey 49681e6b24 Change continue to break in foreach loop to prevent further iterations 2022-01-03 12:01:45 +00:00
Chi-Hsuan Huang 2f290d79a9 Reset "install_timestamp" if it's not numeric to avoid TypeError (https://github.com/woocommerce/woocommerce-admin/pull/8100)
* Reset install_timestamp if it's not numeric to avoid type error

Fix indent

* Add changelogs

* Remove ununnecessary logic
2022-01-03 15:51:51 +08:00
Nagesh Pai 6bff4ff4d4
Merge branch 'woocommerce:trunk' into fix/30209 2022-01-01 19:19:03 +05:30
Nagesh Pai f8afaf8d42 CSS fix for checkout page in Twenty Twenty. Cleaned an empty rule in the Twenty Twenty SCSS file 2021-12-31 22:11:51 +05:30
Fernando Marichal 04567bb8fd Bump woocommerce-admin version to 3.0.1 2021-12-30 17:01:21 -03:00
Ilyas Foo aa9f2df07f Sync version and changelogs after 3.1.0 beta (https://github.com/woocommerce/woocommerce-admin/pull/8092)
* Bump version to next dev version

* Update testing instructions

* Update changelogs
2021-12-30 10:35:22 +08:00
Chi-Hsuan Huang 755f99d5a1 Disallow whitespace as a platform name input (https://github.com/woocommerce/woocommerce-admin/pull/8090)
* Disallow whitespace as the platform name input

* Add changelogs
2021-12-30 10:05:12 +08:00
jonathansadowski 6cc335c35a
Merge pull request #31523 from woocommerce/fix/block-theme-check
Update block theme check to work in WP 5.9 without Gutenberg enabled
2021-12-29 12:13:03 -06:00
Veren 4da4c1d12f Simplify possible path generation 2021-12-29 15:28:21 +01:00
Fernando cb8eff85f5 Changelog - Update release date (https://github.com/woocommerce/woocommerce-admin/pull/8093)
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-12-29 08:04:23 -03:00
Albert Juhé Lluveras 91d2b68769 Update block theme check to work in WP 5.9 without Gutenberg enabled 2021-12-29 11:10:14 +01:00
Chi-Hsuan Huang ac78e74ef6 OBW: Hide the extensions header when no available plugins in the category (https://github.com/woocommerce/woocommerce-admin/pull/8089)
* Hide extension list header if no plugins under the category

* Refactor variable naming and add missing hook deps

* Add changelogs

* Add tests for <ExtensionSection />
2021-12-29 16:32:19 +08:00
Fernando Marichal 921b0c19f5 Bump woocommerce-admin version to 3.0.0 2021-12-28 17:02:22 -03:00
Veren b2239b592a Add support for Gutenberg 12.1.0 block template naming convention
Gutenberg 12.1.0 has changed the convention for the directory paths from
`block-templates` and `block-template-parts` to `templates` and `parts`
respectively.

Previously, WooCommerce was checking whether block templates were
available, only in the `block-templates` directory.

This commit adds support for both older and newer naming conventions,
as well as parents and child themes.

Fixes #31518
2021-12-28 19:25:13 +01:00
Adrian Duffell a0278af8ad Syc 2.9.x changelog entries (https://github.com/woocommerce/woocommerce-admin/pull/8044)
* Add changelog

* Fixed style

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-12-28 10:36:16 -03:00
Moon c84a8f4d40 Add/8073 add action_click event to inbox 2.0 (https://github.com/woocommerce/woocommerce-admin/pull/8086)
* Prevent firing multiple panel view event

* Add inbox_action_click event when a note gets clicked

* Add changelog
2021-12-27 16:38:31 +08:00
Moon ccd2495ff4 Do not initialize WC Pay promotion if spec is empty (https://github.com/woocommerce/woocommerce-admin/pull/8087) 2021-12-27 16:29:51 +08:00
Tam Mullen 74445e23d5 Add GitHub templates for issues and PRs 2021-12-24 16:45:52 +00:00
Niels Lange db2be99ea8 Revert #30044 2021-12-24 19:59:26 +07:00
Silicon Forks 27dc83a779 Change '__return_true' to true in apply_filters()
Presumably the original author of this code intended to use true here
instead of '__return_true'; '__return_true' is commonly used with
add_filter() but it does not really make sense to use it here.

This was not really a bug because '__return_true' is a "truthy" value,
so the logic was working as intended; I am changing it to true just to
improve code readability.
2021-12-23 13:39:38 -04:00
Chi-Hsuan Huang 61cdae82c4 Fix unexpected analytics report table filter results (https://github.com/woocommerce/woocommerce-admin/pull/8072)
* Fix unexpected analytics report table filter results

* Add changelogs

Update changelogs
2021-12-23 16:52:39 +08:00
Fernando 566bf788a4 OBW: Update WC Pay label on recommended extensions list (https://github.com/woocommerce/woocommerce-admin/pull/8038)
* Modified WC-Pay label

* Add changelog

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-12-22 09:22:29 -03:00
Tom Cafferkey c9c5f86d30 Update WooCommerce Blocks to 6.5.1 2021-12-22 11:55:17 +00:00
Chi-Hsuan Huang a43bcaca0f Remove low performing inbox notes (https://github.com/woocommerce/woocommerce-admin/pull/8054)
* Remove Marketing note

* Remove DrawAttention note

Remove DrawAttention note

* Remove NeedSomeInspiration note

* Remove ChooseNiche note

* Remove StartDropshippingBusiness note

* Remove FilterByProductVariationsInReports note

* Remove LearnMoreAboutVariableProducts note

* Remove GettingStartedInEcommerceWebinar note

* Remove deprecated note tests

* Add changelogs

Update changelogs

* Remove navigation feedback notes (https://github.com/woocommerce/woocommerce-admin/pull/8055)

* Remove navigation feedback note

issue woocommerce/woocommerce-admin#8043

* Add changelogs
2021-12-22 13:11:10 +08:00
Joshua T Flowers 0ef8959a22 Allow content data note props to be passed from remote sources (https://github.com/woocommerce/woocommerce-admin/pull/8047)
* Allow content data note props to be passed from remote sources

* Add changelog entry
2021-12-21 10:52:15 -05:00
Fernando 00055f69e4 Add e2e tests for PR 7963 (https://github.com/woocommerce/woocommerce-admin/pull/7996)
* Add e2e tests for PR 7963

* Fix lint

* Verify the next screen is shown

* Simplifying product types step

* Add className to SelectControl

* Fix e2e test

* Removed not used dependency

* Add method `expandRecommendedBusinessFeatures`

* Fixed style selectors

* Add default value to `name`.

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-12-21 09:58:15 -03:00
Veljko V 03a4ed7ed9
Update plugins/woocommerce/tests/performance/requests/merchant/orders-search.js
Co-authored-by: Tam Mullen <tam.mullen@automattic.com>
2021-12-21 13:56:11 +01:00
Veljko V 0fb8047bcc
Update plugins/woocommerce/tests/performance/requests/merchant/orders-search.js
Co-authored-by: Tam Mullen <tam.mullen@automattic.com>
2021-12-21 13:54:23 +01:00
Veljko V 829d9b3035
Update plugins/woocommerce/tests/performance/requests/merchant/orders-search.js
Co-authored-by: Tam Mullen <tam.mullen@automattic.com>
2021-12-21 13:54:12 +01:00
Chi-Hsuan Huang b5ebf374e3 Allow storybook use different style based on a config (https://github.com/woocommerce/woocommerce-admin/pull/8046)
* Add style links to storybook preview head based on the env

Use *style.css or *style-rtl.css based on a env flag so we don't need to modify
the preview-head.html manully.

* Add npm run storybook-rtl

* Update the storybook-rtl command description
2021-12-21 10:48:28 +08:00
Chi-Hsuan Huang a04ac544f8 Fix select-control component label value alignment css style (https://github.com/woocommerce/woocommerce-admin/pull/8045)
* Fix(select-control): fix label value alignment

Add padding to input value to have same algin space with input label.

fixed issue 7786

* Add changelogs

Fix changelog entry

Add changelogs
2021-12-20 17:54:22 +08:00
Ron Rennick 669fcef988 Product version bump update 2021-12-17 14:13:06 -04:00
Ron Rennick 5bd9f109b5 add change log header for 2.0.5 2021-12-17 14:11:16 -04:00
Ron Rennick fe5d4d6c2e
Merge pull request #31400 from woocommerce/add/plugin-upload-test-functionality
Added plugin upload and test functionality
2021-12-17 12:22:33 -04:00
jonathansadowski 3c96dec9d7
Merge pull request #31471 from woocommerce/update/woocommerce-blocks-6.5.0
Update WooCommerce Blocks package to 6.5.0
2021-12-17 08:41:11 -06:00
Néstor Soriano 1a90c7245e
Merge pull request #31088 from LuigiPulcini/add/bulk-action-shortcircuit
Added logic to prematurely return on custom actions
2021-12-17 15:21:52 +01:00
Tom Cafferkey bb5b1a1e90 composer.lock update 2021-12-17 09:01:10 +00:00
Tom Cafferkey e364a67f42 Update package version 2021-12-17 08:52:25 +00:00
Tam Mullen 67a81463e4
Merge pull request #31007 from woocommerce/performance/newest-test-category-page
Add new performance test Shopper / Browse products by category
2021-12-16 21:57:10 +00:00
Greg e7d3a65752 Merge branch 'trunk' of https://github.com/woocommerce/woocommerce into add/plugin-upload-test-functionality 2021-12-16 13:39:15 -07:00
Greg 77bb3e958d Logic for private repos and minor tweaks 2021-12-16 09:58:11 -07:00
Roy Ho f7c93a6823
Merge branch 'trunk' into standardize-config-files 2021-12-16 05:44:48 -08:00
Joel Thiessen 8b0b840a89 Bumping WCA version to 3.0.0-rc.1 2021-12-15 15:48:39 -06:00
Greg 7c8bd91b25 Use describeIf to check for running plugin upload 2021-12-15 13:55:24 -07:00
Greg 6e5005b0d4
Merge branch 'trunk' into add/plugin-upload-test-functionality 2021-12-15 13:43:46 -07:00
Christopher Allford 4d18d16236
Merge pull request #31450 from woocommerce/dev/bump-woo-admin-2-9-4
Bump Woo Admin to 2.9.4
2021-12-15 10:52:58 -08:00
Barry Hughes b3a54801a1
Merge pull request #31394 from tc33/fix/31393-geolocating-country-codes
Fix #31393 to use country from headers only if geolocating current user
2021-12-15 09:52:55 -08:00
Joel Thiessen 2579f063d9 Sync up changelogs after 3.0.0-rc.1 release (https://github.com/woocommerce/woocommerce-admin/pull/8032) 2021-12-15 08:54:48 -08:00
Roy Ho af3585b67b
Merge branch 'trunk' into standardize-config-files 2021-12-15 07:13:58 -08:00
roykho 0f369d7040
Update package and node version 2021-12-15 07:08:37 -08:00
Adrian Duffell 8c98b437da Bump Woo Admin to 2.9.4 2021-12-15 22:49:15 +08:00
Ilyas Foo 21f0a4e618 Bump WCA version to 2.9.3 2021-12-15 11:38:06 +08:00
Ron Rennick b478bbb949
Merge pull request #31415 from woocommerce/fix/jest-e2e-retries
Fix jest e2e retries
2021-12-14 22:34:22 -04:00
Paul Sealock eb453cce20
Add NX commands for Jetpack Changelogger (#31166) 2021-12-15 14:14:17 +13:00
roykho 47e39bcafc
Restore eslint dep 2021-12-14 12:22:50 -08:00
Christopher Allford ea1871abb9 Updated Changelog 2021-12-14 11:07:37 -08:00
Greg 2762c9821a Merge branch 'trunk' of https://github.com/woocommerce/woocommerce into add/plugin-upload-test-functionality 2021-12-14 10:49:53 -07:00
roykho 3ba275e6c9
Deprecate stylelint-config-wordpress with current package 2021-12-14 09:14:54 -08:00
roykho 3578d61c0a
Replace deprecated babel-eslint with @babel/eslint-parser 2021-12-14 09:08:24 -08:00
roykho 85297dd1a1
Use sass package instead of node-sass 2021-12-14 08:57:28 -08:00
Joshua T Flowers 7aeb0a19d2 Migrate header items to slot fills (https://github.com/woocommerce/woocommerce-admin/pull/7805)
* Add SlotFill area to header

* Add activity panel fill

* Move activity panel to root client folder

* Move activity panel registration to its own folder

* Add navigation fill

* Add page title slotfill

* Slot fill the back button

* Move mobile banner to slot fill

* Fix navigation fill on embed pages

* Add changelog entry

* Allow order prop to header item fill

* Split header into before and after

* Fix header title gaps

* Fix nav and mobile app banner placement

* Fix display options import

* Only use last item for page header title fill

* Use function to pass fill props instead of bind

* Rename header slots

* Fix mobile banner dismissal check

* Fix up inbox panel rename

* Update task title in tests

* Fix up task status retrieval
2021-12-14 11:56:42 -05:00
roykho ff7c615770
Move gitignore paths to root when it makes sense 2021-12-14 08:21:37 -08:00
John Regan e31086327b Fix/7660 Remove note->read_meta (https://github.com/woocommerce/woocommerce-admin/pull/7988)
* 7660 Remove note->read_meta

* Fix/7660 Update changelog

* 7660 Remove note->save_meta_data
2021-12-14 09:43:24 -04:00
erikdemarco 7b0b6e3db4
Filter enhancement
add field key to 'woocommerce_checkout_required_field_notice' filter. Currently if we want to hook any field we can only hooked on field's label. This is not good because field can have duplicate label. And field label can hae many variation because of translations. We need to add field key to the filter so we can hook on it instead.
2021-12-14 17:09:12 +07:00
Moon 2e9bbae66f Bump woocommerce-admin version to 2.9.2 2021-12-13 16:11:30 -08:00
Greg 54d1379deb Rename plugin_repository variable 2021-12-13 16:11:22 -07:00
Greg fba795421d Merge branch 'trunk' of github.com:woocommerce/woocommerce into add/plugin-upload-test-functionality 2021-12-13 15:45:32 -07:00
Joshua T Flowers 602ff9500c Fix shipping task completion status (https://github.com/woocommerce/woocommerce-admin/pull/8031)
* Remove destructured props in favor of explicit props

* Optimistically complete task when rates are updated

* Add changelog entry
2021-12-13 16:13:05 -05:00
MD Sultan Nasir Uddin 705a383de5
Fix hard coded email template path (#31321) 2021-12-13 14:03:45 -07:00
roykho 26121fa059
Designate root level eslint config 2021-12-13 08:13:40 -08:00
jamelreid b4d0bc0dab Enabled jest retries locally 2021-12-10 11:01:58 -05:00
xristos3490 a5e4f1be2f Fix the filter argument 2021-12-10 17:57:15 +02:00
xristos3490 304840bb6b Cleanup 2021-12-10 17:47:58 +02:00
xristos3490 8ee6fa6fbe Add refund related filters to html-order-items template 2021-12-10 17:45:20 +02:00
Fernando 020ad3a58d Add featured pill for MailPoet and Google Listings in marketing task (https://github.com/woocommerce/woocommerce-admin/pull/8009)
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-12-10 08:01:13 -05:00
Jamel Noel Reid 22721e0a70
Merge pull request #31336 from woocommerce/add/jest-retry
Retry failed E2E tests using Jest
2021-12-10 07:46:09 -05:00
Vedanshu Jain bd5cf4adca
Merge pull request #31373 from woocommerce/fix/28459
Db version option consistency
2021-12-10 16:15:02 +05:30
Ilyas Foo fd396d018d Add Inbox Note example code to docs (https://github.com/woocommerce/woocommerce-admin/pull/8019)
* Add Inbox Note example extension

* Typo

* Put into class

* Fix premature class import, moved note check logic to its own method
2021-12-10 12:52:03 +08:00
jamelreid 68ca895e8b Removed parameter 2021-12-09 16:46:55 -05:00
Jeff Stieler 7f86a45292
Adds the image size to gallery nav (waiting the image load) (#31407)
* adds the image size to gallery nav

* replaces tabs with spaces

Co-authored-by: Erik Golinelli <erik@codekraft.it>
2021-12-09 13:22:07 -07:00
Moon 149abf09bc Do not truncate non-U.S notes. (https://github.com/woocommerce/woocommerce-admin/pull/8022)
* Do not truncate non-U.S notes.

* Include en_AU, en_CA, en_GB, and en_ZA
2021-12-09 10:43:04 -08:00
Adrian Duffell 85f7ee83f5 Add Testing Instructions for Inbox 2.0 (https://github.com/woocommerce/woocommerce-admin/pull/8025) 2021-12-09 18:22:32 +08:00
Moon 98c9d8adc5 Do not truncate notes created before WC 6.1 release (https://github.com/woocommerce/woocommerce-admin/pull/8023)
* Do not truncate notes created before WC 5.9 release

* Change WC version number
2021-12-08 19:08:47 -08:00
Greg 473c4e5279 Added upload and test functionality 2021-12-08 15:56:42 -07:00
jamelreid 6086223708 Added setupJestRetries to beforeAll block 2021-12-08 14:00:31 -05:00
jamelreid f4472d74ec Merge branch 'trunk' into add/jest-retry 2021-12-08 13:03:23 -05:00
Peter Fabian d53a472bf1
Merge pull request #31105 from matchboxdesigngroup/fix/a11y-improvement-add-to-cart-variable
A11y improvement to the variable product add to cart table on product singles
2021-12-08 18:38:01 +01:00
Cullen Whitmore be19efe729 Bump the version string in the template header to 6.1.0 2021-12-08 10:13:11 -06:00
Joel Thiessen 6b687e4196 Sync up changelogs after 3.0.0-beta.2 release (https://github.com/woocommerce/woocommerce-admin/pull/8016) 2021-12-08 08:11:12 -08:00
Peter Fabian 88943b0f67 Removed assets referred to from deprecated functions. 2021-12-08 14:58:34 +01:00
Tom Castle 23fe784e5a Fix #31393 to use country from headers only if geolocating current user 2021-12-08 12:53:20 +00:00
Adrian Duffell e4d670e035 Bump woocommerce-admin package to 2.9.1 2021-12-08 12:19:46 +08:00
Peter Fabian edcffa9912
Merge pull request #31338 from woocommerce/fix/28166-coupon-item-meta-data
Consistently Store Coupon Data in Order Item Meta
2021-12-07 18:35:08 +01:00
Barry Hughes b439bbd612
Merge pull request #31383 from woocommerce/fix/base-address-wording-2
Make the setting's name for default customer location more accurately reflect the effect of it.
2021-12-07 09:28:44 -08:00
Barry Hughes acbe200c79
Merge pull request #31113 from kkmuffme/use-native-wp_doing_ajax
Use native wp_doing_ajax() instead of custom is_ajax()
2021-12-07 09:26:40 -08:00
barryhughes ca37d3ba41 Deprecation will be as of 6.1.0. 2021-12-07 08:59:17 -08:00
Peter Fabian 1003a27b1b Make the setting's name more accurately reflect the effect of it. 2021-12-07 17:41:04 +01:00
Luigi Pulcini 17ef312178 changed requested data check 2021-12-07 11:33:13 +01:00
LuigiPulcini f845063422
Requested change on data check 2021-12-07 10:03:02 +01:00
Moon 935e79caee Update the default mysql username and password (https://github.com/woocommerce/woocommerce-admin/pull/8003) 2021-12-06 17:20:35 -08:00
Adrian Duffell 6c802ff932 Add inbox_note_view Tracks Event (https://github.com/woocommerce/woocommerce-admin/pull/8002) 2021-12-07 09:18:54 +08:00
Mik 3fb028931e Prevent coupon move notice for new installs. (https://github.com/woocommerce/woocommerce-admin/pull/7995)
* Prevent notice if legacy coupon menu is disabled

* Disable legacy menu for new install

* Add changelog entry

* Add PR number to changelog
2021-12-06 15:21:08 +00:00
Peter Fabian ba1b98cba8 Update the tooltip to reflect the db update policy. 2021-12-06 14:52:08 +01:00
Peter Fabian feaf225526 Update db version to match the WC version after running update callbacks.
This is the behaviour that normally happens when a user updates version by version, but if the user skips several versions, db version and WC version could diverge.
2021-12-06 14:50:25 +01:00
Cullen Whitmore a96eb4d583 Merge branch 'trunk' into fix/a11y-improvement-add-to-cart-variable 2021-12-04 22:57:55 -06:00
louwie17 6c2fbce0c0 Remove limit from coupons query when getting the total count (https://github.com/woocommerce/woocommerce-admin/pull/8001)
* Remove limit from coupons query when getting the total count.

* Add changelog
2021-12-04 14:29:12 -04:00
Joshua T Flowers 5f8db47c16 Add payment gateway suggestion docs and example extensions (https://github.com/woocommerce/woocommerce-admin/pull/7966)
* Remove dated doc references

* Clean up slotfill and install script docs

* Add filter to suggestion specs

* Register example gateways

* Mock gateway installation and activation

* Add simple gateway

* Update gateway IDs

* Add slot filled gateway

* Add slot fill for slot filled gateway

* Allow gateway to be enabled and marked as configured if already enabled

* Add changelog entry

* Add quick start blurb to markdown file

* Remove duplicate JS registration and add default export

* Add payment settings save hook
2021-12-03 15:13:05 -05:00
louwie17 c3dc45d129 Update e2e-environment, so tests are run successfully locally. (https://github.com/woocommerce/woocommerce-admin/pull/8000)
* Update e2e-environment, so tests are run successfully locally.

* Add changelog
2021-12-03 15:34:00 -04:00
jamelreid 18283d2b1a Merge branch 'trunk' into add/jest-retry 2021-12-03 14:25:00 -05:00
louwie17 db29d8b571 Add loading icon and disable continue until free extensions are loaded (https://github.com/woocommerce/woocommerce-admin/pull/7979)
* Add loading icon and disable continue until free extensions are loaded.

* Add changelog

* Only show dropdown when we have installable extensions listed

* Revert spinner addition and add loading to Continue button

* Add wait for dropdown to be enabled
2021-12-03 11:03:44 -04:00
louwie17 7eeb77acc3 Fix datepicker in advanced filter (https://github.com/woocommerce/woocommerce-admin/pull/7982)
* Make sure we set the onMonthPreviewed prop as this is required for wp.components.DatePicker

* Add changelogs
2021-12-03 09:29:27 -04:00
louwie17 0cb4382c05 Correctly match payment gateways by id (https://github.com/woocommerce/woocommerce-admin/pull/7994) 2021-12-03 09:27:45 -04:00
Nestor Soriano 95dde6c082
Change db update version from 6.1 to 6.2. 2021-12-03 12:50:02 +01:00
Nestor Soriano 79f2936ae9
Temporary fix for a unit test.
The "Advanced" section in the product settings page exists only
if the product attributes lookup table exists. The table will
eventually exist for everybody, so a temporary check has been added.
2021-12-03 12:25:20 +01:00
Nestor Soriano fd81e477d2
Fix: bad counters in the filter by attribute widget for OR.
When a filter by attribute widget was configured as OR, the query
to return the product counts was overfiltering and returning
less results than it should. It now works as in the case of not
using the lookup table.
2021-12-03 12:22:52 +01:00
Moon 008b6cf2e5 Display actioned notes on Woo Home (https://github.com/woocommerce/woocommerce-admin/pull/7983)
* Query both actioned and unactioned notes

* Fix note title style issue when the component is rendered in the sidebar

* Add changelog

* Update changelog

* Adjust styling

* Fix lint error

* Simplify title style by using title class selector
2021-12-02 13:04:05 -08:00
roykho 68fbca56dc
Upgrade node-sass back to latest 2021-12-02 08:23:11 -08:00
roykho b9c3644a84
Downgrade node-sass version 2021-12-02 08:11:56 -08:00
roykho edf5512311
Update node-sass 2021-12-02 07:24:30 -08:00
jamelreid 0d2b20b309 Added jest object setup 2021-12-02 09:41:04 -05:00
Fernando 7ea82c7778 Fix PHP Warning on 'Add new product' page (https://github.com/woocommerce/woocommerce-admin/pull/7989)
* Fix method call

* Add changelog

* Add testing instructions

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-12-02 09:55:21 -03:00
Joel Thiessen faf5d61f25 Update/version 3.1.0 dev and changelogs (https://github.com/woocommerce/woocommerce-admin/pull/7991) 2021-12-01 14:38:03 -08:00
jamelreid 6fa14b0b6c Set jest.retryTimes wih the E2E_RETRY_TIME env 2021-12-01 14:35:25 -05:00
jamelreid f8210cade8 Updated README.md 2021-12-01 14:34:06 -05:00
Jamel Noel Reid e0516c475d
Merge pull request #31314 from woocommerce/fix/31305
Update setBrowserViewport to use default dimensions
2021-12-01 09:24:30 -05:00
Moon 398aaa6320 Set comp props explicitly (https://github.com/woocommerce/woocommerce-admin/pull/7985) 2021-11-30 19:13:25 -08:00
Claudio Sanches ac799921a3
Merge pull request #31335 from woocommerce/add/cleanup
Add/cleanup
2021-11-30 20:32:57 -03:00
Joshua T Flowers 9eca023fb4 Move payments task to extended task list when WC Pay task is shown (https://github.com/woocommerce/woocommerce-admin/pull/7980)
* Move payments task to extended list if wc pay task is shown

* Delete additional payment gateway note if no longer applicable

* Add changelog entry
2021-11-30 17:09:37 -05:00
Jeff Stieler 35c7ad75d5 Add unit test. 2021-11-30 14:58:18 -05:00
Ron Rennick 519b4f6de4 fix lock merge conflict 2021-11-30 15:48:39 -04:00
roykho 20ef737a02
Move ignored paths to plugin specific 2021-11-30 11:32:34 -08:00
Jeff Stieler 3f7dbcd43b Add coupon meta data to backend and API orders. 2021-11-30 13:57:55 -05:00
Joshua T Flowers d692986e11 Add option to dismiss promotional payment gateway (https://github.com/woocommerce/woocommerce-admin/pull/7965)
* Add ellipsis menu and styling

* Add dismissed option to pseudo payment gateway

* Check if the suggested gateway has been dismissed

* Add visibility and transition rules

* Remove CSSTransition wrapper due to invalid tags

* Fix padding on ellipsis menu

* Add dismiss tracks event

* Add changelog entry

* Check dismissal of promotion server-side
2021-11-30 13:02:54 -05:00
Joel Thiessen d79d32d4e5 Ending wcpay promotion experiment and always displaying in payment methods table (https://github.com/woocommerce/woocommerce-admin/pull/7962) 2021-11-30 09:13:16 -08:00
Moon bf5cc8b4fe Sync changelog entries from 2.9.0 final (https://github.com/woocommerce/woocommerce-admin/pull/7976)
* Sync changelog entries from 2.9.0 final

* Remove changelog files
2021-11-29 19:28:36 -08:00
Moon 6d30160cb2 Make inbox note title clickable (https://github.com/woocommerce/woocommerce-admin/pull/7977)
* Make note title clickable

* Note title is clickable
* Updated styles to make title link look like H3
* Clicking title does not trigger busy state

* Add changelog
2021-11-29 18:13:54 -08:00
Albert Juhé Lluveras 6e27a3204e Update WooCommerce Blocks to 6.3.3 2021-11-29 17:51:41 -08:00
Moon 7286dca881 Bump woocommerce-admin version to 2.9.0 2021-11-29 15:56:18 -08:00
Adrian Duffell b9b4c82dca Make Homescreen Default to Single Column Layout (https://github.com/woocommerce/woocommerce-admin/pull/7969)
* Add database migration deleting layout option

* Remove calls to update the option

* Remove unused variable

* Add changelog

* Remove unused var (lint failure)

* Increase e2e test timeout to 1000

* Fix test: navigate to homescreen

Co-authored-by: Moon <moon.kyong@automattic.com>
2021-11-29 13:04:34 -08:00
louwie17 b19ca6b4d1 Add testing instructions (https://github.com/woocommerce/woocommerce-admin/pull/7974) 2021-11-29 16:59:52 -04:00
Fernando a90e9de61a OBW - Add number of employees field (https://github.com/woocommerce/woocommerce-admin/pull/7963)
* Add number of employees field

* Fix "reduce - spread" anti-pattern

This commit fixes the "reduce - spread" anti-pattern https://www.richsnapp.com/article/2019/06-09-reduce-spread-anti-pattern

* Add changelog

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-11-29 16:00:38 -04:00
jonathansadowski 24b327bb59
Merge pull request #31301 from woocommerce/update/distignore
Exclude changelog directory from deployments
2021-11-29 13:14:42 -06:00
jamelreid 92ae77c817 Updated browser viewport dimensions 2021-11-29 13:54:44 -05:00
roykho 2ab1393bdc
Merge branch 'trunk' into add/legacy-assets-build 2021-11-29 10:26:05 -08:00
roykho 1f7f576bbe
Use correct path 2021-11-29 10:06:01 -08:00
roykho 2c0487e152
Ignore tsconfig.tsbuildinfo 2021-11-29 09:59:53 -08:00
roykho 3d7ec4cd59
Remove redundant grunt items 2021-11-29 09:45:05 -08:00
Néstor Soriano 53dc551f44
Merge pull request #31308 from woocommerce/up/action-scheduler
Update AS to 3.4
2021-11-29 10:16:19 +01:00
kkmuffme 923a23d0bc add cookie consent filter
for https://github.com/woocommerce/woocommerce/issues/31118
2021-11-27 16:30:28 +01:00
Jamel Noel Reid f46ceee910
Merge pull request #31291 from woocommerce/add/woocommerce-menu-page-load-tests
Added WP Admin page load tests
2021-11-26 14:23:11 -05:00
Barry Hughes d12717211a
Merge pull request #31307 from woocommerce/fix/table-name
Update db table name to use the new convention.
2021-11-26 10:15:06 -08:00
Claudio Sanches bc910e2364
Merge pull request #31206 from woocommerce/fix/changelogger-validate
Jetpack Changelogger: Validate entries
2021-11-26 13:21:01 -03:00
Thomas Roberts b87c52f068
Add tests for new get_all_formatted_metadata method 2021-11-26 16:17:44 +00:00
Thomas Roberts eb31bd5275
Update uses of get_formatted_data to new wrapper 2021-11-26 16:16:48 +00:00
Thomas Roberts 95a43ea56a
Add get_all_formatted_meta_data wrapper
This sets include_all to true
2021-11-26 15:48:06 +00:00
Thomas Roberts cd9efe16c0
Fix problem with assignment in conditional 2021-11-26 15:40:52 +00:00
Thomas Roberts d0a5c6b998
Add docblock to html-order-item-meta 2021-11-26 15:39:43 +00:00
Thomas Roberts 695117ef90
Revert changes made in PR so far 2021-11-26 15:37:13 +00:00
Thomas Roberts 2256b9b337
Add file meta to html-order-item-meta.php 2021-11-26 15:24:21 +00:00
Thomas Roberts 91f2295c41
Remove accidentally added empty line 2021-11-26 15:24:19 +00:00
Thomas Roberts 09450393d0
Update uses of get_formatted_metadata to pass through filter first 2021-11-26 15:24:17 +00:00
Thomas Roberts bdf673c86d
Add woocommerce_order_item_meta_include_all_meta_lines filter
This will be used to determine if all meta lines should be shown in the order-item-meta template.
2021-11-26 15:24:15 +00:00
Thomas Roberts d3421126e7
Add 'woocommerce_show_product_variant_metadata_line' hook
This can be used to allow extensions to override whether the metadata line
is displayed in the order meta box or not.
2021-11-26 15:24:13 +00:00
Peter Fabian 757bfe1d16 Update AS to 3.4 2021-11-26 11:53:46 +01:00
Peter Fabian 433bd34b18 Update db table name to use the new convention. 2021-11-26 11:35:29 +01:00
Paulo Chang 870d706d1a
Unhide GT Postcode
It seems that some private courier services use the post code internally to price services.
2021-11-25 17:38:13 +01:00
Claudio Sanches cf8e4225a6 Exclude changelog directory from deployments 2021-11-25 11:14:52 -03:00
Vedanshu Jain 5d0296c565
Merge pull request #31286 from woocommerce/php8.1/add-ReturnTypeWillChange-attributes
[PHP 8.1] Add ReturnTypeWillChange attribute to classes implementing ArrayAccess
2021-11-25 17:22:31 +05:30
Moon c3a050254d Add a new update callback for the 3.0 version to update is_read column (https://github.com/woocommerce/woocommerce-admin/pull/7945)
* Added a new update callback for 3.0 version to migrate is_read col from last_read user pref value

* Remove unnecessary comments

* Remove add column logic -- not needed as tables are updates during the bootstrap

* Remove column existence check

* Use the latest woocommerce_admin_activity_panel_inbox_last_read value

* Clean up woocommerce_admin_activity_panel_inbox_last_read after updating is_read

* Remove unnecessary var

* Update includes/wc-admin-update-functions.php

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>

* Update test to use ms

* Use get_users() to get the latest meta value

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2021-11-24 17:44:30 -08:00
Robert Massaioli bcfdd8666c
The woocommerce_webhook_options needs webhook
The action for adding extra webhook options should pass in the webhook so that those that are extending the webhooks page can know which webhook is being edited.
2021-11-25 12:19:48 +11:00
jamelreid 730cd35d96 Added page load tests to the plugin e2e directory 2021-11-24 19:21:01 -05:00
Nestor Soriano f7137a44e6
Fix README in the tests directory
The instructions to run the unit tests in PHP 8 were missing
a couple of required commands.
2021-11-24 16:53:34 +01:00
Nestor Soriano 963eef02fa
Add ReturnTypeWillChange attribute to classes implementing ArrayAccess
PHP 7.x and 8.1 will throw a fatal error, thus causing the unit tests
suite to abruptly end, if a method from an implemented interface doesn't
fully match the signature as defined in the interface. In WooCommerce
that's the case for the classes that implement ArrayAccess: in
PHP 8.0+ these signatures have type hints and return types (as in
"offsetUnset( mixed $offset ):void" ) but the code in WooCommerce
doesn't. We can't just add the missing types to the signatures because
then the same error appears in PHP 7.x, in which there aren't
types in the method signatures of ArrayAccess.

The fix consists of adding the ReturnTypeWillChange attribute,
introduced in PHP 8.1, which instructs the runtime to not throw the
error. PHP 7.x doesn't support attributes, but in this case the
attribute declaration is seen as a comment.

See https://php.watch/versions/8.1/ReturnTypeWillChange
2021-11-24 16:22:49 +01:00
Fernando c634ed5eb7 Add Tracks event (https://github.com/woocommerce/woocommerce-admin/pull/7960)
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-11-24 10:16:24 -03:00
Mahmoud Saeed 05fbbc591e Fix taxes endpoint returning incorrect X-WP-Total and X-WP-TotalPages headers #30890 2021-11-24 11:16:55 +02:00
Moon d64a276032 Introduce a 320 character limit for inbox note contents (https://github.com/woocommerce/woocommerce-admin/pull/7958)
* Introduce a 320 char limit for inbox notes

* Extract truncateRenderableHTML to utils and use truncate from lodash to support word break

* Replace omission with blank so that lodash does not add ... at the end

* Add test cases for truncateRenderableHTML

* Add a test case with unicode string

* Add changelog

* Add a test case for preserving whole words
2021-11-23 15:47:48 -08:00
Moon b41ab2f37f Fix the failing e2e test (https://github.com/woocommerce/woocommerce-admin/pull/7961)
* Wait 500ms after clicking Enable button
2021-11-23 15:13:10 -08:00
Brian 727ccd0dd3
Albania: add states and change label (#31190)
* add albanian states

* change label for albania

* change to english language

* fix names

* sorting
2021-11-23 16:53:25 -05:00
Brian 2623be878e
Nicaragua: Add States / Update Label (#31179)
* add label for nicaragua state

* add nicaragua states

* change to english string

* fix names
2021-11-23 14:36:05 -05:00
Brian e1b9235855
Ecuador: add states / update label (#31186)
* add ecuador states

* add label for ecuador

* change to english string

* add hyphenate

Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>
2021-11-23 12:47:22 -05:00
Brian 80d95b72e5
Colombia: add states / change label (#31188)
* add colombia states

* update label for state (colombia)

* change to english string

* fixes CLDR names, sorting

* sorting

Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>
2021-11-23 12:47:05 -05:00
Brian 28e902442b
Honduras: Add States / Update Label (#31180)
* add honduras states

* add label for state (honduras)

* change to english string

* fix name due to cldr

* fix name

* fix sorting
2021-11-23 12:46:46 -05:00
Brian d96c380332
Panama: Update States & Label (#31178)
* add panama states

https://en.wikipedia.org/wiki/ISO_3166-2:PA

* add label for state

* change to english string

* fix name to english
2021-11-23 12:40:41 -05:00
Brian cf9510577b
Republica Dominicana: change label for state (#31191)
* change label for state DO

* change to english string

* added cdlr states, sorting
2021-11-23 12:10:24 -05:00
Brian dd64b5c8ff
Bolivia: fix iso code / update label (#31181)
* fix iso format of bolivian states

* add label for states bolivia

* change to english string

* update sorting of states
2021-11-23 11:41:33 -05:00
Moon e36b65e3b9 Hide InboxPanel header content in the sidebar (https://github.com/woocommerce/woocommerce-admin/pull/7952)
* Hide Inbox Panel header when it is rendered in the sidebar

* Add changelog

* Update changelog
2021-11-23 02:27:32 -08:00
Sebastian Volland 593cf4636b Fix docblock type annotation of WC_Coupon::is_type. 2021-11-23 10:43:21 +01:00
Nestor Soriano 5253a1adae
Sort arrays before comparison in unit test
Without this a test fails in GitHub
("Run unit tests with code coverage" task).
2021-11-23 10:28:49 +01:00
Nestor Soriano b068ade7c6
Create and activate product attributes lookup table in data migration
Until now the product attributes lookup table had to be created
and its usage had to be activated manually, via the tools page.
This commit does the following:

1. Remove the tools to create and delete the table
   (but keeps the tool to regenerate the table data for one or for
   all the products)

2. Creates a data migration that triggers the table creation and
   filling (unless the table already existed) for Woo 6.1

3. After the migration finishes, activates the table usage for
   product filtering (site admin can still disable it via
   Settings - Products - Advanced)
2021-11-23 10:28:49 +01:00
dependabot[bot] 5914475807 Bump semver-regex from 3.1.2 to 3.1.3 (https://github.com/woocommerce/woocommerce-admin/pull/7955)
Bumps [semver-regex](https://github.com/sindresorhus/semver-regex) from 3.1.2 to 3.1.3.
- [Release notes](https://github.com/sindresorhus/semver-regex/releases)
- [Commits](https://github.com/sindresorhus/semver-regex/commits)

---
updated-dependencies:
- dependency-name: semver-regex
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-23 16:37:17 +08:00
dependabot[bot] a06aefc471 Bump tmpl from 1.0.4 to 1.0.5 (https://github.com/woocommerce/woocommerce-admin/pull/7954)
Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/daaku/nodejs-tmpl/releases)
- [Commits](https://github.com/daaku/nodejs-tmpl/commits/v1.0.5)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-23 16:35:45 +08:00
Barry Hughes 5773089e8c
Merge pull request #31227 from woocommerce/fix/count_param
Update count param consistently.
2021-11-22 11:34:47 -08:00
Peter Fabian ab1a35719c
Merge pull request #31257 from woocommerce/fix/31035
Send set password link instead of the actual password to new users.
2021-11-22 18:43:41 +01:00
Jacob Sewell 1182b47331 Fix/7938 navigation feedback follow up note should self delete when not relevant (https://github.com/woocommerce/woocommerce-admin/pull/7939)
* Add NavigationFeedbackFollowUp to daily possibly_delete_notes().

* Implement is_applicable() in NavigationFeedbackFollowUp.

* Changelog for 7938/7939

* Update changelogs/fix-7938-navigation-feedback-follow-up-note-should-self-delete-when-not-relevant

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2021-11-22 11:16:05 -06:00
vedanshujain 2013a66313 Add test for parse_file_path method in WC_Download_Handler class. 2021-11-22 19:39:00 +05:30
vedanshujain a6626eeb64 Send $count param as argument so that its updated consistently.
As far as I can see, this count param is not really needed, but it will still be good to keep it updated in case its getting used in an edge case that I have not considered.
2021-11-22 19:39:00 +05:30
Peter Fabian 5cba6b6eb6
Merge pull request #31126 from woocommerce/update/fallback-extensions-message
Show fallback message in extensions marketplace when the store can't connect to the WCCOM API
2021-11-22 11:02:32 +01:00
Carl Alexander 55e1fadd3d Add `file` to check import file path hooks 2021-11-21 14:35:58 -05:00
Jeff Stieler 209566b7c4
Fix errant stock adjustment when saving partially refunded orders. (#31172)
* Preserve stock metadata for refunded items.

Prevents fully restocked items on partially refunded orders from having stock reduced on subsequent order updates.

* Add E2E test covering errant restocking fix.
2021-11-19 14:24:35 -07:00
louwie17 ff12150b7c Remove @woocommerce/settings package, that is not used (https://github.com/woocommerce/woocommerce-admin/pull/7949)
* Remove @woocommerce/settings package, that is not used

* Add changelog
2021-11-19 17:03:54 -04:00
Brian 4d212875f5
Costa Rica: add states and change label (#31189)
* add costa rica states

* change label state from costa rica

* change to english string
2021-11-19 12:25:37 -07:00
Brian 59910ffeab
Guatemala: fix iso code - change label for state (#31187)
* fix iso code for guatemalan states

* change label for guatemala state

* change to english instead local version

https://github.com/woocommerce/woocommerce/issues/31150#issuecomment-970322350
2021-11-19 12:17:40 -07:00
Peter Fabian 1fd893a2ed Bump template version. 2021-11-19 19:34:46 +01:00
Peter Fabian 10daece5ae The extra parameter actually seems unnecessary. 2021-11-19 19:18:17 +01:00
Brian cc9de68f6c
Paraguay: Update Label (#31177)
* add label for paraguay states

* change to english string
2021-11-19 10:33:01 -07:00
Brian df87e5a42d
El Salvador: Update States + label (#31176)
* add el salvador states

add el salvador states with correct ISO-Code

* change label to departamento

* change to english string

* fix states
2021-11-19 10:29:08 -07:00
Brian f48492df86
add uruguay states (#31167)
* update uruguay states

add regions

* change string to departamento

* change to english string
2021-11-19 10:24:51 -07:00
roykho 11c2028bd5
Move dependency declaration into project level 2021-11-19 08:44:44 -08:00
Brian 2bf383a643
Venezuela States: Update iso-code's + state name change (#31175)
* update iso-code + state name change

update iso-code + state name change

* venezuela: update label for statefield

* remove as state is correct
2021-11-19 09:05:01 -07:00
roykho 2955638af6
Remove build assets from source 2021-11-19 07:36:29 -08:00
Peter Fabian b7c8e3ea68 Send set password link instead of the actual password to new users. 2021-11-19 16:30:53 +01:00
roykho a07f471fed
Update gitignore 2021-11-19 07:08:48 -08:00
roykho f7b32f2231
Move js and css folders into legacy 2021-11-19 06:46:28 -08:00
roykho 6202c49803
Move legacy into woocommerce folder 2021-11-19 06:40:48 -08:00
roykho 4681ccfc15
Add project.json 2021-11-19 06:38:24 -08:00
roykho 371c20cc45
Add package.json 2021-11-19 06:37:47 -08:00
roykho bd8b8a947b
Add dot files 2021-11-19 06:36:51 -08:00
And Finally 257e7c866c Addressing feedback.
- Replaced `intval` calls with faster type casting.
- Showing more informative error messages.
- Using ternary for better legibility in `WC_Admin_Addons::output`.
- Added `is_wp_error` check to avoid warning from `count` call in `html-admin-page-addons.php`.
- Always showing error message as detail in error output.
- Showing error detail message above "To start growing your business, head over to WooCommerce.com" text, instead of below.
2021-11-19 10:42:05 +00:00
And Finally ea1dd33b25 Updated error text. 2021-11-19 10:41:21 +00:00
And Finally 61d46c6987 Added more informative error messages when API request fails on the in-app marketplace featured page. 2021-11-19 10:41:21 +00:00
And Finally 9a0e91477e Added `woocommerce_page_wc-addons_connection_error` action, which records a Track event when the in-app marketplace fails to connect properly to the WCCOM API. 2021-11-19 10:41:21 +00:00
And Finally b7520f3d9a Slightly tidier handling of bad responses in `render_featured`. 2021-11-19 10:41:21 +00:00
And Finally a40ed95c0f Showing fallback message when the store can't connect to the WCCOM API. 2021-11-19 10:41:21 +00:00
Ron Rennick 53402656a0 Merge branch 'trunk' into fix/30866 2021-11-18 21:58:51 -04:00
Christopher Allford b7cc36e2c7 Updated 6.1 Version
With the release branch for 6.0 cut,
we can now update the development version.
2021-11-18 16:16:50 -08:00
Adrian Duffell 36b48fec96 Bump WooCommerce Admin to 2.9-rc.2 2021-11-18 13:34:56 -08:00
Niels Lange 909ba998fd Update composer.json and composer.lock for Blocks 6.3.2 2021-11-18 13:00:35 -08:00
Fernando 481c9a796a Refactor `wcadmin_storeprofiler_store_business_features_continue` Tracks event handling (https://github.com/woocommerce/woocommerce-admin/pull/7924)
* Refactor tracks event handling

Refactor `wcadmin_storeprofiler_store_business_features_continue` tracks event handling to not hardcode extensions

* Rename const and move function

* Add tests

* Fix typo

* Renamed method

This commit renames the method `prepareInstalledExtensionsForTracking` as `prepareExtensionTrackingData`.

* Prop renamed

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-11-18 14:15:19 -03:00
roykho 19d26298ea
Merge branch 'trunk' into nx/gh-actions 2021-11-18 08:02:24 -08:00
roykho 8732c04c86
Use single commands for executors 2021-11-18 07:28:51 -08:00
Greg 0c6964822d Update gitignore (https://github.com/woocommerce/woocommerce-beta-tester/pull/107) 2021-11-18 13:54:08 +01:00
Greg 3f2a0c3508 Lower case string comparison for versions (https://github.com/woocommerce/woocommerce-beta-tester/pull/105)
* Lower case string comparison for versions

* Embolden the installed version text
2021-11-18 13:49:46 +01:00
Néstor Soriano e21e4ef0d2
Merge pull request #31228 from woocommerce/remove/snippet-needed-to-activate-attributes-lookup-table-feature
Remove the need to invoke LookupDataStore->show_feature() to use the product attributes lookup table
2021-11-18 12:02:48 +01:00
louwie17 30bca4c613 Fix WC pay promotion ordering (https://github.com/woocommerce/woocommerce-admin/pull/7943)
* Fix WC Pay ordering and overwriting another payment gateway

* Fix styling if extra columns are present

* Add changelog
2021-11-18 12:53:50 +08:00
Ilyas Foo 82f4120208 Fix race condition in data package's options module (https://github.com/woocommerce/woocommerce-admin/pull/7947)
* Fix race condition on data package's options module.

* Update changelog
2021-11-18 12:52:43 +08:00
Moon 765697f5e0 Implement inbox note read state (https://github.com/woocommerce/woocommerce-admin/pull/7896)
* Wrap notes with Card component -- Added header, badge, and cllipsis menu

* Add hover state

* Dismiss note immediately without prompting a confirmation (https://github.com/woocommerce/woocommerce-admin/pull/7868)

* use woocommerce-admin-dismiss-notification class to target the dissmiss btn

* Add changelog

* Specify CSS styles so tha they dont get overridden by other plugins

* Update changelog

* Add is_read column

* Do not update activity_panel_inbox_last_read upon viewing the homepage

* Remove use of last_read variable

* Return is_read field from the note api

* Use is_read field and remove last_read from the test

* Set is_read to true when an action is triggered

* CSS changes for the read state

* Apply padding and border if there are multiple actions

* Remove unread indicator

* Add changelog

* Update changelog

* Revert package-lock.json

* Fix onDismiss not being called after rebasing

* Check is_read before setting it to the obj -- this prevents uninteded error messages piling up in case is_read col is missing for some reason

* Revert changs added by mistake during rebasing

* Revert changes to package-lock.json

* Remove incorrect changelog

* Commit to triger Github workflows
2021-11-17 12:15:48 -08:00
Nestor Soriano 3a40691c6b Replace "{$wp->prefix}posts" with "{$wp->posts}" 2021-11-17 11:38:39 -08:00
Nestor Soriano caf1481767 Improve the performance of the product attributes lookup table query
Improve (by a lot) the performance of the queries for the
product attributes lookup table by doing the following:

1. Fallback the query for the "AND" case to thequery for the "OR" case
   when there's only one term being filtered for the category
   (the subquery for the "OR" case is much simpler)

2. Collapse all of the "AND" queries (for all the categories)
   into a simple one (this is possible since term ids are unique
   even across categories)

3. The most important change: introduce an extra derived query,
   so

   ...AND posts.ID in ( SELECT product_id FROM lookup_table WHERE...

   becomes

   ...AND posts.ID in ( SELECT product_id FROM (
       SELECT product_id FROM lookup_table WHERE...

   This causes the filtering subquery to be executed only once.
2021-11-17 11:38:39 -08:00
roykho 79ee6c00f5
Create a seperate no dev composer install command 2021-11-17 11:32:53 -08:00
roykho 008f2cbea9
Change format of passing flags 2021-11-17 11:24:35 -08:00
LuigiPulcini 4a3b6fdcbe
Merge branch 'woocommerce:trunk' into add/bulk-action-shortcircuit 2021-11-17 19:10:06 +01:00
roykho feedced44b
Remove flags 2021-11-17 09:35:20 -08:00
roykho 0657b44dd5
Move composer install script to Nx commands 2021-11-17 09:09:09 -08:00
Ron Rennick b1a8664ff4 merge trunk 2021-11-17 12:46:23 -04:00
roykho 24c565ba68
Add working directory 2021-11-17 08:39:05 -08:00
hellwig-data443 ebcd4d9682 Update PageController.php (https://github.com/woocommerce/woocommerce-admin/pull/7855)
* Update PageController.php

* Create fix-7758

* Minor fixes
2021-11-17 08:36:25 -08:00
Vedanshu Jain c3405cf06f
Merge pull request #31075 from woocommerce/fix/30781
Delay handling of hide-notice requests
2021-11-17 21:52:22 +05:30
roykho c4998a931f
Add cwd and update paths 2021-11-17 08:07:53 -08:00
roykho 347ed51214
Update paths 2021-11-17 07:58:53 -08:00
Néstor Soriano efdaf77d80
Merge pull request #31094 from woocommerce/update/current-theme-has-wc-or-fse-support
has_archive if current theme supports woocommerce or is an FSE theme
2021-11-17 16:51:51 +01:00
roykho 0f57209548
Set cwd for command 2021-11-17 07:39:24 -08:00
Nestor Soriano bd9b70c9ec
Remove the need to invoke LookupDataStore->show_feature()
This was needed to activate the feature for filtering products
by attribute using the new lookup table. The lookup table still
needs to be created and filled via the tools page.
2021-11-17 10:33:55 +01:00
Moon 2e1473a25e Rename Inbox -> Activity from the activity header (https://github.com/woocommerce/woocommerce-admin/pull/7879)
* Add flag icon

* Rename Inbox to Activity

* Add changelog

* Update changelog
2021-11-16 21:56:25 -08:00
Moon db030bb938 Add dismiss all button for Inbox 2.0 (https://github.com/woocommerce/woocommerce-admin/pull/7871)
* Wrap notes with Card component -- Added header, badge, and cllipsis menu

* CSS changes to adjust padding and margin

* Update text and classname

* Add dismiss all modal

* Render dismiss all modal

* Dismiss all notes

* Update client/inbox-panel/index.scss

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>

* Update client/inbox-panel/index.scss

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>

* Move text to inline

* Pass onClose callback instead

* Move dismissAllNotes into the modal component

* Rename dismissNote to onDismiss

* Alias setShowDismissAllModal as onDismissAll

* Reset margin-bottom to prevent the latest GB to add unwanted margin-bottom

* Commit to triger Github workflows

* Add changelog

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2021-11-16 21:56:05 -08:00
roykho 1f850553ea
Merge branch 'trunk' into nx/gh-actions 2021-11-16 20:58:17 -08:00
Ron Rennick e5d710390d Merge branch 'trunk' into fix/30866 2021-11-16 18:51:49 -04:00
Ron Rennick 2f9a6a32c2 deprecate core e2e setup, onboarding tests 2021-11-16 18:51:24 -04:00
Vedanshu Jain 78e7039944
Use update_coupon_usage_counts to avoid double count. (#31147)
Previously we were increasing coupon usage count on every apply_coupon method. This was causing double usages because, we would also increase on order save callback.

We instead now call `wc_update_coupon_usage_counts` in apply_method itself, which would increase the usage and also set the `_recorded_coupon_usage_counts` order meta.

Additional, we also manually call $couon->increase_usage_count if `_recorded_coupon_usage_counts` is because in this case, we are likely applying more than one coupon to the order. And `_recorded_coupon_usage_counts` meta would have already been set by the first coupon. This is not a good solution, ideally we should revamp how we store the coupon recorded information to support multiple coupon information from the get-go.
2021-11-16 14:23:24 -07:00
Claudio Sanches 742fffff79
Merge pull request #31149 from woocommerce/update/docs
Update/docs
2021-11-16 18:15:57 -03:00
roykho b92ace6fa5
Merge branch 'trunk' into nx/gh-actions 2021-11-16 11:50:56 -08:00
Roy Ho 6ea1313674
Merge branch 'trunk' into remove/install-subset 2021-11-16 10:19:58 -08:00
Roy Ho 0c940df051
Update plugins/woocommerce/tests/e2e/README.md
Co-authored-by: Claudio Sanches <contato@claudiosanches.com>
2021-11-16 10:11:06 -08:00
Jeff Stieler 2bac37f4e6
Orders Endpoint Acceptance Tests (#31033)
* Create more sample orders data.

* Code formatting.

* Add tests for pagination.

* Formatting.

* Add test case for inclusion and exclusion parameters.

* Add test for parent and parent_exclude parameters.

* Add test case for status parameter.

* Add test case for customer parameter.

* Add test case for product parameter.

* Create a test order with all numerical properties populated.

* Add test case for precision parameter.

* Add test case for search parameter.

* Add test case for orderby parameter.

* Move missed api-core-tests files.

* Force tests to run in band (sequentially).
2021-11-16 10:03:53 -07:00
roykho 6f0bba9e23
Use Nx commands in pr-code-coverage action 2021-11-16 07:26:33 -08: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
Joshua T Flowers 8ff08ea0c9 Use abstraction to add and retrieve task data (https://github.com/woocommerce/woocommerce-admin/pull/7918)
* Add class check to added tasks

* Make Task class asbtract

* Update tasks to use abstraction

* Update task property calls to methods and add extended class

* Fix up task tests

* Reorder script enqueing to check less expensive operations first

* Fix up dismissable and snoozeable checks

* Fix up typos

* Load default task classes on init

* Handle PR feedback

* Fix extended tasks not showing

* Update is_visible to can_view in deprecated tasks

* Use TestTask class for unit tests

* Add changelog entry

* Fix up API tests

* Update ExtendedClass name to DeprecatedExtendedClass

* Fix up rebase
2021-11-16 08:59:55 -05:00
louwie17 dc03c6fbb5 Update payment method suggestion endpoint (https://github.com/woocommerce/woocommerce-admin/pull/7913)
* Initial refactor

* Update payment recommendations to use new endpoint data

* Make sure to run specs

* Fix test

* Delete old PaymentPlugins class

* Update url to point to woocommerce.com

* Remove unused displayable prop

* Move option name

* Fix js tests

* Add changelog
2021-11-16 09:57:23 -04: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
Jacob Sewell f0aebb8046 Have NavigationNudge and NavigationFeedback self-delete when irrelevant (https://github.com/woocommerce/woocommerce-admin/pull/7914)
* If the navigation feature does not exist, have the NavigationNudge note self-action.

* Create delete_if_not_supported method on NavigationNudge note.
If we encounter this situation again we might consider adding a version of this method to NoteTraits.

* Add possibly_delete_notes() to do_wc_admin_daily().

* Add changelog entry for Issue 7807.

* Add should_note_exist() method to NavigationNudge note.

* Add should_note_exist() and delete_if_not_supported() to NavigationFeedback.

* Add NavigationFeedback::delete_if_not_supported() to possibly_delete_notes() in daily cron.

* Fix changelog missing PR number.

* Update changelog to include navigation feedback note.

* Rename should_note_exist and delete_if_not_supported to is_applicable and delete_if_not_applicable, add to NoteTraits.
2021-11-15 22:51:53 -06:00
Paul Sealock 14a7614f61 update types descriptions 2021-11-16 15:16:20 +13: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
Joel Thiessen 1ccb1f6e1d Fixing references to null value throwing errors on products task (https://github.com/woocommerce/woocommerce-admin/pull/7934) 2021-11-15 16:48:14 -08:00
Joshua T Flowers 126707eeab Replace old task list option calls with data store selectors (https://github.com/woocommerce/woocommerce-admin/pull/7820)
* Add endpoint to unhide task list

* Rename show method to unhide

* Replace requests for hidden task list options

* Replace unhide task list requests

* Replace task list complete checks

* Replace dismiss option requests

* Remove complete task option check

* Fix up panel buttons

* Update finished setup to wait for task list resolution

* Create selector for getting a single task list

* Add selector for single task

* Fix task list panel visibility

* Add changelog entry

* Fix empty product types in profiler data

* Revert to checking for hidden task list
2021-11-15 15:57:13 -05:00
Joshua T Flowers f48ea01543 Sync WooCommerce Payments default gateway with WCCOM (https://github.com/woocommerce/woocommerce-admin/pull/7922) 2021-11-15 15:09:24 -05:00
Joshua T Flowers 331ca075c4 Pass child props to partners card (https://github.com/woocommerce/woocommerce-admin/pull/7929) 2021-11-15 15:09:02 -05: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
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
Matt Sherman 30e9922986 Set Node version to 14 in .nvmrc to prevent incompatible versions of Node from being used with nvm (https://github.com/woocommerce/woocommerce-admin/pull/7932)
Pin Node version to 14 in .nvmrc
2021-11-15 10:14:05 -05:00
Tom Cafferkey 1e4f045b6a Update theme_support check to include FSE enabled themes so that option woocommerce_queue_flush_rewrite_rules gets updated and run 2021-11-15 13:45:52 +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
Sicelo A. Mhlongo cfff7eb7aa Rename Swaziland to Eswatini
The country of Swaziland was officially renamed to Eswatini in April 2018. Let
us reflect this change.
2021-11-13 18:38:30 +02:00
Sicelo 1e11f8e867 Fix symbol for SZL currency
The symbol for the Swaziland (now Eswatini) Lilangeni is not L (for Lilangeni), 
but E (for Emalangeni, plural). Even if it is just one Lilangeni, it is written as
E1.00.
2021-11-13 17:28:52 +02:00
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
Ilyas Foo 62c3b6ea97 Fix TaskList UI experiment enablement logic (https://github.com/woocommerce/woocommerce-admin/pull/7930)
* Fix TaskList UI logic to enable when either experiment is in treatment

* Fix invalid react attribute

* Changelog
2021-11-12 18:32:27 +08:00
Ilyas Foo f085c6a09a Fix ExPlat PHP client and experimental onboarding note (https://github.com/woocommerce/woocommerce-admin/pull/7926)
* Add urlencode to explat get request parameters

* Rename update profile action name

* Add completed condition to wc-admin-complete-store-details note

* Fix logic for update profile note

* Add 2col experiment to the fray

* Changelog
2021-11-12 17:22:08 +08:00
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
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
roykho 8cc99368f2
Update unit tests readme 2021-11-11 11:35:01 -08:00
Fernando 9ecea4a638 Bump experimental version (https://github.com/woocommerce/woocommerce-admin/pull/7928)
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-11-11 14:25:02 -03:00
roykho 9267d70dc7
Update e2e testing steps to use Nx 2021-11-11 07:54:55 -08:00
Paul Sealock 15f26ee8f7 update to 3.0.2 of changelogger 2021-11-11 17:03:44 +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 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
roykho aa2dc625e2
Remove install-subset process 2021-11-10 13:35:16 -08:00
roykho f75523a2ca
Remove project.json from distribution 2021-11-10 12:02:13 -08: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
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
Roy Ho 9d08ac8ac3
Merge pull request #31095 from woocommerce/setup-nx
Setup nx
2021-11-09 20:26:37 -08:00
Brian 1bd2886b0f take over fix of barryhughes
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2021-11-09 15:31:58 -08:00
Brian 2d6451d6e2 revert changes 2021-11-09 15:31:57 -08:00
Brian c530dc60fd Update i18n/states.php
linting issue - done by barryhughes

Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2021-11-09 15:29:44 -08:00
Brian c0e4852cda Update class-wc-countries.php
hide PLZ

..based on feedback at https://github.com/woocommerce/woocommerce/issues/30375#issuecomment-937858938
2021-11-09 15:29:44 -08:00
Brian 8abba36b89 Update states.php
fix codesniff
2021-11-09 15:29:43 -08:00
Brian 13be555407 update chile regions
based on https://en.wikipedia.org/wiki/ISO_3166-2:CL
2021-11-09 15:29:43 -08:00
Adrian Duffell 56c98220af Prepare 3.0.0 release cycle (https://github.com/woocommerce/woocommerce-admin/pull/7909)
* Bump version to 3.0

* Update changelog
2021-11-10 06:49:47 +08:00
Ron Rennick 9736b15eb6
Merge pull request #31102 from woocommerce/fix/30655
remove duplicate gitignore entries
2021-11-09 16:46:05 -04:00
roykho d839bdfc94
Implement executors for all script commands 2021-11-09 12:35:22 -08:00
Peter Fabian 619d7097f1
Merge pull request #31100 from woocommerce/brexit-tax-obw
Recommend automated taxes to  'GB'
2021-11-09 19:23:29 +01:00
kkmuffme 4f39c25991 use native wp_doing_ajax instead of custom is_ajax 2021-11-09 17:55:02 +01:00
Fernando 6e26f66564 Fix marketing extensions tracks (https://github.com/woocommerce/woocommerce-admin/pull/7908)
* Fix `Business Details` step tracks

* Add changelog

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-11-09 12:36:26 -03:00
Néstor Soriano d64c4492c1
Add promoted card to in-App marketplace page (#31090)
* Add promoted card to in-App marketplace page

* Change name of transient

Changed name of transient for v2.0 of in-app marketplace featured page
content, so sites upgrading to WooCommerce 5.9 will get the correct
data for the new version of the page.
2021-11-09 08:02:57 -07:00
Peter Fabian 80ba82a00e
Merge pull request #30970 from woocommerce/fix/20563
Clarify tooltip for on-hold email.
2021-11-09 14:57:42 +01:00
Joshua T Flowers 7d464a514c Remove task status endpoint (https://github.com/woocommerce/woocommerce-admin/pull/7841)
* Add extra status properties to tasks

* Convert extra properties to camelcase

* Replace task status usage in client

* Remove task status data store

* Remove task status endpoint

* Remove remaining task status references

* Add has products to appearance task data

* Handle PR feedback

* Fix up additional data for Avalara task

* Add changelog entry
2021-11-09 07:42:33 -05:00
Cullen Whitmore 057019c614 Move text alignment to the label to improve CSS specificity 2021-11-08 12:28:56 -06:00
Cullen Whitmore 499d443656 Add text-alignment to `th` elements in the variations table 2021-11-08 12:04:58 -06:00
Ron Rennick 64b562e498
Merge pull request #31082 from woocommerce/add/wsl-instructions
Added WSL instructions
2021-11-08 13:34:27 -04:00
Cullen Whitmore f7623ac324 Change attribute label column from `td` to `th` 2021-11-08 11:30:18 -06:00
Tom Cafferkey c5e17812f0 Ensure we are loading product page gallery scripts in for FSE themes 2021-11-08 17:26:46 +00:00
Rodel 7c1888ddad Better phrasing in Running Tests opening statement 2021-11-09 00:45:34 +08:00
Barry Hughes 976f623792
Merge pull request #31091 from woocommerce/update/woocommerce-admin-2.8.0_Woo-6.0
Bump WooCommerce Admin version to 2.8.0
2021-11-08 08:10:58 -08:00
Vedanshu Jain ca2495fc96
Merge pull request #31092 from woocommerce/add/5.9-changelog-entries
Add changelog entries for 5.9
2021-11-08 20:55:03 +05:30
Ron Rennick a53e37f43b remove duplicate gitignore entries 2021-11-08 11:03:19 -04:00
David Stone 10b534ac82 Add 'GB' to list of countries that are supported by taxjar since it no longer is part of EU
Closes https://github.com/Automattic/woocommerce-shipping-issues/issues/20
2021-11-08 13:02:00 +02:00
Joshua T Flowers abc47adc95 Add Avalara to tax task (https://github.com/woocommerce/woocommerce-admin/pull/7874)
* Move woocommerce tax flow to subdirectory

* Add partner cards

* Use png for logo files

* Add partner card other actions

* Add partner card styling

* Add in mobile styles

* Interpolate links and html elements

* Redirect to tax configuration if Avalara not supported

* Mark task complete if Alavara is installed

* Record events when task partners are shown or selected

* Add changelog entry

* Update task card flow based on visible partners

* Skip plugin step if all plugins installed

* Move reusable components into subdirectory

* Record available partner options

* Fix type reference

* Wrap callback functions in useCallback to avoid rerenders

* Handle PR feedback

* Add key to partner card container

* Add testing instructions
2021-11-05 16:32:02 -04:00
Joshua T Flowers 675cf379c1 Only load default tasks during REST requests (https://github.com/woocommerce/woocommerce-admin/pull/7904)
* Only load default tasks during REST requests

* Add changelog entry
2021-11-05 15:38:05 -04:00
Ron Rennick a6df312732
Merge pull request #31084 from woocommerce/fix/e2e-env-readme-links
Update links to moved e2e READMEs.
2021-11-05 15:54:30 -03:00
roykho 0ddad32294
Add docker up/down to executors 2021-11-05 10:10:13 -07:00
roykho 4501f13a87
Accommodate different directory names for woocommerce 2021-11-05 10:09:34 -07:00
Tom Cafferkey 5cdc6c86f6 Revert change for theme support on permalinks 2021-11-05 15:35:08 +00:00
Tom Cafferkey 2003a7813e Create conditional function wc_current_theme_supports_woocommerce_or_fse 2021-11-05 15:31:22 +00:00
roykho b86a66168e
Add Nx script executors to woocommerce plugin 2021-11-05 08:19:36 -07:00
Rodel f37bc08a44 Corrected reference to WSL instructions 2021-11-05 20:44:31 +08:00
Nestor Soriano b5c5a4da15
Improve handling of relative paths in downloadable files
to prevent access to files outside of WordPress uploads folder.
2021-11-05 13:43:22 +01:00
Rodel 8c8385fcce Remove earlier WSL section 2021-11-05 20:42:12 +08:00
Rodel 1b60740e57 Reference to WSL md at the beginning of Running tests section 2021-11-05 20:40:54 +08:00
Rodel df85aa293c Minor changes 2021-11-05 20:23:37 +08:00
Rodel 906afa8a67 Separate readme for WSL instructions 2021-11-05 20:10:03 +08:00
Nestor Soriano aaab2095fa
Change stable tag to 5.9 2021-11-05 12:57:59 +01:00
Nestor Soriano e1bdd037c1
Add missing changelog entries for 5.9 2021-11-05 12:56:59 +01:00
Nestor Soriano 63531b985b
Bump WooCommerce Admin version to 2.8.0 2021-11-05 12:11:11 +01:00
Nestor Soriano 2d71ec403c
Fix (and improve) failing unit test. 2021-11-05 11:59:33 +01:00
Nestor Soriano d98112e014
Use base taxes instead of current user taxes in wc_get_price_excluding_tax
Modify wc_get_price_excluding_tax so that when there's no user
available from a passed order and the
'woocommerce_adjust_non_base_location_prices' filter returns false,
the shop base location is used for the tax calculation instead of
the location of the currently logged in user.
2021-11-05 11:59:33 +01:00
Nestor Soriano 76c611b2d8
Fix: wc_get_price_excluding_tax when an order with no customer is passed
PR #30692 modified 'wc_get_price_excluding_tax' so that if an order
is passed its customer will be passed to WC_Tax::get_rates in order
to use the proper location for the taxes to be discounted. The problem
is that when the order has no customer (it's "Guest") an invalid
customer (id=0) is passed, which has no location, and thus no taxes
are deducted whatsoever.

The fix consists of checking if the customer id from the order is 0,
and in that case no customer is passed to WC_Tax::get_rates, thus
the shop location is used for the taxes.
2021-11-05 11:59:33 +01:00
And Finally 1a48569af9 Allow for 9 items in Marketing recommended lists (https://github.com/woocommerce/woocommerce-admin/pull/7887)
* - Increased `per_page` parameter of API request in `getRecommendedPlugins` from 6 to 9, to accommodate additional MailPoet item.
- Added new `mailpoet.js` with SVG icon for MailPoet, and corresponding entry to list of product icons.

* Changelog for this change.

* Renamed changelog.

* Added PR number to changelog content.

* Fix formatting

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2021-11-05 12:08:35 +08:00
Moon a70d331cdf Present Inbox notes in a panel with header (https://github.com/woocommerce/woocommerce-admin/pull/7864)
* Wrap notes with Card component -- Added header, badge, and cllipsis menu

* CSS changes to adjust padding and margin

* Change buttons to link style

* Render image only when the layout is thumbnail

* Add hover state

* Update text and classname

* Dismiss note immediately without prompting a confirmation (https://github.com/woocommerce/woocommerce-admin/pull/7868)

* use woocommerce-admin-dismiss-notification class to target the dissmiss btn

* Add changelog

* Specify CSS styles so tha they dont get overridden by other plugins

* Update changelog

* Remove message gap

* Remove unwanted changes from package-lock.json

* Update changelog
2021-11-04 20:51:30 -07:00
And Finally a6828f915c Revert woocommerce/woocommerce-admin#7529 – remove Marketplace menu (https://github.com/woocommerce/woocommerce-admin/pull/7902)
* Reverts the changes in https://github.com/woocommerce/woocommerce-admin/pull/7529, as we are merging My Subscriptions and Marketplace back into one Extensions page.

* Reverts the changes in https://github.com/woocommerce/woocommerce-admin/pull/7529, as we are merging My Subscriptions and Marketplace back into one Extensions page.

* Added changelog.
2021-11-05 11:21:52 +08:00
And Finally d03e53e765 Revert woocommerce/woocommerce-admin#7471 – use "Extensions" as the page title for My Subscriptions and Marketplace pages (https://github.com/woocommerce/woocommerce-admin/pull/7901)
* Reverts the changes in https://github.com/woocommerce/woocommerce-admin/pull/7471, as we are merging the My Subscriptions and Marketplace pages back into one Extensions page.

* Added changelog.
2021-11-05 11:21:35 +08:00
LuigiPulcini 06894169da
Added logic to return on custom actions
This change adds the possibility for custom actions to return prematurely before the AJAX request is sent.
2021-11-05 00:32:18 +01:00
roykho b64d0b3dfe
Add initial project.json config files to all packages and plugins 2021-11-04 14:51:04 -07:00
Lourens Schep 012359b499 Fix format of order_edit_recalc_totals props, so event does not get rejected 2021-11-04 12:26:41 -03:00
roykho acbd9883f1
Prevent from running npm 2021-11-04 07:36:58 -07:00
roykho 7db8509af1
Extend the base TS configuration and update package path 2021-11-04 07:32:47 -07:00
Fernando 9a2cd38004 Add tests to Subscriptions inclusion (https://github.com/woocommerce/woocommerce-admin/pull/7804)
* Add unit tests to `OnboardingProductTypes` REST API

* Add e2e tests

* Add changelog

* Fix e2e tests

* Fix test description

* Fix to clean payment methods

* Fixed `clickStartWithTemplate`

* Fix test description

* Add package changelog

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-11-04 10:15:42 -03:00
Tomek Wytrębowicz e73329fdf3 Update links to moved e2e READMEs. 2021-11-04 12:58:11 +01:00
Matt Sherman e7a8193529 Use id instance property in DataSourcePoller instead of ID const defined in child classes (https://github.com/woocommerce/woocommerce-admin/pull/7865) 2021-11-03 17:28:43 -04:00
Rodel 73c3563290 Added WSL instructions 2021-11-04 02:48:30 +08:00
Michael Silber 4cba4bc1be Add woocommerce_after_variations_table action hook after variations table 2021-11-03 05:51:55 -07:00
louwie17 44a01d6fe6 Fix wc_admin_daily from a missed change (https://github.com/woocommerce/woocommerce-admin/pull/7829)
* Fix wc_admin_daily

* Remove accidental change

* Make sure we use slug as key for remote inbox notifications and remove unnecessary transient delete
2021-11-03 09:43:40 -03:00
Manos Psychogyiopoulos fb1cc38375 Delay handling of requests to hide admin notices and limit to admin area
Moving this to `admin_init` also ensures that WC_Notes_Run_Db_Update has been instantiated before it can hook into the `woocommerce_hide_update_notice` action. See:

- WC_Install:init()
- WC_Notes_Run_Db_Update::construct()

closes #30781
2021-11-03 10:28:30 +02:00
Peter Fabian 3398cf88cb Clarify tooltip for on-hold email. 2021-11-03 13:35:58 +05:30
Moon 6747e90ceb Remove the Spinner component while loading the store alerts (https://github.com/woocommerce/woocommerce-admin/pull/7886)
* Remove Spinner

* Add changelog

* Use null so it render nothing

* Update changelog
2021-11-02 21:17:26 -07:00
Matt Sherman 04a9091c29 Sync changelog from 2.8.0 (https://github.com/woocommerce/woocommerce-admin/pull/7880)
* Add changelog entry for 7824

* Add changelog entry for 7813

* Add changelog entry for 7817

* Update changelog for 7856 and 7873
2021-11-02 19:00:10 -04:00
Adrian Duffell 5d6ceafbff Bump Minimum Versions for 2.9 Release (https://github.com/woocommerce/woocommerce-admin/pull/7883)
* Bump WordPress version

* Bump WooCommmerce version
2021-11-03 06:48:33 +08:00
Adrian Duffell db11df4296 Add 2col Experiment (https://github.com/woocommerce/woocommerce-admin/pull/7872)
* Update experiment name

* Add 2col experiment

* Add changelog

* Update changelog

* Revert "Add 2col experiment"

This reverts commit 6509bf75f48d2662a4b3e53d3022ea82daac0d2b.

* Add 2col experiment
2021-11-03 06:36:12 +08:00
Moon 6205c8ba01 Avoid caching extended info on Analytics -> Products (https://github.com/woocommerce/woocommerce-admin/pull/7819)
* Do not cache extended info -- this is required to get the latest stock data

* Add changelog
2021-11-02 15:18:57 -07:00
Joel Thiessen 5356726638 Adding unfulfilled order count badge to woo navigation (https://github.com/woocommerce/woocommerce-admin/pull/7835) 2021-11-02 12:00:21 -07:00
Joshua T Flowers d27da1aac1 Clean up tax task components (https://github.com/woocommerce/woocommerce-admin/pull/7870)
* Separate tax automated screen and stepper

* Move stepper to separate folder

* Fix up TS errors

* Fix location settings update

* Move complete address logic to store location component

* Prevent prematurely showing steps before resolution

* Update onEnable to onAutomate

* Add changelog entry
2021-11-02 13:33:42 -04:00
barryhughes 91435c89c5 Correct IQD currency symbol. 2021-11-02 10:32:37 -07:00
Joshua T Flowers ea857c73d6 Add WC Pay in person text (https://github.com/woocommerce/woocommerce-admin/pull/7830)
* Update WCPay in person text

* Remove div wrapping finish setup button

* Add changelog entry

* Add US specific WooCommerce Payment suggestion

* Allow different gateway suggestion IDs for wcpay

* Add older fallback version of WCPay

* Change check to dev version of 2.9.0

* Use 5.10.0-dev for WC checks
2021-11-02 09:03:04 -04:00
Adrian Duffell d57232719d Add Profile Notes (https://github.com/woocommerce/woocommerce-admin/pull/7861)
* Add wc-admin-update-store-details note

* Add wc-admin-complete-store-details note

* Add notes to daily cron

* Add conditional display of notes if in experiment

* Fix bug preventing control experience being cached in transient

* Add filtering of experiment notes in REST API

* Revert "Add conditional display of notes if in experiment"

This reverts commit 99908b83d7868ae69dd1ccca1b565ee2de4dff0d.

* Add changelog

* Update changelog

* Refactor experiment condition for performance
2021-11-02 13:01:31 +08:00
Moon 777c3a709a Add two-columns class dynamically (https://github.com/woocommerce/woocommerce-admin/pull/7878) 2021-11-01 19:43:46 -07:00
Moon 5391b9e066 Remove store setup from the things to do list (https://github.com/woocommerce/woocommerce-admin/pull/7876) 2021-11-01 19:33:10 -07:00
louwie17 1af44c47fa Add extra intl countries to WC Pay support (https://github.com/woocommerce/woocommerce-admin/pull/7873)
* Fix lint error

* Add changelog
2021-11-01 16:33:08 -03:00
Peter Fabian f7eeeacb10 Fixed typo in readme. 2021-11-01 11:43:26 +01:00
Barry Hughes ec5ab7cdb5
Merge pull request #30997 from woocommerce/update/has-block-template-filter
Update has_block_template function to use apply_filters
2021-10-29 08:47:04 -07:00
Tom Cafferkey f8eebbecbd
Update plugins/woocommerce/includes/class-wc-template-loader.php
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2021-10-29 16:16:10 +01:00
Joshua T Flowers d5bdb285d8 Add marketing extensions back to obw (https://github.com/woocommerce/woocommerce-admin/pull/7831)
* Add back in extension list title

* Separate task list and obw plugin lists

* Remove mailpoet from basics list

* Bump extensions REST API to v3

* Add changelog entry
2021-10-29 08:47:05 -04:00
Tom Cafferkey 3047603e2b Updated has_block_template to have type casting, added a block comment to the filter and updated filter prefix to use woocommerce_ 2021-10-29 13:02:23 +01:00
Ilyas Foo e73a4cd2ea Add console warning on Inbox notes character limit (https://github.com/woocommerce/woocommerce-admin/pull/7869)
* Add initial console warning

* Update warning to include permalink to post

* Fix formatting for multiple notes

* Changelog

* Add dompurify

* Add translation
2021-10-29 18:15:42 +08:00
Paul Sealock 789d942f89
Update e2e package locations and add PNPM (#30977) 2021-10-29 08:32:31 +13:00
Peter Fabian bc25115549
Merge pull request #31034 from woocommerce/tweak/readme-verbiage
Spotfix a few typos
2021-10-28 14:38:37 +02:00
Veljko 5c110acd4a Add performance orders search 2021-10-28 13:52:12 +02:00
Ilyas Foo d4e27ea3ea Fix Tasklist UI illustrations styling (https://github.com/woocommerce/woocommerce-admin/pull/7858)
* Fix css styles

* Changelog
2021-10-28 16:02:56 +08:00
Joshua T Flowers 91473959c8 Update add task extension example (https://github.com/woocommerce/woocommerce-admin/pull/7809)
* Update task extension example

* Fix up namespaced classes

* Register task on init hook for REST usage
2021-10-27 15:03:27 -04:00
Ilyas Foo 96028ff055 Revert experiment task titles back to original (https://github.com/woocommerce/woocommerce-admin/pull/7853)
* Remove experiment task titles

* Changelog
2021-10-27 17:41:51 +08:00
Ilyas Foo 7ae80e7969 Change CTA text for personalize store task after completion (https://github.com/woocommerce/woocommerce-admin/pull/7852)
* Change CTA text for personalize store task after completion

* Changelog
2021-10-27 17:41:34 +08:00
Néstor Soriano 2d405cc8c1
Merge pull request #30901 from woocommerce/fix/30594-api-key-description-length
Fix Description Length Preventing REST API Key Creation
2021-10-27 11:10:24 +02:00
Néstor Soriano 59ab939282
Merge pull request #30935 from EvanHerman/trunk
Update locale-info.php
2021-10-27 09:57:44 +02:00
Néstor Soriano 33715a6d96
Merge pull request #30950 from woocommerce/add/enhance-unit-test-documentation
Add troubleshooting section to running unit test section
2021-10-27 09:22:58 +02:00
Nestor Soriano 14ebad52a6
Add "Troubleshooting" to the ToC in the unit tests README. 2021-10-27 09:20:33 +02:00
Moon d97a45c432 Update experiment name (https://github.com/woocommerce/woocommerce-admin/pull/7851)
* Use UTC timezone for the month and year

* Include year
2021-10-26 20:09:26 -07:00
Moon a90f80e838 Set the circle bg to transparent (https://github.com/woocommerce/woocommerce-admin/pull/7849) 2021-10-26 18:56:03 -07:00
Barry Hughes 03903d36a6
Spotfix a few typos 2021-10-26 13:04:44 -07:00
Moon b027461e44 Use WordPress 5.6 (https://github.com/woocommerce/woocommerce-admin/pull/7843) 2021-10-26 10:27:37 -07:00
Rodel ec6f839ee2 Added tests for batch update products 2021-10-26 18:14:57 +08:00
Rodel 817db0aa14 Minor doc update 2021-10-26 18:14:36 +08:00
Ilyas Foo 30d7def26f Add header cards for all tasks in Tasklist UI experiment (https://github.com/woocommerce/woocommerce-admin/pull/7838)
* Add illustration images

* Refactor the way clicking task is handled, tracking clicks should be during CTA

* Refactor task list on select and rendering

* Add WCPay task and update existing tasks to use new API

* Change payments task behaviour to show after wcpay is connected

* Add couple more tasks

* Add marketing and appearance tasks, customize styles

* Refactor to use svg components instead of images, add custom task titles for experiment

* Updated tracking to be like existing task list

* Change default task shown to be the last

* Cleanup css

* Changelog

* Fix ellipsis menu css to be more specific to the respective tasklist
2021-10-26 16:40:35 +08:00
Rodel 751dc5da1f Data file for products CRUD tests 2021-10-26 16:27:20 +08:00
Rodel 054183cb5a Renamed data file for product-list tests 2021-10-26 15:40:00 +08:00
Moon 543cefa004 Two columns experiment - move paid extensions to extended task list (https://github.com/woocommerce/woocommerce-admin/pull/7839)
* Render extended task list

* Remove margin-bottom when the extended task list is empty

* Fix typo

* Remove redundant isVisible check

* Remove unallowedTasks and move it to concat

* Remove woocommerce_tasklist_progression experiment

* Remove duplicate array items

* Use isVisible to check the visibility

* Remove redundant logic
2021-10-25 21:08:05 -07:00
Joel Thiessen c146e25b47 Updating woo navigation link colors for greater contrast (https://github.com/woocommerce/woocommerce-admin/pull/7833) 2021-10-25 09:35:22 -07:00
Tomek Wytrębowicz cc5b2d9f58 Set the scope of `wpNavMenuClassChange` to wp-admin's menu. (https://github.com/woocommerce/woocommerce-admin/pull/7773)
Fixes woocommerce/woocommerce-admin#7772
2021-10-25 15:59:35 +02:00
Rodel 04d6e7acdb Minor test suite name change 2021-10-25 20:03:46 +08:00
Rodel 9104089b01 Split products tests 2021-10-25 20:02:17 +08:00
And Finally 717317142a Restored support for price suffix in in-app marketplace product card, allowing prices per month. This was added in https://github.com/woocommerce/woocommerce/pull/30840, but was accidentally omitted when we fixed conflicts. 2021-10-25 12:55:05 +01:00
Rodel f44f62c385 Merge branch 'trunk' into add/api-test-crud-products 2021-10-25 18:02:46 +08:00
Ilyas Foo 29367e5f14 Fix typescript type error in admin-e2e-tests package (https://github.com/woocommerce/woocommerce-admin/pull/7765)
* Fix type error

* Update changelog

* Better type handlings
2021-10-23 11:03:24 +08:00
louwie17 c12a451af0 Fix/7812 activity panel styling (https://github.com/woocommerce/woocommerce-admin/pull/7813)
* Increase specificity of activity panel css to avoid conflicts

* Fix linting

* Fix some other styles

* Add changelog
2021-10-21 22:18:11 -03:00
louwie17 07adc231f9 Parse low_stock_amount to int if it exists (https://github.com/woocommerce/woocommerce-admin/pull/7817)
* Parse low_stock_amount to int if it exists

* Add changelog
2021-10-21 22:17:09 -03:00
Niels Lange 6631c8a081 Correct link to WooCommerce Developers Blog (https://github.com/woocommerce/woocommerce-admin/pull/7824) 2021-10-21 16:17:00 -04:00
Greg 7f904a7d91
Merge pull request #30982 from woocommerce/add/api-test-refunds
Add Core API tests for Refunds API
2021-10-21 11:29:44 -06:00
Evan Herman 4353eaa73e Update locale-info.php
Revert changes in 9d06c74339?branch=9d06c74339c2ae190b40acc7f0aef38a53140e94&diff=unified#diff-122b62121f7a3deb664f05d12fb2af1c40cf819712b5f2db935017ce4a4c45cbR11
2021-10-21 10:52:01 -04:00
Joel Thiessen ded7a4b3e3 Adding PHP unit tests for tasks rest endpoints (https://github.com/woocommerce/woocommerce-admin/pull/7747) 2021-10-21 07:49:30 -07:00
Veljko e032f6fc51 Add a new empty line at the end of file 2021-10-21 15:12:58 +02:00
Veljko 526961ff40 Update ReadMe file 2021-10-21 15:09:57 +02:00
Veljko 348396ec71 Change Accessories with Category's text 2021-10-21 14:55:39 +02:00
Veljko a5ef3fecf6 Add product category parameter 2021-10-21 14:47:32 +02:00
Veljko a84ffcc42d Add new performance test category page 2021-10-21 12:15:12 +02:00
Rodel ea69de368c Added changelog entry 2021-10-21 16:59:43 +08:00
Rodel e6a009e598 Corrected changelog format 2021-10-21 16:58:58 +08:00
Rodel c08358ff48 Corrected Changelog entry 2021-10-21 16:58:48 +08:00
Rodel f5cec2b920 Added changelog entry 2021-10-21 16:58:29 +08:00
Rodel a309b4af2c Added test for variable product 2021-10-21 16:33:09 +08:00
Rodel 8c6252996d Added test for virtual product 2021-10-21 15:00:58 +08:00
Rodel cdebd25895 Corrected changelog format 2021-10-21 14:21:47 +08:00
Rodel 91e570b89b Corrected Changelog entry 2021-10-21 14:09:27 +08:00
Rodel 919f41fed3 Remove unneccessary import 2021-10-21 14:08:47 +08:00
Moon b8f4d035cb Bump @woocommerce/components version to 8.1.1 (https://github.com/woocommerce/woocommerce-admin/pull/7826)
* Bump components version to 8.1.1

* Update changelog

* Update changelog

* Update changelog
2021-10-20 16:29:14 -07:00
louwie17 3707812ebe Refactor/consolidate Datasource poller (https://github.com/woocommerce/woocommerce-admin/pull/7671)
* Initial refactor and consolidation of the DataSourcePoller code

* Move transient logic into DataSourcePoller class

* Fix function name

* Fix tests

* Add changelog

* Fix tests and update use of DataSourcePoller

* Make use of ID's in the DataSourcePoller

* Fix parsing error

* Update data_sources filter
2021-10-20 15:53:43 -03:00
Moon ef0fde6632 Add summary tasks for the new two-column tasklist experiment (https://github.com/woocommerce/woocommerce-admin/pull/7669)
* Add two column version of task list with a new design

* Show number in the status circle

* Set background for the active task

* Remove border top

* Changes in single column

* Task list does not render in the left column if two column task list has been rendered already.

* Your store today and activity panel does not render if user is running two column experiment

* Update the circle border color

* Fix lint issue

* Support single column mode

* Add box-shadow transition

* Fix max width

* Set the first card as the default if all tasks are complete

* Adjust font-weight for the complete tasks

* Use experiment

* Remove unnecessary placeholder

* Use two-column placeholder

* Use the new task REST API

* Remove unused code -- these are no longer used as we are using the new task list REST API

* Update logic to use the new fields

* Update css to fit the homescreen card

* Remove unused var

* Sync changelog from 2.8.0-rc.2 (https://github.com/woocommerce/woocommerce-admin/pull/7783)

* Remove changelogs that were picked into 2.8.0-beta.2

* Update changelog for 7690

* Update changelog for 7743

* Update changelog for 7734

* Update changelog for 7763, 7771

* Remove changelog for 7763 from 2.8.0 since it was in 2.7.2

* Update changelog for 7798

* Show keep & dismiss page when tasks are complete (https://github.com/woocommerce/woocommerce-admin/pull/7684)

* Add two column version of task list with a new design

* Changes in single column

* Task list does not render in the left column if two column task list has been rendered already.

* Your store today and activity panel does not render if user is running two column experiment

* Prompt a modal when hiding the task list

* Add completed compoent

* Move completed task to task-list

* Implement hide and keep list buttons

* Fix keep task list button

* Rename hideTaskCard to hideTasks and keepTaskCard to keepTasks

* Add two column version of task list with a new design

* Show number in the status circle

* Set background for the active task

* Remove border top

* Changes in single column

* Task list does not render in the left column if two column task list has been rendered already.

* Your store today and activity panel does not render if user is running two column experiment

* Update the circle border color

* Fix lint issue

* Support single column mode

* Add box-shadow transition

* Fix max width

* Set the first card as the default if all tasks are complete

* Adjust font-weight for the complete tasks

* Use experiment

* Remove unnecessary placeholder

* Use two-column placeholder

* Use the new task REST API

* Remove unused code -- these are no longer used as we are using the new task list REST API

* Update logic to use the new fields

* Update css to fit the homescreen card

* Remove unused var

* Show keep & dismiss page when tasks are complete (https://github.com/woocommerce/woocommerce-admin/pull/7684)

* Add two column version of task list with a new design

* Changes in single column

* Task list does not render in the left column if two column task list has been rendered already.

* Your store today and activity panel does not render if user is running two column experiment

* Prompt a modal when hiding the task list

* Add completed compoent

* Move completed task to task-list

* Implement hide and keep list buttons

* Fix keep task list button

* Rename hideTaskCard to hideTasks and keepTaskCard to keepTasks

* Remove unnecessary feature checking logic

* Separate && operator for Activity Header and Panel since one of them can be empty

* Add changelog

Co-authored-by: Matt Sherman <matt.sherman@automattic.com>
2021-10-20 09:16:22 -07:00
James eb579c814c Fixes #30400 by multiplying refund values by -1 2021-10-20 18:13:06 +02:00
Tom Cafferkey b4526429cb Update has_block_template function to use a filter 2021-10-20 15:44:16 +01:00
Barry Hughes fa0464930c
Merge pull request #30960 from woocommerce/fix/27103-rate-limiter
Store WC_Rate_Limit Entries in a Custom Table
2021-10-20 07:10:20 -07:00
Peter Fabian 75dbec00fd
Merge pull request #30987 from woocommerce/fix/27793
add phpdoc block with gist reference to woocommerce_package_rates filter
2021-10-20 15:43:18 +02:00
Matt Sherman 174cec6521 Sync changelog from 2.8.0-rc.2 (https://github.com/woocommerce/woocommerce-admin/pull/7783)
* Remove changelogs that were picked into 2.8.0-beta.2

* Update changelog for 7690

* Update changelog for 7743

* Update changelog for 7734

* Update changelog for 7763, 7771

* Remove changelog for 7763 from 2.8.0 since it was in 2.7.2

* Update changelog for 7798
2021-10-20 09:01:51 -04:00
Jeff Stieler 5aee007892 Clear rate limit cleanup job on uninstall. 2021-10-20 08:27:00 -04:00
Jeff Stieler 5d182ee71a Put cleanup hook attachment in an init method. 2021-10-20 08:26:59 -04:00
Jeff Stieler befa2b0a95 Add test case for options migration. 2021-10-20 08:26:58 -04:00
Jeff Stieler a255f4b18e Use substr instead of str_replace. 2021-10-20 08:26:56 -04:00
Jeff Stieler 6715fb5a9b Save 2 seconds on test execution by reducing sleep() time. 2021-10-20 08:26:55 -04:00
Jeff Stieler 20614cfdcb Add rate limiter test case for cache misses. 2021-10-20 08:26:52 -04:00
Jeff Stieler f218571fec Add daily cleanup of expired rate limits. 2021-10-20 08:26:51 -04:00
Jeff Stieler a8b4f83c9c Cache rate limit values. 2021-10-20 08:26:49 -04:00
Jeff Stieler 070dc4fcd1 Migrate rate limit options on DB update. 2021-10-20 08:26:47 -04:00
Jeff Stieler 39d3de1d41 Use a new table for storing rate limits. 2021-10-20 08:26:45 -04:00
Niels Lange ebd37e462f Move additional information out of the source code block 2021-10-20 18:24:23 +07:00
Jeff Stieler 43b770ce1f Fix orderby slug and include parameters. 2021-10-20 16:28:55 +05:30
Rodel 34eb9549dc Added tests for simple product 2021-10-20 17:50:08 +08:00
dnwjn 2102148c4a Add filter for refund restock note
This implements a filter that allows for editing the refund restock note.
2021-10-20 11:11:54 +02:00
Rodel b415f103fb Merge branch 'trunk' into add/api-test-refunds 2021-10-20 13:39:30 +08:00
Greg c99af9f33e
Merge pull request #30979 from woocommerce/add/api-test-coupons-2
Added tests for coupons api
2021-10-19 15:51:07 -06:00
louwie17 7a1a6cda06 Check if onboarding is defined before finding themes (https://github.com/woocommerce/woocommerce-admin/pull/7818) 2021-10-19 15:00:54 -03:00
Ron Rennick 37c7de4422 add phpdoc block with gist reference to woocommerce_package_rates filter 2021-10-19 13:15:43 -03:00
Rodel caf0a818df Added changelog entry 2021-10-19 20:35:18 +08:00
Rodel 515b073834 Added tests for Refunds API 2021-10-19 20:34:43 +08:00
Joshua T Flowers 1004dfddad Add method to check for install status (https://github.com/woocommerce/woocommerce-admin/pull/7808)
* Add method to check for install status

* Add changelog entry

* Add PR number to changelog
2021-10-19 08:15:45 -04:00
Niels Lange 7b88cb09a1 Add troubleshooting section to running unit test section 2021-10-19 17:45:14 +07:00
Jeff Stieler 3e5e9e8eda
Add test case for API key admin ajax error visibility. 2021-10-19 12:33:20 +02:00
Jeff Stieler 4975a5ea21
Avoid reporting success when API key insertion fails. 2021-10-19 12:33:20 +02:00
Jeff Stieler 68f1b12797
Limit API key description field to 200 characters. 2021-10-19 12:33:20 +02:00
Jeff Stieler 7a68bc5ff7
Ensure that API key descriptions are truncated over the REST API. 2021-10-19 12:33:19 +02:00
Peter Fabian 7a6c320fcc
Make the message more clear. 2021-10-19 11:45:42 +02:00
Peter Fabian 4ea28030f2
Warn users of shipping rates to test for existence of meta_data correctly.
As per the info in the issue itself, using `isset()` gives incorrect result all the time, so warn developers about the problem.
2021-10-19 11:45:42 +02:00
Rodel b3410791e5 Added changelog entry 2021-10-19 15:20:39 +08:00
Rodel ce3bb3dc4c Added tests for coupons api 2021-10-19 15:09:48 +08:00
Paul Sealock ffa595ac40 add working directory path to build workflow 2021-10-19 10:46:11 +13:00
roykho 0b3a8a0557 Move phpunit.xml into plugins/woocommerce structure 2021-10-19 10:35:46 +13:00
Paul Sealock 926685448e JS formatting files 2021-10-19 10:35:46 +13:00
Paul Sealock a837deea64 Add wp-env 2021-10-19 10:35:46 +13:00
Paul Sealock ef015f740f git mv a few folders 2021-10-19 10:35:45 +13:00
louwie17 f16039684f Tests for task list components (https://github.com/woocommerce/woocommerce-admin/pull/7757)
* Added first set of task-list tests

* Fix event prefix and add two extra task list tests

* Add test for task list item

* Update package to allow tests with slotfill to work

* Add tests for Task component

* Add tasks tests

* Revert package.json changes

* Update prefixEvent function and revert package.json changes

* Remove class additions to body tag

* Add missing styles to tasks container as well
2021-10-15 16:56:17 -03:00
louwie17 d644e1f161 Update changelog (https://github.com/woocommerce/woocommerce-admin/pull/7803) 2021-10-15 09:19:19 -03:00
louwie17 a1d490d535 Update free extension copy of the google listings plugin (https://github.com/woocommerce/woocommerce-admin/pull/7798) 2021-10-14 10:29:09 -04:00
Joshua T Flowers 816776b02b Add route and layout for unmatched path (https://github.com/woocommerce/woocommerce-admin/pull/7503)
* Add route and layout for unmatched path

* Add NoMatch to catch missing report pages

* Load WooCommerce Admin scripts on all pages

* Move NoMatch inside default page layout

* Add permission checks to tabs

* Allow update_option_extended_task_list to be called on non-admin pages

* Check for task list task count in extended list update function

* Add changelog entry

* Add PR number to changelog entry

* Remove deprecated extended task list filter and tests
2021-10-14 10:04:17 -04:00
Fernando 09ea5c0da5 Enable subscriptions inclusion for every envrionment (https://github.com/woocommerce/woocommerce-admin/pull/7799)
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-10-13 15:19:37 -04:00
Joshua T Flowers 0e132febad Add onboarding task docs (https://github.com/woocommerce/woocommerce-admin/pull/7762)
* Add onboarding task docs

* Add data store actions and class arguments

* Add SlotFill examples

* Add missing spaces

* Add sort_by argument

* Add changelog entry
2021-10-13 15:17:57 -04:00
Fernando 7085834b19 Add check before changing the state (https://github.com/woocommerce/woocommerce-admin/pull/7794)
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-10-13 13:16:32 -03:00
Fernando f20113fa01 Add country validation to subscription inclusion (https://github.com/woocommerce/woocommerce-admin/pull/7777)
* Add country validation

* Add OnboardingProductTypes

* Add OnboardingProductTypes

* Add country validation to product task

* Add `productTypes` data handling

* Add country validation and new productTypes handling

* Fix to get `productTypes` from a SSOT

* Add `invalidateResolution` for `getTaskLists`

* Fixed testing instructions

* Fix `isTaskListHidden` issue

* Fixed product type

* Added constant `EMPTY_ARRAY` to `selectors.ts`

* Fixed constant `EMPTY_ARRAY`

* Moved `invalidateResolutionForStoreSelector` into OBW

* Updated testing instructions

* Updated testing instructions

* Fixed testing instructions

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-10-13 13:15:47 -03:00
louwie17 a8a3238c38 Update E2E tests logic a bit (https://github.com/woocommerce/woocommerce-admin/pull/7769) 2021-10-13 08:36:19 -03:00
Taha Paksu 40cba3b0fb Add E2E tests for initial store currencies with different onboarding countries (https://github.com/woocommerce/woocommerce-admin/pull/7712)
* initial push

* Add E2E test for onboarding currency

* Wait for navigation to complete

* Change method for value check

* Fix dropdown selector

* Add more country tests

* Add changelog entry

* Add test to runner

* Change the call order

* Fix country specs

* Fix country specs for UK

* Try changelog again

* Move changelog record to e2e-tests

* Convert string concats to template literals

* Remove spaces

* Fix linter errors

* Add check for WCPay supported countries
2021-10-13 12:16:35 +08:00
Danae Millan db2a74927b Fix calendar not being dismissed when clicked outside (https://github.com/woocommerce/woocommerce-admin/pull/7714)
* Add an 'onBlur' property to the 'DateInput' component

This allows passing a callback function for the input's onBlur event.

* Close the calendar when an element outside the parent dropdown gets focused

Previously, you had to click on the calendar and then click anywhere else for it to be closed without selecting a date. Now the calendar gets closed when any element outside the parent's dropdown element gets thefocus.

* Remove redundant code for dismissing the calendar when pressing the tab key

Dismissing the calendar this way doesn't seem to be good for accessibility. That aside, the introduced dismissal on blur handles the scenario of when the calendar isn't needed anymore and the user is navigating with the keyboard.

* Add changelog entry

* Use the PR ID instead of the issue ID for the changelog entry

* Separate new declaration on a new line instead of using a comma

* Add an entry to the packages/components/ changelog
2021-10-13 08:20:24 +08:00
Joshua T Flowers cdebc7ed0f Sync changelog from 2.7.2 (https://github.com/woocommerce/woocommerce-admin/pull/7787) 2021-10-12 15:57:46 -04:00
louwie17 9f6963f87d Add sort_by config option to the sort_tasks method (https://github.com/woocommerce/woocommerce-admin/pull/7767)
* Add sort_by config option to the sort_tasks method

* Add tests for sort function

* Fix merge conflict
2021-10-12 15:28:52 -03:00
louwie17 beb05ae487 Move some of the deprecated tasks stuff outside of the main components (https://github.com/woocommerce/woocommerce-admin/pull/7761)
* Move some of the deprecated tasks stuff outside of the main components

* Do not add data to request when no depreciated tasks

* Move possiblePruneTaskData function to the deprecated-tasks class
2021-10-12 11:05:43 -03:00
Louis Laugesen 5d259f7a4b Fix wc-admin nav styles after GB 11.6.0 changes (https://github.com/woocommerce/woocommerce-admin/pull/7771)
* Fix wc-admin nav styles after GB 11.6.0 changes

* log

* Update changelogs/fix-nav-style

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>

* Hover fix for back button

* Merge styles with existing

* Fix back button size

* fix whitespace issues

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
Co-authored-by: Paul Sealock <psealock@gmail.com>
2021-10-12 18:28:19 +08:00
Matt Sherman 30a808f49b Remove old changelog from readme.txt and update minimum requirements (https://github.com/woocommerce/woocommerce-admin/pull/7774)
* Remove old changelog from readme.txt and update minimum requirements
* Update WC requires/tested versions in plugin comment block
2021-10-11 14:33:09 -04:00
Ilyas Foo 364b284e3e Fix analytics crashing on daylight saving (https://github.com/woocommerce/woocommerce-admin/pull/7763)
* Fix next_day_start from miscalculating daylight saving dates

* Add failsafe for do-while loop in next_week_start

* Add changelog

* Add seconds to setTime
2021-10-11 09:45:24 +08:00
Joshua T Flowers 76c082ff2c Add TaskList unit tests (https://github.com/woocommerce/woocommerce-admin/pull/7754)
* Add TaskList unit tests

* Remove extra prefix event method

* Fix up test vars
2021-10-08 17:01:37 -04:00
Joshua T Flowers d8f3aca83a Use action to verify appearance task completion (https://github.com/woocommerce/woocommerce-admin/pull/7770)
* Use task action to verify appearance completion

* Add migration for old option

* Handle PR feedback
2021-10-08 17:01:12 -04:00
leonardo lopes de albuquerque 2521d7d073 Fix nesting div inside p element (https://github.com/woocommerce/woocommerce-admin/pull/7704)
* changed p element to div to allow inner elements. This prevents warnings when using ReportCard component woocommerce/woocommerce-admin#7703

* added testing instructions and changelog woocommerce/woocommerce-admin#7703

* removed unnecessary test description woocommerce/woocommerce-admin#7703

Co-authored-by: Leonardo Lopes de Albuquerque <leonardo.albuquerque@automattic.com>
2021-10-07 11:47:14 -03:00
Ilyas Foo cc1dab6e70 Bump admin-e2e-tests version to 0.1.2 (https://github.com/woocommerce/woocommerce-admin/pull/7764) 2021-10-07 13:05:40 +08:00
Joshua T Flowers eefb1c2513 Add missing task events (https://github.com/woocommerce/woocommerce-admin/pull/7744)
* Add task view event

* Fix double prefix on events

* Add shared trait for event recording

* Fix double prefixed events

* Use record_tracks_event to record task related events

* Handle PR feedback

* Add parent ID to temporary extended tasks

* Fix prefixing order
2021-10-06 16:48:55 -04:00
Joshua T Flowers ba71478725 Clean up task related functions (https://github.com/woocommerce/woocommerce-admin/pull/7739)
* Move active task transient

* Move default tasks to constant

* Move task return notice scripts

* Remove redundant task completion check

* Move deprecated options to separate class

* Move media scripts to appearance task

* Fix up missing classes
2021-10-06 16:48:28 -04:00
louwie17 6852ec0571 Make sure the depreciated onClick is triggered and container is used (https://github.com/woocommerce/woocommerce-admin/pull/7749)
* Make sure the depreciated onClick is triggered and container is used

* Fix the extended tasks condition

* Add sort by support for task list

* Revert extension example changes back

* Move sorting tasks to the API and add asc/desc support

* Revert extension example changes

* Update sort function naming
2021-10-06 15:47:41 -03:00
Jacob Sewell 6aa8afa85a Minor design update to marketing task (https://github.com/woocommerce/woocommerce-admin/pull/7732)
* Remove background color from marketing tool list header, increasee padding in plugin list, rearrange list borders.

* Changelog entry for 7642.

* Section heading tweaks: bottom padding, force uppercase.

* Move Marketing task plugin list changes into more specific stylesheet.
2021-10-06 12:26:27 -05:00
Fernando aef7742b69 Add testing instructions to 7445 (https://github.com/woocommerce/woocommerce-admin/pull/7759)
* Add testing instructions

* Fix typo

* Fix release version

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-10-06 14:04:59 -03:00
Ron Rennick 5a8a019465 restore closed overview sections before testing (https://github.com/woocommerce/woocommerce-admin/pull/7652)
* restore closed overview sections before testing

* add changelog entry
2021-10-06 13:24:10 -03:00
Fernando f35fae4482 OBW - Fix WooCommerce Payments installation footnote visibility (https://github.com/woocommerce/woocommerce-admin/pull/7756)
* Fixed `wc-pay` footnote visibility

* Added validation before `setState`

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-10-06 13:09:20 -03:00
Ron Rennick c0759cdbe3 update waitFor calls to waitForFunction, waitForTimeout (https://github.com/woocommerce/woocommerce-admin/pull/7646)
* update waitFor calls to waitForFunction, waitForTimeout

* fix linting

* move waitForTimeout to general utility function
2021-10-06 11:07:09 -03:00
Matt Sherman f3b0441f80 Update WC requires/tested versions (https://github.com/woocommerce/woocommerce-admin/pull/7755) 2021-10-06 09:39:39 -04:00
Ron Rennick 09a285cb52 add Customers page E2E test (https://github.com/woocommerce/woocommerce-admin/pull/7645) 2021-10-06 09:59:44 -03:00
Paul Sealock 5fb4fb51a9 wp-env: Use WooCommerce Core latest (https://github.com/woocommerce/woocommerce-admin/pull/7752) 2021-10-06 20:42:45 +13:00
Moon 9d75d82eb1 Use target: es2019 for backward compatibility (https://github.com/woocommerce/woocommerce-admin/pull/7658) 2021-10-06 14:52:42 +08:00
louwie17 3bda07aec3 Add status param support for dismissing all notes (https://github.com/woocommerce/woocommerce-admin/pull/7743)
* Add status param support for dismissing all notes

* Add changelog

* Add unit test for new arg in /delete/all endpoint
2021-10-05 15:37:52 -03:00
Joshua T Flowers 0b8596f53c Remove tasks feature flag and old components (https://github.com/woocommerce/woocommerce-admin/pull/7736)
* Remove feature flag

* Remove unused task status items

* Remove old task list components

* Remove more unused task status items

* Move completion checking to TaskList class

* Move completion checking to Task class

* Add changelog entry

* Fix up old task-list component references

* Remove flag around slotfill area

* Add back missing task stylesheet

* Move task specific styles to respective fills

* Add PR number to changelog entry
2021-10-05 14:20:28 -04:00
Joshua T Flowers 93b42ad9ef Add an endpoint and method for actioning tasks (https://github.com/woocommerce/woocommerce-admin/pull/7746)
* Add checks for actioned task status

* Update completion logic for task

* Add rest route for actioning tasks

* Add action in data store for actioning tasks

* Add test for actioning task

* Only prune isActioned from task data
2021-10-05 13:07:50 -04:00
Fernando 5d7661eeb9 Store Profiler and Product task - include Subscriptions (https://github.com/woocommerce/woocommerce-admin/pull/7734)
* Add flag

* Add free subscription to Product Types step

* Show copy and install WC-Pay when `Subscriptions` is checked

* Fixed `Start with a template` description

* Added flag to product-types and small refactor

* Add test for subscriptions

* Fixed wc-pay installation in product-types step

* Refactor product-template-modal

# Conflicts:
#	client/task-list/tasks/products/product-template-modal.js
#	client/tasks/fills/products/product-template-modal.js

* Add more tests

* Refactor product types list

* Add wc-pay activation in store profiler

* Add `wc-pay filter in business details step

* Add redirection after selecting subscriptions template option

* Fix prop renamed

* Fix product-types list

* Add changelog

* Fix typo

* Add check to `Free features`

* Refactor `SelectiveExtensionsBundle`

* Add `is_activated` to `EvaluateExtension`

* Add validation to `ProductTemplateModal` component

* Removed useless import

* Add missing flags

* Fix list

* Add promise.all to `product-types`

* Removed useless validation

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-10-05 09:27:30 -03:00
Joshua T Flowers ad0afb4aba Sync 2.7.1 changelog (https://github.com/woocommerce/woocommerce-admin/pull/7745) 2021-10-04 15:52:36 -04:00
Joshua T Flowers 5b553ff2ea Allow already installed marketing extensions to be activated (https://github.com/woocommerce/woocommerce-admin/pull/7740)
* Allow already installed marketing extensions to be activated

* Add installAndActivate to old task list

* Add changelog entry
2021-10-04 13:11:00 -04:00
Joel Thiessen 1d00a09ec3 Add show/hide behavior for task list API (https://github.com/woocommerce/woocommerce-admin/pull/7733)
Co-authored-by: Joshua Flowers <joshuatf@gmail.com>
2021-10-04 10:02:01 -07:00
Joshua T Flowers d3d2acdd25 Add optimistic task completion and cache invalidation (https://github.com/woocommerce/woocommerce-admin/pull/7722)
* Add action to optimistically complete task

* Optimistically mark shipping task complete

* Invalidate cache on task completion

* Add complete tax task handler

* Add completion handlers to remaining tasks
2021-10-01 15:53:22 -04:00
louwie17 5c9bf5d925 Add extended task list support to the new REST api task lists (https://github.com/woocommerce/woocommerce-admin/pull/7730)
* Add extended task list support to the new REST api task lists

* Some small refactors

* Small refactors from PR review

* Create extended tasks on the fly if added on the client

* Remove unneeded change

* Add level and additionalInfo support, also adding it to the WooCommerce Payments task

* Fix a mis-type in a comment
2021-10-01 15:46:23 -03:00
Joel Thiessen 9c5c39732b Only return viewable tasks from tasks endpoint (https://github.com/woocommerce/woocommerce-admin/pull/7718) 2021-09-29 16:47:01 -07:00
Joshua T Flowers 43f68534ef Fix task list placeholder not showing (https://github.com/woocommerce/woocommerce-admin/pull/7724) 2021-09-29 14:30:34 -04:00
Joshua T Flowers a423bd0f52 Fix task snooze and dismiss functions (https://github.com/woocommerce/woocommerce-admin/pull/7728)
* Fix tax snoozeability

* Fix tax dismissal endpoint

* Clean up undo endpoints

* Fix up task visibility

* Handle PR feedback
2021-09-29 13:55:44 -04:00
Ron Rennick a5d495906c merge with generated changelog 2021-09-29 13:40:33 -03:00
Ron Rennick 33a19dcf47 add changelog entries 2021-09-29 13:37:56 -03:00
Ron Rennick 2e61ad6382 Product version bump update 2021-09-29 10:50:43 -03:00
Matt Sherman 45122db842 Bump version to 2.9.0-dev (https://github.com/woocommerce/woocommerce-admin/pull/7731)
* Bumps version to 2.9.0-dev

* Delete changelog files from 2.7.x and 2.8.0

* Update changelog for 2.7.1 and 2.8.0

* Update testing instructions for 2.7.1
2021-09-29 06:32:38 -04:00
Fernando fbd6d42574 Add experimental list documentation (https://github.com/woocommerce/woocommerce-admin/pull/7687)
* Moved task-item

* Moved task-item css

* Added readme.md

* Added storybook

* Renamed `remindMeLater

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-09-28 21:21:52 -03:00
louwie17 33ca13abc9 Fix category lookup class (https://github.com/woocommerce/woocommerce-admin/pull/7709)
* Initial test

* Add category look up tests

* Add more tests

* Add changelog

* Update PR number in changelog
2021-09-28 13:59:10 -03:00
Joshua T Flowers a2f78f156b Migrate tasks to task API (https://github.com/woocommerce/woocommerce-admin/pull/7699)
* Move purchase task

* Move products task

* Move WC Pay task

* Fix property casing

* Move payments task

* Move tax task

* Migrate shipping task

* Move marketing task

* Migrate appearance task

* Remove deprecated task filters

* Move logic to respective model

* Fix task list methods

* Update visibility to can_view property

* Add default tasks on demand

* Handle PR feedback
2021-09-27 16:55:55 -04:00
Joel Thiessen 14c38190ac Fixing error thrown when dimissing/snoozing tasks via API (https://github.com/woocommerce/woocommerce-admin/pull/7697) 2021-09-27 13:06:40 -07:00
louwie17 da395281e7 Add changelog and enable promotion in core and plugin configs (https://github.com/woocommerce/woocommerce-admin/pull/7666)
* Add changelog and enable promotion in core and plugin configs

* Add PR number

* Make variation name a constant

* Clone spec as we are overwriting the is_visible prop

* Fix unit tests and support array and object

* Revert explat variation name

* Update changelog entry

* Update changelog once more

* Make sure the recommendations show up if marketplace suggestions is not defined defaulting to 'yes'
2021-09-27 10:24:47 -03:00
Joshua T Flowers 48539bf3f4 Update option list migrations to run on 2.7.1 (https://github.com/woocommerce/woocommerce-admin/pull/7705) 2021-09-24 13:04:43 -04:00
Moon 99705f4ea2 Sync changelog entires from 2.6.x releases (https://github.com/woocommerce/woocommerce-admin/pull/7664)
* Sync changelog

* Update changelog
2021-09-23 21:15:57 -07:00
Ron Rennick 85349215dc bump tested to plugin headers 2021-09-23 21:26:34 -03:00
louwie17 114069a06e Add old option back with depreciated notice for backwards compatibility (https://github.com/woocommerce/woocommerce-admin/pull/7688)
* Add old option back with depreciated notice for backwards compatibility

* Add changelog

* Update depreciation message
2021-09-23 16:14:45 -03:00
Ron Rennick c3b610b724 fix conditional logic for enqueuing static resources 2021-09-23 15:26:56 -03:00
Jacob Sewell c0ea027afa Fix/7591 eWAY to Eway (https://github.com/woocommerce/woocommerce-admin/pull/7678)
* Change eWAY to Eway.

* Change eWAY to Eway.

* Create changelog for PRwoocommerce/woocommerce-admin#7678 (fixes Issuewoocommerce/woocommerce-admin#7591)
2021-09-23 10:08:00 -05:00
louwie17 8969c01c06 Fix track properties and add warning for wrong track format (https://github.com/woocommerce/woocommerce-admin/pull/7677)
* Fix track properties and add warning for wrong track format

* Add changelog

* Add eslint disable for console warning

* Remove unneeded change
2021-09-23 10:39:44 -03:00
Ilyas Foo 804116be18 Bump admin-e2e-tests version to 0.1.1 (https://github.com/woocommerce/woocommerce-admin/pull/7700)
* Bump admin-e2e-tests to 0.1.1

* Add missed changes to changelog
2021-09-23 20:10:10 +08:00
louwie17 6f9cd96867 Fix issue where variation name might not exist in analytics (https://github.com/woocommerce/woocommerce-admin/pull/7686)
* Make sure name is defined before using indexOf

* Add changelog
2021-09-23 08:58:10 -03:00
louwie17 3b2cce8814 Include yoast phpunit polyfills in phpunit tests (https://github.com/woocommerce/woocommerce-admin/pull/7695)
* Include yoast phpunit polyfills in phpunit tests

* Do a normal composer install

* Use original composer.lock

* Remove the use of composer 1

* Fix asset url

* Fix failed test with file rename

* Make sure plugin_dir_url is pointing at a file

* Fix asset url take 3

* Fix lint error
2021-09-23 18:01:52 +08:00
Hsing-yu Flowers 082c6e3edd Assign parent order status as children order status if refund order (https://github.com/woocommerce/woocommerce-admin/pull/7253)
* Assign parent order status as children order status if refund order

* Handle feedback

* Add changelog entry

* Check order type before calling get_refunds
2021-09-23 15:45:54 +08:00
Ron Rennick 293fab8c4e Product version bump update 2021-09-22 16:18:32 -03:00
Jacob Sewell 78d280ebf7 Add France to list of countries that get Square as an option… (https://github.com/woocommerce/woocommerce-admin/pull/7679)
* Add France to list of countries that get Square as an option if selling venues includes brick-mortar or brick-mortar-other.

* Changelog for 7631_include_square_in_fr.
2021-09-22 14:12:41 -05:00
Ron Rennick e1c412220d add changelog header to readme.txt 2021-09-22 16:01:17 -03:00
Ron Rennick 8fbf96655e add svn authorization configuration entry 2021-09-21 16:36:23 -03:00
Joel Thiessen f187c6763a Adding SlotFill support for API-driven tasks components (https://github.com/woocommerce/woocommerce-admin/pull/7616) 2021-09-21 12:33:44 -07:00
Joshua T Flowers b8b7c94bd1 Fix unsecured report files (https://github.com/woocommerce/woocommerce-admin/pull/7691)
* Fix unsecured report files

* Add changelog entry
2021-09-21 12:06:49 -07:00
louwie17 f5dc970a0f Pass empty string instead of null to init (https://github.com/woocommerce/woocommerce-admin/pull/7692) 2021-09-21 14:40:14 -04:00
Joshua T Flowers 9a361dde6c Add Task API (https://github.com/woocommerce/woocommerce-admin/pull/7665)
* Add Task model API

* Add task dismiss and snooze methods

* Add tests

* Fix snooze time check
2021-09-20 17:17:22 -04:00
Ilyas Foo 2be141bd16 Fixes for analytics bugs introduced in 2.6 (https://github.com/woocommerce/woocommerce-admin/pull/7682)
* Return early when categories is not ready

* Revert "Fix blank screen on analytics categories when searching (https://github.com/woocommerce/woocommerce-admin/pull/7482)"

This reverts commit f696474e97.

* Revert "Increase per_page value for search results on the Analytics pages. (https://github.com/woocommerce/woocommerce-admin/pull/7385)"

This reverts commit 8045c92b96.

* Add back working changes

* Add changelog
2021-09-20 12:29:26 -07:00
Joshua T Flowers fb85e6b7d9 Add hide task list endpoint and data actions (https://github.com/woocommerce/woocommerce-admin/pull/7578)
* Add task list hide endpoint and data store actions

* Fix requesting properties for hide task list request
2021-09-20 12:55:33 -04:00
Joshua T Flowers 99b01d6dd2 Add API methods to store task lists and tasks (https://github.com/woocommerce/woocommerce-admin/pull/7663)
* Add API methods to store task lists and tasks

* Fix list string i18n
2021-09-20 12:55:08 -04:00
Ron Rennick f028d728fa allow CBD to be optional in business details in E2E (https://github.com/woocommerce/woocommerce-admin/pull/7675) 2021-09-17 10:55:29 -06:00
Moon aed89bfdc5 Console command to order PRs by merge date (https://github.com/woocommerce/woocommerce-admin/pull/7543)
* Add a command to sort PRs by merge date in asc -- this can be useful when we cherry-pick PRs for the releases

* Check # of arguments

* Convert PHP to shell script
2021-09-15 10:50:54 -07:00
Joel Thiessen 3ee60dc833 Fixing an unwanted page refresh when using Woo Navigation (https://github.com/woocommerce/woocommerce-admin/pull/7615)
* Adding changelog

* Fixing page refresh on woo navigation

* Narrowing scope of navigation slot fills
2021-09-15 09:42:54 -07:00
Jacob Sewell 3b3472595e Fix/7548 set up marketing tools title (https://github.com/woocommerce/woocommerce-admin/pull/7640)
* Fix Marketing tools header: add missing page title for marketing task.

* Add changelog.

* Add PR number to changelog entry for issue woocommerce/woocommerce-admin#7548.

Co-authored-by: Jacob Sewell <jacob.sewell@automattic.com>
2021-09-14 09:40:45 -05:00
Fernando f9ac95b5e5 Bump experimental version to 2.0.3 (https://github.com/woocommerce/woocommerce-admin/pull/7656)
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-09-13 15:02:57 -03:00
Fernando 7b9c721c16 Fernando Marichal (https://github.com/woocommerce/woocommerce-admin/pull/7654)
Bump experimental version to 2.0.2

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-09-13 13:18:43 -03:00
Joshua T Flowers 4c0939288e Get email prefill to avoid infinite loading state (https://github.com/woocommerce/woocommerce-admin/pull/7612) 2021-09-13 11:36:44 -04:00
louwie17 b5ccd3acf8 Add explat variation for wc pay promotion (https://github.com/woocommerce/woocommerce-admin/pull/7554)
* Add experimental abtest class and use it in WCPayPromotion

* Update experiment version data structure

* Address PR feedback
2021-09-10 10:50:58 -03:00
Fernando 291915d7a5 Bump experimental version (https://github.com/woocommerce/woocommerce-admin/pull/7651)
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-09-09 18:04:55 -03:00
Fernando 0fc0d533e0 Bump experimental version (https://github.com/woocommerce/woocommerce-admin/pull/7650)
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-09-09 16:13:13 -03:00
Fernando 2f1b03cc29 Add toggle to experimental task item (https://github.com/woocommerce/woocommerce-admin/pull/7632)
* Add toggle to experimental task item

This commit adds a toggle to experimental task item

* Fixed onClick for expandable tasks

* Add changelog

* Fixed changelog

# Conflicts:
#	packages/experimental/CHANGELOG.md

* Add callback

* Fixed class name

* Add useEffect to experimental-list

* Fixed tests

* Fixed experimental-list useEffect

* Add callback to Home screen task list

* Fixed missing border error

* Fixed wrapper classes

* Fixed lint

* Added missing semicolon

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-09-09 15:30:56 -03:00
louwie17 7f38f6fd0a Feature/7319 add woocommerce com data (https://github.com/woocommerce/woocommerce-admin/pull/7553)
* Add woocommerce.com data source poller

* Change data source back to .com

* Fix namespace

* Make use of the sub_title prop to display payment cards

* Fix some styling issue and add TS types

* Rename admin script to keep it more generic

* Add br tag as allowed, and update expected data format

* Update styling

* Address PR feedback
2021-09-09 09:25:13 -03:00
louwie17 4c4161ac3c Render psuedo wc pay payment gateway in payment method table (https://github.com/woocommerce/woocommerce-admin/pull/7550)
* Render psuedo wc pay payment gateway in payment method table

* Fix lint errors

* Fix lint error

* Add setup event and make use of script_assets file

* Left align payment icons

* Fix feature import and update pageview track

* Fix broken test and add an extra one

* Fix payment method ordering persistance

* Remove the use of psuedo and addressed several PR related feedback

* Fix PHP lint errors

* Make sure track props use underscore

* Fix test

* Update comment

* Add await
2021-09-08 13:41:00 -03:00
louwie17 e6cf391141 Make sure batch fetch resolved data remains consistent (https://github.com/woocommerce/woocommerce-admin/pull/7587)
* Adjust batch fetch logic so data stays the same

* Fix receive options action call

* Resolve returned result

* Add missing await
2021-09-08 09:37:44 -03:00
Joshua T Flowers 13fe7c4c7a Add marketing task testing instructions (https://github.com/woocommerce/woocommerce-admin/pull/7624) 2021-09-07 16:00:11 -04:00
Tomek Wytrębowicz 143113be8a Add optional parameter to `/currency`'s `formatAmount` to display currency code. (https://github.com/woocommerce/woocommerce-admin/pull/7575)
* Add optional parameter to `/currency`'s `formatAmount` to display currency code.

To support rendering non-ambiguous results.

* Add the changelog entry.
2021-09-06 11:52:01 +08:00
renovate[bot] 9295de2bb6 Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/7510)
* Lock file maintenance

* Rework package lock to revert all deps that has @wordpress/elements@3.2.0 update

* Update lock again

* Add missing deps for woocommerce/onboarding

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2021-09-04 12:40:45 +08:00
louwie17 4fb6841e40 Add task list and activity panel E2E tests (https://github.com/woocommerce/woocommerce-admin/pull/7509)
* Add hide and show task list tests

* The start to adding tests for the activity panel

* Add activity panel tests and WP-API plugin on initialize

* Update task list tests to be more flexible

* Add changelog in package

* Update the re-enable task list logic to be more robust

* Use a more generic selector

* Make sure task list is shown in previous test

* Add test screenshot

* Remove screenshot and update logic

* Address PR feedback
2021-09-03 08:21:43 -03:00
louwie17 016a355623 Only display expanded content when expanded is true (https://github.com/woocommerce/woocommerce-admin/pull/7611)
* Only display expanded content when expanded is true

* Add changelogs

* Fix test
2021-09-03 08:20:22 -03:00
Adrian Duffell 4c13bca528 Add Powered by Mailchimp text to newsletter sign-up label (https://github.com/woocommerce/woocommerce-admin/pull/7619)
* Add Powered by Mailchimp label text

* Vertically center confirmation checkbox
2021-09-03 19:13:31 +08:00
Joshua T Flowers 8f836c292f Create task list APIs (https://github.com/woocommerce/woocommerce-admin/pull/7577)
* Add endpoint to hide task lists

* Migrate old setup task list hidden option

* Use option to store all hidden lists

* Add getter for deprecated options

* Migrate old task list options

* Move task lists into separate class

* Add TaskList class for individual task list control

* Update hidden checks to use TaskList api

* Update docs for hidden lists

* Update use of should_show_tasks to check for visible task lists

* Remove hide endpoint to reduce scope on PR

* Fix up failing tests

* Fix up rebase

* Add back in should_show_tasks with deprecation notice

* Add delay between payment tests
2021-09-02 17:40:02 -04:00
Moon 89343470cb Remove docs command (https://github.com/woocommerce/woocommerce-admin/pull/7607) 2021-09-01 19:03:34 -07:00
Moon 7aa1cd79d0 Check if file exists (https://github.com/woocommerce/woocommerce-admin/pull/7606) 2021-09-01 19:03:25 -07:00
Moon 8e2d0bacc2 Sync 2.6.0 and 2.6.1 changelog back to main (https://github.com/woocommerce/woocommerce-admin/pull/7608)
* Sync changelog

* Update changelog
2021-09-01 18:27:13 -07:00
Joshua T Flowers 6300e8aacd Add task list components to consume task list REST API (https://github.com/woocommerce/woocommerce-admin/pull/7556)
* Add initial task list render

* Add task list item render

* Separate task list menu component

* Fix click handling for tasks

* Add task started count data

* Scroll to top after selecting task

* Handle PR feedback

* Handle PR feedback round 2
2021-09-01 17:28:24 -04:00
louwie17 d86864275b Adjust marketing completion logic (https://github.com/woocommerce/woocommerce-admin/pull/7586)
* Add woocommerce_task_list_visited_tasks option for marketing task completion

* Add changelog

* Use trackedCompletedActions to track completed actions

* Change completed action name

* Check # of installed extension for the completion logic

* Do not update completed action if marketing already exists

Co-authored-by: Moon <moon.kyong@automattic.com>
2021-09-01 14:02:44 -07:00
louwie17 b8fc676b48 Adjust task item class name to prevent conflicts with older versions (https://github.com/woocommerce/woocommerce-admin/pull/7593)
* Adjust task item class name to prevent conflicts with older versions

* Fix styling lint errors

* Add changelog

* Fix more lint errors
2021-08-31 08:16:19 -07:00
Joshua T Flowers f136b770d6 Update completed task option when task lists are retrieved (https://github.com/woocommerce/woocommerce-admin/pull/7549)
* Update completed task option when task lists are retrieved

* Update action calls to filter
2021-08-31 10:38:51 -04:00
Adrian Duffell 2ce0cd9519 Update email pre-fill endpoint to be experimental (https://github.com/woocommerce/woocommerce-admin/pull/7602) 2021-08-31 16:38:21 +08:00
Adrian Duffell 6d23ab7ea1 Add newsletter signup to profiler (https://github.com/woocommerce/woocommerce-admin/pull/7601)
* Add email address field to store details step in OBW (https://github.com/woocommerce/woocommerce-admin/pull/7552)

* Subscribe store_email to MailChimp (https://github.com/woocommerce/woocommerce-admin/pull/7579)

* Add prefill for email field in OBW (https://github.com/woocommerce/woocommerce-admin/pull/7570)

* Add error handling for email validation errors from backend (https://github.com/woocommerce/woocommerce-admin/pull/7590)

* Remove OnboardingEmailMarketing note class (https://github.com/woocommerce/woocommerce-admin/pull/7595)

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
Co-authored-by: Moon <moon.kyong@automattic.com>
2021-08-31 12:39:04 +08:00
Moon ccdd32282d Fix 'cannot read property' error from ExPlat (https://github.com/woocommerce/woocommerce-admin/pull/7600)
* Change option value path

* Try wcSettings.preloadSettings.general first

* Add changelog
2021-08-30 20:31:03 -07:00
Moon e6833b19eb CSS override for the plugin header (https://github.com/woocommerce/woocommerce-admin/pull/7598) 2021-08-30 20:09:57 -07:00
Moon aaf7832ddb Feature/add logger to rin (https://github.com/woocommerce/woocommerce-admin/pull/7194)
* Add evaluation logger

* Update readme

* Use simplified log format

* Add a new line at the end

* Move constant checking to consumer level

* Rename constant name

* Check constant before checking the value

* Fix test

* Add changelog

* Move initialization of the logger to RuleEvaluator and use more generic constant name

* Remove the default source value

* Update readme.txt

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>

* Update src/RemoteInboxNotifications/README.md

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>

* Update src/RemoteInboxNotifications/RuleEvaluator.php

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>

* Add soruce -- remote-inbox-notifications

* Move WC_ADMIN_DEBUG_RULE_EVALUATOR check to the logger

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2021-08-30 13:26:36 -07:00
Moon 0a1a07cc54 Use !important to force padding:0 (https://github.com/woocommerce/woocommerce-admin/pull/7594)
* Use !important to force padding:0

* Remove card body component
2021-08-30 12:59:05 -07:00
Moon 59f0ffd1a6 Fix broken tests with the latest WC (https://github.com/woocommerce/woocommerce-admin/pull/7582) 2021-08-30 12:02:38 -07:00
Fernando 5f664bdade Fix marketing task visibility (https://github.com/woocommerce/woocommerce-admin/pull/7580)
* Fixed marketing task visibility

This commit fixes the marketing task visibility

* Add changelog

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-08-30 14:21:04 -03:00
louwie17 aeaf96c715 Fix business step auto installing (https://github.com/woocommerce/woocommerce-admin/pull/7585)
* Only select installable extensions

* Add two tests to cover this use case

* Add changelog

* Fix lint error
2021-08-30 11:46:37 -03:00
Moon 03fb7e87a6 Add/7481 cmd to collect testing instructions (https://github.com/woocommerce/woocommerce-admin/pull/7499)
* Add a new command to build testing instructions by a given version

* Check - [ ] Include test instructions in the release checkbox

* Fix code format

* Code cleanup

* Fix config error

* Update README.md

* Update README.md

* Update README.md

* Remove js version

* Remove test file

* A minor refactor

* Reuse parse() method from the WCAdminFormatter.php

* Exclude PRs with "no release testing instructions" label

* Remove Requests:multi_request dependency

* Remove wp load script
2021-08-27 13:47:16 -07:00
Joel Thiessen 26e6e62bd9 Updating eway logo in payment suggestions defaults (https://github.com/woocommerce/woocommerce-admin/pull/7562) 2021-08-26 08:58:39 -07:00
Rua Haszard 0225ffdb8d show Pinterest for WooCommerce in `Marketing > Installed` (https://github.com/woocommerce/woocommerce-admin/pull/7417)
* show Pinterest for WooCommerce in `Marketing > Installed`

* tweak Pinterest bounding rect so padding is consistent with other icons

* add changelog entry

* add testing instructions

* tweak wording for clarity

* link to correct Pinterest admin settings URL

* detect if Pinterest is set up & link to onboarding if appropriate

* add utm_medium campaign link tracker tag to docs link

* change all the logs 🪵

* Remove redundant changelog entry from readme

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>

* remove todo for Pinterest onboarded/setup status (now implemented)

Co-authored-by: Rua Haszard <rua@automattic.com>
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2021-08-26 15:47:17 +12:00
Joshua T Flowers 32e8f90c47 Add task selectors and actions to onboarding data store (https://github.com/woocommerce/woocommerce-admin/pull/7545)
* Add selector for task lists

* Add snooze task actions

* Add dismiss task actions

* Create utility function to update task in task list

* Add undo endpoints

* Add task lists to default onboarding state

* Add undo function reducer cases

* Handle PR feedback
2021-08-25 21:42:26 -04:00
louwie17 dda9d120b6 Add HK and SG countries to back up wc pay supported lists (https://github.com/woocommerce/woocommerce-admin/pull/7558)
* Add HK and SG countries to back up wc pay supported lists

* Add changelog
2021-08-25 16:28:04 -03:00
Joel Thiessen ea17558e9a Adding undo snooze endpoint (https://github.com/woocommerce/woocommerce-admin/pull/7560) 2021-08-25 11:43:05 -07:00
louwie17 6093db043a Fix wrong function name (https://github.com/woocommerce/woocommerce-admin/pull/7557) 2021-08-24 16:04:49 -03:00
Joel Thiessen b17e3c5aa2 Create snooze task endpoint (https://github.com/woocommerce/woocommerce-admin/pull/7539) 2021-08-24 10:05:58 -07:00
louwie17 022f7a173a Remove depreciated shared settings hook (https://github.com/woocommerce/woocommerce-admin/pull/7480)
* Initial set up for the WCAdminSettingsRegistry

* Make use of filter for admin settings

* Add wc/settings package and remove depreciated dropzone wrapper

* Make use of the getSetting function instead of accessing window directly

* Add comments

* Add changelog

* Remove un needed changes

* Update dropzone provider logic and fix styling

* Remove old css
2021-08-24 08:39:48 -03:00
louwie17 c6abb21840 Fix country region select with autocomplete (https://github.com/woocommerce/woocommerce-admin/pull/7497)
* initial refactor

* Fix auto fill and write tests

* Removed autofill from country/region and added support for abbreviation regions

* Add changelog

* Add changelog for the component package

* Fix clear form for autofill
2021-08-23 14:36:00 -03:00
Joshua T Flowers 7cb06f00fd Add tasks feature flag (https://github.com/woocommerce/woocommerce-admin/pull/7522)
* Add feature flags for tasks feature

* Add tasks initial render and placeholder to layout

* Fix lint errors
2021-08-23 10:29:20 -04:00
Joshua T Flowers 29f17a0564 Add task dismissal endpoints (https://github.com/woocommerce/woocommerce-admin/pull/7538)
* Add dismiss task endpoint

* Add undismiss endpoint

* Add tracks to dismissal functions

* Add the task dismissal status to the response

* Add changelog entry
2021-08-23 10:08:04 -04:00
Joshua T Flowers f24bef9882 Skip scheduling action if Action Scheduler tables have not been set up (https://github.com/woocommerce/woocommerce-admin/pull/7521)
* Skip scheduling action if Action Scheduler tables have not been set up

* Add changelog entry

* Add PR number to changelog entry
2021-08-20 09:09:00 -04:00
Moon e10b2db0b1 Bump package versions (https://github.com/woocommerce/woocommerce-admin/pull/7544)
* Bump package versions

* Preserve the previous version changelog
2021-08-19 17:17:33 -07:00
Moon 4e5e5578c5 Sync changelog and testing instructions up to 2.6.0 (https://github.com/woocommerce/woocommerce-admin/pull/7541)
* Sync changelog and testing instructions

* Update release date
2021-08-19 15:57:57 -07:00
NekoJonez 71a173f14f Deleting unneeded double spaces in text strings. (https://github.com/woocommerce/woocommerce-admin/pull/7502) 2021-08-19 11:07:37 -04:00
Joshua T Flowers 77963a5814 Create task list REST API endpoint (https://github.com/woocommerce/woocommerce-admin/pull/7512)
* Include is_installed property with extension response

* Allow fetching specific extension bundles

* Move all tasks to REST endpoint

* Fix purchase extensions and wcpay completion logic

* Fix purchaseable product strings

* Add changelog entry

* Fix unfilled profiler data for product types
2021-08-19 10:39:02 -04:00
Jeff Stieler d3e940208e Refactor package style builds (https://github.com/woocommerce/woocommerce-admin/pull/7531)
* Build experimental package CSS with webpack.

* Move style-only webpack config to reusable private package.

* Update other packages to use webpack for style builds.

* Add tsbuildinfo to clean scripts.

* Fix main start script.

* Remove defunct package build scripts.

* Move client/ dependencies for style builds.

* DRY.

* Remove defunct IE stylesheet definitions.

* Add missing RTL setup for onboarding styles.

* No need to export a function.

* Add changelog.

* Fix README.

* Revert concurrently script path change.
2021-08-19 10:15:59 -04:00
Maria Górska-Piszek a93fe16085 Add Marketplace and My Subscriptions to the new WooCommerce Navigation. (https://github.com/woocommerce/woocommerce-admin/pull/7529)
* Add Marketplace and My Subscriptions items to the new WooCommerce Navigation.
2021-08-19 10:36:13 +02:00
Adrian Duffell 091897aba9 Update packages for publishing (https://github.com/woocommerce/woocommerce-admin/pull/7535)
* Bump explat version

* Bump onboarding version
2021-08-19 12:42:57 +08:00
Adrian Duffell d08ab10900 Update packages for publishing (https://github.com/woocommerce/woocommerce-admin/pull/7534)
* Bump explat version

* Bump onboarding version
2021-08-19 10:32:46 +08:00
Moon be3e4f174f Add woo_country_code param to the assignment fetch request in ExPlat (https://github.com/woocommerce/woocommerce-admin/pull/7533)
* Add woocommerce_default_country to explat param

* Add window interface in utils

* Add changelog
2021-08-18 17:25:16 -07:00
Moon 7559f324f0 Bump the fallback WP version to 5.8.0 (https://github.com/woocommerce/woocommerce-admin/pull/7532) 2021-08-18 14:20:17 -07:00
Moon d2e1e3feff Fix broken PHP linter workflow (https://github.com/woocommerce/woocommerce-admin/pull/7526)
* Remove dollar sign and space to fix the syntax error.

Remove dollar sign and space

* , separated file list does not work with phpcs. Use space instead
2021-08-18 11:15:58 -07:00
Fernando cd768601e9 update changelog (https://github.com/woocommerce/woocommerce-admin/pull/7511)
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-08-18 09:17:39 -03:00
Moon c8bbd89d79 Add missing quote (https://github.com/woocommerce/woocommerce-admin/pull/7524) 2021-08-17 13:08:03 -07:00
Joel Thiessen 3591ee41a0 Making business details sticky in OBW (https://github.com/woocommerce/woocommerce-admin/pull/7426) 2021-08-16 15:34:33 -07:00
Moon affea0b25d Set default value for orders var (https://github.com/woocommerce/woocommerce-admin/pull/7506)
* Set default value for orders var

* Add changelog

* Add PR # to the changelog

* Return default orders in the early return statement

* Adding the default value for the order var

* Revert the early return changes
2021-08-13 12:27:54 -07:00
David Levin a53c618138 Update analytics card header text styles (https://github.com/woocommerce/woocommerce-admin/pull/6506)
* Update analytics card header text styles

* Add changelog entry

* Replace snapshot tests

Co-authored-by: Joshua Flowers <joshuatf@gmail.com>
2021-08-13 15:06:32 -04:00
David Levin c728cced1f Sentence case all the things analytics (https://github.com/woocommerce/woocommerce-admin/pull/6501)
* Sentence case all the things

* Update a few more things that were missed on the first round

* update documentation titles to use title case

* Add changelog

* Handle PR feedback

* Revert readme changelog changes

* Revert changes to ALT text in dev documentation

* Revert a change to ALT text in dev documentation

* Fix failing tests

Co-authored-by: David Levin <davidlevin@Davids-MacBook-Pro-2.local>
Co-authored-by: Joshua Flowers <joshuatf@gmail.com>
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2021-08-13 14:54:24 -04:00
dependabot[bot] 98e337de5b Bump path-parse from 1.0.6 to 1.0.7
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-13 00:50:49 +00:00
Hsing-yu Flowers 78e49ab09e Fix end date for last periods (https://github.com/woocommerce/woocommerce-admin/pull/6584)
* Fix end date for last periods

* Test February end date for leap year

* Add changelog and testing instructions

* Handle feedback

* Fix merge conflict

* Add changelog
2021-08-12 11:06:21 -04:00
Maria Górska-Piszek 35d58de151 Split the Extensions page into Marketplace and My Subscriptions. (https://github.com/woocommerce/woocommerce-admin/pull/7471)
* Split the Extensions page into Marketplace and My Subscriptions.

* Add changelog entry.

Co-authored-by: And Finally <andfinally@users.noreply.github.com>
2021-08-12 09:22:46 +02:00
Francesco c1730d16f1 feat: add shipping marketplace recommendations (https://github.com/woocommerce/woocommerce-admin/pull/7446) 2021-08-11 17:09:32 -05:00
Moon 3398e03999 Add missing ---> tag (https://github.com/woocommerce/woocommerce-admin/pull/7494) 2021-08-11 07:11:13 -07:00
Renovate Bot f7ea47343e Pin dependencies 2021-08-11 01:57:50 +00:00
Moon 938b546f7f Add missing : in the changelog (https://github.com/woocommerce/woocommerce-admin/pull/7493)
* Add missing :
2021-08-10 12:11:06 -07:00
Joshua T Flowers 0ab7c7a3ec Remove the preloaded onboarding options (https://github.com/woocommerce/woocommerce-admin/pull/7338)
* Remove unused options

* Remove preloade tracking option

* Remove preloaded wc_connect_options

* Remove preloaded modal options

* Refactor requesting options into task list component

* Remove preloaded dismissed and completed tasks

* Add changelog entry

* Wait for modal before attempting to dismiss

* Attempt to make closing welcome modal more robust

* Update the payment E2E tests to support new app flow

* Update isResolving selectors to hasFinishedResolution

Co-authored-by: Lourens Schep <lourensschep@gmail.com>
2021-08-10 14:58:01 -04:00
Fernando 5ade1e1c66 Update changelog (https://github.com/woocommerce/woocommerce-admin/pull/7491)
* Update changelog

* Add PR #

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-08-10 11:31:07 -03:00
renovate[bot] c151950a6e Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/7448)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-10 09:53:30 -04:00
Adrian Duffell b21f659b27 Prepare packages for publishing (https://github.com/woocommerce/woocommerce-admin/pull/7492)
* Bump experimental package to 1.5.1

* Bump components package to 8.1.0
2021-08-10 19:42:03 +08:00
Adrian Duffell 7abbc6942b Add rimraf dev dependency (https://github.com/woocommerce/woocommerce-admin/pull/7485) 2021-08-10 18:11:11 +08:00
Moon 8f7101711d Set padding: 0 to override Gutenberg style (https://github.com/woocommerce/woocommerce-admin/pull/7488)
* Set padding: 0 to override Gutenberg style

* Add changelog

* Fix typo
2021-08-09 14:36:32 -07:00
Joshua T Flowers f34b234711 Add super admin check to preloaded user data (https://github.com/woocommerce/woocommerce-admin/pull/7489)
* Add super admin check to preloaded user data

* Add the current user data via filter instead of manually

* Add changelog entry
2021-08-09 17:37:24 -03:00
Joshua T Flowers 119b3ce1e3 Fix up onboarding profiler not working when opted out of tracking (https://github.com/woocommerce/woocommerce-admin/pull/7490)
* Add countries to onboarding preloaded data

* Only toggle off beta features when opting out of tracking

* Add changelog entry
2021-08-09 17:36:07 -03:00
louwie17 87d386ea85 Make sure defaultSections is a unique object, so we do not remove icon (https://github.com/woocommerce/woocommerce-admin/pull/7475)
* Make sure defaultSections is a unique object, so we do not remove icon by accident

* Add changelog

* Remove un needed change

* Update changelog
2021-08-09 17:32:51 -03:00
Ilyas Foo f696474e97 Fix blank screen on analytics categories when searching (https://github.com/woocommerce/woocommerce-admin/pull/7482)
* Fix unupdated API for analytics search items

* Update changelog

* Update changelogs/fix-7473-blank-screen-search-categories

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2021-08-09 17:28:49 +08:00
Ilyas Foo 178e1ba209 Fix all links with hash to behind query parameters (https://github.com/woocommerce/woocommerce-admin/pull/7483)
* Fix all links with hash to properly behind query parameters

* Update changelog
2021-08-09 17:27:54 +08:00
Dat Hoang d001ca23f0 Update component Table to align texts and numeric a bit smarter (https://github.com/woocommerce/woocommerce-admin/pull/7431)
* Update Table components to align texts and numeric a bit smarter

Text fields are left-aligned and numeric values should be right-aligned.

* Update a snapshot test

 npm run test:client -- --updateSnapshot client/analytics/components/leaderboard/test/index.js

* Add tests for property isLeftAligned
2021-08-09 08:04:06 +07:00
Chris Aprea 71aa954577 Do not retain values when switching between rules in the DateFilter component (https://github.com/woocommerce/woocommerce-admin/pull/7423)
* Do not retain values when switching between rules in the DateFilter component

* Add changelog entry

* Remove unnecessary use of the ternary operator

* Fix the changelog entry

* Add tests

* Add changelog entry

Co-authored-by: Chris <chris.aprea@automattic.comchris.aprea@automattic.comchris.aprea@automattic.com>
2021-08-06 15:39:16 +10:00
Moon b5e973ed18 Add changelog.txt (https://github.com/woocommerce/woocommerce-admin/pull/7464) 2021-08-05 15:49:37 -07:00
Moon 9a9fb8ccde Replace first occurrence of the bullet char instead of replacing all (https://github.com/woocommerce/woocommerce-admin/pull/7465) 2021-08-05 15:36:59 -07:00
Moon 9d9a2772e2 Sync changelog (https://github.com/woocommerce/woocommerce-admin/pull/7469) 2021-08-05 12:35:16 -07:00
Joshua T Flowers 7de9de823d Don't show the marketing task if no marketing tasks exist (https://github.com/woocommerce/woocommerce-admin/pull/7460) 2021-08-05 13:10:48 -04:00
Joshua T Flowers d5b0b664f8 Add default marketing extensions as fallbacks (https://github.com/woocommerce/woocommerce-admin/pull/7466) 2021-08-05 13:01:40 -04:00
Moon 5a21fe1dd0 Sync changelog (directory) and changelog.txt (https://github.com/woocommerce/woocommerce-admin/pull/7463)
* Delete changelogs that are already released

* Add missing changelogs for 2.4.2, 2.4.3, 2.4.4
2021-08-05 09:32:22 -07:00
Joshua T Flowers aaf64e7423 Add tracks to marketing manage button click (https://github.com/woocommerce/woocommerce-admin/pull/7467) 2021-08-05 12:26:57 -04:00
Adrian Duffell 4b5a40a9ee Add changelog entries for 2.4.x (https://github.com/woocommerce/woocommerce-admin/pull/7457) 2021-08-05 07:47:54 +08:00
Joshua T Flowers 365fb30674 Update business details to use extensions data store (https://github.com/woocommerce/woocommerce-admin/pull/7452)
* Add default free extensions to REST API response

* Use data store to retrieve free extensions

* Add back in product link click tracks

* Handle visibility and evaluation server-side

* Update sprintf to use entire link tag

* Fix up remote free extensions rule evaluation

* Add visibility rules to mailpoet

* Fix fallback to default payment gateways if polling fails

* Add changelog entry

* Fix empty array check

Co-authored-by: Matt Sherman <matt@jam123.com>
2021-08-04 11:57:09 -04:00
Joshua T Flowers f474fd5fe8 Add marketing task completion check and tests (https://github.com/woocommerce/woocommerce-admin/pull/7451)
* Extract extension list transformation logic

* Check for installed marketing extensions in the task list

* Add tests for marketing extension utils

* Remove use of useMemo in non-component
2021-08-04 10:55:15 -04:00
Joshua T Flowers d678d622f4 Delete free extensions transient on WCA update (https://github.com/woocommerce/woocommerce-admin/pull/7454)
* Delete free extensions transient on WCA update

* Rename extensions feature name
2021-08-04 09:23:47 -04:00
Moon 7fe64818a7 Bump version to 2.7.0-dev (https://github.com/woocommerce/woocommerce-admin/pull/7456)
* Add testing instructions for 2.5.0

* Add missing PR #

* Sync changelog

* Bump version to 2.7.0-dev
2021-08-03 23:27:44 -07:00
Sam Seay 27e7c5831c Update outgoing woocommerce.com links to include `utm_medium=product` (https://github.com/woocommerce/woocommerce-admin/pull/7408) 2021-08-04 08:56:43 +12:00
louwie17 8223b83707 Fix/7427 collapsible list transition (https://github.com/woocommerce/woocommerce-admin/pull/7429)
* Add transition group wrapper to collapsed CSS

* Revert changed class name

* Add changelog
2021-08-03 08:50:04 -03:00
Francesco 6e62c736ca refactor: payment recommendations eligibility (https://github.com/woocommerce/woocommerce-admin/pull/7447) 2021-08-02 16:38:14 -05:00
Joshua T Flowers 16e7c8cd55 Add free extensions data store (https://github.com/woocommerce/woocommerce-admin/pull/7420)
* Add free extensions to onboarding data store

* Hook up extensions list to onboarding data store
2021-08-02 17:12:29 -04:00
Joshua T Flowers 6e2782c391 Separate installed plugins from plugin lists (https://github.com/woocommerce/woocommerce-admin/pull/7419)
* Separate installed plugins from plugin lists

* Only show plugin lists when plugins exist

* Use installedExtensions for tracks

* Fix boolean check on list plugin length

* Fix text style changes with Gutenberg Text component

* Update to match new designs for plugin list

* Skip non-allowed lists for installed plugins

* Add changelog entry

* Handle styling feedback
2021-08-02 16:42:59 -04:00
Ilyas Foo 0980fc4d39 Add additional countries to WCPay for business features and payment task fallback (https://github.com/woocommerce/woocommerce-admin/pull/7436)
* Add AT, BE, NL, PL, PT, and CH to business features and payment task for WCPay plugin

* Add changelog
2021-08-02 14:21:44 +08:00
Tomek Wytrębowicz 4e153faa35 Update test renderer in few components, (https://github.com/woocommerce/woocommerce-admin/pull/7425)
from `react-test-renderer` to `{ render } from '@testing-library/react'`,
to avoid confision like https://github.com/woocommerce/woocommerce-admin/pull/7378#issuecomment-885870676.

Update snapshots respectively.
2021-07-30 12:16:12 +02:00
Allen Smith 52e69697f8 Fix Google Analytics tracking for static docs site. (https://github.com/woocommerce/woocommerce-admin/pull/7439) 2021-07-30 15:25:59 +12:00
Fernando caab73c924 bump version to 2.6.0-dev (https://github.com/woocommerce/woocommerce-admin/pull/7440)
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-07-29 18:34:44 -03:00
Joshua T Flowers 7167242dfb Add marketing extensions task to task list (https://github.com/woocommerce/woocommerce-admin/pull/7383)
* Add initial plugin list components and marketing task

* Add marketing task styles

* Fix action button alignment

* Only allow specific plugin lists

* Add button to activate already installed plugins

* Record event when marketing plugin is installed

* Update plugin list when plugins are installed or activated

* Disable and set buttons as busy when installing/activating

* Update data source to use v2 controller

* Add changelog entry
2021-07-29 12:10:53 -04:00
Paul Sealock f5de7ef892 Jest: Update to version 27 (https://github.com/woocommerce/woocommerce-admin/pull/7430)
Co-authored-by: Lourens Schep <lourensschep@gmail.com>
2021-07-29 13:30:22 +12:00
louwie17 668c86ac48 Fix WooCommerce payments action button styling (https://github.com/woocommerce/woocommerce-admin/pull/7412)
* Fix WC action button styling

* Add changelog

* Updated WCPay css for updated card component

* Added changelog
2021-07-28 11:40:27 -03:00
Sam Seay 17730079a8 Display green indicator for a drop in refunds in report summary (https://github.com/woocommerce/woocommerce-admin/pull/7357)
By adding a `isReverseTrend` prop we can pass to `SummaryNumber` we can indicate that a negative trend in refunds is a good thing and therefore display a green indicator.
2021-07-28 12:50:01 +12:00
Joshua T Flowers 0ffaffab6e Add locale param as part of free extensions request (https://github.com/woocommerce/woocommerce-admin/pull/7391)
* Add locale param as part of free extensions request

* Add changelog entry
2021-07-27 17:57:14 -04:00
Moon 8045c92b96 Increase per_page value for search results on the Analytics pages. (https://github.com/woocommerce/woocommerce-admin/pull/7385)
* Accept additional query options

* Set search result per_page to 100

* Add changelog

* Remove unnecessary spread
2021-07-27 13:11:32 -07:00
Moon 8468ca9512 Match stock status value in CSV download to the table (https://github.com/woocommerce/woocommerce-admin/pull/7284)
* Match stock status in CSV download to the table

* Add changelog

* Set status value from stockStatuses

* Update stock status for server-side export

* Replace status value in the controller

* Remove unnecessary call to constructor

* Remove changelog from readme

* Add changelog
2021-07-27 13:11:16 -07:00
Joel Thiessen 05ede81c5f Removing grow section from local free extensions in OBW (https://github.com/woocommerce/woocommerce-admin/pull/7386) 2021-07-27 09:05:14 -07:00
Jeff Stieler e7c479adf9 Add eslint rule to prevent missing createElement imports. (https://github.com/woocommerce/woocommerce-admin/pull/7424)
* Add eslint rule to prevent missing createElement imports.

* Ignore documentation files for rule.
2021-07-27 08:53:03 -06:00
Tomek Wytrębowicz afd6693718 Add `hidden` legendPosition to `Chart`. (https://github.com/woocommerce/woocommerce-admin/pull/7378)
* Add `hidden` legendPosition to `Chart`.

Sometimes, for example, when there is a single data set, there is no need for rendering the legend. It may even introduce more confusion than value. It seems interactive, but there is nothing you can do with it.

Fixes: https://github.com/woocommerce/google-listings-and-ads/issues/618

* Add `@storybook/addon-knobs` to devDependencies.

It was used but not explicitely stated.

* Add a changelog entry.

* Add tests for legendPosition in Chart component

Co-authored-by: Lourens Schep <lourensschep@gmail.com>
2021-07-27 11:14:54 -03:00
Tomek Wytrębowicz 17c1b38781 Add `navigation.getIdsSetFromQuery` util. (https://github.com/woocommerce/woocommerce-admin/pull/7341) 2021-07-27 11:08:53 +02:00
Joel Thiessen 31804aeba3 Refactoring report table withSelect to fix issues with the table data populating correctly (https://github.com/woocommerce/woocommerce-admin/pull/7355) 2021-07-26 12:11:44 -07:00
Ilyas Foo 069537100e Fix recommended card Gutenberg CSS conflict (https://github.com/woocommerce/woocommerce-admin/pull/7409)
* Add style fix

* Add fix for card footer as well

* Changelog

* Replace fix with removing CardBody

* Cleanups

* Remove CardBody import reference

* Remove CardHeader size and change size in Card, CSS cleanup
2021-07-26 15:34:08 -03:00
Fernando d44e53f879 Update payment gateway plugins for testing (https://github.com/woocommerce/woocommerce-admin/pull/7421)
* Remove old links

* Add new URLs

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-07-26 14:58:32 -03:00
louwie17 7ca3a0ad63 Update help tooltip styling (https://github.com/woocommerce/woocommerce-admin/pull/7414)
* Update help tooltip styling

* Add changelog
2021-07-26 10:26:58 -03:00
Sam Seay 172b115ef9 Fix the deprecated behaviour for `<Form>` callbacks and push removal to 9.0.0 (https://github.com/woocommerce/woocommerce-admin/pull/7356)
The deprecated (but not removed) `onChangeCallback` and `onSubmitCallback` props were not being called because of an error in the logic that checked for presence of the new callbacks (it was always truthy due to it having a fallback to an empty function).

This reverses the logic so that if the deprecated props are provided they will be called, if the new props (only) are provided they will be called instead.

This also pushes the removal of these back to 9.0.0, because in the past these deprecated version numbers had little thought behind them, but this gives a more realistic time frame for removal and an understanding that a *major* version will break compatibility, not a patch version as the old version number suggested.
2021-07-26 14:45:03 +12:00
Renovate Bot 05c378cbc9 Pin dependency jest-mock-extended to 1.0.18 2021-07-23 17:27:06 +00:00
Joshua T Flowers babefd0d47 Fix Gutenberg CardBody styles for task card (https://github.com/woocommerce/woocommerce-admin/pull/7411)
* Fix Gutenberg CardBody styles for task card

* Add changelog entry
2021-07-23 09:53:39 -04:00
Joshua T Flowers 0a9692ec20 Add limit clause to coupons data store query (https://github.com/woocommerce/woocommerce-admin/pull/7399)
* Add limit clause to coupons data store query

* Add changelog entry
2021-07-23 09:36:36 -04:00
Joshua T Flowers 904b5e282f Skip category creation on WC install (https://github.com/woocommerce/woocommerce-admin/pull/7401)
* Skip category creation on WC install

* Wait for install to create lookup tables
2021-07-23 09:36:02 -04:00
Joshua T Flowers 2316b2f4ab Import createElement to fix build issues with SlotFill (https://github.com/woocommerce/woocommerce-admin/pull/7403)
* Import createElement to fix build issues with SlotFill

* Add changelog entry
2021-07-23 09:35:43 -04:00
Ilyas Foo 1eb41e4088 Fix analytics filter Gutenberg CSS conflict (https://github.com/woocommerce/woocommerce-admin/pull/7410)
* Add style fix

* Changelog
2021-07-23 21:25:25 +08:00
Joshua T Flowers 95ee8338c0 Try: Register a fake wc-admin homepage to for users without permission (https://github.com/woocommerce/woocommerce-admin/pull/7285)
* Register a fake wc-admin homepage to for users without permission

* Update removal cap to manage_woocommerce

* Fix WooCommerce menu item position and icon

* Fix up admin user checks

* Handle PR feedback

* Only disable redirection on wc-admin pages

* Remove woocommerce_prevent_admin_access filter

* Add changelog entry
2021-07-23 09:01:47 -04:00
louwie17 5140106c39 Fix orders panel loading (https://github.com/woocommerce/woocommerce-admin/pull/7395)
* Using order items endpoint instead of reports and added customer and products support

* Add total_formatted key

* Converted component to functional component and memoized getItems function

* Using orders meta table instead of reports product_lookup table

* Add changelog entry
2021-07-23 09:47:23 -03:00
louwie17 da4b3ee742 Update changelog info in the contributing doc (https://github.com/woocommerce/woocommerce-admin/pull/7400)
* Update changelog info in the contributing doc

* Update changelog.txt name

* Fix typo
2021-07-23 09:42:12 -03:00
louwie17 19714e8dc1 Add wildcard for element, given the element type is out of our control (https://github.com/woocommerce/woocommerce-admin/pull/7406) 2021-07-23 09:31:37 -03:00
Moon cd49514b3e Attempt to fix broken test in PHP 7 + WC latest + Composer 1.10.19 (https://github.com/woocommerce/woocommerce-admin/pull/7404)
* Fix broken test by replacing LegacyProxy from WC container
2021-07-22 15:09:57 -07:00
Joshua T Flowers 8a040b99d9 Add scope to BACS slotfill (https://github.com/woocommerce/woocommerce-admin/pull/7405)
* Update e2e matcher for tasklist header

* Add scope to BACS slotfill

Co-authored-by: Lourens Schep <lourensschep@gmail.com>
2021-07-22 17:48:06 -04:00
Joel Thiessen 66ab35bbc7 Adding links to help panel for marketing task (https://github.com/woocommerce/woocommerce-admin/pull/7384) 2021-07-21 13:48:54 -07:00
Moon 8ce0808578 Bug fixes for the new low in stock endpoint (https://github.com/woocommerce/woocommerce-admin/pull/7389)
* Bug fixes for the low in stock endpoint

* post_parent type should be int

* type should be either simple or variation

* Remove cache-control
2021-07-20 20:13:31 -07:00
Moon 199b042e77 Use the original endpoint in products test (https://github.com/woocommerce/woocommerce-admin/pull/7388)
* Use the original endpoint

* Do not pass status param to use the default value.
2021-07-20 19:03:47 -07:00
Moon 6f163b4cee Fix/7358 stock api performance improvement (https://github.com/woocommerce/woocommerce-admin/pull/7377)
* Add a new endpoint to get low in stock products.

* Set images and attributes property

* WIP -- set last order date

* Do not join postmeta if store does not have any custom stock threshold

* Combine get_query() and get_query_for_sitewide_threshold() into one method and a few code clean ups

* Support status field

* Use new products/low-in-stock endpoint to count low in stock products.

* Use new products/low-in-stock to get low in stock products data.

* Remove low_in_stock support

* Deprecate low_in_stock

* Use the new ProductsLowInStock when low_in_stock is set

* Set cache-control header for the new endpoint

* Use wc_rest_prepare_date_response to format the response date

* Extract low in stock test to a separate file

* Make is_using_sitewide_stock_threshold_only protected

* Revert Products.php changes

* Add back low in stock test to products test

* Remove unnecessary if

* Make the controller final

* Deprecate low_in_stock

* Bug fix -- last_order_date was not setting correctly for variation post type. This commit fixes it

* Add changelog
2021-07-20 16:47:22 -07:00
Joel Thiessen 6b31d81f3d Fixing a few issues with tracks events in gateway suggestions (https://github.com/woocommerce/woocommerce-admin/pull/7304)
Co-authored-by: Joshua Flowers <joshuatf@gmail.com>
2021-07-19 15:23:06 -07:00
Ilyas Foo 69b0273206 Add lazy loading by checking panel open status and lint fix (https://github.com/woocommerce/woocommerce-admin/pull/7379)
* Add lazy loading by adding panel open condition and lint fix

* Add changelog
2021-07-19 14:56:41 +08:00
Adrian Duffell 3108d59812 Add cache-control header to "low in stock" REST API response (https://github.com/woocommerce/woocommerce-admin/pull/7364)
* Add cache-control header to low stock response

* Add type check for fields

* Add changelog

* Bump max-age to 300
2021-07-19 14:53:51 +08:00
Fernando 4c236fe13c Fixed OBW - Business details style (https://github.com/woocommerce/woocommerce-admin/pull/7353)
* Fixed OBW business details style

* Added changelog

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-07-15 14:04:19 -03:00
Jeff Stieler 4ef7ff8dfb Fix TSC config and package build script. (https://github.com/woocommerce/woocommerce-admin/pull/7361) 2021-07-15 10:38:34 -04:00
Paul Sealock 9c7adc3634 Changelogs: Add 2.5.0 (https://github.com/woocommerce/woocommerce-admin/pull/7320)
* Pre-release for 2.5.0-beta.1

* update changelog

* revert version bump

* revert package.lock

* entry for 2.5.0

* Sync with 2.4 release and removed some duplicates

* add changelog from 7186

Co-authored-by: Rebecca Scott <me@becdetat.com>
Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2021-07-15 14:12:21 +12:00
Joshua T Flowers 681cbf43fc Redirect to homescreen after payment gateway setup (https://github.com/woocommerce/woocommerce-admin/pull/7332)
* Redirect to homescreen after payment gateway setup

* Remove unused payment gateway redirects
2021-07-14 19:00:01 -04:00
Joshua T Flowers d14d489a05 Invalidate task status when enabling a payment gateway (https://github.com/woocommerce/woocommerce-admin/pull/7330) 2021-07-14 18:59:43 -04:00
Jeff Stieler 8e61f55017 Allow packages to be built in isolation. (https://github.com/woocommerce/woocommerce-admin/pull/7286)
* Use yarn instead of npm.

In prep for workspaces, since we're locked to npm < 7. See: https://github.com/woocommerce/woocommerce-admin/pull/7126#issue-661287749

* Initial workspace creation.

* Add initial tsc build to @woocommerce/number.

* Attempt to build experimental package.

* Try currency package.

* Define all packages as workspaces.

* Use tsconfig common to packages.

* Fix currency package build.

* Build csv-export with tsc.

* Try to build customer-effort-score with tsc.

* Fix JSX pragma.

* Build data package with tsc.

* Build date package with tsc.

* Build experimental package with tsc.

* Try to build explat package with tsc.

* Build navigation package with tsc.

* Build notices package with tsc.

* Build onboarding package with tsc.

* Build components package with tsc.

* Swap in package JS build into main script.

* Fix experimental package build.

* Try per-package css build with components.

* Try to run components package tests in isolation.

Broken on JSX in test files not being transformed.

* Move @woocommerce/wc-admin-settings into a package.

* Try to fix components package tests.

Fails because we aren't setting up the jest/jest-dom globals.

* Move JS test code to reusable (private) package.

* Enable incremental TS builds.

* Use workspaces to run JS tests.

* Use new jest configs for update snapshot scripts.

* Fix style builds.

* Fix package version in components.

* Fix client test debug and watch scripts.

* Update yarn lock.

* Update test-staged behavior.

* Try to fix storybook.

* Fix storybook.

* Update more npm commands to yarn.

* Add changelog.

* Fix lint errors.

* Update packages readme script references.

* Clean up unused gitignore match.

* Fix another npm command.

* Fix JS builds on watch.

* Fix start script.

* Fix start scripts for packages.

* Use tsc to build packages before tests

* yarn -> npm.

# Conflicts:
#	package-lock.json
#	package.json

* Fix linter error.

* Remove workspace definitions.

* Fix missing Fragment import.

* Fix package lock.

* Fix missing reference.

* Only build commonjs module for js-tests helper.

* Remove errant dependency from components.

* Remove noop scripts.

* Fix package JS build before testing.

* Revert noisy formatting changes.

* Fix precommit and test scripts.

* Fix minimum expected recommended extension count.

Japan test case breaks this.

* Revert babel config changes.

* chore(release): publish

 - @woocommerce/components@7.2.0
 - @woocommerce/csv-export@1.4.0
 - @woocommerce/currency@3.2.0
 - @woocommerce/customer-effort-score@1.1.0
 - @woocommerce/data@1.4.0
 - @woocommerce/date@3.1.0
 - @woocommerce/dependency-extraction-webpack-plugin@1.7.0
 - @woocommerce/eslint-plugin@1.3.0
 - @woocommerce/experimental@1.5.0
 - @woocommerce/explat@1.1.0
 - @woocommerce/js-tests@1.1.0
 - @woocommerce/navigation@6.1.0
 - @woocommerce/notices@3.1.0
 - @woocommerce/number@2.2.0
 - @woocommerce/onboarding@1.1.0
 - @woocommerce/tracks@1.1.0
 - @woocommerce/wc-admin-settings@1.1.0

* Add script for running 'start' in a package.

* Remove yarn from gitignore.

* Update package changelogs, prep versions for release.

* Try to fix E2E tests after main merge.

* Some cleanup.

* Add changelog.

Co-authored-by: Paul Sealock <psealock@gmail.com>
2021-07-14 16:38:57 -04:00
Moon 166f590571 Fix undefined method error when setting up WC Tax (https://github.com/woocommerce/woocommerce-admin/pull/7344)
* Make this refers to the same class by binding this

* Add changelog
2021-07-14 12:50:30 -07:00
Moon a1fb913bc6 Fix/7322 unable to dismiss inbox note (https://github.com/woocommerce/woocommerce-admin/pull/7342)
* Add components-dropdown__content class -- this is for Safari as Safari returns parent element as a related target in this case

* Remove unnecessary style
2021-07-14 12:28:56 -07:00
renovate[bot] 72cf95c51d Update dependency @types/expect-puppeteer to v4.4.6 (https://github.com/woocommerce/woocommerce-admin/pull/7346)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-14 15:23:59 +12:00
Dat Hoang 2dfe2c2bd2 Add TableSummaryPlaceholder to support skeleton loading (https://github.com/woocommerce/woocommerce-admin/pull/7294)
* Add TableSummaryPlaceholder

* Expose TableSummaryPlaceholder to package @woocommerce/components

* Add test instructions and changelog entries to MD files

* Add tests for TableSummaryPlaceholder

* Add storybook for TableSummaryPlaceholder
2021-07-14 10:18:54 +07:00
Moon 303e6ff84c Set default value for performanceIndicators var (https://github.com/woocommerce/woocommerce-admin/pull/7343)
* Set default value for performanceIndicators var
2021-07-13 20:09:02 -07:00
Paul Sealock 40be342865 Remote Inbox: Add feature to list of optional feature flags (https://github.com/woocommerce/woocommerce-admin/pull/7298)
* Add a feature setting toggle for Remote Inbox Notifs

* changelog

* comments

* remove unused Feature ref

* remove toggle

* remove readme changelog entry
2021-07-14 11:07:48 +12:00
Sam Seay 48ade7786b Remove deprecated components in prep for release 8.0.0 of @woocommerce/components (https://github.com/woocommerce/woocommerce-admin/pull/7293) 2021-07-14 10:40:55 +12:00
Paul Sealock 3b2a153580 AdvancedFilters: Create workable defaults for Reports that don't have them (https://github.com/woocommerce/woocommerce-admin/pull/7186)
* on Filter update, keep all queries

* update _x translator instructions

* fix revenue filters

* better default advFilter

* fix stock filters

* revert readme changelog
2021-07-14 10:17:51 +12:00
Moon db2b227d78 Render a spinner while woocommerce_setup_jetpack_opted_in is being loaded (https://github.com/woocommerce/woocommerce-admin/pull/7269)
* Preload woocommerce_setup_jetpack_opted_in option to prevent TOS text flickering

* Add changelog
2021-07-13 12:47:36 -07:00
Ron Rennick 4af5eef27b Create E2E package (https://github.com/woocommerce/woocommerce-admin/pull/7084)
* bump E2E package versions to latest

* first pass on E2E test package.json

* move e2e specs to admin-e2e-tests

* add global types, reimplement tests/e2e/specs

* use consistent build dir with other packages

* add documentation, improve test:e2e script

* fix linting issues in admin-e2e-tests

* fix more linting issues

* disable lint on requires

* use e2e in the E2E container names

* move analytics overview test to package

* change extension on analytics-overview test file

* fix linting issues in e2e analytics overview

* remove package scripts from e2e package

* change test specs extensions to .tsx

* remove import from analytics overview test spec

* add .tsx to e2e test spec file extension list

* update e2e business features count expected
2021-07-13 16:38:05 -03:00
Joel Thiessen 746905d8ce Bumping onboarding package version (https://github.com/woocommerce/woocommerce-admin/pull/7337) 2021-07-13 11:14:02 -07:00
Ilyas Foo 49dc897f61 Remove facebook extension from onboarding extensions fallback list (https://github.com/woocommerce/woocommerce-admin/pull/7287)
* Remove facebook marketing extension from fallback config

* Update changelog and testing instructions

* Update changelog to use the shiny new Jetpack changelogger
2021-07-13 11:15:51 +08:00
Paul Sealock 2e01777d42 Changelogger Linter: Point to correct file to test presence of changelog entry (https://github.com/woocommerce/woocommerce-admin/pull/7318)
* test

* pr number

* try looking at changelogs folder

* better changelog
2021-07-13 14:36:45 +12:00
Jeff Stieler 12aa391cf0 Fix minimum expected recommended extension count. (https://github.com/woocommerce/woocommerce-admin/pull/7334)
* Fix minimum expected recommended extension count.

Japan test case breaks this.

* Just check for one or more extensions.
2021-07-12 20:03:55 -06:00
Moon 76685d3a92 Remove unreleased section (https://github.com/woocommerce/woocommerce-admin/pull/7317) 2021-07-08 19:32:20 -07:00
Moon daf91d034c use Jetpack Changelogger for changelog management (https://github.com/woocommerce/woocommerce-admin/pull/6870)
* use Jetpack Changelogger for changelog management

* Extends Jetpack Changelogger's write command

* Uses changelog.txt

* Add Enhancement

* Remove use of WriteCommand and implement parse() in the Formatter

* Remove bin/changelogger.php wrapper

* Use semver

* Fix spacing

* Fix typo

* changelog.txt update to match readme.txt

* changelog PR template

* remove changelog from readme.txt

Co-authored-by: Paul Sealock <psealock@gmail.com>
2021-07-08 19:03:51 -07:00
Paul Sealock 58dc9f4473 Preloaded options: remove unused feature options (https://github.com/woocommerce/woocommerce-admin/pull/7299)
* remove unused feature preloaded options

* changelog
2021-07-09 11:23:08 +12:00
Paul Sealock 6ea9914ac0 Hook reference: Add SlotFill support (https://github.com/woocommerce/woocommerce-admin/pull/6833)
* add @slotFill to process

* add types

* committing data

* use filter instead of hook

* changelog

* add action type

* update paths to ignore builds and node_modules

* changelog

* Add action data type

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2021-07-09 11:01:43 +12:00
Moon 001779a40d Sync the category lookup table when a new category gets created (https://github.com/woocommerce/woocommerce-admin/pull/7290)
* Sync category lookup table when a new category gets created
2021-07-08 10:39:12 -07:00
louwie17 b4cb82b9cb Update changelog and increase version for components, data, and experimental packages (https://github.com/woocommerce/woocommerce-admin/pull/7311) 2021-07-08 13:30:11 -03:00
louwie17 4cdca48c6e Fix transient overlapping adjacent content (https://github.com/woocommerce/woocommerce-admin/pull/7302)
* Overwrite width to auto given transients are displayed fixed

* Add changelog
2021-07-08 12:21:56 -03:00
Hsing-yu Flowers e753e51f51 Add padding on table header button (https://github.com/woocommerce/woocommerce-admin/pull/7213)
* Add padding on table header button

* Add changelog and testing instructions

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2021-07-08 11:03:55 -04:00
Mik 5893ddceb7 Change event name to reflect plugin name (https://github.com/woocommerce/woocommerce-admin/pull/7276)
* Change event name to reflect plugin name

* Update changelog
2021-07-08 15:56:49 +01:00
Hsing-yu Flowers 8fe842f5a4 Add height auto on autocomplete popover button (https://github.com/woocommerce/woocommerce-admin/pull/7225)
* Add height auto on autocomplete popover button

* Add changelog

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2021-07-08 10:47:46 -04:00
Hsing-yu Flowers bcf063a997 Make WooCommerce-admin full-screen minimum height 100vh important (https://github.com/woocommerce/woocommerce-admin/pull/7230)
* Add 100vh important on full screen

* Add changelog

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2021-07-08 10:33:15 -04:00
louwie17 6a391c58d8 Make task item action button optional (https://github.com/woocommerce/woocommerce-admin/pull/7263)
* Make action button optional, and disable VerticalCSSTransition when expandable is false

* Update collapsible list to support nested element transitions

* Add changelog

* Address some small PR feedback, and fix tests

* Add expanded class, and remove cursor when expanded

* Make sure margin is added to container height

* Update broken tests

* Add radix to parseInt method
2021-07-08 09:19:35 -03:00
Joshua T Flowers 335cfe6554 Use payment gateway suggestion title instead of local plugin names (https://github.com/woocommerce/woocommerce-admin/pull/7266)
* Use payment gateway suggestion title instead of local plugin names

* Update Stripe gateway title
2021-07-07 17:41:50 -04:00
Paul Sealock d5f16fd0dc Filters: On update respect all other queries, not just persistedQueries (https://github.com/woocommerce/woocommerce-admin/pull/7155)
* on Filter update, keep all queries

* changelog

* package changelog

* instead of keeping everything else, remove advancedFilters when main filter is set to 'all'

* remove all queries associated with filter in question

* dedupe params

* add tests
2021-07-08 09:36:34 +12:00
Renovate Bot 50b4fe4963 Update dependency @types/cookie to v0.4.1 2021-07-07 01:35:09 +00:00
Moon 276b3cf693 Fix inbox note dismiss dropdown not closing on Safari (https://github.com/woocommerce/woocommerce-admin/pull/7278)
* Set position for the dropdown

* Manually focus the button onClick -- Safari does not focus on a button on click
2021-07-06 15:05:15 -07:00
Moon c632013700 Add missing translation strings in the business features section (https://github.com/woocommerce/woocommerce-admin/pull/7268)
* Add missing translations
2021-07-06 12:46:48 -07:00
Moon cb31c3a468 Add CES to translated scripts list (https://github.com/woocommerce/woocommerce-admin/pull/7270)
* Add CES to translated scripts list
2021-07-06 12:30:39 -07:00
Fernando 089c5b5905 Add a delete option to completed tasks (https://github.com/woocommerce/woocommerce-admin/pull/7300)
* Added onDelete prop to `task-item`.

* Added `onDelete` and `Remid me later` options to task example in docs.

* Added changelog

* Fixed lint error

* Fixed another lint error

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-07-06 15:35:40 -03:00
Joshua T Flowers c1978af7f7 Add Klarna Payments to default payment gateway suggestions (https://github.com/woocommerce/woocommerce-admin/pull/7267) 2021-07-06 11:13:05 -04:00
Tomek Wytrębowicz e48fabe964 Update issue templates (https://github.com/woocommerce/woocommerce-admin/pull/7088)
- Use headings in issues templates,
	instead of bold paragraphs.
	To match with PR template, to improve readability and accessibility.
- Add the "Actual behavior" section.
	The reviewer, would not have to get that from the description or test locally.
- Reorder sections,
	Screenshots (and actual behavior) describes what you have immediately after you perform "steps to reproduce", so therefore could be stated there. It's hard to make a screenshot of the "expected behavior", which is not happening.
- Move section descriptions to comments.
	This way the issuer could still keep them in place while filling the sections, answering those requests.
- Use ellipsis character instead of three dots.
	To make it more readable, by fully sighted and visually impaired readers https://tosbourn.com/the-importance-of-using-the-ellipsis-character not to read it as "dot dot dot"
2021-07-06 11:46:33 +02:00
Joel Thiessen af97dd68b5 Fixing logic around recommended gateways in payment suggestions feature (https://github.com/woocommerce/woocommerce-admin/pull/7231) 2021-07-05 16:33:03 -07:00
Paul Sealock d7bf615301 Remove unused WC Pay feature flags (https://github.com/woocommerce/woocommerce-admin/pull/7273)
* remove WC Pay feature flags

* remove WC Pay wcpay/support-international-countries flag

* wcpay countries PHP

* changelog
2021-07-06 10:15:18 +12:00
Joshua T Flowers d8d14fb9ca Localize payment gateway suggestions on wccom (https://github.com/woocommerce/woocommerce-admin/pull/7217)
* Localize payment gateway suggestions on wccom

* Add user locale as param to source URL

* Fix mock http request params
2021-07-05 17:50:26 -04:00