Commit Graph

7619 Commits

Author SHA1 Message Date
Joel T 18e0af4c29 Adding badge to legacy menu for onboarding tasks remaining 2022-05-11 16:18:50 -07:00
Jorge A. Torres 82e6e31903
Merge pull request #32968 from woocommerce/fix/download_dir_table_key
Fix/download dir table key
2022-05-11 18:25:56 -03:00
louwie17 ed2adee551
Merge pull request #32966 from woocommerce/fix/32962_fatal_error_wc_admin_conflict
Add FeaturePlugin facade under the Admin namespace to avoid conflict WCA conflict
2022-05-11 17:57:12 -03:00
barryhughes d3bf32a147 Prefer get_var() over get_col(). 2022-05-11 20:12:20 +00:00
Moon 9720874f50
Merge pull request #32954 from woocommerce/update/32883-update-react-dates-dependency
Update react-dates to 21.8.0
2022-05-11 12:49:16 -07:00
Lourens Schep ce292870c3 Add changelog 2022-05-11 16:41:58 -03:00
barryhughes 44bb55452a Update install versions test :-/ 2022-05-11 19:28:41 +00:00
barryhughes 0d1da4e8bf 6.5.1 update routine for approved download directories. 2022-05-11 18:32:55 +00:00
Lourens Schep 4a2a94eb8c Add FeaturePlugin facade under the Admin namespace to avoid conflict WCA conflict 2022-05-11 14:54:02 -03:00
barryhughes f994ba1839 Apply max size to URL col in download directories table. 2022-05-11 17:07:32 +00:00
Jorge A. Torres 4ef86419da Add changelog entry 2022-05-11 11:42:35 -03:00
Jorge A. Torres 992f936fae Check for `recorded_sales` op data in COT migration tests 2022-05-11 11:42:35 -03:00
Ilyas Foo 016a23f202
Merge pull request #32941 from woocommerce/dev/32635-implement-product-task-experiment
Add ExPlat call for product task experiment
2022-05-11 13:03:27 +08:00
Chi-Hsuan Huang edbfd5bf93
Merge pull request #32937 from woocommerce/update/convert-woo-tracks-to-ts
Convert `@woocommerce/tracks` to TS
2022-05-11 09:57:27 +08:00
Chi-Hsuan Huang 79814ccccf
Merge pull request #32936 from woocommerce/update/memoize-one
Remove `memoize-one` from woo admin & update it to ^6.0.0 for woo components
2022-05-11 09:55:40 +08:00
Chi-Hsuan Huang 63c9cb3e09
Merge pull request #32932 from woocommerce/update/task-completion-time
Update import product task to record completion time in time frame format
2022-05-11 09:55:25 +08:00
moon 15ecfd9b16 Update react-dates to 21.8.0 2022-05-10 18:12:32 -07:00
Roy Ho ba6f193958
Merge pull request #32899 from woocommerce/fix/json-formatting
Standardize JSON Formatting
2022-05-10 14:17:40 -07:00
Christopher Allford ec2e90540e Added Changelogs 2022-05-10 13:31:13 -07:00
Christopher Allford 37ad4c5a70 Converted Spaces To Tabs In JSON
Since we almost universally use tabs instead
of spaces, this commit replaces all of the spaces
with tabs in various JSON files across the monorepo.
2022-05-10 13:31:01 -07:00
roykho 9668071503
Bump readme.txt version to latest 2022-05-10 13:30:29 -07:00
roykho 56a88d3771
Prep trunk post 6.5 release 2022-05-10 13:01:47 -07:00
Moon d3ef624ab9
Merge pull request #32928 from woocommerce/update/32911-remove-explat-calls-for-headercard-exp
Remove ExPlat calls for woocommerce_tasklist_progression_headercard experiments
2022-05-10 11:12:25 -07:00
jonathansadowski 4c707a27d6
Merge pull request #32943 from woocommerce/update/bash-zip
Update commands to use Nx
2022-05-10 10:54:11 -05:00
roykho d870ff09ac
Add changelog entry 2022-05-10 08:27:01 -07:00
Josh Betz f3edbcad36
Merge pull request #32823 from woocommerce/update/api/system-status-performance
System Status performance improvements
2022-05-10 09:17:09 -05:00
roykho 0bcc96a415
Update commands to use Nx 2022-05-10 06:37:57 -07:00
Ilyas Foo 367db18bc4 Rename function 2022-05-10 20:57:11 +08:00
Alejandro López Ariza 56c8962722
Merge pull request #32606 from woocommerce/performance/merchant-view-coupons
Added new performance test to view coupons as merchant.
2022-05-10 14:37:12 +02:00
Ilyas Foo 71e0d3d27d Changelog 2022-05-10 18:42:07 +08:00
Ilyas Foo 933fe9f449 Add tests 2022-05-10 18:21:52 +08:00
Alex López eb60957a20 Added changelogger file without actual entry to the changelog. 2022-05-10 11:51:23 +02:00
Ilyas Foo 826029ca7b Add ExPlat call for product task experiment 2022-05-10 16:58:02 +08:00
Chi-Hsuan Huang cd3abebeb0 Add changelogs 2022-05-10 15:29:10 +08:00
Chi-Hsuan Huang 93725ece0f Remove woo tracks type declaration from woo admin 2022-05-10 15:29:10 +08:00
Chi-Hsuan Huang 4f1e7af7c7 Add changelogs 2022-05-10 14:29:45 +08:00
Chi-Hsuan Huang 43af801d46 Remove memoize-one from wca & update it to ^6.0.0 for woo components 2022-05-10 14:17:03 +08:00
Chi-Hsuan Huang 4cc033bc12 Add tests for getTimeFrame 2022-05-10 14:02:07 +08:00
RJChow 67cf1e109b added task_view tracks prop for experimental_products 2022-05-10 12:52:00 +08:00
Chi-Hsuan Huang 879ccdb14f
Merge pull request #32923 from woocommerce/update/32451-wcpay-task-display-logic
Change wcpay task display logic
2022-05-10 10:07:06 +08:00
Chi-Hsuan Huang 7d75919e25 Add changelog 2022-05-10 08:59:10 +08:00
Chi-Hsuan Huang 2b46085ff7 Update to record completion time in time frame format 2022-05-10 08:58:23 +08:00
moon d78c8334b9 Disable experiment test 2022-05-09 17:30:21 -07:00
Chi-Hsuan Huang c4c2d160ff
Merge pull request #32914 from woocommerce/add/32811-import-prdocuts-tracks
Add tracks for experimental import products task
2022-05-10 08:14:40 +08:00
louwie17 bd5c1e739e
Merge pull request #32926 from woocommerce/fix/32896_two_tasklists
Fix duplicate task list shown in some occurrences
2022-05-09 16:24:00 -03:00
Lourens Schep 99eb80d811 Remove unused string condition 2022-05-09 14:36:51 -03:00
moon 7fd05ed0d6 Add @since tags 2022-05-09 10:33:55 -07:00
moon cecf63ca5b Add changelog 2022-05-09 10:16:53 -07:00
moon db87fc59b9 Remove ExPlat API calls from the backend 2022-05-09 10:08:11 -07:00
moon 2aa8088197 Remove ExPlat API calls from the frontend 2022-05-09 10:01:11 -07:00
Jorge A. Torres 086f318299 Add `recorded_sales` to COT schema and migration 2022-05-09 10:23:23 -05:00
Vedanshu Jain 53a6202d68
Merge pull request #32817 from woocommerce/cot/effectively_sync_posts_to_cot
[COT] Effectively synchronize orders from the posts table to the custom orders table
2022-05-09 20:32:38 +05:30
Lourens Schep 65da6a8562 Add changelog 2022-05-09 11:31:03 -03:00
Lourens Schep fb62e3392a Fix duplicate task list shown 2022-05-09 11:17:37 -03:00
Nestor Soriano dcb2f45904
Increase orders sync default batch size to 250 2022-05-09 16:03:56 +02:00
Nestor Soriano 997395e971
Changes in COT handling to ease testing:
- The woocommerce_custom_orders_table_enabled option can now be manually
  altered even if there are orders out of sync
