Commit Graph

10928 Commits

Author SHA1 Message Date
Sam Seay 957fb2b07e
Update pnpm to 8.6.5 (#38990) 2023-06-29 16:51:29 +12:00
Sam Seay 59e1ba174d
MVP process manifest JSON and convert to WordPress categories/posts (#38874)
---------

Co-authored-by: Leif Singer <git@singer.sh>
2023-06-29 16:47:22 +12:00
Corey McKrill 55b2c67eda
Analytics API: Parameter to omit customer records with specific empty fields (#38827)
Adds `filter_empty` parameter, so that customer records with specific empty fields can be left out of the results, resulting in more efficient requests.

Fixes #38820
2023-06-28 17:17:53 -07:00
Corey McKrill b81a86c922
OrdersTableDataStore: capture+log exceptions when populating order properties (#38840)
Even if errors are found when populating the order properties, the order object will be returned anyway. Additionally, these errors will be logged as warnings, both when using the new HPOS-based orders datastore and when using the old CPT based datastore.
2023-06-28 17:13:33 -07:00
Nima Karimi 8d5d8d9302
Release Woo AI plugin v0.2.0 (#39011)
Updating versions and changelog
2023-06-29 02:21:33 +03:00
Moon 55280aea96
Override Jetpack connection data endpoint when Jetpack is not installed (#38987)
* Override /jetpack/v4/connection/data to return 404 to fix conflict with Android app flow

* Add changelog

* Override only for the mobile devices
2023-06-28 12:51:09 -07:00
Joel Thiessen 9927facfb3
Adding tracks events indicating visibility for ai features (#39005) 2023-06-28 10:32:12 -07:00
Nestor Soriano 43172a32e7
Log errors when setting order properties using the CPT datastore too. 2023-06-28 14:20:57 +02:00
Emmanuel Hesry 25601eaaa0
Remove hardcoded 'shop order' screen id in order edit page (#38938) 2023-06-28 10:51:56 +02:00
Karol Manijak b5cbc1d7cf
Fix "View Cart" link layout in post/page (#38950) 2023-06-28 08:46:46 +02:00
Ron Rennick 4476129595
do not use image size cache while in customizer (#38875)
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2023-06-27 14:50:51 -07:00
Mahmoud Saeed b0ae9dac27
Use NumberUtil::round() instead of number_format() in WC_Order::get_item_subtotal() (#36760)
* Use NumberUtil::round() instead of number_format() in WC_Order::get_item_subtotal()

* Add changelog

---------

Co-authored-by: Jorge A. Torres <jorge@0xbad.com>
2023-06-27 14:32:43 -07:00
github-actions[bot] 233860b704
Delete changelog files based on PR 38834 (#38986)
Delete changelog files for 38834

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-27 16:09:46 -05:00
Mike Jolley 84171baaaa
Fix display of "empty cart" notices when using a shortcode cart and the checkout block (#38738)
* Wrap wc_empty_cart_message with a new `wc-empty-cart-message` class

* use `wc-empty-cart-message` in cart.js

* changelog

* phpcs violations
2023-06-27 12:35:44 -07:00
Nima Karimi 500cdb8b23
Update the product's permalink (slug) when an AI suggestion is selected (#38902)
* Add product id to product data

* Create a React Hook for updating product slug

* Update product slug when title is updated.

* Add changelog

* Import hooks from index

* Use getPostId util to get product ID

* Only update draft product's slug
2023-06-27 21:46:18 +03:00
github-actions[bot] 783cfd4f29
Delete changelog files based on PR 38914 (#38978)
Delete changelog files for 38914

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-27 12:03:58 -05:00
Gan Eng Chin d53192f30a
Call marketing extensions recommendations API version 1.3.
Version 1.3 contains new recommendation Klaviyo extension.
2023-06-28 00:11:37 +08:00
Fernando Marichal 611adcf2b4
Add Variations tab to Product Block Editor (#38921)
* Add Variations tab

* Add changelog

* Fix lint
2023-06-27 12:57:23 -03:00
Nathan Silveira 89129cc62a
Revert "Always show pricing group fields, disable if not available for a product type (#38531)" (#38964)
* Revert "Always show pricing group fields, disable if not available for a product type (#38531)"

This reverts commit 18f2de2bc4.

* Add changelog and fix lint issues

* Remove call to removed function
2023-06-27 12:50:02 -03:00
Gan Eng Chin ac3097227c
Make Klaviyo show up in installed extensions card. 2023-06-27 23:36:44 +08:00
Gan Eng Chin 9d473adeb7
Make Klaviyo icon shows up in installed extensions card. 2023-06-27 23:36:44 +08:00
Gan Eng Chin c00f569091
Add Klaviyo logo icon. 2023-06-27 23:36:44 +08:00
Sam Seay 7860415be5
Bump beta-tester to 2.2.1 to release support for installing trunk live branch (#38908)
Bump version of beta tester in prep to release.
2023-06-28 00:15:39 +12:00
Ahmed 2e5b6d1d1d
Add support for 6 new countries in WCPay (#38109)
* Add new countries in isWCPaySupported

* Add new countries in get_wcpay_countries

* Add new countries in default free extension 'woocommerce-payments'

* changelog

* fox linting issue

* Remove support for Czech Republic, Sweden, Hungary

* Revert "Remove support for Czech Republic, Sweden, Hungary"

This reverts commit 0a8309f664.
2023-06-27 18:35:28 +08:00
kidinov 536f39db6d Fixed the description 2023-06-27 11:18:18 +02:00
Jonathan Lane a948c72fae
Fix failing tests in create shipping zones (#38949)
* Fix failing tests, clean up locators

* Add changelog

* Fix bugs

---------

Co-authored-by: Jon Lane <jon.lane@automattic.com>
2023-06-27 10:52:52 +02:00
Karol Manijak 77dfa4a73a Add changelog entry 2023-06-27 08:48:06 +02:00
Karol Manijak f794bcd2ce Load added_to_cart styles in the posts/pages as in archive templates 2023-06-27 08:27:49 +02:00
Moon ac1b5f0b14
Restore plugins selection when there is an error (#38922)
Restore plugins selection when there is installatio error
2023-06-26 17:31:16 -07:00
Moon acfd7dc53f
Prefetch Jetpack connection and auth info (#38929)
* prefetch Jetpack connection and auth info when Jetpack is selected

* Add changelog

* Use pre-exisiting hasJetpackSelected cond
2023-06-26 17:30:46 -07:00
Ron Rennick f44694f750
Ignore cached plugin data when checking if plugins are WooCommerce-aware (#38836) 2023-06-26 15:01:11 -03:00
rodelgc 95681d2c8b
Fix `upload-plugin` spec by updating locator from core profiler (#38914)
* Update locator

* Add changelog
2023-06-26 13:03:55 +02:00
kidinov 278e10bb33 Fixed broken test 2023-06-26 12:18:51 +02:00
kidinov 6dbb0955e6 Tests adjustements 2023-06-26 10:56:49 +02:00
kidinov bff7d12c19 Better comment for test 2023-06-26 10:24:25 +02:00
kidinov 84bb1c91b8 Removed setting empty query paras 2023-06-26 10:23:54 +02:00
kidinov 89d3a1ecee Merge branch 'trunk' into update-38820-enhancement-api-search-customers-with-non-empty-email-or-name-or-address
# Conflicts:
#	plugins/woocommerce/tests/legacy/unit-tests/woocommerce-admin/api/reports-customers.php
2023-06-26 10:01:38 +02:00
kidinov 93a62e704d Tests to the separate test 2023-06-26 09:56:13 +02:00
Andrey d4b77eead6
Update query type for filter_empty
Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
2023-06-26 09:30:06 +02:00
nigeljamesstevenson 3b075731a5
Make e2e test `can discard industry changes when navigating back to "Store Details"` independent from previous tests (#38715)
* e2e test update

* handle modal on test

* Update deprecated method

---------

Co-authored-by: Rodel Calasagsag <rodel.calasagsag@automattic.com>
2023-06-26 14:13:02 +08:00
rodelgc b91c37fe32
Replace deprecated `page` methods (#38344) 2023-06-26 09:06:11 +08:00
Anastasio e3194c25e3
Merge branch 'woocommerce:trunk' into trunk 2023-06-25 23:54:31 +02:00
anastas10s-afk 71716bb8f1 Free shipping handling of minimum order rule
Changes when coupons added and prices are entered and displayed inclusive of tax
2023-06-25 23:53:14 +02:00
Barry Hughes 7ed5f599a2
Improve hpos cli verbose output (#38699) 2023-06-23 13:40:57 -07:00
github-actions[bot] 41d24a7643
Delete changelog files based on PR 38918 (#38928)
Delete changelog files for 38918

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-23 14:33:00 -05:00
github-actions[bot] 127ced8e79
Delete changelog files based on PR 38861 (#38926)
Delete changelog files for 38861

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-23 14:29:11 -05:00
Ron Rennick f879ebb6c7
Update plugins/woocommerce/changelog/improve-hpos-cli-verbose-output
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-06-23 15:56:53 -03:00
Alexandre Lara 960ed2d0d1
Update WooCommerce Blocks to 10.4.4 (#38918) 2023-06-23 15:29:25 -03:00
Corey McKrill fbcab41289
Improvements to the dependency injection related unit testing infrastructure (#38849)
* When ExtendedContainer::replace is used and an instance of an object is passed as the replacement, the init method of the passed object will be executed (previously the container would execute init only when creating a new instance from a class name).
* Added the ExtendedContainer::reset_replacement method, this will undo a replace and reset the registration back to its original state (so get will act as if replace had never been executed for the given class name). Note that for shared definitions this needs to be combined with reset_all_resolved.
* Similarly, added the ExtendedContainer::reset_all_replacements method.
2023-06-23 10:24:52 -07:00
Alexandre Lara 2163b5e108 Update WooCommerce Blocks to 10.4.4 2023-06-23 12:36:11 -03:00
Nestor Soriano c59b8cefad
Apply absint to the batch in DataSynchronizer::process_batch 2023-06-23 16:37:35 +02:00
Nestor Soriano ae1e340ae6
Use $wpdb->suppress_errors in the data migration 2023-06-23 16:25:29 +02:00
Nestor Soriano e83eb70599
Deletion key renamed to '_deleted_from', and moved to constant. 2023-06-23 16:19:45 +02:00
Nathan Silveira 066974538c
[Enhancement]: Add Tracks event recording to Emails settings (#38834)
* Add possibility to track select and checkbox values for non_option settings

* Track select and checkboxes in abstract-wc-settings-api

* Add changelog

* Add hook comment and ignore phpcs for actions that were already called before
2023-06-23 09:44:57 -03:00
Nestor Soriano f9e0705fc4
Fix insertion of duplicated deletion records.
With orders table authoritative, sync disabled, an order with refunds
is deleted, a duplicate deletion record was being created for the refund.

That's because 'upshift_or_delete_child_orders' was deleting the child
orders, which caused a deletion record to be already created; and
after that, 'handle_order_deletion_with_sync_disabled' was again
creating a record for these child orders.

The fix is a bit convoluted because we can't know for sure if
'upshift_or_delete_child_orders' will delete the child orders or not.
2023-06-23 13:03:17 +02:00
Vedanshu Jain e6eda7fce5
Analytics API: Search for customers using all available search fields instead of having to choose one (#38628) 2023-06-23 14:32:42 +05:30
Chi-Hsuan Huang 5fb8183682
Fix Core Profiler UI issues (#38872)
* Fix overlapping button position when the height is less than 667px (iphone SE)

* Fix misaligned check icon on mobile

* Prevent the menu from closing when clicking on a selected item

* Add changelog

* Fix lint

---------

Co-authored-by: moon <moon.kyong@automattic.com>
2023-06-22 20:54:14 -07:00
Corey McKrill 26902f0ce1
Move unit tests to existing file 2023-06-22 17:24:25 -07:00
Corey McKrill b16d362490
Add unit tests 2023-06-22 15:44:40 -07:00
github-actions[bot] b9f265c44a
Delete changelog files based on PR 38852 (#38894)
Delete changelog files for 38852

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-22 14:35:32 -05:00
github-actions[bot] a75b8fd393
Delete changelog files based on PR 38854 (#38890)
Delete changelog files for 38854

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-22 14:22:01 -05:00
Nathan Silveira b1f4907dec
Remove feature related query args after enabling/disabling it (#38852)
* Remove feature related query args after enabling/disabling it

* Test to see if E2E tests pass

* Revert "Test to see if E2E tests pass"

This reverts commit 120e971f33f22dc3e7eec6e5ab228b1908c56364.

* Add support to remove multiple query params
2023-06-22 14:42:00 -04:00
Matt Sherman 78dad448f4
Always pass defaults to product_type_options filter (#38854)
* Add wc_get_default_product_type_options function

* Use wc_get_default_product_type_options() as initial input for product_type_options filter

* Changelog
2023-06-22 08:16:34 -04:00
kidinov fc6c01736a Fixed formatting 2023-06-22 10:55:53 +02:00
kidinov 0d5bc86da2 Fixed test again 2023-06-22 09:50:50 +02:00
Nestor Soriano 15d505864f
Added a missing __construct doc comment.
(But why is phpcs complaining about this now and it wasn't before??)
2023-06-22 09:24:06 +02:00
Nestor Soriano 98a25ffd67
Treat LegacyProxy as a special case when resetting replacements. 2023-06-22 09:16:07 +02:00
Moon 30ea01c047
Refresh onboarding profile values on the Homescreen (#38861)
* Use window.location.href for redirection to refresh the page to get the latest onboarding profile values

* Add changelog

* Remove unused import
2023-06-21 22:40:42 -07:00
Matt Sherman 6076458471
Do not show "Adding new attribute failed" error message when loading of product screens is interrupted by page unload (#38815)
* Suppress "adding new attribute failed" error message on page unload
* Only attempt to add empty attribute if page has attributes list
2023-06-21 21:26:01 -04:00
Tam Mullen cd69c99ef6
E2E: Update WP Mail Logging Version (#38862)
* Removing skip in order-emails.spec.js

* Pin version of WP Mail Logging

* added changelog
2023-06-22 00:06:17 +01:00
github-actions[bot] 1ce4adcda9
Delete changelog files based on PR 38745 (#38870)
Delete changelog files for 38745

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-21 17:57:40 -05:00
github-actions[bot] 95c9578694
Delete changelog files based on PR 38835 (#38868)
Delete changelog files for 38835

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-21 17:50:20 -05:00
github-actions[bot] 1b08275b1c
Delete changelog files based on PR 38839 (#38866)
Delete changelog files for 38839

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-21 17:46:52 -05:00
github-actions[bot] 4ec56e650c
Delete changelog files based on PR 38728 (#38864)
Delete changelog files for 38728

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-21 17:23:03 -05:00
nigeljamesstevenson 97a3d7e918 add changelog 2023-06-21 20:39:50 +01:00
nigeljamesstevenson 9cd06f022c skip test causing GH PRs to fail -under investigation 2023-06-21 20:36:32 +01:00
Timothy Steele 565c1e9be7
Load `taxonomy-pa_<slug>` template before `taxonomy-product_attribute` (#37552)
* Fix for WooCommerce Issue 36560: https://github.com/woocommerce/woocommerce/issues/36560

* Add changelog

* Move changelog file to proper location

---------

Co-authored-by: Jorge A. Torres <jorge.torres@automattic.com>
2023-06-21 16:15:17 -03:00
Barry Hughes f5a601d6e1
When removing customer accounts, their content should be preserved. (#38837)
* When removing customer accounts, their content should be preserved.

* Fix test for customer data clean-up.
2023-06-21 14:03:01 -03:00
Joshua T Flowers 6bbc4dad1a
Add missing tracks events to product editor (#38728)
* Only record product update on already published products

* Add source into published product tracks event

* Add missing tracks options to product update event

* Track tab clicks in the editor

* Add source to tab clicks

* Record tracks on preview click

* Add events for media gallery, description, and attributes

* Add tracks events to more menu

* Replace new_product_page with source

* Add changelog entry

* Fix lint errors

* Add tracks for About the Editor menu item

* Add onClick event to AboutTheEditor menu item

* Use dropdown option event for classic editor menu click
2023-06-21 09:38:04 -07:00
Fernando Marichal 0be60a44a8
Add 'product_block_editor' to 'legacy_feature_ids'. (#38835)
* Add product_block_editor to legacy_feature_ids

* Add changelog
2023-06-21 13:11:11 -03:00
Nestor Soriano 46b259bc8d
Add changelog file 2023-06-21 17:44:28 +02:00
Nestor Soriano 5d4c07d23c
Improvements to the DI related unit testing infrastructure:
- When ExtendedContainer::replace is used passing an instance of
  an object, the 'init' method will be executed in the instance
  when resolving the replaced class name.
- Added the ExtendedContainer::reset_replacement method, this will
  undo a 'replace' and reset the registration back to its original state.
- Similarly, added the ExtendedContainer::reset_all_replacements method.
2023-06-21 17:39:34 +02:00
kidinov 634377bbc9 Fixed test again 2023-06-21 16:46:52 +02:00
kidinov ecccfdf2c7 Fixed test 2023-06-21 16:15:36 +02:00
kidinov c7134e6eff Fixed formatting 2023-06-21 15:44:23 +02:00
Luigi Teschio cb0602cfa9
Update to WooCommerce blocks 10.4.3 (#38839)
update to wc blocks 10.4.3
2023-06-21 15:32:11 +02:00
kidinov 071d913b0f Added tests 2023-06-21 15:15:27 +02:00
Gan Eng Chin f31eca2ec5
Marketing: Do not show "Create a campaign" button if there are no campaign types (#38825) 2023-06-21 19:43:35 +08:00
kidinov 08b08e5619 Fixed where contitions. Handle name parameter 2023-06-21 13:37:38 +02:00
Gan Eng Chin 04294c4ec8
Simplify code to display buttons in IntroductionBanner. 2023-06-21 18:53:45 +08:00
kidinov 0e1f78318e Attempt to fix formatting 2023-06-21 11:28:56 +02:00
Nestor Soriano 182d8bf7f2
Add changelog file 2023-06-21 10:29:42 +02:00
Nestor Soriano 12a453f1a5
ORdersTableDataStore: capture+log exceptions when populating order properties.
This makes the behavior of wc_get_order to be the same as when HPOS
is disabled (and Abstract_WC_Order_Data_Store_CPT is thus used
instead): the order is still retrieved (although without the errored
properties set) instead of the function just returning false.

An example of when this can happen is if an order refund has the id
of a no longer existing order as the parent id.
2023-06-21 10:25:14 +02:00
Leif Singer bc2cba7b81
fix: check whether WC_ADMIN_APP is defined before using (#38806) 2023-06-21 09:14:20 +02:00
Paul Sealock 5b0aa22402
WooCommerce: Handle legacy JS use of ES6 (#38342)
* use grunt-contrib-uglify-es

* changelog

* fix syntax

* remove null coalescence

* lockfile
2023-06-21 14:10:49 +12:00
Paul Sealock ec9f489dd0
Update phpcs-changed to version 2.11.1 (#38756)
* bump version

* composer lock file update

* changelog
2023-06-21 14:09:28 +12:00
barryhughes a473a001ce Selectively invalidate cached plugin data when needed. 2023-06-20 14:27:03 -07:00
barryhughes 1c2dd45ffd Ignore cached plugin data when checking if plugins are WooCommerce-aware. 2023-06-20 13:12:13 -07:00
Corey McKrill 79b52d2a5f
Linting: Add pnpm commands and update contributing guidelines (#38727)
Adds pnpm commands for utilizing the new phpcs-changed Composer scripts, and updates documentation to make these commands more discoverable.
2023-06-20 12:33:41 -07:00
Michael Pretty 6771b48c20
get_index_columns using SHOW INDEX FROM query instead of information_schema (#36427)
* get_index_columns using SHOW INDEX FROM query instead of information_schema

* returning empty array for clarity

* ignore interpolated query

* adding changelog entry

* Adding unit tests for the updated DatabaseUtil::get_index_columns()

---------

Co-authored-by: Michael Pretty <prettyboymp@Michaels-MacBook-Pro.local>
2023-06-20 15:34:59 -03:00
Ron Rennick f012b4d038 update remaining print_r in HPOS code 2023-06-20 14:01:02 -03:00
github-actions[bot] 87c69f38e6
Release: Remove 7.9 change files (#38814)
Delete changelog files from 7.9 release

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-20 11:51:33 -05:00
github-actions[bot] 1f68c707cc
Prep trunk for 8.0 cycle (#38812)
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-20 11:51:03 -05:00
github-actions[bot] 95e7ff576e
Delete changelog files based on PR 38545 (#38568)
Delete changelog files for 38545

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-20 11:49:18 -05:00
github-actions[bot] 8b9007d470
Delete changelog files based on PR 38819 (#38829)
Delete changelog files for 38819

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-20 11:17:54 -05:00
Ismael Martín Alabarce d31b7866af
Add missing spacing in WCPay welcome incentive page cards (#38819)
* Add missing card spacing for the WCPay welcome incentive cards

* Add changelog entry
2023-06-20 11:12:44 -05:00
Gan Eng Chin 617b51c91d
Add and fix tests for Campaigns component. 2023-06-20 23:03:56 +08:00
Joshua T Flowers dad636799a
Redirect to the old editor when attempting to edit a non-supported product type (#38745)
* Redirect to the old editor when attempting to edit a non-supported product type

* Add changelog entry

* Fix lint errors
2023-06-20 10:15:56 -04:00
Gan Eng Chin c6a5e8ba41
Do not show "Add channels" button when create campaign button is not shown. 2023-06-20 22:13:24 +08:00
kidinov 683039f88b Change log file 2023-06-20 16:07:03 +02:00
kidinov dba0b6fb8d Fixed code style issue 2023-06-20 16:03:51 +02:00
kidinov 1ffacdad67 Updated DataStore to handle filter_empty field 2023-06-20 15:59:44 +02:00
Gan Eng Chin dbfb8f81d8
Add changelog. 2023-06-20 21:07:54 +08:00
Gan Eng Chin 2b477fb93f
Show create campaign button in campaigns card when there are campaign types. 2023-06-20 21:05:27 +08:00
Gan Eng Chin 81c34086fe
Display create campaign button when there are campaign types. 2023-06-20 20:54:45 +08:00
kidinov 7f8aa07cdc Added `filter_empty` parameter 2023-06-20 12:46:53 +02:00
Chi-Hsuan Huang 9509ae8136
Fix help panel links (#38817)
* Fix links under "Help" panel on Home screen

* Add changelog
2023-06-20 18:11:44 +08:00
Nestor Soriano 740e5e55a8
Add missing 'use' in HPOSToggleTrait 2023-06-20 10:38:13 +02:00
Nestor Soriano 2051e2b61b
Change 'toggle_cot' class to 'toggle_cot_feature_and_usage' 2023-06-20 10:14:23 +02:00
Nestor Soriano 2ce0d70f1e
Fix small space misalignment 2023-06-20 09:46:41 +02:00
Nestor Soriano 97d296b681
Merge branch 'trunk' into add/sync_of_deleted_orders 2023-06-20 09:25:50 +02:00
Sam Seay 924b29fd92
Add support to install master branch when using WooCommerce Beta Tester (#38536) 2023-06-20 18:54:49 +12:00
Joel Thiessen 6c3256b413
Handling errors from token endpoint (#38708) 2023-06-19 13:44:05 -07:00
Ron Rennick 08c0d0ac4c
fix deprecated warning in dashboard setup (#38776)
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2023-06-19 15:05:07 -03:00
Nathan Silveira 3b038f3475
Disable 'Used for variations' checkbox when product type is not variable (#38802)
* Disable 'Used for variations' checkbox when product type is not variable and remove leftover code

* Run disable or enable fields after saving attributes
2023-06-19 14:50:03 -03:00
Vlad Olaru 4fffdf5703
Fix lint issue 2023-06-19 18:50:12 +03:00
Vlad Olaru 3af12dd381
Add changelog 2023-06-19 18:23:40 +03:00
Vlad Olaru 2a88ed10b1
Encode URL param to be safe 2023-06-19 18:14:42 +03:00
Vlad Olaru b1d689eb37
Merge branch 'trunk' into update/3531-incentive-logic-minor-addition 2023-06-19 18:08:27 +03:00
Vlad Olaru a76d979962
Include incentive ID in connect URL 2023-06-19 18:05:45 +03:00
Ismael Martín Alabarce 1ae97495de
Update WooPayments welcome page incentive logic (#38797)
* Update orders status query to ensure it exclude trash.

* Add incentive ID to every track event

on the welcome incentive page.

* Remove unnecessary SCSS after #38775 fix

* Add changelog entry

* Replace tos_url with tc_url for accurate naming

* Fix phpcs errors

---------

Co-authored-by: Vlad Olaru <vlad@pixelgrade.com>
2023-06-19 15:23:33 +02:00
Ilyas Foo dbd8d1be12
Fix base location remote inbox rule (#38794)
* Add another check in base location rule to fix OBW extensions bug

* Changelog

* Lint

* Add isset check

* Fix logic

* Lint
2023-06-19 19:50:52 +08:00
Vlad Olaru 5e1b6a71f4
Replace tos_url with tc_url for accurate naming 2023-06-19 14:32:57 +03:00
Ismael Martín Alabarce 66b3106def Add changelog entry 2023-06-19 13:06:26 +02:00
Ismael Martín Alabarce 9b0e5dc89a Remove unnecessary SCSS after #38775 fix 2023-06-19 13:05:01 +02:00
Ismael Martín Alabarce 4afd148e0e Add incentive ID to every track event
on the welcome incentive page.
2023-06-19 13:04:14 +02:00
Ismael Martín Alabarce 48670366b2 Update orders status query to ensure it exclude trash. 2023-06-19 12:54:27 +02:00
Moon baa0a275e3
Enable core-profiler flag (#38729)
* Enable core-profiler in prod

* Add Changelog

* Skip StoreDetails tests -- we're replacing it with Core Profiler

* Add features.is_enablefd to detect features

* Skip the onboarding wizard tests when the core profiler is enabled

* Skip skipping the onboarding wizard when the core profielr is enabled

* Incldue features module

* Skip core profiler for testing

* Skip core profiler for testing

* Remove test code
2023-06-18 22:34:51 -07:00
Moon bc827cf16b
Update/38743 loading changes in core profiler (#38750)
* Skip teh plugin page when all the plugins are activated

* Fix the if statement so that stageIndex becomes 2 when progress is over 60

* Add a 2nd loader stage for the skipped guided setup

* Add changelog

* Lint fix -- css

* fix: banished core profiler page spinners

* addressed pr comments

* update jest snapshot

---------

Co-authored-by: rjchow <me@rjchow.com>
2023-06-19 13:33:28 +08:00
Moon cea0bc143c
Decode HTML entities from store name (#38791)
* Decode store name with HTML entities

* Add changelog
2023-06-18 21:58:16 -07:00
Moon 00e4e94c89
Change select option hover color on core profiler pages (#38724)
* Use theme color for the option hover

* Add Changelog

* Remvoe absolute position -- can't predict correct value for bottom

* Fix css lint error

* Fix button width

* Use gray-0 for dropdown item hover color

* Fix border style for Give your store a name field

* Fix hover color for the platform options

* Remove light color on hover

---------

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2023-06-19 11:03:55 +08:00
Ilyas Foo b490e56a40
Various UI fixes in Core profiler steps (#38759)
* Fix font heading font style and adjust main component max width to match design

* Remove redundant #FunWooFact

* Reset button font color to follow admin theme

* Fix Installed label vertical alignment

* Changelog

* Remove permanent borders from consent checkbox, lint fix

* Remove box shadow on checkboxes in plugins page

* Standardize checkbox styling across core profiler

* Fix heading font styling

* Lint

* More lint

* Update snapshot
2023-06-17 13:14:13 +08:00
Barry Hughes 409c36a9e7
Fire HPOS bulk action hook for all custom bulk actions (#38747) 2023-06-16 11:35:25 -07:00
Barry Hughes ad2c156966
Single product tabs: improve compat with GTM and similar | #38711 2023-06-16 11:03:21 -07:00
Ron Rennick ada3031725 merge trunk 2023-06-16 14:50:42 -03:00
barryhughes d70c65c353 Add changelog. 2023-06-16 10:16:11 -07:00
jonathansadowski 178e731b9d
Sync 38702 (#38704)
Squashed commit of the following:

commit 8ccd8e26127594e859b37ead9fd150f05d36d9f5
Author: barryhughes <3594411+barryhughes@users.noreply.github.com>
Date:   Mon Jun 5 19:37:57 2023 -0700

    Do not output payment gateway nonce to unqualified users.

commit 882946bb18dee5eb7ffea48ddfbd4c14a5092c94
Author: barryhughes <3594411+barryhughes@users.noreply.github.com>
Date:   Wed Jun 7 14:24:58 2023 -0700

    Instead of looking for `?wc-ajax`, specifically exempt `admin-ajax.php`.

    This mimics the existing approach used for `admin-post.php` requests, and is stricter by default.

commit 99cffd7cde1aa87176254845c732c91a446232f7
Author: barryhughes <3594411+barryhughes@users.noreply.github.com>
Date:   Tue Jun 6 12:40:21 2023 -0700

    Nonce verification not needed when evaluating ajax properties.

commit 99157d2a18ea78c68c265609dfdd1bddadeee7b2
Author: barryhughes <3594411+barryhughes@users.noreply.github.com>
Date:   Tue Jun 6 12:38:53 2023 -0700

    Document `woocommerce_disable_admin_bar` hook.

commit badcf8f50099dd38fa855d2aa71c8507d3f2a252
Author: barryhughes <3594411+barryhughes@users.noreply.github.com>
Date:   Mon Jun 5 18:49:25 2023 -0700

    Describe expectations around customer access to the dashboard.

commit 127053e1c27e7da5515c6638859fa09384241624
Author: barryhughes <3594411+barryhughes@users.noreply.github.com>
Date:   Mon Jun 5 13:30:03 2023 -0700

    'wc-ajax' requests should be filtered out of admin access logic.

commit 2e8182761e050cc4371181eaa197b6d4b2867f89
Author: Vedanshu Jain <vedanshu.jain.2012@gmail.com>
Date:   Fri May 12 15:15:57 2023 +0530

    Clean up individual escape to also do it again when it is used.
2023-06-16 11:04:45 -05:00
Ilyas Foo 71a039852f
Fix payment gateway suggestions display logic (#38658)
* add: updated payment gateways for 2023 Q3

* Update payment gateway suggestions display logic, better comments and variable names, added core onboarding profiler option to support offline venue, added IN to paypal visibility rule

* Lint

* Update for better WCPay logic

* Remove accidental imports

* Added return object comment

* More lint

* Changelog

---------

Co-authored-by: rjchow <me@rjchow.com>
2023-06-16 23:46:37 +08:00
Ismael Martín Alabarce 9a49ff72da
Update WCPay welcome page incentives (#38689)
* Initial refactor of components

Move out from index every UI component to make it easier to maintain.

* Initial implementation of new design

Some minor adjustments are missing, and I've added a few TODOs to complete later.

* Add changelog entry

* Finish design update

* Compress menu icon

* Add user's first name to heading copy

* Fetch and cache eligible incentive from WCPay API

Sharing its properties under `window.WcSettings.admin`

* Filter `allowed_promo_notes`

To be able to add those form WCPay API request

* Update JS side to use the new shared incentive details

* Ensure we cache requests even if there are no eligible incentives

* Fix a typo in WCPayBanner

* Move incentive preloaded data from wcSettings

to a new window variable which will be only loaded on WCPay welcome page.

* Simplify `has_wcpay` check

* Render sanitized HTML from incentive description

* Update get incentive logic to also cache non success responses

* Add incentive ID to page view track

* Add changelog entry for the onboarding package

* Update used options names

and add them to `get_default_option_permissions

* Differentiate every dismissed incentive

Reuse WCPay welcome page logic for notes display conditions

* Use tos_url instead of tos_link to match response

* Fix incentives endpoint request payload

* Back to preload incentive on admin shared settings

* Move promo notes filter to where it's used

to avoid any possible race conditions.

* Replace every occurrence of `WooCommerce Payments` with `WooPayments`

* Prevent modal large padding-bottom

* Prevent another global style override on modal

* Fix TS error coming from trunk merge

* Fix wrong style property

* Further restrict WCPay incentives to plugin not active and countries supported

* Adjust the meaning of has_wcpay

* Wait for dismiss option update before redirect

to prevent the side menu entry to be visible after redirecting back to WC admin.

* Enforce TOS asterix at the end of incentive description

* Remove underscore from priavate instance var.

* Fix ESLint error

* Fix SCSS linting issues

* Refine `has_wcpay` and `has_orders`

* Enforce consistent WooPayments branding

* Enforce stricter i18n calls with escape

* Update page title to match new branding

* docs: Enforce branding in code docs also

* Remove method that is unreliable to be used outside of onboarding

* Remove unused constant

* Missing new line

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

---------

Co-authored-by: Vlad Olaru <vlad@pixelgrade.com>
Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2023-06-16 16:32:58 +02:00
Daniel Dudzic 382291cd90 Add changelog entry 2023-06-16 15:18:14 +02:00
Daniel Dudzic 641f56072f Site Editor: Load frontend styles. Closes #35495 2023-06-16 15:14:22 +02:00
Ilyas Foo 0a50173976
Fix infinite redirect from homescreen to core profiler (#38768)
* Fix infinite redirect using useEffect to remove unintentional rerendering

* Changelog
2023-06-16 20:28:25 +08:00
Jorge A. Torres 6b86fc64de
Fix selection of multiple orders in HPOS list table (#38749)
* Fix selection of multiple orders in HPOS list table

* Add changelog
2023-06-16 09:10:27 -03:00
Ilyas Foo 1e72bb0401
Allow `plugins_page_skipped` parameter in Onboarding API endpoint (#38764)
* Append plugins_page_skipped parameter to onboarding API

* Changelog

* Rename property to is_plugins_page_skipped and fixed tests

* Changelog

* Fix lint
2023-06-16 18:06:58 +08:00
Tarun Vijwani f896f268e0
Merge branch 'trunk' into update/woocommerce-blocks-10.4.0 2023-06-16 12:27:35 +04:00
Moon 1a42094e5e
Fix Jetpack redirection issue when the auth endpoint returns an invalid url (#38760)
* Return full response from getJetpackAuth

* Add success and errors

* Redirect to Home in case of an error from getJetpackAuth endpoint

* Add changelog

* Use redirectToJetpackAuthPage

* Replace window.location.href with navigateTo

* Fix type issue with getJetpackAuthUrl

* Update plugins/woocommerce-admin/client/core-profiler/index.tsx

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

---------

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2023-06-16 00:56:30 -07:00
Samuele Mancuso 740b2a7424
Update plugins/woocommerce/client/legacy/js/frontend/single-product.js
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-06-16 09:22:38 +02:00
Moon 630faadb81
Update/implement connect to jetpack (#38674)
* Add install-and-activate-plugins-async action to onboarding

* Add label and learn_more_link types

* Use label and learn_more_link

* Remove unused imports

* ts fixes

* Visual changes on the plugin page

* Change CTA font size from 13px to 14px
* Change spacing between the chebox and logo to 24px
* Change heading font-weight to 500

* Fix css lint error

* Add back learn more link that was removed from rebase

* Add required packages

* Load Jetpack Config

* Add getJetpackAuthUrl to data/onboarding

* Add Connection Rest Auth -- seems like this is required for Jetpack to communicate back to the connected site

* Add jetpack-authorization-url REST API

* Redirect to Jetpack Auth page after the installatino process if jetpack was selected

* Require can_install_plugins permission for jetpack auth url endpoint

* Update packages/js/data/src/onboarding/resolvers.ts

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

* Update plugins/woocommerce/src/Admin/API/OnboardingPlugins.php

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

* Remove automattic/jetpack-sync and its config

* Support redirect_url and from params

* Do not redirect to Jetpack auth if it is already connected

* Add installed_ext_success=1

* Use woocommerce-core-profiler for from value

* Revert unrelated lock file changes

* Minor refactor

* Extracted out isJetpackConnected cond to a guard

* Added meta data for isJetpackConnected to prevent unwanted spinner

* Add Changelog

* Lint fix

* Move Jetpack Connection config init to class-woocommerce

* Add changelog

* Remove unnecessary require

* Note jetpack-authorization-url endpoint is experimental

* Fix broken test

* Add component to sendToJetPackAuthPage state

* Fix lint error

---------

Co-authored-by: rjchow <me@rjchow.com>
Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2023-06-15 20:28:18 -07:00
Moon d51f69d2d7
Update track name prefix for core profiler (#38710)
* Use coreprofiler_ prefix

* Add Changelog

* Track name changes

* Rename intro_optin to intro_opt_in

* Extracted out recordFailedPluginInstallations and recordSuccessfulPluginInstallation to tracks

* Fix js lint error -- remove unused import
2023-06-15 13:37:14 -07:00
RJ 723c68e240
fix: core profiler plugins list race condition (#38732) 2023-06-15 12:45:54 -07:00
Jorge A. Torres ebd26bb036 Add changelog 2023-06-15 15:55:34 -03:00
Jorge A. Torres 2415ee9888 Make sure `handle_bulk_actions-woocommerce_page_wc-orders` is fired for all custom actions
Actions starting with “mark_” were silently handled by our own code, preventing 3rd parties from adding their own “mark_” bulk actions and acting on them.
2023-06-15 15:55:21 -03:00
Maikel David Pérez Gómez fe7933e7a9
Implement experiment within code for new users (#38700)
* Configure the expiriment to redirect variation treatment to the new product editor

* Add changelog file

* Fix experiment name

* Fix changelog description
2023-06-15 14:42:57 -04:00
Nathan Silveira bfd720c28f
Extract usePublishedProductsCount hook and use it in about-the-editor-menu-item (#38742) 2023-06-15 13:03:18 -03:00
Maikel David Pérez Gómez 2471dcba05
Replace 'use classic editor' with 'Turn off the new product editor' in options menu (#38693)
* Options menu in product editor view should show Turn off the new product editor with some subtext

* Record event product_editor_options_turn_off_editor_click when clicking Turn off the new product form menu item

* Add changelog file
2023-06-15 10:55:11 -04:00
Fernando Marichal d74904b1bd
Fix number of orders under tax report (#38525)
* Count unique post_id

* Add changelog

* Fix lint

* Fix Reports table

* Fix lint

* Fix $key
2023-06-15 11:11:10 -03:00
Nathan Silveira 5f94b411f0
Product Editor Onboarding: Add About the editor... option the more menu in product block editor (#38691)
* Add 'About the Editor' menu item

* Show the guide when clicking the menu item

* Add track event when clicking about the editor

* Add changelog

* Remove from product more menu
2023-06-15 10:07:46 -03:00
Matt Sherman 9d7b68b82c
Update product editor tour design (#38726) 2023-06-15 08:23:13 -04:00
Moon e50fb51b26
Set skipped flag when guided setup is skipped (#38730)
* Set woocommerce_onboarding_profile.skipped when guided setup is skipped

* Add Changelog
2023-06-14 21:12:03 -07:00
Moon 1e8bbb2800
Remove StoreDetails task when core-profiler flag is on (#38722)
* Remove StoreDetails task when core-profiler flag is on

* Add Changelog
2023-06-14 20:37:07 -07:00
Corey McKrill 0cea2c6900
Add changelog file 2023-06-14 14:58:16 -07:00
Corey McKrill 446c8c1b0b
Linting: Add pnpm commands and update contributing guidelines
Adds the following pnpm commands for utilizing the new phpcs-changed
composer scripts (see #37465 and #38085):

- `pnpm --filter=woocommerce run lint:php:changes`
- `pnpm --filter=woocommerce run lint:php:changes:staged`
- `pnpm --filter=woocommerce run lint:php:changes:branch`

Also updates the contributing guidelines to make these commands more
discoverable.
2023-06-14 14:52:09 -07:00
Chris Runnells 1e19d186c2
Fix task list header overlap (#38707) 2023-06-14 11:44:30 -10:00
jonathansadowski 9404a7dff3
Update Action Scheduler to 3.6.1 (#38721) 2023-06-14 15:38:11 -05:00
Matt Sherman de6f77d8be
Fix transient notices overlapping product editor footer (take 2) (#38698)
* Use WooFooterItem for Footer

* Use WooFooterItem fill for TransientNotices

* Adjust TransientNotices styling to work in footer

* Fix footer width when in setup wizard

* Change export of TransientNotices from default to named

* Add border to footer

* Changelog

* Changelog

* Mock WooFooterItem to allow unit tests to pass

* Fix lint error in test
2023-06-14 16:32:28 -04:00
Ron Rennick b0c06849a9
Update status only when its changed. (#38696) 2023-06-14 16:50:09 -03:00
Corey McKrill 3595622e09
WC Tracker: Add info about features and plugin compatibility (#38613)
* Adds a data key with the list of WC features that are currently enabled on the site.
* Adds a feature_compat key to each plugin that shows its compatibility with each feature (compatible, incompatible, or uncertain) if the plugin is "WooCommerce aware", otherwise just an empty array.
2023-06-14 12:40:41 -07:00
Corey McKrill 9704873fb6
add HPOSToggleTrait.php to unit test loader (#38684)
This PR fixes two unit test files that could not be run individually by adding HPOSToggleTrait.php to the unit test boot loader. It also does a bit of namespace cleanup in HPOSToggleTrait.php.
2023-06-14 11:03:04 -07:00
Corey McKrill cf3346e739
Test removal cleanup 2023-06-14 10:56:22 -07:00
Corey McKrill 1804d44be1
Remove feature compatibility unit test
The mocks in this test were affecting other unit tests for the
PluginUtil class, but only when run in GitHub actions (the tests were
working fine locally). Rather than hold up this PR, I've created
issue #38720 as a future task to add the unit test back in once we've
figured out if there's something buggy happening with dependency
injection.
2023-06-14 10:49:50 -07:00
Fernando Marichal 47481490d8
CES modal modifications (#38643)
* Add extraFields prop

# Conflicts:
#	packages/js/product-editor/src/components/product-mvp-ces-footer/product-mvp-ces-footer.tsx

* Add changelog

* Add changelogs

* Fix styles

# Conflicts:
#	packages/js/product-editor/src/components/product-mvp-ces-footer/style.scss

* Add extraFields validation

* Remove files

* Add styles and js

* Modify the other share feedback form

* Change modal title

* Fix feedback-bar

* Fix return

* Fix params types

* Rename `extraFields` to `getExtraFieldsToBeShown`

* Fix styles

* Fix error handling

* Fix styles

* Rename prop

* Fix error message
2023-06-14 11:25:51 -03:00
Ron Rennick 0ef06972af Merge branch 'trunk' into fix/hpos-unit-test-trait 2023-06-14 11:01:28 -03:00
Vedanshu Jain e4f3273fb5
Add meta boxes for custom taxonomies in order edit screens (#38676) 2023-06-14 15:47:22 +02:00
Ron Rennick 960fa1035a
Add re-migrate support to HPOS CLI. (#38690) 2023-06-14 10:05:38 -03:00
Nathan Silveira b006eee3ae
Add `wcadmin_settings_change` tracks event when adding/removing entries in shipping (#38465)
* Add support for new properties "added" and "deleted" in settings tracking

* Add calls to actions when adding and deleting shipping zones and classes

* Add changelog

* Cover an edge case where the zone is created through adding a method and add more comments

* Fix lint issues

* Add inline comment explaining if statement
Refactor WC_Settings_Tracking to work with a single action with an additional parameter
2023-06-14 09:25:37 -03:00
Tarun Vijwani 35b153dc3e Update WooCommerce blocks package to 10.4.2 2023-06-14 15:44:23 +04:00
Tarun Vijwani 2e263b1cbf Update WooCommerce blocks package to 10.4.0 2023-06-14 15:40:34 +04:00
Vedanshu Jain 02a08e9e3b Add unit test for checking that status has the correct value. 2023-06-14 15:17:52 +05:30
Vedanshu Jain 5f4d7db463 Remove `modified` check when migrating existing orders for consistency.
We were checking whether an order is modified before migrating them. While on surface this looks good, the logic itself has following flaws:
1. We were only checking the columns in the core posts table, but none of the meta fields.
2. Our comparison logic was written in SQL, but given that we have a much better comparison logic already written in PHP, it does not makes sense to maintain two different versions.
3. We are alrady checking for modified records in the batch processor itself, so another check this close to migration logic is not really needed.
2023-06-14 15:03:27 +05:30
Vedanshu Jain 60e168c6ca Doc fixes. 2023-06-14 14:33:48 +05:30
Vedanshu Jain 0c2508a1f1 Add re-migrate support to HPOS CLI. 2023-06-14 14:33:48 +05:30
Samuele Mancuso 3e82a8771b
Update single-product.js for issue #38711
The href attribute will now be splitted by the hash to ensure that the script will work even in case of an absolute link in the tab anchor href.
2023-06-14 10:56:55 +02:00
Moon 604132391a
Visual changes for Intro, guided setup, and skipped guided setup pages (#38709)
* Change Skip this setup to Skip this step

* Visual changes on intro, user profile, and skip guided page

* Always check tracking agreement

* Change border to 2px

* Change Give yoru store a name font-size to 13

* Add Changelog

* Update test to reflect the text change

* Remove !important

* Update test snapshot

* Update test snapshot

* Remove test that is no longer necessary
2023-06-13 22:10:43 -07:00
Corey McKrill 9db19e4848
Tweak unit tests 2023-06-13 15:47:27 -07:00
Chris Runnells f89de27025 Added changelog entry 2023-06-13 12:04:43 -10:00
Moon 620ff93e5a
Additional changes for the core profiler plugins page (#38616)
* Add install-and-activate-plugins-async action to onboarding

* Add label and learn_more_link types

* Use label and learn_more_link

* Fix type

* Add changelog

* Add changelog

* Add install_priority -- this will be used in the core profiler

* Sort selected plugins by install_priority for installation

* Remove unused imports

* dev: refactor installAndActivatePlugins to xstate

* ts fixes

* Sort plugins by install_priority

* Make sure WooCommerce Shipping is always visible

* Update free extension list content

* Updated WC payment description
* Updated logo images

* Visual changes on the plugin page

* Change CTA font size from 13px to 14px
* Change spacing between the chebox and logo to 24px
* Change heading font-weight to 500

* Fix css lint error

* Fix gray-900 variable name

* Hide learn more link on mobile view

* Add back learn more link that was removed from rebase

* Send pluginsAvailable to pluginInstallermachine

* Use is_activated to determine plugin availability and install status

* Update packages/js/data/src/onboarding/types.ts

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

* Update plugins/woocommerce/src/Internal/Admin/RemoteFreeExtensions/DefaultFreeExtensions.php

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

* Add back recordTracksPluginsLearnMoreLinkClicked

* Use install-and-activate-plugins-async when timer is up

* Record plugin and link with learn more linked clicked event

* Fix failign tests

* Add comment for install_priority

---------

Co-authored-by: rjchow <me@rjchow.com>
Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2023-06-13 15:03:03 -07:00
Chris Runnells 6e39164cea Update task list CSS to prevent text from overlapping the background image 2023-06-13 12:02:43 -10:00
Jorge A. Torres 05a4884188
Address possible PHP deprecation warning in `/wc-admin/options` endpoint (#38685)
* Address possible PHP warning in `/wc-admin/options` endpoint

* Add changelog

* phpcs fix

* Implement code review suggestion
2023-06-13 16:59:55 -03:00
Nathan Silveira bc3edb0ae1
Update style of Block product editor TourKit (#38640)
* Increment style of first step of block editor tour

* Changelog
2023-06-13 16:44:01 -03:00
Ron Rennick f8c16f0373 use wp_json_encode instead of print_r in CLI output 2023-06-13 15:26:18 -03:00
Vedanshu Jain 59bb1f8365 Update status only when its changed. 2023-06-13 21:12:03 +05:30
Vedanshu Jain a718a59166
Add/order model trash untrash (#38670) 2023-06-13 18:52:26 +05:30
Vedanshu Jain f994f4fd49 Doc fixes. 2023-06-13 16:30:30 +05:30
Vedanshu Jain 846a509801 Add re-migrate support to HPOS CLI. 2023-06-13 16:18:10 +05:30
Corey McKrill 7cbebac61c
Ensure test mocks don't pollute other tests 2023-06-12 14:49:22 -07:00
Jorge A. Torres 02e71e8c4b Add changelog 2023-06-12 18:15:03 -03:00
Jorge A. Torres eb3082e835 Address possible PHP warning in report code 2023-06-12 18:15:03 -03:00
Jorge A. Torres 9a6005a355 Cast partial refund related data in report to float before operating on it 2023-06-12 18:15:03 -03:00
Ron Rennick 42261ed77f
Ensure order ordering in order filter unit test (#38680)
* Ensure order ordering in order filter unit test

* remove unused variable, fix spacing

---------

Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2023-06-12 17:59:32 -03:00
Ron Rennick 2ad276174e add HPOSToggleTrait.php to unit test loader 2023-06-12 17:23:55 -03:00
Nathan Silveira 0fc765beb3
Product Editor Onboarding: Add "tell me more" button to wc.com page (#38639)
* Copy Guide component from @wordpress/components and fix focus issue

* Add 'tell me more' button and behavior

* Move Guide component from components package to admin package
Implement assigning an href to the finish button, sending the current page and origin as a parameter on the onFinish callback

* Remove dependency

* Restore pnpm-lock.yaml

* Add changelog

* Add comment in Guide component

* Dismiss modal only when it's finished or X button is clicked

* Add 'rel' when opening link in a new tab
2023-06-12 14:54:29 -03:00
Ron Rennick 0e95435474
improve get_children transient validation (#38666)
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2023-06-12 14:05:06 -03:00
Matt Sherman 2039d8915e
Show feedback bar after product editor tour/guide (#38669) 2023-06-12 12:43:19 -04:00
Nathan Silveira 18f2de2bc4
Always show pricing group fields, disable if not available for a product type (#38531)
* Always show General product tab

* Add info messages for variable and grouped products

* Add logic to disable/enable fields and labels based on product type

* Tweak CSS and fix links

* Add tracks events for links

* Add filters to pricing disabled message

* Tweak logic to only enable fields on certain product types instead of disabling in the opposite ones

Add fallback message when pricing is disabled but it's not Variable or Grouped product

* Add docblocks

* Fix more lint issues

* Fix last lint issues

* Update selector in e2e test

* Refactor PHP echo

* Attach to #woocommerce-product-data instead of attaching to body
2023-06-12 12:58:26 -03:00
nigeljamesstevenson 3efb6f488c
Fix flakiness in `can set variation defaults` test. (#38672) 2023-06-12 14:59:25 +01:00
github-actions[bot] f0156a24fc
Delete changelog files based on PR 38663 (#38665)
Delete changelog files for 38663

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-12 08:02:58 -05:00
Corey McKrill d2a9feda2a
phpcs cleanup 2023-06-09 17:26:38 -07:00
Corey McKrill 50f4e63ddb
Add unit tests 2023-06-09 17:14:48 -07:00
Rodel Calasagsag 77024a8da7 Add changelog 2023-06-10 06:17:07 +08:00
Rodel Calasagsag f807d5d65e Add step to wait for overlay to disappear. 2023-06-10 06:16:12 +08:00
Barry Hughes 902454a40c
Fix character encoding detection in CSV exporter for PHP 8.1 (#38648) 2023-06-09 14:32:09 -07:00
Barry Hughes 6db8a53918
Adjust functions in wc-formatting-functions.php to handle null argument deprecations in PHP 8.1 (#38635) 2023-06-09 14:31:11 -07:00
barryhughes 252d3bc32e Remove extraneous `@param` tag. 2023-06-09 14:07:41 -07:00
barryhughes 530a7f08d0 Always return a bool, in case the data store lacks the `untrash_order` method. 2023-06-09 13:52:21 -07:00
barryhughes 7f8747f478 Add methods to allow x-datastore untrashing. 2023-06-09 13:36:31 -07:00
barryhughes d30754b1cf Changelog entry. 2023-06-09 13:36:19 -07:00
barryhughes 4b7643cd6f Describe how untrashing should work in relation to orders. 2023-06-09 13:35:24 -07:00
Ron Rennick a172941031
Add Saint Kitts and Nevis localizations for address entry (#38621) 2023-06-09 17:07:45 -03:00
Ron Rennick 66f4e8c1bb update playwright country crud configuration 2023-06-09 16:31:01 -03:00
Ron Rennick f54686c639 update playwright stateOptions configuration 2023-06-09 15:39:34 -03:00
Corey McKrill 318a133e17
Rename feature_compat to feature_compatibility 2023-06-09 11:24:08 -07:00
Corey McKrill f0f586aa5e
phpcs cleanup 2023-06-09 11:24:08 -07:00
Corey McKrill 2a3b5bfe64
Add changelog file 2023-06-09 11:24:07 -07:00
Corey McKrill 71ead43c61
WC Tracker: Add enabled features, plugin feature compatibility
* Adds a data key with the list of WC features that are currently
  enabled on the site.
* Adds a `feature_compat` key to each plugin that shows its
  compatibility with each feature (compatibile, incompatible, uncertain)
  if the plugin is "woocommerce aware", otherwise just an empty array.
2023-06-09 11:23:53 -07:00
Barry Hughes 273527e380
Leave comment, remove `TODO`. 2023-06-09 08:49:48 -07:00
Barry Hughes 88697c5abd
Tidy TODO task comment. 2023-06-09 08:42:51 -07:00
Albert Juhé Lluveras 9725529e41
Update WooCommerce Blocks to 10.2.3 (#38663) 2023-06-09 17:31:58 +02:00
Maikel David Pérez Gómez 72f7e6ebbb
Publishing product in classic editor redirects back to new editor (#38551)
* Changes the feature given it's id and a toggle value as a query param

* Swap classic editor and new product block editor url when product_block_editor feature changes

* Turn off the product_block_editor feature when user choose to use the classic editor

* Add changelog files

* Fix linter errors

* Add nonce to each feature change request

* Change the hooks name for better readability

* Use get_current_screen function to better identify if the current screen is the product creation or edition

* Add wp_die if the nonce verification failed

* Change regex for explode/parse_url for better reading
2023-06-09 11:18:40 -04:00
Igor Radovanov fe8df401e7
Merge branch 'woocommerce:trunk' into trunk 2023-06-09 15:29:52 +02:00
Ron Rennick 55faf9dcda
Fix 'dynamic property declaration' warnings in wc-admin code (PHP 8.2+) (#38587) 2023-06-09 09:40:26 -03:00
Vedanshu Jain 079274d428
[COT] Allow to filter orders query (#36625) 2023-06-09 15:20:41 +05:30
RJ e68ff848b3
add: updated payment gateways for 2023 Q3 (#38646) 2023-06-09 17:15:53 +08:00
RJ 622711c48b
dev: refactor installAndActivatePlugins to xstate (#38577)
* dev: refactor installAndActivatePlugins to xstate

* ts fixes

* fixed first plugin install progress bar reset issue

* clean up todo comments

* fixed bug where errors were not reported if past 30s timeout

* fix lint
2023-06-09 15:08:45 +08:00
Vedanshu Jain b04376b501
Add HPOS compat queries for tracker. (#38293) 2023-06-09 10:19:01 +05:30
Matt Sherman dadc0eb777
Show feedback footer on product editor page (#38599) 2023-06-08 20:56:07 -04:00
Corey McKrill f16388007c
Allow extenders to add content to order details screen payment info box (#38443)
Adds new `woocommerce_admin_order_data_after_payment_info` hook to the Edit Order screen.
2023-06-08 16:45:08 -07:00
Rua Haszard e8f2d3f061 remove remnant comment about "contextual notice" (now gone):
- intending to use Gutenberg notice and/or proposed forthcoming InlineNotice variant
2023-06-09 10:26:28 +12:00
Joel Thiessen 8098c35588
Add initial release of WooAI plugin (#38610)
Co-authored-by: Joel Thiessen <444632+joelclimbsthings@users.noreply.github.com>
Co-authored-by: Nima Karimi <73110514+nima-karimi@users.noreply.github.com>
Co-authored-by: Thomas Shellberg <tommy.shellberg@automattic.com>
2023-06-08 13:20:05 -07:00
Jorge A. Torres 6672e9e199 Move $report_columns var to reports DataStore parent class 2023-06-08 15:48:50 -03:00
Nestor Soriano 76270ef8cb
Add changelog file 2023-06-08 12:11:51 +02:00