Commit Graph

11092 Commits

Author SHA1 Message Date
Vedanshu Jain 05dfaacd37
Bulk actions: within URL, specify orders using `id[]` rather than `order[]` (#39524) 2023-08-11 14:25:35 +05:30
Jaclyn Chen f9b68e22c7
WC Telemetry: add `first_used` and `installation_date` data to WCTracker (#39605)
* WC_REST_Telemetry_Controller: add `first_used` and `installation_date` meta fields for WCTracker.

* Add `installation_date` parameter to the endpoint parameter collection.

* Update implementation with unit tests.

* Update comments in the test class.

* Auto fixes from phpcbf.

* Attempt fixing lint errors in the tests.

* Set the installation date with the same date format as the pre-existing `last_used`.

* Add changelog.

* Fix an issue where the lack of installation date in the request still sets the field to the current date.

* Attempt fixing lint errors with phpcbf.
2023-08-11 14:32:40 +08:00
jonathansadowski 67079574cc
Add support for releasing Beta Tester to WooCommerce.com (#39671) 2023-08-11 12:51:01 +12:00
Matt Sherman e805b6b075
Core block-based template PHP API (adding blocks to templates) (#39470)
* Initial BlockTemplate implementation

* Initial BlockTemplate tests

* FIx undefined array key errors

* Fix linter errors (except for missing docs ones)

* Get as simple array

* Unit test updates for get_as_simple_array()

* Remove inner content (not used currently)

* Rename attrs to attributes

* Move name out of data array

* Move id out of data array

* Move order out of data array

* Move attributes out of data array; remove data array

* Add doc comments to Block

* Add doc comments to BlockTemplate

* Add doc comments to BlockContainerInterface and BlockContainerTrait

* Doc comment updates.

* Add doc comments to BlockTest

* Add doc comments to BlockTemplateTest

* Add BlockInterface

* Remove key consts from Block

* Move implementations to internal

* Clean up interfaces

* Do not have BlockInterface extend BlockContainerInterface

* FIx case in namespace declaration

* Add exceptions to add_block doc

* Rename BlockTemplate to BlockBasedTemplate

* Rename block-based template vars in tests

* Fix missing get_parent on block containers

* Changelog

* Add get_block_by_id to BlockBasedTemplateInterface

* Rename get_block_by_id to get_block

* Rename get_as_simple_array to get_as_formatted_template

* Rename child blocks to inner blocks

* Rename BlockBasedTemplate to BlockTemplate

* Move validation to separate method

* Move namespace to be non-product editor specific

* Rename get_as_formatted_ methods to get_formatted_

* Rename BlockBasedTemplateTest to BlockTemplateTest

* Add ability to use a custom block generator with add_block

* Add check that block belongs to root template in internal_add_block_to_template

* Fix up code docs related to $block_creator

* Fix code doc linting errors in tests

* Add test for a buggy block creator implementation

* Add test for an invalid block creator

* Rename internal_add_block_to_template to cache_block

* Add add_block_container() method

* Fix linting issue.

* Fix minor issues in ContainerInterface with get_root_template() and get_parent()

* Add block template with abstract blocks and templates (#39630)

* Make block template abstract and protected add block methods

* Create block abstraction and generic block

* Remove add_block from container interface

* Update tests for generic and custom blocks

* Add tests around custom block templates

* Fix up lint errors

* Fix errant comment for add_block

---------

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2023-08-10 15:52:44 -07:00
RJ 106e15f74a
fix: core-profiler intro opt in page tracks ordering (#39508) 2023-08-10 14:25:44 +08:00
Barry Hughes dda93bfe51
Add filter to allow preventing deletion. (#39650) 2023-08-09 15:50:57 -07:00
Maikel David Pérez Gómez 3ffe7b8376
Create variation items block (#39657)
* Create and register product-variation-items-field block

* Create variations-table component

* Use variations-table component in variation-items block

* Remove last border bottom from the variation options list

* Add changelog file

* Add changelog file
2023-08-09 16:06:59 -03:00
Barry Hughes f36cb3a50c
Autoload test helpers and exclude from test suites. (#39586)
* Autoload test helpers and exclude from test suites.

This avoids loading order problems, and eliminates warnings (about HposTestCase) not containing any tests.

* Add changefile(s) from automation for the following project(s): woocommerce

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-08-09 15:48:04 -03:00
Luigi Teschio a5539edd14
bump WooCommerce blocks version to 10.6.5 (#39639) 2023-08-09 19:05:05 +02:00
Vedanshu Jain 97cd0abda9
Compare props to set changed array between post and order data. (#39653)
* Compare props to set changed array between post and order data.

* Use correct classname so that props can be set.

* Also clear cache after update and before backfill.
2023-08-09 10:25:21 -03:00
Thomas Shellberg 9418072a47
Add Branding + Tone to Product Descriptions (#39253)
* [Woo AI] generate product descriptions using tone of voice and/or business description context.
2023-08-09 14:15:18 +02:00
Vedanshu Jain fc7e6871ed Add changelog. 2023-08-09 15:04:30 +05:30
Vedanshu Jain 722bbd8147 Add filter to allow preventing deletion. 2023-08-09 15:01:02 +05:30
Sam Seay d08780f139
Bump beta tester to 2.2.2 in prep to release bugfixes (#39603) 2023-08-09 13:06:02 +12:00
Christopher Allford 4549bc82c5
Applied PHPCS To Beta Tester (#39476) 2023-08-08 17:20:34 -07:00
Fernando Marichal 8f147eafb2
[E2E test coverage]: Disable block product editor (#39493)
* Remove ENABLE_NEW_PRODUCT_EDITOR

* add block-product-editor.spec.js

* Remove old editor tests

# Conflicts:
#	plugins/woocommerce/tests/e2e-pw/tests/new-product-editor/new-product-editor.spec.js

* Add changelog

* Improve `isNewProductEditorEnabled`

* Refactor enable-block-product-editor

* Fix enabling

* Fix NEW_EDITOR_ADD_PRODUCT_URL

* Add test disable new product editor

* Add changelog

* Clean code

* Fix disabling

* Moved methods

* Fix comment

* Fix url

* Add `clickOnTab` function

* Add "general-tab"

* Add changelog

* Add sale price

* Rename file

* Rename file

* rename file again

* Fix product creation tests

* Fix  test

* add block-product-editor.spec.js

* Improve `isNewProductEditorEnabled`

* Refactor enable-block-product-editor

# Conflicts:
#	plugins/woocommerce/tests/e2e-pw/tests/merchant/products/block-editor/enable-block-product-editor.spec.js

* Fix enabling

* Add test disable new product editor

* Add changelog

* Clean code

* Fix disabling

* Moved methods

* Fix comment

* Fix url

* Add `clickOnTab` function

* Add "general-tab"

* Add changelog

* Add sale price

* Rename file

* Rename file

* rename file again

* Fix product creation tests

* Fix  test

* Remove expect not used
2023-08-08 15:36:22 -07:00
github-actions[bot] e5fa243683
Delete changelog files based on PR 39625 (#39628)
Delete changelog files for 39625

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-08-08 13:17:44 -05:00
Vedanshu Jain b3e011aa2b Rollback condition from delete flow as causes issues with no HPOS tables. 2023-08-08 22:14:29 +05:30
github-actions[bot] c76fff2f6a
Delete changelog files based on PR 39616 (#39624)
Delete changelog files for 39616

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-08-08 11:07:28 -05:00
Vedanshu Jain d4141958b2
Set the orders table exist option if its not set. (#39616)
* Set the orders table exist option if its not set.

* Add changelog.

* Must use yoda conditions.

* Remove unnecessary option set.
2023-08-08 13:01:00 -03:00
Vedanshu Jain 9c13c21ec8
Execute order update logic earlier in the request (#39590) 2023-08-08 18:59:49 +05:30
Fernando Marichal d5d282dafa
[E2E test coverage]: Enable block product editor (#39463)
* Remove ENABLE_NEW_PRODUCT_EDITOR

* add block-product-editor.spec.js

* Remove old editor tests

# Conflicts:
#	plugins/woocommerce/tests/e2e-pw/tests/new-product-editor/new-product-editor.spec.js

* Add changelog

* Improve `isNewProductEditorEnabled`

* Refactor enable-block-product-editor

* Fix enabling

* Fix NEW_EDITOR_ADD_PRODUCT_URL
2023-08-08 10:14:08 -03:00
Maikel David Pérez Gómez d3702c53ba
Add product visibility blocks (#39477)
* Add catalog visibility block

* Add product search visibility block

* Add changelog files

* Fix linter errors

* Remove non necesary block

* Add catalog_visibility property to the Product type
2023-08-08 09:58:00 -03:00
Sam Seay e8c3808527
Upgrade TypeScript to v5.1 (#39531) 2023-08-08 16:35:31 +12:00
Alefe Souza 428feb58a7
Update WCPay banners for WooPay (#39596)
* Update WCPay banners for WooPay

* Fix unit tests

* Always checks for WooPay eligibility

* Use existing method to determine WooPay eligibility

* Create is_woopay_eligible method
2023-08-07 19:17:59 -07:00
Joel Thiessen 144bf08293
Generating the short description on the product editor (#39237)
* [Woo AI] Generate short description after long description is generated.
2023-08-07 14:03:52 +02:00
Barry Hughes c4f00719de
Fire 'woocommerce_process_shop_order_meta' only once when updating orders on the admin (#39587) 2023-08-04 15:41:29 -07:00
github-actions 406fd408dc Add changefile(s) from automation for the following project(s): woocommerce 2023-08-04 21:45:16 +00:00
Chris Runnells 017be8b7e5
Replace 'end' CSS props with 'flex-end' when using 'display: flex' (#39419) 2023-08-04 11:12:05 -10:00
Jorge Torres 90919db69c Execute order update logic earlier in the request 2023-08-04 17:32:59 -03:00
Jorge Torres 9c05efbe3f Add changelog 2023-08-04 17:18:07 -03:00
Jorge Torres 083cc6d4a1 Do not run `WC_Admin_Meta_Boxes::save_meta_boxes()` for HPOS orders 2023-08-04 17:18:07 -03:00
github-actions[bot] bf2d2b6bc3
Delete changelog files based on PR 39582 (#39592)
Delete changelog files for 39582

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-08-04 15:15:41 -05:00
Luigi Teschio 5d68832fd5
bump WooCommerce blocks version to 10.6.4 (#39582) 2023-08-04 15:13:27 -05:00
github-actions[bot] 106ca182e5
Delete changelog files based on PR 39584 (#39589)
Delete changelog files for 39584

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-08-04 14:26:47 -05:00
barryhughes dd3187844d Temporarily skip problematic test (tested feature remains experimental). 2023-08-04 11:41:36 -07:00
barryhughes 3f58ac3e5b Remove no-op migration from 8.0. 2023-08-04 09:30:37 -07:00
Sam Seay d64e1c24dd
Beta Tester: Do not run code in tracks debug unless WC_ABSPATH is defined. (#39486)
* Do not run code in tracks debug unless WC_ABSPTAH is defined.

* Add changefile(s) from automation for the following project(s): woocommerce-beta-tester

* Also avoid registering scripts if Woo is not installed.

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-08-04 12:29:07 +08:00
Paul Sealock b14653ede0
WooCommerce Docs: Delete posts when it removed from the manifest (#39395) 2023-08-04 14:00:50 +12:00
nigeljamesstevenson 0d8d824b47
Prevent read on sync while inside a backfill. (#39450) 2023-08-04 00:48:28 +01:00
barryhughes 1152ac1246 Tidy comment. 2023-08-03 16:24:33 -07:00
barryhughes bc91ad26c2 Continue supporting bulk action redirect in both directions. 2023-08-03 16:17:52 -07:00
nigeljamesstevenson d2fb10fcae
Update locator to reduce flakiness when running tests against an external site (#39375)
* Update locator to reduce flakiness when running tests against an external site

* changelog update
2023-08-03 14:01:52 -07:00
Moon 3c07a03943
Update/79113 incorrect subheading style and copy on wc core profiler (#39526)
* Use -webkit-font-smoothing: antialiased for core profiler subheadings

* Remove subheading letter-spacing
2023-08-03 11:26:52 -07:00
Faisal Alvi 2cac4e4f41
Fix #38716 Detect the first `<h2>` tag to fix Test failure (#38717)
* Fix #38716

* Adding changelog

* update changelog
2023-08-03 10:31:25 -07:00
github-actions[bot] 9fc67703ff
Delete changelog files based on PR 39560 (#39568)
Delete changelog files for 39560

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-08-03 09:53:32 -05:00
Luigi Teschio 6d920da52a
bump WC Blocks to 10.6.3 (#39560) 2023-08-03 10:31:23 +02:00
github-actions[bot] 34a8273268
Delete changelog files based on PR 39523 (#39558)
Delete changelog files for 39523

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-08-02 16:05:22 -05:00
github-actions[bot] 4ff45b55c5
Delete changelog files based on PR 39537 (#39556)
Delete changelog files for 39537

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-08-02 15:59:38 -05:00
github-actions[bot] 037772403c
Delete changelog files based on PR 39520 (#39554)
Delete changelog files for 39520

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-08-02 15:58:05 -05:00