Commit Graph

53670 Commits

Author SHA1 Message Date
Matt Sherman 6c47589953
Template API: Add after_add_block and after_remove_block actions (#40139) 2023-09-15 14:05:09 -04:00
Matt Sherman 3520b388d9 Add try/finally to ensure action hooks are removed 2023-09-15 12:59:30 -04:00
Matt Sherman e03acdf662 Simplify logic in is_detached() 2023-09-15 12:54:16 -04:00
Néstor Soriano a0a32d2e13
Fix cached refund not deleted when refund is deleted with HPOS active (#40197)
* Fix: cached refund was not deleted when refund was deleted.

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-09-15 15:42:33 +02:00
Veljko V 426a8c2106
Add new E2E test coverage for Shopper My Account Downloads (#40100)
* Add new e2e test to cover my account downloads

* Include file name in the test

* Add missing changelog

* Update test to look for proper file name

* Exclude COD option and include order status
2023-09-15 18:54:32 +08:00
Veljko V c7161bb430
Improve existing E2E test page loads to verify one more element on the pages (#40008)
* Improve existing E2E test to look for more details

* Update test to include proper selectors

* Update selectors to match site data

* Add changelog

* Include data before all and delete after all

* Move data creation deeper inside test and wait for element visible
2023-09-15 18:01:48 +08:00
Chi-Hsuan Huang 7897a61a10
Add track events to customize store AI wizard (#40144)
* Add cys AI wizard tracks

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

* Revert ai API track name change

* Track AI API request network error

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-09-15 12:48:12 +08:00
Chi-Hsuan Huang 80eaece265
Add customize store transitional screen (#40122)
* Add CYS transitional screen

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

* Add tests

* Update preview loading style and add requeue param

* Fix visible logic

* Fix img size

* Update comments

* Fix lint

* Pre-fetch image and wait a 5s before redirecting to transitional page after clicking on done button

* Remove unneed overflow

* Move pre-fetch logic to xstate and use spinner for button loading state

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-09-15 12:01:02 +08:00
Nathan Silveira 95d7a6b86d
Improve Categories (Taxonomy) field UX (#40059)
* Add 'dialogNameHelpText' attribute to show on create taxonomy dialog

* Tweak CSS margins

* Add changelogs

* Rename "Save" to "Create" and set cancel button to Tertiary

* Add gray color to (optional)

* Create attribute to personalize label for parent
2023-09-14 16:02:16 -03:00
Moon ea300ef761
Update store currency on store location update (#40142)
* Update store currency when location changes

* Remove incorrect import

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

* Add space to trigger GH jobs

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-09-14 10:42:59 -07:00
Vedanshu Jain e82e91806d
Use object APIs in custom meta box so that relevant hooks are fired. (#40158) 2023-09-14 16:19:03 +05:30
Vedanshu Jain 4d9ae7811b Changelog. 2023-09-14 14:30:11 +05:30
Vedanshu Jain 1431b0d955 Use datastore method for adding new meta too. 2023-09-14 14:08:29 +05:30
Sam Seay 36c644a1c4
Customize your store header (#40107)
This closes #39718 by loading header patterns in the header customization menu of the assembler.
2023-09-14 20:24:46 +12:00
Vedanshu Jain 6acb7554f8 Use CRUD API instead of accessing data store directly so hooks are fired. 2023-09-14 13:44:30 +05:30
Rodel Calasagsag 46dd6369e4 Fix "Smoke tests on daily build" link 2023-09-14 15:32:50 +08:00
Rodel Calasagsag d5a18163da Merge branch 'trunk' into e2e/slack-daily-plugins 2023-09-14 15:21:48 +08:00
Jonathan Lane 473a53d542
Add test to check required fields on checkout (#40099)
* Add test to check required fields on checkout

* Add changelog

---------

Co-authored-by: Jon Lane <jon.lane@automattic.com>
2023-09-14 15:10:20 +08:00
Nima Karimi ef0aacf2d2
Woo AI Release 0.4.0 (#40134)
Updating version and changelog
2023-09-14 06:24:19 +03:00
github-actions 4b61aaae04 Add changefile(s) from automation for the following project(s): woocommerce 2023-09-13 15:12:16 +00:00
Matt Sherman 68607e02e8 Update comment to make it clearer why short-circuiting is used in hook 2023-09-13 11:00:27 -04:00
Matt Sherman b3ec4f982f Add unit tests for after_add_block and after_remove_block hooks 2023-09-13 10:55:43 -04:00
github-actions[bot] fbd1224fee
Update changelog.txt from release 8.1.0 (#40138)
Prep trunk post release 8.1.0

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-09-13 09:14:55 -05:00
jonathansadowski 250bc9ea4e
Allow changelog in build zip (#40133)
* Allow changelog in build zip

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-09-13 09:12:51 -05:00
Jonathan Sadowski 0a867bc8b6 Update Action Scheduler to 3.6.3 2023-09-13 09:10:17 -05:00
Saad Tarhi 8399481566
Update WooCommerce blocks package to 11.1.0 (#40141) 2023-09-13 15:04:55 +01:00
Matt Sherman 036158ad4b Update test function code docs 2023-09-13 08:15:43 -04:00
Matt Sherman 514f96cbfe Add BlockInterface::remove() 2023-09-13 08:13:42 -04:00
Matt Sherman 0b83163d9c Changelog 2023-09-13 07:58:23 -04:00
Vedanshu Jain 43b32e23b0
Add added|updated|deleted_order_meta actions. (#40088) 2023-09-13 17:17:15 +05:30
Vedanshu Jain 109ba6c178
Fix duplicate meta handling by passing meta_value|unique in post calls (#40129) 2023-09-13 16:35:06 +05:30
Vedanshu Jain 252c349fd2 Updated docs. 2023-09-13 16:30:19 +05:30
Kyle Nel d1f935cca4
Add country to in-app marketplace search (#40091)
* Marketplace: remove orphaned components

* Marketplace: add country to search query

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

Co-authored-by: Cem Ünalan <raicem@users.noreply.github.com>

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Cem Ünalan <raicem@users.noreply.github.com>
2023-09-13 11:32:05 +02:00
Vedanshu Jain 9d36bbe10b Handle serialized values. 2023-09-13 14:49:31 +05:30
Chi-Hsuan Huang 4495a6a49e
Add customize store - fonts (#40082)
* Add customize store fonts

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

* Add inline comment for font-hosting note

* Update plugins/woocommerce-admin/client/customize-store/assembler-hub/auto-block-preview.tsx

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

* Remove duplicated External dependencies

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2023-09-13 16:01:28 +08:00
Vedanshu Jain 007cf95d93 Remove unused code + reduce number of delete ops. 2023-09-13 13:14:50 +05:30
Saad Tarhi 4466fe4418 Add changelog 2023-09-12 23:59:11 +01:00
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