Commit Graph

7514 Commits

Author SHA1 Message Date
Chi-Hsuan Huang 8c5bf0988b Add changelog 2022-05-04 12:08:53 +08:00
Chi-Hsuan Huang b28a2d7ba7 Fix no padding between the last task section and Things to do next in experiment 2 2022-05-04 11:57:43 +08:00
Chi-Hsuan Huang a4bd70c28e Add changelog 2022-05-04 10:42:25 +08:00
Chi-Hsuan Huang 7e4126bc9f Update experimental-import-products to load sample products 2022-05-04 10:42:25 +08:00
Chi-Hsuan Huang cf9d2ed3b7 Update sample_products.csv to only contain 9 products 2022-05-04 10:42:20 +08:00
Chi-Hsuan Huang f25383fc15 Add test for stack 2022-05-04 10:15:03 +08:00
Chi-Hsuan Huang 95a319b36d Add tests for load sample products 2022-05-04 10:15:03 +08:00
Chi-Hsuan Huang be50584b67 Update load onboarding sample product link 2022-05-04 10:15:03 +08:00
Chi-Hsuan Huang 5476f4c80f Add onboarding load sample products notice 2022-05-04 10:15:03 +08:00
Chi-Hsuan Huang 570d6dad71 Update experimental-products to load sample products 2022-05-04 10:15:03 +08:00
Chi-Hsuan Huang 4221c32fa4 Add type for wp.components.ui 2022-05-04 10:15:03 +08:00
Chi-Hsuan Huang e37bc5e18f Add load sample product hook & modal component 2022-05-04 10:15:03 +08:00
Chi-Hsuan Huang 5063dc3640 Update admin webpack config to resolve wp.components.ui 2022-05-04 10:15:03 +08:00
Moon 4a6c3300aa
Merge pull request #32835 from woocommerce/add/32788-add-experimental-import-products-task-followup
Add experimental import products task
2022-05-03 19:13:26 -07:00
Paul Sealock 6553de469b
Test Failures: Check WP version 5.9 before adding mini_cart_block to WC Tracker (#32862) 2022-05-04 14:09:21 +12:00
moon 8219510fc5 Style update 2022-05-03 18:57:23 -07:00
Chi-Hsuan Huang afe6e84ab0
Merge pull request #32855 from woocommerce/update/32716-explat-api-requests
Add safeguards to ensure ExPlat API requests are valid
2022-05-04 09:02:10 +08:00
moon 0a75c8d6be Adjust text color 2022-05-03 15:55:15 -07:00
moon d0b500a3f4 Import Stacks before CardList to fix the order error 2022-05-03 15:55:02 -07:00
moon 84fe952ba8 Add link to the card 2022-05-03 15:54:18 -07:00
Christopher Allford 790d085f12
Merge pull request #32657 from woocommerce/refactor/standardize-postinstall
Utilize `post install` Script for Composer
2022-05-03 10:21:33 -07:00
Chi-Hsuan Huang f1d911d680 Add changelog 2022-05-03 17:01:07 +08:00
Chi-Hsuan Huang 6c8ee08f19 Add a safeguard for ExPlat assignment requests to make sure a user either has an anon_id defined and not empty 2022-05-03 17:01:07 +08:00
Néstor Soriano 4c9097d639
Merge pull request #32777 from woocommerce/add/track_mini_cart_block
Add Mini Cart Block Tracking
2022-05-03 09:07:47 +02:00
Adrian Duffell b35413d2ba Add changelog entry 2022-05-03 07:40:21 +08:00
Adrian Duffell a67c547b8e Update path to email template for analytics report
The path was recently changed with the merge of the Admin feature plugin into Core.
2022-05-03 07:40:21 +08:00
Christopher Allford 9a22c62505 Added Changelogs 2022-05-02 12:55:48 -07:00
Christopher Allford 21eee1ab14 Added Changelog 2022-05-02 12:55:48 -07:00
Christopher Allford 000f14be4a Fixed Tabs 2022-05-02 12:55:48 -07:00
Christopher Allford bd0ff96960 Fixed WooCommerce Beta Tester PHPUnit
Like Core's `composer.json`, we need to override
the platform in order to get a consistent version
for dependencies out of Composer.
2022-05-02 12:55:48 -07:00
Christopher Allford 8862efb570 Run `composer install` On `pnpm install`
This commit adds a `postinstall` script for
the WooCommerce and WooCommerce Beta
Tester plugins. This makes it easier to get
started since `pnpm install` will ensure all
dependencies in every project are ready.
2022-05-02 12:55:48 -07:00
Corey McKrill 1d52eef313
REST: Add product image URL to order line items (#32710)
Add a new property to the line item schema, `image` that contains `id` and `src` properties for the full size of the main product image.

Fixes #27364
2022-05-02 10:50:30 -07:00
Christopher Allford 3994c9ac4f
Added `version` to `composer.json`
In order for the Jetpack Autoloader to consistently
apply a version to class files, we will define it in our
plugin's `composer.json` file.
2022-05-02 09:48:54 -07:00
Jorge A. Torres c1dcab5725 Properly escape tax class filter in legacy v3 REST API /taxes endpoint 2022-05-02 08:22:50 -05:00
Néstor Soriano fbd38e5a90
Merge pull request #32746 from YordanSoares/use-price-decimal-separator-for-product-weight-and-dimensions
Use the price decimal separator to format product weight and dimensions
2022-05-02 12:04:26 +02:00
Luigi 4597c47f63 create BlocksUtil file - refactor 2022-05-02 11:26:34 +02:00
Néstor Soriano 69dc8fe777
Add changelog file 2022-05-02 11:15:19 +02:00
Néstor Soriano 4908d29fb1
Merge pull request #32749 from mostafasoufi/trunk
Add support select2 for log_file dropdown
2022-05-02 11:04:03 +02:00
Néstor Soriano c50de996fa
Add changelog file 2022-05-02 11:01:27 +02:00
moon d61668cb5e Add changelog 2022-04-29 16:08:40 -07:00
moon bc634512af Remove unnecessary style 2022-04-29 16:01:05 -07:00
moon 4ee252b549 Style fix 2022-04-29 15:53:45 -07:00
moon 0958641c85 Update svg fill 2022-04-29 15:53:07 -07:00
moon 0c3a142e89 Convert svg to react component 2022-04-29 15:51:46 -07:00
Fernando c60884ef20
Merge pull request #32786 from woocommerce/fix/32720_progress-header-title
Fix progress header title
2022-04-29 18:56:53 -03:00
moon 422018eb78 Refactor useProductTypeListItems to accept product types 2022-04-29 14:42:04 -07:00
Fernando Marichal 23c829efea Fix sectioned task list 2022-04-29 16:31:26 -03:00
louwie17 c0711feacb
Merge pull request #32805 from woocommerce/fix/32802_update_copy_and_illustrations
Update illustrations and copy of task list experiment 1
2022-04-29 15:11:27 -03:00
Fernando Marichal b8a8e9d272 Add changelog 2022-04-29 13:34:19 -03:00
Fernando Marichal 6a9bb8ab49 Fix default title 2022-04-29 13:34:02 -03:00
louwie17 f918f341b9
Merge pull request #32824 from woocommerce/add/32762
Adding legal messaging and fixing click behavior on task list experiment
2022-04-29 13:31:42 -03:00
Fernando Marichal 06dd122939 Fix progress header title 2022-04-29 12:40:01 -03:00
Joel T d0d2de10bf Fixing typescript error 2022-04-29 11:14:42 -03:00
Joel T d58b436265 Removing excess content in wcpay task on experiment 2022-04-29 11:14:42 -03:00
Joel T a42047607a Adding changelog 2022-04-29 11:14:42 -03:00
Joel T a7f457c488 Fixing test 2022-04-29 11:14:42 -03:00
Joel T 98838fe8b4 Adding slotfill support to task experiment one, fixing odd behavior around link clicks 2022-04-29 11:14:42 -03:00
Lourens Schep fbdc08eb36 Some minor changes to tasks height for each task list to match design 2022-04-29 11:11:30 -03:00
Lourens Schep 711e0ce449 Remove unused illustrations 2022-04-29 10:12:09 -03:00
Roy Ho ad0d71dcff
Merge pull request #32795 from woocommerce/fix/standardize-lint-woocommerce-plugin
Standardize linting: plugins
2022-04-29 06:01:37 -07:00
Lourens Schep b56e38c492 Add changelog 2022-04-29 09:52:50 -03:00
Lourens Schep 77765285e8 Update illustrations and copy of task list experiment 1, with minor css updates 2022-04-29 09:52:50 -03:00
Nestor Soriano e7a4ff2daa
Add changelog file 2022-04-29 13:24:29 +02:00
Nestor Soriano 57b1bd2340
Improve the readability of classes in Database\Migrations\CustomOrderTable
- Add meaningful docblock comments for the classes
- Add type ints for parameters and return values in all mehtods
2022-04-29 10:41:17 +02:00
Nestor Soriano d9fb2e3231
Remove 'WP' class name prefixes in Database\Migrations\CustomOrderTable 2022-04-29 10:15:04 +02:00
moon 9cf2993975 Fix error with the items type 2022-04-28 20:45:49 -07:00
moon a441ff189b Add stacks 2022-04-28 20:39:09 -07:00
moon b03149a29c Align the stacks button center 2022-04-28 20:39:08 -07:00
moon b109eba8c7 Adjust styles and add initial stacks functionality 2022-04-28 20:38:31 -07:00
moon de836d1f79 Add Learn More link 2022-04-28 20:38:31 -07:00
moon 14cff0a001 Allow JSX.Element in content 2022-04-28 20:38:31 -07:00
Chi-Hsuan Huang 60334e3c55
Merge pull request #32801 from woocommerce/add/32634-add-products-task
Add experimental add product for task list
2022-04-29 11:35:53 +08:00
Ilyas Foo 8b9870b1d0
Merge pull request #32697 from woocommerce/add/wc-payment-gateways-banner
Added feature for payment gateways banner
2022-04-29 10:57:59 +08:00
Ilyas Foo 959ba869c1
Merge pull request #32814 from woocommerce/fix/32797-wca-fatal
Fix WCA fatal with bail conditions for WCA execution paths
2022-04-29 10:50:38 +08:00
Chi-Hsuan Huang 345a2ed60c Update experimental product stack layout style 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang 0d9d463d46 Update experimental-products default surfaced product types 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang 76777d2981 Refactor experimental-products functions 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang 2542594652 Add changelog 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang 6205c0208f Update card name & check support product types 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang e6d3ed3c3c Add loading sample product card 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang a4a62353fd Add external_product.csv for experimental product task 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang 2dd0ef0029 Add grouped_product.csv for experimental product task 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang 48c89b2266 Add card view 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang 6248683042 Add tests for experimental add product task 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang cbfc393c6a Add use-create-product-by-type & use-product-types-list-items hooks 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang 5f233898bf Implement functionalities of experimental products 2022-04-29 10:46:54 +08:00
Ilyas Foo cb731d465a Merge remote-tracking branch 'origin/trunk' into add/wc-payment-gateways-banner 2022-04-29 10:15:21 +08:00
Moon 938cd88ff6
Merge pull request #32820 from woocommerce/fix/fix-ts-build-errors
Fix TS build errors in admin
2022-04-28 19:09:59 -07:00
Ilyas Foo fc74c42fe0
Merge branch 'trunk' into add/wc-payment-gateways-banner 2022-04-29 09:11:20 +08:00
Jorge A. Torres 4c32881b65 Add changelog entry 2022-04-28 15:05:14 -07:00
moon dc00aff77e Run dev after clean command 2022-04-28 14:28:01 -07:00
moon 082f55bee1 Run clean before running build commands 2022-04-28 13:42:06 -07:00
Jorge A. Torres 3f87e28977 Make sure empty region lists are passed to the backend when editing a shipping zone 2022-04-28 12:52:12 -07:00
Josh Betz 870ea59738
Merge pull request #32046 from woocommerce/api/28508-search-including-sku
Enable searching for products by SKU
2022-04-28 13:50:42 -05:00
Nestor Soriano 98078fbc19
Refactor the WPPostToCOTMigrator class
- Rename to PostsToOrdersMigrationController (same for tests class)
- Rename process_next_migration_batch method to migrate_orders
- Rename process_single to migrate_order
- Remove batch and checkpoint related methods
  (batch management is performed by DataSynchronizer class)
- Adjust unit tests
2022-04-28 17:16:19 +02:00
Nestor Soriano 3b98fb7eef
Actually sync orders from posts to custom orders table when needed.
This commit connects the logic of the DataSyncrhonizer class with
the actual posts to COT synchronization implemented in the
WPPostToCOTMigrator class, so orders are actually syncrhonized
using scheduled actions.

Additionally, a synchronization process is triggered whenever an order
is created or modified, using the woocommerce_after_order_object_save
hook.
2022-04-28 15:33:43 +02:00
Nestor Soriano 7a0892422d
Rename DataSynchronizer::start_synchronizing_pending_orders
It's now maybe_start_synchronizing_pending_orders. Also, the method
now contains all the logic needed to decide if a synchronization
needs to actually be started.
2022-04-28 15:31:17 +02:00
Nestor Soriano ad5ec38d96
Fix: AUTO_FLIP_AUTHORITATIVE_TABLE_ROLES_OPTION logic was reversed
This constant contains the name of the setting that is used to
determine if the roles of the custom orders table and the posts table
(authoritative and backup) are reversed once synchronization of
orders between both tables finishes. The logic was mistakenly
implemented backwards.

Also, as part of the fix the constant is moved to the
CustomOrdersTableController class.
2022-04-28 15:25:55 +02:00
Fernando 5bda7ca396
Merge pull request #32739 from woocommerce/add/32156_preview-store-button
Add Preview store button to Home screen
2022-04-28 08:35:31 -03:00
Chi-Hsuan Huang 843a59c0c4
Merge pull request #32735 from woocommerce/update/woo-data-types
Update `@woocommerce/data` & admin client type definitions
2022-04-28 18:03:14 +08:00
Ilyas Foo 297e21038c Lint 2022-04-28 17:29:39 +08:00
Ilyas Foo 83be522465
Update plugins/woocommerce/src/Internal/Admin/FeaturePlugin.php 2022-04-28 17:25:22 +08:00
Peter Fabian 1fcea9e0da
Merge pull request #32776 from woocommerce/fix/download-file-warnings
Updating an existing downloadable file to a bad path should trigger an admin notice
2022-04-28 10:52:16 +02:00
Ilyas Foo 60e341ad17
Merge pull request #32800 from woocommerce/dev/32719-remove-wc-admin-set-up-additional-payment-types-note
Remove `wc-admin-set-up-additional-payment-types` inbox note
2022-04-28 16:05:04 +08:00
Vedanshu Jain 610af05393
Merge pull request #29688 from woocommerce/fix/tax_data_rounded_on_save
Remove rounding of taxes displayed in items meta table
2022-04-28 12:36:04 +05:30
Ilyas Foo c66550da1f Merge remote-tracking branch 'origin/trunk' into dev/32719-remove-wc-admin-set-up-additional-payment-types-note 2022-04-28 14:44:57 +08:00
Ilyas Foo 4dec2483fc Added comment and remove old function 2022-04-28 14:37:19 +08:00
Ilyas Foo 89722dfafc Remove deprecated warning and make use of safe define 2022-04-28 14:37:13 +08:00
Adrian Duffell 8a3ae1399b Merge branch 'trunk' into add/wc-payment-gateways-banner 2022-04-28 14:29:17 +08:00
Ilyas Foo bc7830b670 Changelog 2022-04-28 12:51:53 +08:00
Ilyas Foo bb05a6fc85 Added bail codes for WCA execution paths 2022-04-28 12:19:17 +08:00
Ilyas Foo ff4d735238 Merge remote-tracking branch 'origin/trunk' into dev/32575-add-generic-fallback-image-payments-task 2022-04-28 11:56:58 +08:00
Chi-Hsuan Huang 0389bc7cc3
Merge pull request #32779 from woocommerce/add/product-stack
Add experimental product stack component
2022-04-28 09:47:31 +08:00
Paul Sealock f4fab80b18 changelog 2022-04-28 11:31:37 +12:00
Paul Sealock b06b34dd31 beta tester fix scripts 2022-04-28 11:04:20 +12:00
Paul Sealock 4275eb002b admin fix scripts 2022-04-28 11:04:20 +12:00
Paul Sealock bfbad3a4dc Fixup eslintrc.js 2022-04-28 11:04:12 +12:00
Paul Sealock 6100df9a04
Storybook: Move code to `tools/` (#32729) 2022-04-28 09:54:54 +12:00
Corey McKrill ea504f09b5
phpcs cleanup 2022-04-27 14:33:34 -07:00
roykho 0feaf3a9de
Put exit clause on makepot script 2022-04-27 12:33:37 -07:00
Claudio Sanches ca02a49bff
Merge pull request #32804 from woocommerce/fix/e2e-tests
Fix/e2e tests
2022-04-27 14:57:16 -03:00
barryhughes 6e5d4acc22 Revise testdox 2022-04-27 10:24:30 -07:00
barryhughes 16dbf4607e Break test into smaller more atomic tests. 2022-04-27 10:21:09 -07:00
roykho b2ad3aab61
Use the proper composer command for running scripts 2022-04-27 10:09:06 -07:00
roykho cf783aca58
Move makepot to build-zip bash script 2022-04-27 09:45:51 -07:00
Jonathan Lane 31d4b8f7e7
Merge branch 'trunk' into fix/27902 2022-04-27 09:28:17 -07:00
roykho 216317c557
Test updating makepot script command 2022-04-27 09:27:36 -07:00
Vedanshu Jain 1c72457215
Merge pull request #32771 from woocommerce/fix/32754-inactive-downloads
Protect against inappropriate use of saved download links
2022-04-27 21:36:37 +05:30
roykho 2798add11d
Add changelog 2022-04-27 08:56:14 -07:00
roykho cc1fef5bcb
Try different port for K6 tests 2022-04-27 08:38:45 -07:00
Corey McKrill d2c7e665f4 Remove outdated code comment 2022-04-27 09:47:08 -05:00
Corey McKrill 2c6bf681d2 Add changelog file 2022-04-27 09:47:08 -05:00
Corey McKrill eedac60985 Update tests 2022-04-27 09:47:08 -05:00
Corey McKrill 7807c70549 Don't combine content and SKU search
We decided the performance hit was too great. So with this, you can
still use both the search and search_sku parameters at the same time
if you want, but the query will use `AND` so that there must be a
partial match from both fields rather than either field. To just search
SKUs, all that you need is the search_sku parameter.
2022-04-27 09:47:08 -05:00
Corey McKrill b480d1362d Ensure where clause gets nested correctly when terms are the same 2022-04-27 09:47:08 -05:00
Corey McKrill 029257be30 Refactor to use search_sku parameter
Instead of overloading the default search parameter.

This actually added a bit of complexity because it introduced the
possibility that a request could have both search and search_sku
parameters, and they might not be the same value.

I decided to handle the two cases differently: if both search strings
match, the assumption is that we're looking for a string in either the
content *or* the SKU field. However, if the the search strings are
different, the assumption is that we're looking for products with a
particular string in the content *and* a separate particular string
in the SKU.

New unit tests for this are still pending.
2022-04-27 09:47:08 -05:00
Jaclyn Chen 49743f5167 Add a new parameter `search_includes_sku` so that SKU search isn't included by default. 2022-04-27 09:47:08 -05:00
Jaclyn Chen 532c580081 Include sku partial match for products search. 2022-04-27 09:47:08 -05:00
barryhughes 72d196f398 Log if headers cannot be sent during a download error event. 2022-04-27 07:46:21 -07:00
vedanshujain 8629fcd929 Add changelog. 2022-04-27 20:07:20 +05:30
James Allan 2ae7eda512 Remove tax rounding of taxes displayed in items meta table 2022-04-27 19:46:15 +05:30
roykho 8d911cff6f
Remove makepot from build 2022-04-27 06:58:08 -07:00
roykho e5bdd3fcd3
Refactor workflows to remove action-build step 2022-04-27 06:40:37 -07:00
tjcafferkey 5db9c600b5 Add changelog file 2022-04-27 13:43:59 +01:00
tjcafferkey abe3d60361 Update woo-blocks to 7.4.3 2022-04-27 13:33:04 +01:00
Peter Fabian 68234755d9
Merge pull request #32685 from woocommerce/fix/32028-settings-method-exists-fatal
Address possible type error during install on PHP 8.x
2022-04-27 13:49:04 +02:00
Chi-Hsuan Huang b938eb88f9 Update icons 2022-04-27 18:32:20 +08:00
Luigi 98a91cd132 move logic to utils file 2022-04-27 12:11:27 +02:00
Ilyas Foo 5187a2d4bd Changelog 2022-04-27 15:36:00 +08:00
Chi-Hsuan Huang 026a902fc1 Add changelog 2022-04-27 15:22:17 +08:00