Commit Graph

52055 Commits

Author SHA1 Message Date
Moon f3a515889c
Core Profiler - replace install-async with install-activate-async (#38434)
* Change install-async to install-activate-async

* Add changelog

* Add comment for activated function

* Fix tests and rename install-activate-async to install-and-activate-async

* Rename callback function to static
2023-05-26 13:34:54 -07:00
ajayghaghretiya-multidots 0780386610
Fixed import and visibility tax values to lowercase (#33820)
* Fixed import and visibility tax values to lowercase

* Minor fixes

---------

Co-authored-by: Jorge A. Torres <jorge.torres@automattic.com>
2023-05-26 13:23:35 -05:00
Ron Rennick bf77b4c022
[Fix] Undefined array key 1, 2, 3 when using list to extract cookie values. (#38294) 2023-05-26 13:28:34 -03:00
Ron Rennick 73c8b91b6f
Add changelog file 2023-05-26 12:33:41 -03:00
Matt Sherman 2b12908a80
Add @woocommerce/create-product-editor-block package (#38263)
* Initial commit for create-product-editor-block

* Changelog

* Add stylelint support

* Install WooCommerce and WooCommerce Beta Tester in wp-env

* Set PHP and WordPress versions

* Enable product block editor after wp-env setup

* Lower priority for modifying template, so that the template is actual there!

* Update wp-env afterSetup command to use npx

* Update output README.md

* Update README for package

* Use long form of template parm name in README

* Remove unused example in block config

* Update block registration to handle both WP 6.2 and WP 6.3

* Include note about how to change version of WP and WC in README

* Update WP to 6.2.1

* Remove explicit enqueuing of block script and style

* Update minimum required versions of WordPress and PHP in generated plugin file

* Enable feature flag option after setup of wp-env

* Add minimum required WC version to generated plugin file

* Support wp-env lifecycleScripts

* Guard against product_block_editor not enabled or missing template

* Update lock file
2023-05-26 08:16:57 -04:00
Nathan Silveira c44ee9649f
Filter by date_paid and date_completed on list table orders (#38428)
* Filter by date_paid and date_completed on list table orders based on configuration

* Use separate query param 'order_date_type' to filter orders

* Add clarifying comment

* Add missing phpcs ignore

* Refactor to use 'm' and 'order_date_type' query parameters
2023-05-26 05:19:01 -03:00
Paul Sealock 0cfbf0a653
Changelog CLI: Add command to make entry from PR description (#38357) 2023-05-26 12:02:20 +12:00
Moon 2f6ff0f3e6
Core Profiler - Add obw/core-profiler to the extensions endpoint (#38418)
* Add obw/core-profilers

* Added name fields to all plugins

* Added icons for jetpack and woocommercer-services

* Add changelog

* Fix lint issues
2023-05-25 13:20:39 -07:00
Barry Hughes 3fecc47437
Revert "Add REST API Products featured image" (#38460) 2023-05-25 12:08:38 -07:00
Ron Rennick c045584248
Revert "Add REST API Products featured image" 2023-05-25 14:44:49 -03:00
Albert Juhé Lluveras 94d8b54de6
Update WooCommerce Blocks package to 10.2.1 (#38449) 2023-05-25 16:02:58 +02:00
RJ 80f6d0a6a6
add: wccom migrate link in nux (#38441)
* add: wccom migrate link in nux

* Update plugins/woocommerce-admin/client/profile-wizard/steps/business-details/flows/selective-bundle/style.scss
2023-05-25 20:25:03 +10:00
louwie17 4db856db05
Add declare compatibility functions to beta tester (#38393)
* Add declare compatibility for custom order table and product block editor features

* Add changelog

* Fix PHP lint errors
2023-05-25 05:06:06 -03:00
Fitim Vata 00b96fb940
Merge branch 'woocommerce:trunk' into trunk 2023-05-25 09:46:16 +02:00
Chi-Hsuan Huang af26209886
Update "Set up additional payment options" task view & complete logic (#38273)
* Cache WooCommercePayments task is_complete() result

* Update Set up additional payment task view logic

* Add changelog

* Update additional payment task view & complete logic

* Add changelog

* Fix lint and view logic

* Fix lint

* Fix lint

* Update payment task section heading logic
2023-05-25 12:24:15 +08:00
Paul Sealock 7164093928
Workflows: Remove Github Actions Bot conditionals (#38438) 2023-05-25 12:00:22 +12:00
github-actions[bot] 8bd49ad2ae
Prep trunk for 7.9 cycle (#38402)
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-05-24 17:34:49 -05:00
Maikel David Pérez Gómez a43a418019
List price gets reset on blur when error is shown (#38414)
* List price gets reset on blur when error is shown

* Add changelog file

* Fix linter error
2023-05-24 13:53:28 -04:00
Matt Sherman 014644895e
Don't show confirmation message when removing a non-variation attribute from a product (#38386) 2023-05-24 12:41:45 -04:00
Joshua T Flowers 353e01eb65
Tweak typography and element spacing in product editor (#38351)
* Update header font size

* Remove icons from sections

* Update radio block label and spacing

* Make checkbox tooltips larger and vertically align

* Update description colors

* Update h4 font sizes in editor

* Add changelog entry

* Add core changelog entry

* Handle initial design feedback

* Remove copy of assets in client webpack config
2023-05-24 10:11:00 -04:00
Ethan Clevenger d6931f316e
Update deprecated jQuery ready calls (#37320)
* Make `ready` call jQuery 3 valid

* Another call during setup.

* Add changelog.

* Trigger CI

---------

Co-authored-by: Jorge A. Torres <jorge.torres@automattic.com>
2023-05-23 17:40:11 -05:00
Paul Sealock 3e56cd54cf
Code Freeze: Fix outdated variables in Slack message (#38409)
add correct variables
2023-05-24 09:57:57 +12:00
Corey McKrill 684baa698a
Enable running phpcs-changed locally against a branch (#38085)
* Add lint-branch.sh

* Add doc block and make var name more explicit

* Add changelog file

* Update composer's lint and lint-staged scripts

It turns out that using single brackets for a test doesn't work
sometimes when the variable contains spaces or multiple items.
Double brackets handles this better, so should make the scripts more
robust.

* Use double brackets in lint-branch script

Using double brackets for a test is more robust and may be able to
handle some cases that single brackets can't, such as a variable that
contains spaces or multiple items.

Note that this also required updating the shebang at the top of the
script file from `sh` to `bash` since double brackets is a syntax
introduced in Bash.
2023-05-23 08:29:16 -05:00
Sam Seay 4b2bece1c2
Use the new slack util to send slack notification in code freeze (#38290) 2023-05-23 09:15:46 +12:00
Alejandro López Ariza cf87fab3c2
Added comment to the PR template for people to indicate if the PR is part of a bigger feature. (#38295) 2023-05-22 14:28:24 +02:00
Matt Sherman 87a8f45b5d
Fix spelling errors in Remote Inbox Notifications Transformers documentation (#38387) 2023-05-22 06:07:32 -04:00
Maikel David Pérez Gómez 195bcd2368
Limit 'email me when stock reaches' field to numerical only (#38353)
* Limit 'email me when stock reaches' field to numerical only

* Add changelog file
2023-05-22 06:59:58 -03:00
Maikel David Pérez Gómez e16792dc11
Make DateTimePickerControl a ForwardedRef (#38306)
* Forward ref the DateTimePickerControl

* Add changelog file

* Remove the component typing definition

* Integrate the forwardedRef component with the schedule-sale block

* Add changelog file
2023-05-22 06:55:07 -03:00
Chi-Hsuan Huang 4547922f3f
Add core profiler user profile page (#38328) 2023-05-22 11:21:16 +08:00
Moon 6d4014042b
Add woocommerce_suggest_jetpack filter to exlude Jetpack suggestion in OBW (#38286)
* Add filter for free extensions endpoint

* Add changelog

* Add filter doc

* Support woocommerce_suggest_jetpack filter to exlude Jetpack

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

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

---------

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2023-05-21 16:07:01 -07:00
nigeljamesstevenson ff50a69256
Remove the unnecessary `daily.playwright.config` (#38336) 2023-05-20 00:49:07 +01:00
Matt Sherman 08d7c24298
Fix race condition when rendering product attributes tab empty state (#38354) 2023-05-19 19:15:06 -04:00
Corey McKrill 4791f03b47
Implement admin-side order edit lock for HPOS orders (#38230)
This PR adds support to HPOS for order edit locking in the admin (similar to what posts and custom post types get by default). Specifically, the following is implemented:

* The lock is stored in order meta for interoperability with WP's implementation.
* Orders that are being edited by a user other than the current one will appear with a lock icon next to them in the list table. This lock icon/status is updated live via heartbeat with no page refresh necessary.
* When opening an order that is being edited by another user, a warning will be displayed, with the ability to take over the order:
* When someone has taken over an order you're editing, you'll get a warning about it automatically via heartbeat (no page refresh involved)

Fixes #37108
2023-05-19 15:50:08 -07:00
Nathan Silveira 5723f436cd
Add `wcadmin_settings_change` tracks event to shipping fields (#38305)
* Call update_option and update_options in shipping_zone_add_method

* Add new hook 'woocommerce_update_shipping_setting' to settings tracking

* Add tracking for shipping_zone_add_method

* Add tracking to shipping_zone_methods_save_changes

* Add changelog

* Update hook name and track modified option

* Prevent options from being added twice to array
start fixing php sniff issues

* Add docblocks

* Remove empty space

* Add docblock for parameter

* Fix lint issue

* Fix code introduced by mistake
2023-05-19 16:05:07 -03:00
Nathan Silveira ef0a32ff48
Reload page when toggling new-product-management-experience (#38348)
* Add callback to reload page when togglint new-product-management-experience

* Add changelog

* Implement reload for product-block-editor and code review suggestions
2023-05-19 14:57:51 -03:00
Maikel David Pérez Gómez ebf0b92960
Use feature the new feature flags engine to guard the access to the new product blocks experience (#37122)
Unregister the product-block-editor feature flag from WC Admin Test Helper, and enable product block editor feature.
2023-05-19 12:53:55 -04:00
Nathan Silveira 5437ed50c3
Use SelectTree in Parent Category field (#38261)
* Increment label CSS to look the same as TextControl's label

* Migrate Parent Category field to SelectTree

* Add changelogs

* Fix unit test that was edited by mistake

* Revert css changes in select-control.scss

* Use BaseControl as label on SelectTree

* Increment changelog

* Increment changelogs

* Refactor test

* Refactor category-field functions and use them in related places

* Fix ordered list appearing empty
2023-05-19 12:45:11 -03:00
Nathan Silveira 869b897ddd
Rename tracks event `product_attributes_add` to `product_attributes_save` on the product page and update attributes (#38278)
* Change attributes of tracks event product_attributes_add

* Don't send used_for_variations_count if it's not variable product type

* Explicitly add null values in product_attributes_add when the attribute is sent on the other call

* Rename product_attributes_add on the product page to product_attributes_save
Fix inverted local and global attributes count
Remove unnecessary parameters
Refactor code

* Update changelog
2023-05-19 12:44:54 -03:00
nigeljamesstevenson 67a583d9a8
Remove wp-env workaround (#38326) 2023-05-19 16:14:55 +01:00
Vedanshu Jain 048778a72b
Support strict SQL modes in HPOS migration that dont allow zero date (#38332) 2023-05-19 16:57:50 +02:00
nigeljamesstevenson f903feb741
Break down `create-variable-product` spec into smaller files (#38335) 2023-05-19 15:38:41 +01:00
Mike Jolley 28c72e81c4
Remove the global wc-cart-fragments enqueue (#35530) 2023-05-19 13:53:41 +01:00
Matt Sherman ab770510c1
Always show product variations empty state with message when there are no "used for variations" attributes (#38358) 2023-05-19 08:37:22 -04:00
Matt Sherman 2992e22507
Show correct confirmation message when removing an attribute from a product (#38355) 2023-05-19 08:27:47 -04:00
nigeljamesstevenson c99d60647e
E2e/gutenberg latest nightly 0 (#38287) 2023-05-19 12:24:08 +01:00
Chi-Hsuan Huang fc493c41ef
Remove sample data from product templates (#38343)
* Remove sample data from product templates for product task

* Add changelog

* Update product templates

* Remove unused columns from product templates and set Published to -1
2023-05-19 19:04:15 +08:00
Peter Fabian 862a947d7c
Install/update: Make the DELETE in 2 queries instead of 60+ (#37472) 2023-05-19 12:35:37 +02:00
Ashwin Parthasarathi ee31067f8f
Dev/37219 add hook to remove order items (#37822) 2023-05-19 12:10:11 +02:00
RJ 06e6f5012f
dev: moved geolocation utils from wccom to here (#38356) 2023-05-19 15:02:39 +08:00
Sam Seay 5ba15f84cd
Remove the code cov action from CI checks (#38314)
Remove the code cov action.
2023-05-19 13:29:17 +12:00