Commit Graph

9725 Commits

Author SHA1 Message Date
Chi-Hsuan Huang cdeb32baa1
Add `country` query param to payment suggestion data sources (#37443)
* Add country query param to payment gateway data sources

* Add changelog

* Fix lint
2023-03-28 14:18:25 +08:00
Chi-Hsuan Huang e18a531e85
Add Payoneer, zipco payment gateways and update Klarna available countries (#37329)
* Update default payment gateways

* Add changelog

* Update payoneer image
2023-03-28 11:43:33 +08:00
barryhughes 7c0dfa3093 One more PHPCS override. We need to restore the current screen obj. 2023-03-27 15:52:10 -07:00
barryhughes 44330f5ab8 Tidy tests per coding standards. 2023-03-27 15:52:10 -07:00
barryhughes c567a679b5 Do not assume is set in the array. 2023-03-27 15:52:10 -07:00
barryhughes 03ebff86b8 Quick edit and reply customizations targeting the Product Review page should not impact the product editor. 2023-03-27 15:52:10 -07:00
barryhughes d4738cd5f0 Changelog. 2023-03-27 15:52:10 -07:00
barryhughes 6e8f080438 Restore reviews (comments) to the product editor. 2023-03-27 15:52:10 -07:00
Sam Seay 7918d0a3c2 Revert "Replace $.ajax() calls with browser-native window.fetch() calls. (#36275)"
This reverts commit 6c053d3eec.
2023-03-28 10:58:17 +13:00
Barry Hughes c4fc54680b
Updated accessibility for product categories shortcode. (#37445) 2023-03-27 14:02:57 -07:00
Peter Fabian 4b64923747
Synchronized SSR from template to REST API (#37425)
* Synchronized SSR from template to REST API.

* Changelog.

* PHPCS

* More PHPCS.

* PHPCS fix

* Fixed unit tests.
2023-03-27 15:19:24 -05:00
github-actions[bot] bfe49d9d83
Delete changelog files based on PR 37397 (#37423)
Delete changelog files for 37397

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-03-27 21:39:19 +02:00
github-actions[bot] 1bcc039bf5
Delete changelog files based on PR 37313 (#37358)
Delete changelog files for 37313

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-03-27 21:12:10 +02:00
Leif Singer 82a172cd06
Delete changelog files based on PR 37323 (#37456) 2023-03-27 20:57:05 +02:00
Leif Singer 7a68b6f16f
Delete changelog files based on PR #37434 (#37449) 2023-03-27 18:13:26 +02:00
Maikel David Pérez Gómez a5b104eaed
Add icon support to product section block (#37340)
* Add block icon component

* Use the block icon component within the section block

* Add changelog file

* Fix rebase conflicts

* Remove icon configuration from the client side

* Change the BlockIcon component to get the icon from the attributes first and then from the metadata

* Expose the BlockIcon to be used outside of the package

* Add the BlockIcon documentation

* Configure the block to support the new icon via attributes

* Set the icon to the block section in the server template definition

* Revert back index.tsx -> index.ts in the section block

* Fix php linter errors

* Add changelog file

* Fix php linter error

* Return null instead of a Fragment
2023-03-27 12:52:03 -03:00
Gan Eng Chin 69a00e8eaa
Add changelog. 2023-03-27 23:29:59 +08:00
Vedanshu Jain 4245ec17b9 Yoda conditions, I have used. 2023-03-27 20:44:38 +05:30
Gan Eng Chin de2aa280ef
Simplify boolean expression before && in Marketing page. 2023-03-27 21:55:42 +08:00
Peter Fabian e8409660da Changelog. 2023-03-27 15:40:31 +02:00
Peter Fabian cf9fbb2248 Updated accessibility for product categories shortcode. 2023-03-27 15:39:49 +02:00
Gan Eng Chin 07181dd142
Add changelog. 2023-03-27 20:27:32 +08:00
Gan Eng Chin 64bd683e0b
Simplify import. 2023-03-27 20:17:05 +08:00
Vedanshu Jain bb0ca91846 Add changelog. 2023-03-27 17:45:44 +05:30
Vedanshu Jain dd2fe3869b Add support for end_at ID to allow partial verification. 2023-03-27 17:44:52 +05:30
Gan Eng Chin ab2d56d8b3
Move card and slider into coupons directory. 2023-03-27 19:56:40 +08:00
Gan Eng Chin 48c50afcbf
Move RecommendedExtensions and KnowledgeBase into coupons directory. 2023-03-27 19:56:40 +08:00
Matt Sherman a77e4abffe
Emit error on webpack build when invalid export name used in import for JS (#37195) 2023-03-26 21:42:33 -04:00
Justin Palmer 51e04b9eba
Remove multichannel marketing info from WC Tracker 2023-03-25 16:57:20 +01:00
Leif Singer 62b275c41a
Update tested and required WordPress versions according to L-2 policy (#37434) 2023-03-25 09:25:13 +01:00
github-actions[bot] a7516cb2b0
Delete changelog files based on PR 36593 (#37420)
Delete changelog files for 36593

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-03-24 19:18:43 +01:00
github-actions[bot] 0e1f974f49
Delete changelog files based on PR 37373 (#37380)
Delete changelog files for 37373

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-03-24 19:17:54 +01:00
github-actions[bot] df52c85e92
Delete changelog files based on PR 37354 (#37356)
Delete changelog files for 37354

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-03-24 19:16:51 +01:00
Gan Eng Chin 046b0195ab
Update e2e test for marketing page. 2023-03-25 01:32:14 +08:00
Gan Eng Chin 6a6dd1a710
Fix failed api-core-tests. 2023-03-25 01:22:14 +08:00
Gan Eng Chin 49299de1fd
Add changelog. 2023-03-25 00:40:29 +08:00
Vedanshu Jain 126187b794
Fix imported ContainerInterface (#37334)
Co-authored-by: Viktor Szépe <viktor@szepe.net>
2023-03-24 16:50:53 +01:00
nigeljamesstevenson 59a12a1868
E2e/fix failing daily product variations (#37246) 2023-03-24 15:20:37 +00:00
Ilyas Foo 47587065c9
Fix `possibly_refresh_data_source_pollers` function (#37397)
* Add default value for get_option

* Changelog
2023-03-24 21:07:10 +08:00
Konstantinos Megas 2cd529bcda
fix typos (#37407)
* fix typos

fix typos

* Add changelog

---------

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2023-03-24 21:05:34 +08:00
Néstor Soriano 2d9b4bdd46
Bump WooCommerce minimum required PHP version to 7.3 and upgrade to PHPUnit 9 (#37366) 2023-03-24 13:42:46 +01:00
Gan Eng Chin ec2cc54c09
Remove feature toggle in WC Settings page. 2023-03-24 20:01:44 +08:00
Gan Eng Chin 12ec1c88fc
Remove unused classic marketing overview component. 2023-03-24 16:56:52 +08:00
Konstantinos Megas 6525bd069d
Fix typos in code comments (#37405) 2023-03-24 09:22:58 +01:00
Niels Lange 3dbf859df3
Replace woocommerce-blocks textdomain in *.json files (#37234)
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2023-03-24 09:21:58 +01:00
Sakri Koskimies 1a058dc12f
Fix rounding difference on refunds with per-line taxes. Closes #30263 (#34641) 2023-03-24 09:09:13 +01:00
Nicholas Hance 6585113636
Update schema for version to match what is sent (#35940)
More specifically, the type of "version" in the "order" object in REST API is now declared as "string" instead of "int".

Co-authored-by: Néstor Soriano <konamiman@konamiman.com>
2023-03-24 08:49:53 +01:00
Néstor Soriano 432daa511d
Delete order data from wc_order_tax_lookup and wc_order_stats on order deletion (#36601) 2023-03-24 08:45:54 +01:00
Chi-Hsuan Huang 9cf7ef5a3d
Migrate woocommerce-payments task fills to TS and remove connect.js fill (#37308)
* Migrate woocommerce-payments.js to TS

* Remove tasks/fills/connect.js

* Add changelog

* Remove connect js
2023-03-24 12:26:13 +08:00
Christopher Allford 67cde87fd1
Enforce Strict `@types` Dependencies (#37351) 2023-03-23 18:02:20 -07:00
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