Commit Graph

53784 Commits

Author SHA1 Message Date
Jeremy Pry b37099ead3
Bump PHP version to 7.4 in the woocommerce/lib directory (#40098) 2023-09-12 17:38:04 -04:00
Matt Sherman e15bc6a13a Add after_add_block and after_remove_block hooks, and logging 2023-09-12 16:53:26 -04:00
Matt Sherman 229f262748 Fix code formatting issue 2023-09-12 16:52:44 -04:00
Matt Sherman b2aa1c18f3 Set area for product form templates 2023-09-12 16:52:18 -04:00
Matt Sherman 4114d16383 Logger for block template modifications 2023-09-12 16:51:48 -04:00
Moon f05e8efc17
Track core profiler plugin installation in PHP (#39921)
* Use HTTP request to track in cron jobs (action scheduler jobs)

* Pass complete data to logger

* Track coreprofiler_store_extensions_installed_and_activated when plugin installation is complete

* Add changelog

* Update plugins/woocommerce/src/Admin/PluginsInstallLoggers/AsyncPluginsInstallLogger.php

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

* Include start_time in completion data

* Update plugins/woocommerce/includes/tracks/class-wc-tracks-event.php

Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>

* Fix variable naming convention

---------

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-09-12 13:29:06 -07:00
jonathansadowski abd90ab83b
Update stable tag to 8.1.0 (#40137)
woorelease: Update stable tag to 8.1.0
2023-09-12 15:23:24 -05:00
Saad Tarhi efaa980228 Run "composer update woocommerce/woocommerce-blocks" 2023-09-12 18:51:23 +01:00
Saad Tarhi b180910a27 Increase the version of Woo Blocks in "composer.json" 2023-09-12 18:47:03 +01:00
Nima Karimi 01dd039b21
Suggest product categories with AI (#39437)
* Accept arguments for the TinyContent getContent method.

Used to fetch the plain text version of the description.

* Add a class to the loading message content

* Set the max description length as global constant

* Create a MagicButton component and use it

* Get plain text description instead of HTML

* Return full category hierarchy (Parent > Child)

* Add method to return all available categories on the product edit page

* Helper function to generate product data instructions for the prompt

* Helper function to select category checkboxes on DOM

* Create component to display a list of suggestion items as pills

* Add product category suggestions to product edit page

* Use the AI package to get text completion

* Add tracks

* Add changelog

* Fix merge conflict

* Remove NoMatch state for category suggestions

* Get available categories using WC REST API

* Suggest new categories

* Run separate prompts for existing and new category generation

* Fix overflow in suggestion pills

* Don't include existing selected categories in prompt

* Add util to encode html entities

* Exclude "Uncategorized" category from product data

* Allow excluding properties from the product data instructions

* Create category from suggestion if it doesn't exist

* Show suggestions as links instead of pills

* Ask for feedback after suggestion selected

* Decode html entities in available categories results

* Don't encode html entities when comparing available categories

* Change feedback box style

* Suggest only one category

* Remove log

* Show feedback box after generating suggestions

Instead of showing it after a suggestion is selected

* Fix typo
2023-09-12 19:59:26 +03:00
Leif Singer 4a45c956ab
Add a filter to OrdersTableQuery to allow overriding of HPOS queries (#39945)
* Add a filter to OrdersTableQuery to allow overriding of HPOS queries

* add changelog file

* address review comments

* move `woocommerce_hpos_pre_query` filter into `maybe_override_query` method

* specify and ensure that the 3-tuple param / return value can also be null

* document the $sql param

* remove debugging echo

* tweak wording

Co-authored-by: Vedanshu Jain <vedanshu.jain.2012@gmail.com>

* remove unused variable

---------

Co-authored-by: Vedanshu Jain <vedanshu.jain.2012@gmail.com>
2023-09-12 18:18:51 +02:00
Christopher Allford deee539245
Use Correct PR Numbers In Code Freeze Changelog Command (#40096)
* Fixed Changelog PR Number Markdown

This makes the regex for replacing the number with a
markdown link more strict. Previously it was converting
[#PRNUM] to [[#PRNUM]] and would also add a markdown link
even if one was only present. This solves those two issues.

* Deepen Code Freeze Changelog Checkout

By default our remote branch checkout performs a shallow checkout. This
results in the Jetpack Changelogger appending the wrong PR number
when we generate the changelog for the `readme.txt` file. Here we are
deepening the checkout to resolve the problem.
2023-09-12 10:49:03 -05:00
Vedanshu Jain 29c8b1fc17 Add changelog. 2023-09-12 17:44:05 +05:30
Vedanshu Jain c0a3a66ba7 Better checking for duplicate meta entries. 2023-09-12 17:43:58 +05:30
Vedanshu Jain e79f924d88 Prevent duplicate meta changes. 2023-09-12 17:43:50 +05:30
Vedanshu Jain e493a04ec1 Refactor checks into seperate function for unit tests. 2023-09-12 17:43:34 +05:30
Peter Fabian ea7e97caea Fix docs. 2023-09-12 17:40:20 +05:30
Peter Fabian 3cdc6c6ebb Fix removed empty line. 2023-09-12 17:40:20 +05:30
Peter Fabian 3efc8067e2 Move the action trigger to abstract data class. 2023-09-12 17:40:20 +05:30
Peter Fabian 1bb2e553a0 Removed the extra filters, not needed. 2023-09-12 17:40:20 +05:30
Peter Fabian b7b3101139 Add more actions to allow hooking into meta changes. 2023-09-12 17:40:20 +05:30
Peter Fabian 86c69ca634 Added return types where possible for PHP 7 compat. 2023-09-12 17:40:20 +05:30
Peter Fabian d2fde8a332 Add added|updated|deleted_order_meta actions. 2023-09-12 17:40:20 +05:30
RJ e52d11a87e
add: url navigation to cys (#40068)
* add: url navigation to cys

* bugfix for url not updating

* url handling for design-with-ai

* fixed url syncing so that it's working with @woocommerce/navigation

* changed useLocation to useQuery in assembler-hub save-hub
2023-09-12 14:32:50 +08:00
Paul Sealock c721159129
Remote Inbox Notifications: Add `in` and `!in` comparison operators (#40084) 2023-09-12 15:13:42 +12:00
RJ 267cf52394
add: customize store design with ai loader (#40083)
* add: customize store design with ai loader

* removed unused prop
2023-09-12 10:30:54 +08:00
Matt Sherman 2be3dbe47c Fix up CustomBlockTest (it was creating detached blocks by mistake) 2023-09-11 20:41:59 -04:00
Matt Sherman 1179a5339a Do not cache inner block in template if container is detached 2023-09-11 20:41:21 -04:00
Matt Sherman f3455e5102 Add tests for BlockInterface::is_detached() 2023-09-11 20:40:58 -04:00
Matt Sherman ea1b1854e2 Clean up exceptions in add_inner_block 2023-09-11 20:09:20 -04:00
Matt Sherman c37cd715d7 Add BlockInterface::is_detached() 2023-09-11 19:58:32 -04:00
Chris Runnells ccd01e5913 Add changelog entry 2023-09-11 12:55:22 -10:00
Moon 9a75cec842
Record plugin api and install failures to coreprofiler_install_plugin_error track (#39899)
* Record plugin api and install failures to coreprofiler_install_plugin_error track

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

* Change to trigger GH jobs

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-09-11 15:14:12 -07:00
Kyle Nel 6e20ecb3bc
Marketplace: update discover page card counts (#40020)
* Marketplace: update discover page card counts

* Marketplace: Apply PR review feedback

* Addressing linter error. Whitespace.

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

---------

Co-authored-by: And Finally <andfinally@users.noreply.github.com>
Co-authored-by: github-actions <github-actions@github.com>
2023-09-11 15:33:43 +02:00
Kyle Nel 39aeb0b37a
Marketplace: Update help menu themes link (#40023)
* Update help menu themes link

Update plugins/woocommerce/includes/admin/class-wc-admin-help.php

Co-authored-by: And Finally <andfinally@users.noreply.github.com>

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

---------

Co-authored-by: And Finally <andfinally@users.noreply.github.com>
Co-authored-by: github-actions <github-actions@github.com>
2023-09-11 14:43:48 +02:00
Nathan Silveira 2b5e3f2cb8
Decode HTML escaped string for tree-item and selected-items components (#40047) 2023-09-11 09:41:17 -03:00
Vedanshu Jain b54efdaa15
[HPOS] Modify query to have less characters before the `FROM` keyword. (#40109) 2023-09-11 17:42:13 +05:30
Vedanshu Jain 2273e297f1 [HPOS] Modify query to have less characters before the `FROM` keyword. 2023-09-11 15:54:59 +05:30
Chi-Hsuan Huang 940b24cce2
Add customize store colors (#40051)
* Add cys color palettes

* Add reference links

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

* Rename color-palette

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

* Update folder structure

* Reset color changes when navigating back

* Rename files

* Update COLOR_PALETTES options

* Add color-palette-variations/preview.tsx

* Fix double slash links

* Fix color variations item style

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-09-11 17:48:23 +08:00
Chi-Hsuan Huang 2fc0201632
Fix CYS `__experimentalReapplyBlockTypeFilters` is not a function (#40104)
* Fix __experimentalReapplyBlockTypeFilters is not a function

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

Update changelog

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-09-11 15:13:40 +08:00
nigeljamesstevenson ba08acba62
Run a full site reset on daily runs (#40061) 2023-09-10 22:54:52 +01:00
Chi-Hsuan Huang 914df4b921
Fix customize store whitescreen in WP 6.3 (#40031)
* Fix wp-router dependencies issue

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

* Fix customize your store task header button (#40033)

* Fix customize your store task header button

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

---------

Co-authored-by: github-actions <github-actions@github.com>

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-09-09 11:05:31 +08:00
Jeremy Pry 84c9e7551c
Add changelog file 2023-09-08 18:48:53 -04:00
Jeremy Pry da2d9755e9
Run composer update 2023-09-08 18:05:47 -04:00
Jeremy Pry e368dc0826
Update lib/composer.json to PHP 7.4 2023-09-08 18:05:38 -04:00
Jon Lane 1e9a63d15a Reorganize 2023-09-08 14:05:03 -07:00
Jon Lane e99a61f985 All global setup only runs on daily 2023-09-08 13:56:45 -07:00
github-actions[bot] c16bf0f280
Delete changelog files based on PR 39911 (#40094)
Delete changelog files for 39911

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-09-08 10:06:35 -07:00
github-actions 7b8056c301 Add changefile(s) from automation for the following project(s): woocommerce 2023-09-08 15:54:15 +00:00
nigeljamesstevenson 33e01b9af2
Add instructions for testing contributions in the CONTRIBUTING.md file. (#40018)
Checks ran after closing and opening the PR. One failed but it passed after re-run. Checked and appeard the old anchors were not used in other places so merging this one - thanks!
2023-09-08 15:39:52 +01:00