Commit Graph

11709 Commits

Author SHA1 Message Date
Jorge Torres 46e437cbfd Add changelog 2023-09-21 18:55:36 +01:00
Jorge Torres 5d7b2f36fc Prevent conflict with WP’s post lock 2023-09-21 18:55:31 +01:00
Jorge Torres 92faebbe69 Handle change in name of order ID in list table 2023-09-21 18:55:11 +01:00
nigeljamesstevenson e0c44f07fb
test update for failing k6 tests (#40350) 2023-09-21 09:50:26 -07:00
Kader Ibrahim S 01b99e9803 Removes the default topic for unavailable topics. 2023-09-21 21:16:36 +05:30
Jorge Torres 10c66d2196 Ignore some metadata in HPOS verify tool. 2023-09-21 14:15:49 +01:00
Jorge Torres 97697fcdbb Add changelog 2023-09-21 14:15:43 +01:00
Vlad Olaru 81d5df92e8
Add changelog entry 2023-09-21 15:58:18 +03:00
Vlad Olaru 6e83c3c9e6
Remove custom button styling and defer to core styling 2023-09-21 15:54:27 +03:00
Vedanshu Jain 4f425aca34 Move clear cache to after backfilling bit is set as its not atomic. 2023-09-21 13:22:17 +05:30
Vedanshu Jain c6afc7a4c3 Use less invasive cache validation for after meta cache.
Entire cache is still invalidated on an object save.
2023-09-21 12:47:31 +05:30
Chi-Hsuan Huang 7f9322c858
[Customize Your Store] Loading - Persisting AI assembled site (#40294)
* Persist AI assembled site

* Update color options

* Invalid the selectors

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

* Fix lint

* Update colorPaletteName

* Fix tests

* [Customize Your Store] Call wc store patterns API (#40297)

* Call /wc/store/v1/patterns endpoint to populate pattern contents/images

* 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-21 13:30:57 +08:00
Moon a9d6a3aa39
Customize Your Store - Implement back to home buttons (#40321)
* Implement back to home buttons

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-09-20 19:06:39 -07:00
Chi-Hsuan Huang 48342fbc66
Add cys ai header/footer (#40276)
* Add cys ai header suggestion

* Add cys ai footer suggestion

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

* Fix types

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-09-21 09:49:00 +08:00
Moon b9b4dc852c
Customize Youre Store - Use all six homepage templates (#40313)
* Use all 6 homepage templates

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-09-20 18:47:59 -07:00
github-actions[bot] bea1daef0f
Prep trunk for 8.3 cycle (#40322)
Prep trunk for 8.3 cycle with version bump to 8.3.0-dev

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-09-20 19:08:13 -05:00
github-actions[bot] f2e352596e
Release: Remove 8.2 change files (#40324)
Delete changelog files from 8.2 release

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-09-20 19:06:54 -05:00
Adrian Duffell 76b8042359
Replace "Personalize Your Store" Task with "Choose Your Theme" (#40239)
* Update appearance task to choose a WP theme

* Add changelog

* Update redirect URL

Redirects to the main theme screen.

* Update plugins/woocommerce/src/Admin/Features/OnboardingTasks/Tasks/Appearance.php

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

* Wrap URL in getAdminLink

* Update position of task

* Change title

* Change redirect URL to be the site editor

* Revert to original task name

* Use inherited is_complete function

* Use PHP-based action tracking

* Fix lint issue

---------

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2023-09-21 00:25:35 +08:00
nigeljamesstevenson 5bc0789921
Fix: order metadata changes from admin not applied with HPOS active. (#40278) 2023-09-20 15:05:45 +01:00
nigeljamesstevenson 6b4bec0c95
Enable HPOS by default for new installs. (#40296) 2023-09-20 15:04:23 +01:00
Vedanshu Jain 6f4eb37b21 Enable HPOS by default for new installs. 2023-09-20 17:49:06 +05:30
Jorge Torres 8c55e53772 Remove unnecessary import 2023-09-20 13:02:51 +01:00
Nestor Soriano cff83dca10
Remove unnecessary hpos check 2023-09-20 13:37:56 +02:00
Luigi Teschio 186474078e
Update WooCommerce blocks package to 11.1.1 (#40300)
bump Woo Blocks 11.1.1
2023-09-20 13:36:38 +02:00
nigeljamesstevenson 4b79f12026
Add missing order type handling in HPOS sync (#40279) 2023-09-20 10:37:58 +01:00
Nestor Soriano cb360ac2c2
Move metadata processing code from WC_Meta_Box_Order_Data to CustomMetaBox 2023-09-20 10:52:35 +02:00
RJ 1af971caf6
add: best colours AI suggestions (#40295) 2023-09-20 15:27:08 +08:00
Leif Singer 2289fc70a9
Tweak a few comments related to address type (#40110)
* Tweak a few comments related to address type

* tweak more address type comments

* grammar nitpick

* still more address type tweaks

* appease the linter

* Update plugins/woocommerce/includes/wc-template-functions.php

Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>

---------

Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
2023-09-20 08:48:06 +02:00
Chris Runnells 77db736fc9
Update Customize Your Store introduction page (#40293)
* Add intro Banner components

* Add intro banner svg

* Add additional theme card data

* Add theme slug

* Add intro page layout and styling

* Remove unused component files

* Update button events

* Add intro Banner components

* Add intro banner svg

* Add additional theme card data

* Add theme slug

* Add intro page layout and styling

* Remove unused component files

* Update button events

* Add changelog

* Fix lint issues

* Fix lint issues

* Fix lint issues

* Fix lint issues

---------

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2023-09-20 14:36:20 +08:00
Chi-Hsuan Huang 2313667d81
Address CYS UI feedback 19 Sep (#40269)
* Direct user to the assembler hub automatically after saving

* Unset active state on color palette when user changes colors

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

* Remove unneed styles

* Fix color variation logic

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-09-20 12:52:22 +08:00
RJ b0ee77621f
add: cys ai font pairing (#40240)
* add: cys ai font pairing suggestion

* Move cys ai tests to test folder

* Update plugins/woocommerce-admin/client/customize-store/design-with-ai/prompts/fontPairings.ts

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

---------

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2023-09-20 12:26:15 +08:00
Sam Seay cff7ee6ccc
Add basic e2e setup and tests for the Assembler Hub (#40235) 2023-09-20 15:59:06 +12:00
RJ 10bb0cc822
fix/cys ui feedback 12 sep (#40155) 2023-09-20 10:47:05 +08:00
Barry Hughes 72f8943b6c
Regression test for `woocommerce_get_customer_details` ajax endpoint. (#40273)
* Regression test for `woocommerce_get_customer_details` ajax endpoint.

* Remove unnecesssary code manipulating customer selector.

* Clean-up test customer.
2023-09-19 16:03:52 -07:00
Dan Q 4470d9e1a4
Suppress second scrollbar on WooCommerce > Extensions pages (#40046) 2023-09-19 21:46:07 +01:00
louwie17 f9705a531b
Redirect to product editing page when product was still in auto draft (#40225)
* Redirect to product editing page when product was still in auto draft

* Make sure the prevent page does not show up when creating variations

* Add changelog and fix tests
2023-09-19 17:33:15 -03:00
Moon 8b32e47086
Redirect to Jetpack connect when jetpack-boost is selected (#40261)
* Redirect to Jetpack connect when jetpack-boost is selected

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-09-19 13:22:59 -07:00
louwie17 6337abc3c5
Add notice when variation prices are not set yet (#40281)
* Add notice dismissal and re-show upon validation

* Add support for notice actions

* Add changelogs

* Add set prices

* Fix build issues

* Add comment

* Replace additionalData with newData
2023-09-19 17:01:54 -03:00
Moon 35ed71f6ef
Remove core-profiler checks from the tests (#40260)
* Remove core-profiler check

* Fix broken test

* Skip onboarding wizard tests

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

* Change to trigger GH jobs

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-09-19 12:14:50 -07:00
Dan Q 9b62faed1a Merge branch 'trunk' into fix/wccom-18029-suppress-double-scrollbar 2023-09-19 20:02:53 +01:00
Dan Q b1cb7c9f3d
Improve visibility of .woocommerce-store-alerts notifications on WooCommerce > Extensions pages (#40043) 2023-09-19 19:03:50 +01:00
Barry Hughes cdc91c8ac1
Make is_checkout() description more accurate (#40258) 2023-09-19 10:49:51 -07:00
Dan Q f12fb99d9d Merge branch 'trunk' into fix/wccom-17944-reposition-notifications 2023-09-19 18:28:29 +01:00
Dan Q 0c8269c3b2 Merge branch 'trunk' into fix/wccom-18029-suppress-double-scrollbar 2023-09-19 18:28:09 +01:00
Ron Rennick 915350800b save hpos order data before clearing the order from cache 2023-09-19 14:10:35 -03:00
github-actions 6b7b8a3611 Add changefile(s) from automation for the following project(s): woocommerce 2023-09-19 17:05:53 +00:00
github-actions 98a765d4d8 Add changefile(s) from automation for the following project(s): woocommerce 2023-09-19 17:03:58 +00:00
Dan Q b9dbb526f2
Inconsequential change to get past blocked status checks / force re-test 2023-09-19 18:01:54 +01:00
barryhughes 2f3060ceb3 Changelog. 2023-09-19 09:29:14 -07:00
And Finally 6aa55f6334
In-App Marketplace: Update "no results" design for Extensions search (#40268) 2023-09-19 16:32:17 +01:00
And Finally e4d6933e26
In-app Marketplace: gracefully handle products with no vendorUrl (#40271) 2023-09-19 16:06:52 +01:00
Jorge Torres ba3e6229f5 Add changelog 2023-09-19 15:57:13 +01:00
Jorge Torres 463e095353 Add missing order type handling in HPOS sync 2023-09-19 15:57:09 +01:00
github-actions 451521bc05 Add changefile(s) from automation for the following project(s): woocommerce 2023-09-19 14:48:50 +00:00
Nestor Soriano e0c5f8acc1
Fix: order metadata changes from admin not applied with HPOS active.
When an order is open in admin and changes are made to custom field
keys or values, or values are added in "Add New Custom Field",
and "Update" in the order is clicked (without having clicked "Update"
in the modified fields or "Add Custom Field"), the field changes
should be applied to the order anyway. That was happening when
the posts table is authoritative but not when the orders table is.
2023-09-19 16:45:40 +02:00
Dan Q 59cb9fad48 Appease linter 2023-09-19 14:46:59 +01:00
Dan Q 9849ade9fa Correct quote style 2023-09-19 14:41:55 +01:00
Dan Q 98ac373b1b Correct CSS for image size! 2023-09-19 14:40:17 +01:00
Jorge A. Torres 02e6f07df7
Add search results subtitle to HPOS list table (#40270)
* Add search results subtitle to HPOS list table.

* Add changelog
2023-09-19 13:41:12 +02:00
Chi-Hsuan Huang 0b7aee458f
Implement customize your store task completion logic (#40267)
* Mark CYS task completed when clicking done button

* Mark CYS task completed after switching theme

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-09-19 19:02:02 +08:00
Dan Q 96cbb30a76 Appease linter 2023-09-19 11:52:13 +01:00
github-actions de8535ae7c Add changefile(s) from automation for the following project(s): woocommerce 2023-09-19 10:49:33 +00:00
Dan Q dcd08ac1b6 Apply empty string to URL in event that vendorUrl is absent 2023-09-19 11:39:01 +01:00
Dan Q 8ee8ff750b Suppress category selector only on no-results, not all search pages 2023-09-19 11:27:37 +01:00
Dan Q 078e178997 Suppress category selector when showing search results 2023-09-19 10:58:18 +01:00
Kyle Nel 5e88b001fa
Update wording on Marketplace footer (#40251)
* Update wording on Marketplace footer
* Add changefile(s) from automation for the following project(s): woocommerce

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-09-19 11:39:09 +02:00
Dan Q 9c354c7b8b Manually create changelog file 2023-09-19 10:04:05 +01:00
Jorge A. Torres fd6da30df2
Properly convert shorthand date queries in local time to UTC (#40146)
- Allow overriding of precision in `OrdersTableQuery::date_to_date_query_arg()
- Shorthand date queries should either date-only or timestamp
- Properly convert shorthand date queries from local to UTC for querying
- Add utility function to convert local-time args to UTC
- Simplify date args processing
- Drop no longer necessary params from date_to_date_query_arg()
- Dates in orders list table filter should be local time
2023-09-19 11:03:05 +02:00
Dan Q d23ac3ed10 Appease linter 2023-09-19 09:54:01 +01:00
RJ 1b37042d55
add: color palette ai text completion call (#40237)
* add: color palette ai text completion call

* reorganised for allowing more prompts

* lint fix

* moved tests and fixed version
2023-09-19 16:41:52 +08:00
Dan Q 3848b43052 Add width and height to image to reduce CLS 2023-09-19 09:34:05 +01:00
Dan Q 39caeb1c51 Ensure text wraps at an appropriate point 2023-09-19 09:33:49 +01:00
Dan Q e599390b9c Ensure new image centered 2023-09-19 09:33:40 +01:00
Dan Q e22337d906 Switch SVG for new one 2023-09-19 09:33:21 +01:00
github-actions 5293dbeb62 Add changefile(s) from automation for the following project(s): woocommerce 2023-09-19 07:33:08 +00:00
Kader Ibrahim S bb2826ac9a Sets the correct URL for the marketing KB API endpoint. 2023-09-19 12:18:45 +05:30
Moon f106ca16b9
Customize Your Store - Homepage sidebar (#40140) 2023-09-19 13:54:19 +08:00
Chi-Hsuan Huang e1f9264bb6
Add tracks to CYS assembler-hub and hide pages sidebar screen (#40156)
* Add tracks to assembler-hub and hide add pages menu

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

* Track sidebar menu item click event

* Update tour tracks

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-09-19 11:37:46 +08:00
nigeljamesstevenson 6b8e22c45e
Include plugin test results in Slack summary for daily tests (#39838) 2023-09-19 00:24:34 +01:00
David Anderson aad835a497
Make is_checkout() description more accurate 2023-09-18 21:51:53 +00:00
Veljko V a23e975eaa
Add new E2E test for Shopper Product-related flows (#40132)
* Add new E2E test to cover Shopper Product page

* Make product-related tests granular
2023-09-18 14:18:29 -07:00
Veljko V debb07d64d
Add new E2E test to cover Shopper My Account Addresses (#40114)
Add new E2E test to cover my account addresses
2023-09-18 13:44:05 -07:00
Ron Rennick b292cf547a
Update Action Scheduler to 3.6.3 (#40147) 2023-09-18 16:14:05 -03:00
nigeljamesstevenson 2d0fd11056
Remove Purchase task from onboarding task list (#40121) 2023-09-18 14:51:44 +01:00
github-actions 606f0ebaad Add changefile(s) from automation for the following project(s): woocommerce 2023-09-18 13:26:04 +00:00
Dan Q cddf65ad1f
Attempt to trigger auto changelog again 2023-09-18 14:17:41 +01:00
Dan Q e057e14239
Edit changelog file to match format of that seen elsewhere 2023-09-18 13:48:38 +01:00
Dan Q 0e88160fa3 Manually add changelog entry (don't know why this didn't get created from the PR) 2023-09-18 13:44:02 +01:00
Dan Q da7755a7c1 Merge branch 'trunk' into fix/wccom-18029-suppress-double-scrollbar 2023-09-18 13:34:32 +01:00
Chi-Hsuan Huang 8ce2611326
Add track events to customize store transitional page (#40143)
* Add cys transitional page tracks

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

* Update plugins/woocommerce-admin/client/customize-store/transitional/index.tsx

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>

* Update plugins/woocommerce-admin/client/customize-store/transitional/index.tsx

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>

* Update plugins/woocommerce-admin/client/customize-store/transitional/index.tsx

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>

* Fix tests

* Update query step for transitional step

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2023-09-18 19:01:12 +08:00
github-actions 2720fe0993 Add changefile(s) from automation for the following project(s): woocommerce 2023-09-18 09:57:25 +00:00
Dan Q d339e9ff5b Rather than adding border, add color to border of search box
This prevents the "jiggle" issue.
2023-09-18 10:47:12 +01:00
Moon e3ccb47b19
Customize Your Store - Footer (#40136)
* Update sidebar text

* Add to query pattern and blocks

* Move EntityProvider to access blocks from the sidebars

* Filter footer blocks

* Implement highlight effect

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

* Update block list

* Use usePatterns

* Replace the last block instead of checking slug value

* Update block list

* Update footer sidebar

* Update sidebar item style

* Fix preview frame

* Update header and footer sidebar

* Remove console

* Sort patterns

* Fix item border style

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2023-09-18 17:29:29 +08:00
Kyle Nel e1d72bde0a
Marketplace: Add the query parameters to product page URLs (#39901)
* Marketplace: Add the right URL parameters to product URLs

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

---------

Co-authored-by: raicem <unalancem@gmail.com>
Co-authored-by: github-actions <github-actions@github.com>
2023-09-18 11:10:56 +03:00
Adrian Duffell 745dfe44a6
Add Tracks event for themes screen view (#40193)
* Add Tracks event for themes screen view

* Add changelog

* Use the load-themes.php hook
2023-09-18 15:19:34 +08:00
louwie17 9ea83d6382
Fix description styling and remove use of `woocommerce-page` in admin pages (#40218)
* Move the header data to the body as the header prop does not exist anymore

* Remove explicit setting of __unstableResolvedAssets given get_block_editor_settings already does this

* Remove use of woocommerce-page class in admin to avoid theme conflicts

* Add changelogs

* Revert change for quick test

* Two additional tweaks for admin related styling
2023-09-15 17:06:42 -03:00
Fernando Marichal 1a10ea78ce
Add variable product experiment (#40177)
* Check with Explat experiment toggling

* Enable `product-variation-management` feature

* Add changelog

* Refactor useCreateProductByType

* remove empty line
2023-09-15 16:59:00 -03:00
github-actions[bot] 215ae6cdf6
Delete changelog files based on PR 40221 (#40223)
Delete changelog files for 40221

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-09-15 14:38:28 -05:00
jonathansadowski 73d18d45eb
Do not send user meta data back in `woocommerce_get_customer_details` (#40221)
* Do not send user meta data back in `woocommerce_get_customer_details`

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

* Update plugins/woocommerce/changelog/fix-meta-data-customer-details

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

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-09-15 14:31:53 -05:00
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 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
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 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
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