- Saving settings will always restart the sync process, even if one
  is already in progress
- Add the woocommerce_orders_cot_and_posts_sync_step_size filter
2022-05-09 11:01:08 +02:00
Vedanshu Jain 1e090c3c3c
Merge pull request #32828 from woocommerce/fix/32016-shipping-zones-loop
Allow removal of all zone regions from a shipping zone
2022-05-09 14:25:39 +05:30
Chi-Hsuan Huang da535437e7 Add changelog 2022-05-09 16:32:34 +08:00
Chi-Hsuan Huang b75ba577c0 Update wcpay task display logic 2022-05-09 16:32:01 +08:00
Yordan Soares 1e67304e80 Fix the broken URLs of recommendations from Unicode (Countries, States, and Currency names) 2022-05-09 03:04:56 -04:00
Chi-Hsuan Huang c0c55ed9fa Add changelog 2022-05-09 12:44:38 +08:00
Chi-Hsuan Huang 87f5431a5d Add track events for experimental import products 2022-05-09 12:43:10 +08:00
Chi-Hsuan Huang 4aa1bead31 Add use-record-completion-time.ts for task event 2022-05-09 12:40:55 +08:00
Roy Ho 54a42a8388
Merge pull request #32901 from woocommerce/fix/woocommerce-admin-build
Remove Unnecessary React Admin Build
2022-05-06 15:42:55 -07:00
Christopher Allford 9e34796bd0 Added Changelog 2022-05-06 15:04:42 -07:00
Christopher Allford 3f5c3b2039 Added Changelog 2022-05-06 15:00:00 -07:00
Christopher Allford 0519045d20 Added Missing Dependencies
Some kind of branch switching related mishap it seems.
2022-05-06 14:58:33 -07:00
Josh Betz a1cb8fe8fc lint 2022-05-06 14:49:25 -05:00
Josh Betz 01fc3018d0 Clear the theme cache for any plugin update
The cached theme data has some properties that depend on WooCommerce.
This could also extend to extensions. Since we don't have a reliable way
to know if a given plugin is a WooCommerce extension, any plugin update
should flush the cache.
2022-05-06 14:49:25 -05:00
Josh Betz 43579aeac9 Expire theme cache in case a theme is updated outside WordPress
If someone updates their theme outside of the WordPress update process
(by manipulating files directly) the cache won't be invalidated. To deal
with that, we're setting the TTL here to 1hr.
2022-05-06 14:49:25 -05:00
Josh Betz 5dc5b467a8 Clear the theme cache if woocommerce is updated 2022-05-06 14:49:25 -05:00
Josh Betz 747278a85c changelog 2022-05-06 14:49:25 -05:00
Josh Betz b6b5b8f33b Extract top-level property
Using _fields, we can specify a sub-property like environment.version.
In that case, we need to extract the top-level property so we known
which function to run.
2022-05-06 14:49:25 -05:00
Josh Betz 30f41c96e8 phpcs 2022-05-06 14:49:25 -05:00
Josh Betz fe3b71c011 API: System Status: Cache theme info
Generating theme info involves reading the theme files from disk and
parsing them.

