Commit Graph

62169 Commits

Author SHA1 Message Date
Ron Rennick 5ce113d413
add composer install to package prepare script (#42839)
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2023-12-15 11:08:29 -04:00
Patricia Hillebrandt 69172606f5
CYS - AI Improvements (#42800)
* Add the response_format to the params for requests to AI to ensure it will return the responses in JSON format.

* Update the prompt to define the search term for images from Pexels.

* Streamline product content update and the product image uploads within the ProductUpdater class.

* IMprove prompts for images and product content generation.

* Update the prompt for defining the search term on Pexels and drop double quotes from the response.

* Update the prompts and the position for the titles on content generation for the woocommerce-blocks/testimonials-3-columns pattern.

* Set the 'woocommerce_ai_managed_images' transient for the products endpoint callback in case execution is interrupted so images don't have to be fetched from Pexels again.

* Update the prompt for defining the search term for images.

* Remove unused methods from the PatternsHelper class.

* Update the prompt for AI content generation in patterns.

* Update the prompts for the testimonials and the Hero Product 3 Split patterns.

* Update the position for the main title in the Hero Product 3 Split pattern.

* Reduce the size of the images uploaded to the media library for products.

* Add docblock and update prompts.

* Update the default size of the images received from Pexels to be downloaded and uploaded to the media library.

* Update prompts for the Hero Product 3 Split pattern.

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

* Address lint errors.

* Update array formatting

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-12-15 11:49:16 -03:00
Thomas Roberts 0c6a943c42
Add select field type for custom checkout fields (#42758)
Co-authored-by: Niels Lange <info@nielslange.de>
Co-authored-by: Nadir Seghir <nadir.seghir@gmail.com>
Co-authored-by: github-actions <github-actions@github.com>
2023-12-15 06:39:22 -08:00
louwie17 90dc5bad2e
Address some deprecation warnings (#41845)
* Remove use of deprecated conditional block

* Remove use of deprecated context usage

* Remove use of deprecated positoin on Dropdown in favour of popoverProps

* Add changelogs

* Remove unused import

* Fix lint errors

* Remove popoverProps.position with popoverProps.placement

* Update missed items replacing position to placement

* Fix lint error

* Fix placement position

* Update changelogs
2023-12-15 09:45:06 -04:00
Nathan Silveira 2f8ac30097
Prepare create-product-editor-block for 1.3.0 (#42844) 2023-12-15 10:31:05 -03:00
Seghir Nadir 12572ce08c
Introduce Additional Fields extensibility API (#42695)
* Introduce Additional Fields API for Checkout Block https://github.com/woocommerce/woocommerce-blocks/pull/12073

* add changelog

* Auto load the Blocks/Domain/Services/functions.php file

* add changelog

* revert test to what it was

* Update text domain for translations

* Ensure address data is added on the cart block too

* fix lint problem

---------

Co-authored-by: Thomas Roberts <thomas.roberts@automattic.com>
2023-12-15 13:45:38 +01:00
Ilyas Foo 3d7e6bc796
Enable WCCOM shipping partners API consumption (#42810)
* Enable shipping partners API use from frontend

* Changelog

* Add id to each shipping partner to match wccom structure
2023-12-15 20:33:36 +08:00
Damián Suárez d996008219
[Product Block Editor]: propagate content from description inner blocks to Modal editor (#42768)
* set description like the property to update

* switch between summary block and block preview

* add todo: comment

* femove duplicated doc comment block

* Use a quick check to improve performance

* expose getContentFromFreeform() helper fn

* parse freeform content to valid blocks

* changelog

* fix TS issue

* changelog
2023-12-15 09:20:02 -03:00
Thomas Roberts 865ea6ada9
Disable `DisallowShortArraySyntax` and `InternalInjectionMethod` sniffs for blocks files. (#42863)
* Disable some rules for blocks files

* Add changelog
2023-12-15 12:39:31 +01:00
Tom Cafferkey d3c497f7c0
Block Hooks API: Add TT2 theme to the list of allowed themes for Mini Cart auto-insertion (#42813) 2023-12-15 08:57:26 +00:00
Tom Cafferkey 5cdbc8c98a
Merge branch 'trunk' into update/auto-insert-mini-cart-into-tt2 2023-12-15 08:08:45 +00:00
Tom Cafferkey 9f997106ec
Block Hooks API: Add TT3 theme to the list of allowed themes for Mini Cart auto-insertion (#42760) 2023-12-15 08:07:31 +00:00
Paul Sealock 4ddec1b1d2
Shipping Settings: Handle multiple tables in modal html (#42847) 2023-12-15 13:54:30 +13:00
Matt Sherman 585cafb3fb
Fix typos in woocommerce/product-text-field README (#42846) 2023-12-14 15:46:30 -05:00
github-actions bbc0390e35 Add changefile(s) from automation for the following project(s): woocommerce 2023-12-14 20:26:58 +00:00
Matt Sherman bf4bdfff3e Changelog 2023-12-14 15:22:04 -05:00
Matt Sherman a31fec1927 Fix typos 2023-12-14 15:21:05 -05:00
paul sealock 7b1f538573 Handle multiple tables in an html string 2023-12-15 09:15:01 +13:00
louwie17 b406a084e4
Add reorder grouped products option (#42766)
* Add re-order modal

* Consolidate some of the styling and components

* Add changelog

* Only show reorder when products are added, and remove 'x' from reorder modal
2023-12-14 16:01:55 -04:00
nigeljamesstevenson 3042b9fba6
Update Action Scheduler to 3.7.1 (#42820) 2023-12-14 17:01:54 +00:00
Tom Cafferkey b72d9e341f
Merge branch 'trunk' into update/auto-insert-mini-cart-into-tt2 2023-12-14 15:48:59 +00:00
Tom Cafferkey 59fb6aa2c6
Merge branch 'trunk' into update/auto-insert-mini-cart-into-tt3 2023-12-14 15:48:56 +00:00
tjcafferkey e1853dcfe6 Change [] to array() for linting 2023-12-14 15:46:22 +00:00
tjcafferkey 23ff1a54cd Change [] to array() for linting 2023-12-14 15:40:38 +00:00
Seghir Nadir 25d0417644
Add InternalInjection sniff exceptions for blocks (#42821) 2023-12-14 16:36:40 +01:00
Seghir Nadir 6ff354b943
Performance: Log the performance metrics to codevitals (#42823) 2023-12-14 16:31:51 +01:00
Riad Benguella e1b7c42256 try sending the right hashes 2023-12-14 16:06:02 +01:00
Tom Cafferkey c989f6e337
Merge branch 'trunk' into update/auto-insert-mini-cart-into-tt3 2023-12-14 14:25:58 +00:00
Leif Singer 6f902e3dbb
Delete trashed orders after `EMPTY_TRASH_DAYS` as defined by WordPress (HPOS) (#41949)
* Add a test that fails if trashed orders are never deleted under HPOS

* Delete trashed orders after `EMPTY_TRASH_DAYS` as defined by WordPress

* add the changelog file

* appease the linter

* return early if HPOS is not authorative

* attempt to precede WordPress itself (which uses priority 10) to increase the probability of orders and their posts being handled solely by us

* appease the linter
2023-12-14 14:24:09 +00:00
Ron Rennick 5ca5d9bdab Merge branch 'trunk' into add/blocks-injection-rule 2023-12-14 10:11:16 -04:00
Ron Rennick 8c09ae3817 add exclusion for short array syntax 2023-12-14 10:07:41 -04:00
Tom Cafferkey 853c57a604
Merge branch 'trunk' into update/auto-insert-mini-cart-into-tt2 2023-12-14 14:04:11 +00:00
Riad Benguella 28e876e7cd Fix URL 2023-12-14 14:56:17 +01:00
Roy Ho 255f1ff919
Product gallery/legacy/transform (#42719)
* Product Image Gallery: Add transform to Product Gallery block

* Single Product Template: Transform to blocks with new Product Gallery block

* Ensure we first check for block existance

* Add changelog

* Add/delete changelog file
2023-12-14 05:47:48 -08:00
Riad Benguella 743b26d498 Performance: Log the performance metrics to codevitals 2023-12-14 14:27:42 +01:00
Seghir Nadir 81c19c0e39
Perfomance: Fix the metrics job on trunk (#42819) 2023-12-14 14:25:22 +01:00
Luigi Teschio 9ff69b01cc
fix: CYS - fix path images patterns (#42705)
* fix: CYS - fix path images pattern

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-12-14 14:12:52 +01:00
github-actions a4d6537597 Add changefile(s) from automation for the following project(s): woocommerce 2023-12-14 13:03:44 +00:00
Riad Benguella 2f10d5ca73 Perfomance: Fix the metrics job on trunk 2023-12-14 14:00:29 +01:00
Ron Rennick 8292ff1cca Add InternalInjection sniff exceptions for blocks 2023-12-14 08:59:57 -04:00
nigeljamesstevenson 3ada74b56d Update Action Scheduler to 3.7.1 2023-12-14 12:56:05 +00:00
berislav grgičak 2964800f27
Add subscription install modal (#42009)
* Install modal

* Add connect button

* Small product card

* Add install functionality

* Add no subscription error

* Fix error notice loading

* Connect style

* Add success state

* Fix admin urls

* Add error message to failed install events

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-12-14 12:45:40 +01:00
Luigi Teschio 0903a53664
fix: CYS - update copy (#42703)
* fix: CYS - update copy

* not format style file

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

* add changelog

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-12-14 12:32:37 +01:00
Seghir Nadir 19f3d08846
Performance: Add a tool and a CI workflow to compare performance between PR and trunk and track metrics on trunk (#42693) 2023-12-14 12:21:20 +01:00
github-actions d8132154ba Add changefile(s) from automation for the following project(s): woocommerce 2023-12-14 10:59:34 +00:00
Riad Benguella 7cfe6bdbbd Small optimization 2023-12-14 11:50:44 +01:00
tjcafferkey 30dab31b4c Enable Mini Cart auto-insertion for TT2 but exclude some header patterns 2023-12-14 10:48:55 +00:00
Riad Benguella 1f9e8bf511 Fix typo 2023-12-14 11:12:09 +01:00
Riad Benguella 68617e8ef1 Performance: Add a tool and a CI workflow to compare performance between PR and trunk and track metrics on trunk 2023-12-14 10:48:15 +01:00
Seghir Nadir 2b54c8a61d
Performance: Bootstrap metrics tracking (#42005) 2023-12-14 10:45:15 +01:00