Commit Graph

9725 Commits

Author SHA1 Message Date
Jon Lane 9c8249fa46 Fix timeout 2023-03-23 11:42:46 -07:00
Christopher Allford 3d614cd862
Removed TypeScript Incremental Build Support (#37374) 2023-03-23 11:25:42 -07:00
Nathan Silveira 818c0c0a12
Add start command to woocommerce/client/legacy (#37368) 2023-03-23 11:20:20 -07:00
Jon Lane 660b277d4b Complete refactor 2023-03-23 10:35:57 -07:00
Lucas Bustamante ebafecea0f
Reduce flakiness on E2E setup (#37410)
* Reduce flakiness on test setup

* Add changelog

* Go to wp-admin
2023-03-23 09:40:31 -07:00
Gan Eng Chin 51a57c2808
Remove unused Button component in marketing directory. 2023-03-23 23:28:55 +08:00
Gan Eng Chin 4f7705f691
Always use MarketingOverviewMultichannel for marketing page. 2023-03-23 23:19:34 +08:00
Jorge A. Torres 627c2bce01
Synchronize order meta data (between HPOS and CPT stores) (#36593) 2023-03-23 10:03:44 -05:00
Vedanshu Jain 41c2549f20 Remove manual meta handling code since custom meta is synced now. 2023-03-23 08:34:00 -05:00
nigeljamesstevenson 189460417c
Release tests with plugins installed (#37361) 2023-03-23 12:32:30 +00:00
nigeljamesstevenson 8806f0d6ee changelog entry 2023-03-23 09:31:40 +00:00
nigeljamesstevenson 0e1f74ae5a update incorrect variable name in api-core-test 2023-03-23 09:26:27 +00:00
Gan Eng Chin 5953362485
Refetch "Installed extensions" card data after installing recommended channels (#37300) 2023-03-23 15:06:08 +08:00
Jorge A. Torres c76a999ae9 Propagate metadata deletion 2023-03-22 21:38:12 -05:00
barryhughes fd3749d5c2 Add assertions covering synchronization of order meta data deletions. 2023-03-22 21:38:12 -05:00
barryhughes e15b942054 Fix typos. 2023-03-22 21:38:12 -05:00
barryhughes ed511dbb76 Synchronize order meta data (between HPOS and CPT stores) upon a call to $order->save_meta_data. 2023-03-22 21:38:12 -05:00
Jon Lane 50852ca9ea Fixed variations test 2023-03-22 10:09:27 -07:00
Nestor Soriano 1468539e5c
Merge branch 'trunk' into bump-required-php-to-7.3 2023-03-22 17:03:07 +01:00
Albert Juhé Lluveras 5a21b3f218
Update WooCommerce Blocks package to 9.8.2 (#37373) 2023-03-22 16:56:41 +01:00
Nestor Soriano 74d0841eaf
Merge branch 'trunk' into bump-required-php-to-7.3 2023-03-22 16:43:50 +01:00
Nestor Soriano b7cd5aa47d
phpunit.xml migrated to the new PHPUnit 9 schema 2023-03-22 16:21:06 +01:00
Nestor Soriano 15c7a18c98
Add changelog file 2023-03-22 13:32:42 +01:00
Nestor Soriano 9137eff39b
Fix tests that throw deprecation warnings in PHPUnit 9.
These fixes include:

- Replace assertRegExp with assertMatchesRegularExpression
- Replace assertObjectHasAttribute and assertClassHasStaticAttribute
  with assertTrue(property_exists)
- Replace assertFileNotExists with assertFileDoesNotExist
- Replace expects(at()) with withConsecutive
2023-03-22 13:23:58 +01:00
Nestor Soriano 9bc58b8773
Upgrade PHPUnit to v9, and fix errors in tests.
These errors are due to deprecations in PHPUnit 9, mostly due to the
fact that comparions are now string on assertions:

- Use assertArraySubset instead of arrayContains for checking
  subsets of associative arrays.
- Use assertEqualsWithDelta for comparing floats (thorugh a new
  method in the base tests class, assertFloatEquals)
- Convert ints to strings and viceversa before comparing.
- Use assertArrayHasKey instead of assertContains for checking
  key existence in associative arrays.
- Use assertStringContainsString instead of assertContains for
  checking substrings.
2023-03-22 12:42:43 +01:00
Gan Eng Chin 1453351521
Simplify tests for CreateNewCampaignModal. 2023-03-22 18:38:43 +08:00
Gan Eng Chin 59c94ce24a
Fix build errors after merging from trunk. 2023-03-22 18:35:06 +08:00
Joel Thiessen 4ae467af9e
Adding more menu with items using slot fill (#37255)
* Refactored, adding slot fill, basic working via common components

* Pinning plugins dep

* More menu style tweaks

* Fixing merge issues

* Adding product header item slotfill to support more menu modal

* Fixing moved imports

* Adding changelogs

* Adding hover state for more menu toggle btn

* Fixing typo

* Refactoring to use WooHeaderItem instead of adding new slot-fill

* Removing unneeded fragment

* Adding admin layout changelog

* PR feedback

* Fix up lock file after rebase

---------

Co-authored-by: Joshua Flowers <joshuatf@gmail.com>
2023-03-22 07:30:06 -03:00
Gan Eng Chin 186f1fb850
Merge branch 'trunk' into feature/37127-marketing-reload-installed-extensions 2023-03-22 18:28:39 +08:00
rodelgc 06da097968 Merge branch 'trunk' into e2e/release-plugins-0 2023-03-22 18:04:42 +08:00
nigeljamesstevenson c37080f29f
Add workflow to run API, k6 performance, and E2E tests on trunk after PR merge (#37033) 2023-03-22 09:44:36 +00:00
Gan Eng Chin c0dc416700
Exclude marketing channels in "Installed extensions" and "Discover more marketing tools" cards (#37126) 2023-03-22 17:41:04 +08:00
rodelgc 5f8aa3671c Merge branch 'trunk' into e2e/release-plugins-0 2023-03-22 17:29:08 +08:00
Gan Eng Chin 76379770a1
Fix hook file name with correct casing. 2023-03-22 16:51:25 +08:00
Gan Eng Chin 1f7a8120a3
Temporary rename file to fix casing issue. 2023-03-22 16:50:27 +08:00
Gan Eng Chin 3189f2b7f5
Reorganize code. 2023-03-22 16:44:44 +08:00
Gan Eng Chin 01492520d3
Fix JSDOC comment in UseRecommendedPluginsWithoutChannels. 2023-03-22 16:38:21 +08:00
Gan Eng Chin 5e6cd11028
Simplify naming in PluginsTabPanel. 2023-03-22 16:09:40 +08:00
Gan Eng Chin b18e1705cd
Fix and simplify mocks in DiscoverTools tests. 2023-03-22 16:07:51 +08:00
Gan Eng Chin 7395d6939c
Fix file name for useInstalledPluginsWithoutChannels. 2023-03-22 15:59:37 +08:00
Joel Thiessen b8416d7948
Replacing multiple components on the product page with a single hook. (#37283)
* Replacing multiple componments on the product page with a single hook.

* Adding changelog

* Removed the conditional hook logic, because of React rule - Don’t call Hooks inside loops, conditions, or nested functions.

* Use promise for receiving entity, and reload template on product change

* Add changelog

---------

Co-authored-by: Lourens Schep <lourensschep@gmail.com>
2023-03-22 04:48:55 -03:00
Chi-Hsuan Huang 688c5e97ff
Revert "Add missing woocommerce_run_on_woocommerce_admin_updated hook for RemoteInboxNotificationsEngine scheduled action" (#37354)
* Revert "Add missing woocommerce_run_on_woocommerce_admin_updated hook for RemoteInboxNotificationsEngine scheduled action (#36768)"

This reverts commit b114426042.

* Add changelog

* Fix lint
2023-03-22 12:55:59 +08:00
Vedanshu Jain eb297c00c9
Overwrite clone method to prevent duplicate data when saving a clone. (#37313)
* Add unit test to simulate duplicate meta insert.

* Overwrite clone method to prevent duplicate datq when saving a clone.

* Add changelog.

* Coding standard fixes.

* Fix phpcs

---------

Co-authored-by: Jorge A. Torres <jorge.torres@automattic.com>
2023-03-21 18:23:57 -05:00
Jonathan Lane 0eacfc31cf
Merge branch 'trunk' into e2e/fix-failing-daily-product-variations 2023-03-21 16:11:56 -07:00
jonathansadowski 2e8b7921e3
Update stable tag to 7.5.1 (#37344)
* Update stable tag to 7.5.1

* Create change file
2023-03-21 15:52:20 -05:00
Fernando Marichal 8e08139881
Set quantity value when stock tracking is enabled (#37304)
* Set default quantity value

* Rename `Stock quantity` to `Quantity`

* Add changelog

* Fix original stock

---------

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2023-03-21 16:55:56 -03:00
Matt Sherman bfb59715bc
e2e: Remove explicit timeouts for variable products and analytics tests (#37335)
* Improve filling out attribute input fields

* Improve waiting for attributes to be saved

* Improve waiting for Analytics overview settings to be saved
2023-03-21 15:41:15 -04:00
Nestor Soriano 735e66a24b
Remove the admin notice about the upcoming PHP 7.3 requirement 2023-03-21 16:59:14 +01:00
Matt Sherman b27f6023f8
Move remaining CES-related components to @woocommerce/customer-effort-score (#37316)
* Add @woocommerce/tracks to dev dependencies
* Move remaining CES-related components to @woocommerce/customer-effort-score
* Update imports in woocommerce/client/admin
2023-03-21 11:58:35 -04:00
Nestor Soriano dd2f6f4c13
Bump WooCommerce minimum required PHP version to 7.3
This includes:

- Changing "Requires PHP" in woocommerce.php
- Changing "require-php" and "config-platform-php" in composer.json
- Changing "testVersion" in phpcs.xml
- Updating the composer.lock file with more modern versions
  of some of the dependencies
2023-03-21 16:56:34 +01:00
Maikel David Pérez Gómez 62ca7a266b
Add the summary field to the product form (#37302)
* Add summary block

* Add changelog files

* Add text alignment

* Add RTL and type definitions

* Add justify text alignment

* Fix rebasing errors
2023-03-21 12:34:24 -03:00
Gan Eng Chin e281c09bc6
Merge branch 'trunk' into feature/34907-marketing-exclude-channels
Conflicts:
	plugins/woocommerce-admin/client/marketing/hooks/index.ts
2023-03-21 23:33:41 +08:00
Gan Eng Chin 637fca8df5
Rename file UseInstalledPlugins to UseInstalledPluginsWithoutChannels. 2023-03-21 23:23:39 +08:00
Gan Eng Chin 648eab74eb
Change namings in useInstalledExtensions to useInstalledPluginsWithoutChannels. 2023-03-21 23:22:39 +08:00
Michael Pretty d9e049d074 adding missing docblocks for tests 2023-03-21 11:05:39 -04:00
Michael Pretty 2db2e720c9 Correcting quoting style for non-dynamic strings in tests 2023-03-21 10:55:08 -04:00
github-actions[bot] f899b43d91
Prep trunk for 7.7 cycle (#37324)
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-03-21 15:48:18 +01:00
Michael Pretty 6c9cfaa793 Add unit tests for update-functions. 2023-03-21 10:46:49 -04:00
Gan Eng Chin fab90dc712
Fix incorrect data while loading in useRecommendedPlugins.
See the incorrect data issue in https://github.com/woocommerce/woocommerce/pull/37126#discussion_r1141936304.
2023-03-21 22:28:05 +08:00
github-actions[bot] 45123fcc96
Release: Remove 7.6 change files (#37322)
Delete changelog files from 7.6 release

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-03-21 15:17:31 +01:00
nigeljamesstevenson e4eb7904fb
Add Liberia as store location for e2e test (#37323) 2023-03-21 14:14:15 +00:00
Gan Eng Chin e4a8d17ed3
Rename file useRecommendedPlugins to useRecommendedPluginsWithoutChannels. 2023-03-21 21:13:19 +08:00
Gan Eng Chin b129dd5173
Change namings and add docs in useRecommendedPlugins. 2023-03-21 21:12:00 +08:00
Gan Eng Chin c6bcf9fa67
Fix incorrect data while loading in useRecommendedPlugins.
See the incorrect data issue in https://github.com/woocommerce/woocommerce/pull/37126#discussion_r1141936304.
2023-03-21 19:30:24 +08:00
Gan Eng Chin fe4e28d511
Rename UseInstalledPlugins to UseInstalledExtensions.
Also change related names from "plugin" to "extension".
2023-03-21 19:08:13 +08:00
Gan Eng Chin 50c391cee0
Use fallback value instead of default value in useInstalledPlugins. 2023-03-21 18:35:38 +08:00
Gan Eng Chin 79023a4a10
Fix incorrect data while loading in useInstalledPlugins. 2023-03-21 18:33:57 +08:00
Jon Lane c4f0170c1e Add Liberia as store location 2023-03-20 16:07:03 -07:00
Moon b114426042
Add missing woocommerce_run_on_woocommerce_admin_updated hook for RemoteInboxNotificationsEngine scheduled action (#36768)
* Add woocommerce_run_on_woocommerce_admin_updated hook

* Add changelog

* Simplify schedule call

* Lint fix
2023-03-21 06:46:21 +08:00
Süleyman KENAR 32fd0a41ed
Add support for Loco Translate translations in WooCommerce Admin (#36739)
* Update Translations.php

* fix formatting issues

* added changelog

* Update Translations.php

Added seperate parsers for chunk files
2023-03-21 06:42:26 +08:00
nigeljamesstevenson e74abeffe4
update api-core-tests to handle extenstions that add shipping (#37239) 2023-03-20 13:24:36 -07:00
nigeljamesstevenson 185cd3dcaa
Update playwright api-core-tests to associate orders with real products to prevent extension issues for those that validate product ids (#37243)
* Update playwright api-core-tests to associate orders with real products to prevent extension issues for those that validate product ids

* add newline at end of file

* add comment
2023-03-20 13:23:23 -07:00
Peter Fabian ae92dafea3
Allow for passing context into the get_image for product variation. (#28498)
* Allow for passing context into the get_image for product variation.

Since get_image behaves differently in edit and view contexts, it is important to pass the context down. In view context, if there is no image set for variation, it returns parent's image. However, this is wrong for WP admin or mobile app running from pov of admin user.

* Added changelog.

* Address PHPCS issue

---------

Co-authored-by: Jorge A. Torres <jorge.torres@automattic.com>
2023-03-20 14:50:55 -05:00
Fernando Marichal a51f26d2c1
Convert "Allow backorders?" into radio buttons (#37282)
* Add check to show `Allow backorders as radio buttons

* Add changelog

* Rename hook

* Fix lint

* Fix hook default value

* Add tip to radio buttons

---------

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2023-03-20 15:41:51 -03:00
Moon 679339ec95
Refresh data source poller transients on wc_admin_daily (#37027)
* Refresh data source poller transients on wc_admin_daily

* Add changelog

* Conditionally refresh data source pollers

* Fix style

* Check  woocommerce-pyaments -- woocommerce-payments can override payments task

* Add marketing task check for RemoteFreeExtensionsDataSourcePoller
2023-03-20 11:30:48 -07:00
Jonathan Lane ab75a00a83
Merge branch 'trunk' into e2e/fix-failing-daily-product-variations 2023-03-20 11:00:13 -06:00
jonathansadowski 1f177d23c0
Update stable tag to 7.5.0 (#37311)
* Update stable tag to 7.5.0

* Changelog
2023-03-20 11:00:58 -05:00
github-actions[bot] 591921cd30
Delete changelog files based on PR 36992 (#36996)
Delete changelog files for 36992

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-03-20 10:29:03 -05:00
github-actions[bot] b65376025b
Delete changelog files based on PR 36919 (#36942)
Delete changelog files for 36919

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-03-20 10:27:23 -05:00
Fernando Marichal d0450fa43c
Show `Stock status` options as radio buttons (#37278)
* Add check to show Stock status as radiobuttons

* Add changelog

* Fix lint

* Fix typo

* Fix flaky e2e tests

* Rename hook

* Fix validation to show radio

---------

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2023-03-20 09:32:38 -03:00
Dharmesh Patel 748677c4a1
Fix incorrect VAT exempt behaviour on shop page when prices are exclusive of tax. (#33991) 2023-03-20 12:53:19 +01:00
Gan Eng Chin bebad071a3
Add introduction banner card into multichannel marketing page (#37110) 2023-03-20 19:25:01 +08:00
Tam Mullen da4f273963
Update labels in pr labeller to include Solaris focus (#37275)
Update labels in labeller to include Solaris focus
2023-03-20 11:21:24 +00:00
Gan Eng Chin a2b02fc00c
Rename illustration-large.svg to illustration.svg. 2023-03-20 18:11:02 +08:00
Gan Eng Chin 0300078dfd
Remove unused illustration.svg file. 2023-03-20 18:08:30 +08:00
Gan Eng Chin 4e38969ce7
Use one illustration instead of two in IntroductionBanner. 2023-03-20 18:07:30 +08:00
Vedanshu Jain c3bec0c827
Run all unit tests in HPOS context (#36650) 2023-03-20 15:19:01 +05:30
Gan Eng Chin 7dd7994e01
Make scrollIntoView center on the "Add channels" button. 2023-03-20 17:46:54 +08:00
Gan Eng Chin 29299903c3
Make shouldShowCampaigns boolean type. 2023-03-20 17:23:20 +08:00
RJ a959b589f6
fix: added skydropx slug back to shipping partners list (#37286) 2023-03-20 16:48:44 +08:00
Moon 1aa899ae91
Add shipping partner suggestions api (#37155)
* Add wp-json/wc-admin/shipping-partner-suggestions API endpoint

* lint fix

* lint fix

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

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

* Update plugins/woocommerce/src/Admin/Features/ShippingPartnerSuggestions/ShippingPartnerSuggestions.php

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

* Change row to column and column to row -- I put them incorrectly

* Fix force_default_suggestions description

* Chagne row to colmun and column to row

* Override is_visible value after evaluation

* Lint fix

* Lint fix

* Correct asset path

---------

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2023-03-19 22:37:24 -07:00
Moon e8a00edaef
Visual tweaks for shipping task partners (#37229)
* Visual tweaks for 2 partners layout

* Add spacing between banner image and list

* Add changelog

* Add spacing between banner image and list

* Align buttons at the bottom

* Lint fix
2023-03-19 21:33:10 -07:00
Gan Eng Chin 5455abcabb
Use useImperativeHandle instead of exposing button ref in Channels. 2023-03-20 01:00:19 +08:00
Gan Eng Chin 75c11a681d
Simplify CSS to have less hardcoded width value. 2023-03-20 00:11:32 +08:00
Gan Eng Chin 38370cc544
Remove unneeded CSS. 2023-03-19 23:34:17 +08:00
Gan Eng Chin ddd287cc4c
Show Campaigns card when banner is dismissed or campaigns total is truthy. 2023-03-19 23:30:21 +08:00
Gan Eng Chin 11683be1a8
Set default parameter values for useCampaigns. 2023-03-19 23:17:22 +08:00
Gan Eng Chin 458c16bad9
Move useCampaigns to shared hooks directory. 2023-03-19 22:54:55 +08:00
Gan Eng Chin c6a95ae9bf
Rename callback props in IntroductionBanner to make them clearer. 2023-03-19 21:10:22 +08:00
Gan Eng Chin 6b75b5db38
Rename variables to make them clearer. 2023-03-19 20:58:54 +08:00
Gan Eng Chin 155211d77a
Remove unneeded Icon component. 2023-03-19 20:56:00 +08:00
Gan Eng Chin 65523e36dd
Fix spacing for close button in IntroductionBanner. 2023-03-19 20:54:34 +08:00
Gan Eng Chin 1b65be0a53
Fix useSelect dependency in useIntroductionBanner. 2023-03-19 20:50:37 +08:00
Gan Eng Chin 99c6ebff15
Remove the use of isOptionsUpdating in useIntroductionBanner.
isOptionsUpdating will return true for any option update, not just our option here. This causes issue as shown in demo video in https://github.com/woocommerce/woocommerce/pull/37110#discussion_r1130531104.

We can just depend on getOption. When we update an option, it will be updated immediately in wp.data store before making API request to update the option in database (see c5564a15c1/packages/js/data/src/options/actions.ts (L44)).
2023-03-19 20:38:20 +08:00
Gan Eng Chin 162d790a7a
Update option name and value to make it more indicative. 2023-03-19 20:16:04 +08:00
Gan Eng Chin 49253425b2
Specify dependency for useSelect in useIntroductionBanner.
Co-authored-by: Eason <eason.su.tw@gmail.com>
2023-03-19 20:12:09 +08:00
Gan Eng Chin 7cc8e065f9
Merge branch 'trunk' into feature/34904-marketing-introduction-banner 2023-03-19 20:09:23 +08:00
Gan Eng Chin f45e43b990
Add changelog. 2023-03-19 18:06:44 +08:00
Gan Eng Chin e20b9d1ac9
Filter out marketing channels in useRecommendedPlugins. 2023-03-19 18:06:39 +08:00
Gan Eng Chin 8c151984ad
Filter installed plugins against marketing channels in useInstalledPlugins. 2023-03-19 18:06:34 +08:00
Gan Eng Chin 555116f3df
Fix broken tests for CreateNewCampaignModal.
The tests had errors because useInstalledPlugins is added into the component and it is not mocked in the tests.
2023-03-19 17:59:35 +08:00
Michael Pretty 2e3057052f fix lint issues 2023-03-17 15:27:28 -04:00
Matt Sherman c5564a15c1
Filter Variations report variation attributes correctly (#37223)
* FIx Variations report
* Fix Orders report
* Remove ability to pass table into get_attribute_subqueries since it should always be the same table we join on
2023-03-17 14:05:51 -04:00
louwie17 345ad58919
Add product pricing block (#37211)
* Adding initial pricing block

* Have price block render in form

* Make sure price is loaded correctly and fix template rendering

* Make pricing block abstract and add list and sale price to template

* Add changelogs

* Revert changes in wc/data package

* Fix lint issues

* Fix type error

* Add styling

* Fix styling lint issues

* Revert config change missed in rebase

* Make use of base control help text for field info

* Allow additional callbacks for onFocus and onKeyUp
2023-03-17 14:03:10 -03:00
Gan Eng Chin ffc36d808c
Add changelog. 2023-03-18 00:52:04 +08:00
Gan Eng Chin 1aaa26e07d
Reload installed extensions data after installing recommended channels.
This is because the channel may not have registered itself as a marketing channel and it should show up in the Installed extensions card.
2023-03-18 00:47:54 +08:00
Michael Pretty 00bf0760be Update changelog 2023-03-17 12:29:50 -04:00
Michael Pretty bd0da16eab Replace information_schema queries in wc-update-functions.php with create table searches
Partially fixes #37276
2023-03-17 12:21:21 -04:00
Maikel David Pérez Gómez e370f25c0c
Add a product header component to the blocks interface (#37152)
* Add button and saving logic

* Add comment suggestions

* Add changelog files

* Add comment suggestions

* Set header title to product name if the name field is dirty otherwise the default title value

* Navigate to EditProductPage after creating the product succesfully

* Add get-header-title util and expose edited product name from useSelect
2023-03-17 13:21:15 -03:00
github-actions[bot] 14675be4f0
Delete changelog files based on PR 36871 (#37297)
Delete changelog files for 36871

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-03-17 10:14:18 -05:00
github-actions[bot] a4c9e471b2
Delete changelog files based on PR 37277 (#37294)
Delete changelog files for 37277

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-03-17 10:11:46 -05:00
Gan Eng Chin 8070f65ec7
Make sure expression before `&&` is always boolean in React rendering in marketing page (#37227) 2023-03-17 22:56:35 +08:00
Gan Eng Chin aa15311e8b
Disable React Fast Refresh completely in webpack when running `start` command (#37289) 2023-03-17 22:22:50 +08:00
Matt Sherman ffc5b911ee
Bypass scheduled actions for customer updates (#37265)
* Bypass scheduler for customer update

* Handle case when wc_last_active user meta doesn't exist at all

* Bypass scheduler for wc_last_active customer update

* Bypass scheduler for delete_user and remove_user_from_blog

* Bypass scheduler for woocommerce_privacy_remove_order_personal_data

* Bypass scheduler for woocommerce_new_customer

* Remove obsolete test for last_active_update sync

* Remove assertions for pending wc-admin_import_customers
2023-03-17 10:11:06 -04:00
Chi-Hsuan Huang 9ea8b630ee
Remove cart2cart option from product task (#37285)
* Remove cart2cart option from add product task

* Remove cart2cart link test

* Add changelog

* Fix unit test

* Fix lint
2023-03-17 20:15:31 +08:00
Chi-Hsuan Huang cbafbd53c4
Update plugins/woocommerce/changelog/dev-update-webpack-config
Co-authored-by: Gan Eng Chin <ecgan@users.noreply.github.com>
2023-03-17 19:44:09 +08:00
Peter Fabian a45b67d390
Prevent dbDelta from running unnecessary ALTER table during upgrade (#37277) 2023-03-17 12:03:17 +01:00
Chi-Hsuan Huang f5b80b84cf Add changelog 2023-03-17 17:53:14 +08:00
Chi-Hsuan Huang a6e3398e06 Disable React Fast Refresh completely in webpack when running start command 2023-03-17 17:52:24 +08:00
Vedanshu Jain 329c65ed76 Better language, and allow deleting by inherited classes too. 2023-03-17 14:58:35 +05:30
Vedanshu Jain c99f17592c Add changelog. 2023-03-17 14:03:47 +05:30
Vedanshu Jain 22cfecd522 Also delete when order type is placehoder, since it was created by HPOS. 2023-03-17 14:02:59 +05:30
Vedanshu Jain 31134c7055 Revert "Also delete when order type is placehoder, since it was created by HPOS."
This reverts commit 5e636046dd.

Reverting so that it can be properly included in a seperate PR
2023-03-17 14:01:52 +05:30
Vedanshu Jain ade1540ece Merge branch 'trunk' into hpos/unit-tests 2023-03-17 13:39:19 +05:30
Néstor Soriano 196c4f889c
Load same stylesheets in the Site Editor as in the frontend (#36911) 2023-03-17 09:07:37 +01:00
Chi-Hsuan Huang a643fef112
Fix woocommerce-admin "packages" commands (#37204)
Fix WCA run packages command

Add changelog
2023-03-17 15:11:33 +08:00
Chi-Hsuan Huang 2699aeca6b
Update default payment gateways for payment partners (#37233)
* Update default payment gateways

* Add changelog

* Move cod
2023-03-17 14:38:35 +08:00
RJ 23b79428f7
add: payment transaction processor images to payment recommendations (#37230) 2023-03-17 13:49:50 +08:00
RJ 04f34e9636
fix: payments recommendations pane wrong image size (#37259) 2023-03-17 12:29:19 +08:00
Fernando Marichal 0f733d1db2
Record values for toggled checkboxes/features in settings (#37242)
* Record toggled values

* Improve `tab` and `section` recording.

* Add changelog

* Fix lint

* Fix lint

---------

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2023-03-16 15:22:51 -03:00
Gan Eng Chin f769a8c6f5
Merge branch 'trunk' into feature/34904-marketing-introduction-banner
Conflicts:
	plugins/woocommerce-admin/client/marketing/overview-multichannel/MarketingOverviewMultichannel.tsx
2023-03-17 01:21:13 +08:00
Matt Sherman 9c5e9b57bf
Move CES data store to @woocommerce/customer-effort-score (#37252) 2023-03-16 10:22:33 -04:00
Matt Sherman 97b6ae086f
Initial e2e tests for new product editor (form-based) (#36902) 2023-03-16 09:51:01 -04:00
Ahmed 3985242547
Add onboarding support for new countries in WCPay (#36906)
* Add new countries to WCPay

* changelog

* add new countries code to woocommerce admin

* Add the new countries to onboarding wizard fallback config file

---------

Co-authored-by: Anurag Bhandari <anurag@automattic.com>
2023-03-16 20:48:45 +08:00
Jorge A. Torres b19ad2f6d7
Prevent possible PHP warnings produced by 'woocommerce_ajax_order_items_removed' hook (#37178)
* Remove superfluous check.

* Prevent PHP warnings in `woocommerce_ajax_order_items_removed`

* Add changelog
2023-03-16 08:42:01 -03:00
Albert Juhé Lluveras 6f757f8991
Update WooCommerce Blocks package to 9.8.1 (#37238) 2023-03-16 10:52:55 +01:00
Joshua T Flowers 77937dd8cb
Move usePreventLeavingPage to navigation package (#36752)
* Move usePreventLeavingPage to navigation package

* Rename usePreventLeavingPage to useConfirmUnsavedChanges

* Move imports to external dependencies

* Fix up history push overrides

* Add changelog entries

* Fix up rebase issues

* Update i18n dependency to wp-6.0

* Fix up lock file

* Remove unused imports

* Update lock file

* Remove self import for navUtils
2023-03-16 05:33:22 -03:00
RJ 1c9b3a58fe
fix: mobile app connection owner bug (#37170) 2023-03-16 16:20:36 +08:00
Chi-Hsuan Huang f50abc724f
Remove accordion from "Other payment providers" in WC Pay Task (#37205)
* Remove accordion from Other payment providers in WC Pay Task

* Add changelog

* Fix tests

* Update test

* Fix e2e test
2023-03-16 12:11:59 +08:00
Chi-Hsuan Huang c804e76156
Set up "React Fast Refresh" in woocommerce-admin (#37165)
* Add @pmmmwh/react-refresh-webpack-plugin, react-refresh, webpack-dev-server and add start:hot command

* Set up react fast fresh

* Add changelog

* Run prestart in hot command

* Update pnpm-lock.yaml

* Update pnpm-lock.yaml
2023-03-16 11:52:03 +08:00