In testing, caching this data in a transient improves performance by
600ms. Since themes changes relatively infrequently, the cache hit rate
should be quite high.

We're registering the cache clean function in Server.php because
rest_api_init is too late.
2022-05-06 14:49:25 -05:00
Josh Betz 66c21a5e8b API: System Status: Only load necessary data
The system status endpoint supports the global `_fields` query parameter
for limiting which fields are returned. That is, if you send a request
with a query string of `?_fields=environment`, only the environment
property will be returned. However, we still calculate every property.

This change ensure that we only gather the data that is necessary for
the response. Since some of this data can be somewhat slow (like reading
from the disk in the case of get_theme_info), this could have a pretty
nice performance benefit in some cases.
2022-05-06 14:49:25 -05:00
Christopher Allford 74f44dd04c Removed Unnecessary Rebuilds
Nx already handles the building of dependencies.
This commit removes the unnecessary build
calls from WooCommerce's "build" script.
2022-05-06 12:26:27 -07:00
Christopher Allford 31d7249080 Removed "prebuild" Script
PNPM does not execute "pre" and "post"
scripts for user-defined scripts. This removes
the "prebuild" from the React Admin's build.
2022-05-06 12:16:57 -07:00
Christopher Allford dc6bd75984 Fixed Beta Tester Uglification
PNPM does not run "pre" and "post" scripts
for user-defined scripts. This commit
removed the "preuglify" script from the
beta tester plugin so that it builds correctly.
2022-05-06 12:11:51 -07:00
Corey McKrill 245dd98b45
Orders API: Add response fields for some order states (#32888)
Adds the following fields to the order response object for both v2 and v3 of the WC REST API:

* is_editable
* needs_payment
* needs_processing

Some order states (different than statuses) are determined by complex logic involving other order properties, and/or they are filterable by extensions. These states are difficult to calculate in a client app whose only data source is the REST API, and thus they are best calculated on the server and added as separate properties to the API response object.
2022-05-06 11:06:33 -07:00
Barry Hughes 8000a9b0ef
Merge pull request #32893 from woocommerce/fix/product_attributes_lookup_table_update
Fix: product attributes lookup table not being updated on WooCommerce update and on REST API batch requests
2022-05-06 09:58:10 -07:00
Nestor Soriano 37e9be5e87
Add changelog file 2022-05-06 11:06:39 +02:00
Nestor Soriano ff76f898f7
Fix: product attributes lookup table not updating on REST API batch requests
When the "products/batch" endpoint is used to create or update products,
the product attributes lookup table wasn't being updated as it's the
case of the single product endpoints.
2022-05-06 10:20:38 +02:00
Nestor Soriano 3d77547d77
Fix: product attributes lookup table not filled on WooCommerce update
When WooCommerce was updated from an version older than 6.2,
and before the user hit the "Update database" button, the product
attributes lookup table usage was activated but it was still empty.
This caused the search to not work, and the product filtering widget
to not appear.
2022-05-06 10:14:50 +02:00
Chi-Hsuan Huang 211e0f9a24
Merge pull request #32891 from woocommerce/fix/32863-get-option-deprecated-notices
Fix `get_options` function deprecation notice in WC 6.5 RC
2022-05-06 16:00:57 +08:00
Chi-Hsuan Huang 72cf343cda
Merge pull request #32866 from woocommerce/fix/32761-exp2-task-no-padding
Fix no padding between the task section and things to do next in experiment 2
2022-05-06 14:28:46 +08:00
Chi-Hsuan Huang 6d0b794fc7 Replace margin-bottom 16px with $gap for experiment 2 2022-05-06 12:44:43 +08:00
Chi-Hsuan Huang 1ea12c31b6 Add changelog 2022-05-06 11:26:14 +08:00
Chi-Hsuan Huang c76e97d527 Add woocommerce_task_list_reminder_bar_hidden to woocommerce permissions to fix deprecation notice 2022-05-06 11:19:01 +08:00
Chi-Hsuan Huang ce253ca390
Merge pull request #32815 from woocommerce/add/32412-load-sample-products
Add load sample products for experimental product task
2022-05-06 09:23:26 +08:00
Chi-Hsuan Huang ac87972fc0
Merge pull request #32870 from woocommerce/update/center-view-more-button
Center view more/less button for add product task
2022-05-06 09:22:12 +08:00
Roy Ho 30846cb8b4
Update woocommerce sniffs to latest 0.1.3 (#32886) 2022-05-06 12:48:46 +12:00
Jorge A. Torres dda417ccd2 Add sanitization of color settings to OptionSanitizer 2022-05-05 13:05:32 -05:00
Jorge A. Torres d94b7af9dc Add OptionSanitizer class for sanitization of settings 2022-05-05 13:05:32 -05:00
Vedanshu Jain 79c953c2f2
Merge pull request #32115 from mcliwanow/add/12397-tracking-params-wccom-from-subscriptions
Subscriptions - add tracking params to WCCOM URLs
2022-05-05 14:31:50 +05:30
Alex López b62a935869 Merge remote-tracking branch 'origin/trunk' into performance/merchant-view-coupons 2022-05-04 16:55:15 +02:00
Vedanshu Jain e74a106fe8
Merge pull request #32747 from crstauf/patch-1
Fix `is_page()` and `is_singular()` called incorrectly
2022-05-04 19:06:11 +05:30
vedanshujain 8cba910dec Add changelog. 2022-05-04 16:41:26 +05:30
Chi-Hsuan Huang 9eb38bcd37 Add changelog 2022-05-04 17:28:19 +08:00
Chi-Hsuan Huang 7e3a259cc5 Center experimental products view more button 2022-05-04 17:27:41 +08:00
Chi-Hsuan Huang e3e6dbd720 Add changelog 2022-05-04 16:51:59 +08:00
Chi-Hsuan Huang 2e58f8c352 Add an empty woocommerce-admin.php for backward compatibility 2022-05-04 16:51:59 +08:00
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