Commit Graph

64705 Commits

Author SHA1 Message Date
github-actions[bot] 7be480d24c
Cherry pick 50608 into release/9.2 (#50647)
* Exclude privacy page from the store pages -- it is a core page (#50608)

* Exclude privacy page from the store pages -- it is a core page

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

* Remove privacy page deletion in unit test

---------

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

* Prep for cherry pick 50608

---------

Co-authored-by: Moon <moon.kyong@automattic.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-08-13 20:08:46 +01:00
github-actions[bot] 79d293a127
Cherry pick 50496 into release/9.2 (#50645)
* Clear global_unique_id when restoring a product with an existing global_unique_id (#50496)

* Clear global_unique_id when restoring a product that doesn't have an unique id

* Check if product exists before calling methods

* Prep for cherry pick 50496

---------

Co-authored-by: Nathan Silveira <nsschneider1@gmail.com>
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-08-13 18:28:54 +01:00
github-actions[bot] 8bd10b29ea
Cherry pick 50592 into release/9.2 (#50602)
* Fixed the order of elements on the Order Confirmation screen (#50592)

* Fixed the order of elements on the Order Confirmation screen

* Added changelog

* Linting.

* Add wrapper around account notices

---------

Co-authored-by: Mike Jolley <mike.jolley@me.com>

* Prep for cherry pick 50592

---------

Co-authored-by: Paulo Arromba <17236129+wavvves@users.noreply.github.com>
Co-authored-by: Mike Jolley <mike.jolley@me.com>
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-08-13 09:59:29 -07:00
github-actions[bot] 58b59ff8e1
Cherry pick 50507 into release/9.2 (#50561)
* Manually init template registry and controller for non-block themes (#50507)

* Manually init template registry and cotnroller when get_query_template returns nothing

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

* Validate template before including it

* Move class registration to init method

* Remove container registration from coming soon handler

* Lint

* Moved registration to register_dependencies

* Change blocks init condition to only when it's not initialized

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

* Prep for cherry pick 50507

---------

Co-authored-by: Moon <moon.kyong@automattic.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-08-09 11:04:56 -07:00
github-actions[bot] fc3bc34b77
Cherry pick 50410 into release/9.2 (#50476)
* Customer Account - Maintain the size of the icon in smaller screens (#50410)

* Customer Account - Maintain the size of the icon in smaller screens

* Hide overflow text

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

---------

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

* Prep for cherry pick 50410

---------

Co-authored-by: Alba Rincón <albarin@users.noreply.github.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-08-08 13:08:54 +01:00
github-actions[bot] 1495cc0ccd
Cherry pick 50138 into release/9.2 (#50456)
* Fix new account notice not showing in Checkout block. (#50138)

* Correctly cast the account creation nag option

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

---------

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

* Prep for cherry pick 50138

---------

Co-authored-by: Seghir Nadir <nadir.seghir@gmail.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-08-07 22:58:19 +02:00
github-actions[bot] 302b50cf54
Cherry pick 50200 into release/9.2 (#50418)
* Use admin password reset link on admin login screen (#50200)

* Use admin password reset link on admin login screen

* Add changelog

* Take a different approach that’s compatible with JN

* Update code comment

* use existing variable

* Update tests

* Lintfix

* Change to alternative aproach for detecting admin login form

* Whitespace

* Update test

* Lint fix

* Prep for cherry pick 50200

---------

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-08-06 10:45:49 -07:00
Jorge A. Torres 91afd71b96
Clean up changelog in readme.txt (#50376) 2024-08-05 23:39:24 +01:00
Jorge A. Torres 711605842c
Prep release/9.2 for 9.2 cycle (#50361)
Prep release/9.2 for 9.2 cycle with version bump to 9.2.0-rc.1
2024-08-05 17:02:25 +01:00
github-actions[bot] 4ea1b3332e
Cherry pick 50126 into release/9.2 (#50356)
* Use UTM parameters to link Tracks events: CTA from connect notice and successful site connection (#50126)

Pass UTM parameters to get events from clicking "connect" notice to site being connected

* Prep for cherry pick 50126

---------

Co-authored-by: Akeda Bagus <akeda.bagus@automattic.com>
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-08-05 12:42:30 +01:00
github-actions[bot] e56a7ddc20
Cherry pick 50180 into release/9.2 (#50242)
Product Editor: Fix shipping dimensions length field label (#50180)

Correct label of length field

Co-authored-by: Matt Sherman <matt.sherman@automattic.com>
2024-08-01 16:07:21 -04:00
github-actions[bot] 159698b308
Cherry pick 50236 into release/9.2 (#50237)
* Prevent creation of password-protected coupons (#50236)

* Warn when creating password-protected coupons

* Add changelog

* Prep for cherry pick 50236

---------

Co-authored-by: Jorge A. Torres <jorge.torres@automattic.com>
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-08-01 11:43:00 -07:00
Barry Hughes 53809062f6
Remove changelog file. (#50105) 2024-07-30 10:38:24 +01:00
Barry Hughes 14db3c823d Update stable tag. 2024-07-29 13:13:08 -07:00
Barry Hughes cd1bd17021 Add changelog entry (cherry-picking tool failed to bring it across). 2024-07-29 12:47:06 -07:00
nigeljamesstevenson a66da660f7
Cherry-pick #363 into release/9.2 (#50100)
* XSS vulnerability on various unescaped attributes

* escape more blocks

* Fix misplaced json encode flags

* Add escaping to the block names

* Update changelog message

---------

Co-authored-by: Luigi Teschio <gigitux@gmail.com>
Co-authored-by: roykho <roykho77@gmail.com>
2024-07-29 12:15:03 -07:00
github-actions[bot] 542c675963
Cherry pick 50076 into release/9.2 (#50096)
- Add `admin_install_timestamp` in `WC_Tracker` (#50076) 

Co-authored-by: Miguel Pérez Pellicer <5908855+puntope@users.noreply.github.com>
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-07-29 18:50:58 +02:00
github-actions[bot] 05cf21536d
Cherry pick 49929 into release/9.2 (#50094)
* Add validation to select fields and add placeholder option to additional fields API (#49929)

* Add validation and empty value to select components

* address feedback

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

* remove console log

* Update plugins/woocommerce-blocks/docs/third-party-developers/extensibility/checkout-block/additional-checkout-fields.md

Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>

* Update plugins/woocommerce-blocks/docs/third-party-developers/extensibility/checkout-block/additional-checkout-fields.md

Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>

* remove test

* Fix tests

* also move select to parent

* fix tests

* add empty enum to schema

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>

* Prep for cherry pick 49929

---------

Co-authored-by: Seghir Nadir <nadir.seghir@gmail.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-07-29 18:43:06 +02:00
nigeljamesstevenson 289e6b9652
Cherry pick #351 into release/9.2 (#50072)
* XSS vulnerability on various unescaped attributes

* escape Product Filter Stock status

* escape more blocks

* escape more blocks

* escape more blocks

* add changelog

* update changelog

---------

Co-authored-by: Luigi Teschio <gigitux@gmail.com>
2024-07-29 13:15:09 +01:00
WooCommerce Bot 36cdd4f46b Update the readme files for the 9.2 release 2024-07-25 00:04:44 +00:00
WooCommerce Bot e914dda879 Delete changelog files from 9.2 release 2024-07-25 00:04:44 +00:00
WooCommerce Bot 9d3de62408 Prep release/9.2 for 9.2 cycle with version bump to 9.2.0-beta.1 2024-07-25 00:03:34 +00:00
Alexandre Lara 6000a1e83c
[Experimental] Product Filters Redesign: Create the template part (#49692)
* Add Product Filters template part

* Improve Product Filters template part description

* Hide Product Filters block from the inserter

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

* Add E2E tests

* Fix lint error

* Fix lint error

* add: register variation for unmodified template part

We should move this to abstract class later.

* Fix lint error

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Tung Du <dinhtungdu@gmail.com>
2024-07-24 17:36:18 -03:00
Alba Rincón 3fab8e7519
CYS - Update the intro pages for different type of themes (#49910)
* CYS - Revert the button copy customize the TT4 theme

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

* CYS - Add banner for block themes

* Add banner for block themes

* Fix tests

* Fix tests

* Fix intro banners

* Add modal to the use store designer

* Fix tests

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

* Fix lint errors

* use sendEvent instead of redirect

* fix lint error

* fix logic on ai flow

* fix build

* improve check

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Luigi Teschio <gigitux@gmail.com>
2024-07-24 18:09:12 +02:00
Thomas Roberts df8d5b751e
Revert "[Enhancement]: Add option to show price on the place order button" (#49899)
* Revert "[Enhancement]: Add option to show price on the place order button (#4…"

This reverts commit a71fb4d7a6.

* Add changelog
2024-07-24 18:08:05 +02:00
Fernando Marichal 4e368a1b67
Add readme for validations (#49723)
* Add readme for validators

* Add changelog

* Add docs manifest

* Fix product-editor.md

* Fix readme
2024-07-24 13:02:02 -03:00
Sam Seay 137a2e8aa6
Checkout: Add placeholder option to country and state select, add error validation (#49616)
* WIP

* Add empty option for state as well

* Add client-side validation to country select inputs

* Add validation messages for state.

* Clean up redundant destructuring.

* Fix up the validation logic, fix bug where empty select was shown in some cases.

* Remove unused import

* Use import aliases instead of large relative paths

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

* Fix a typo

Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>

* use SelectOption type

* Also handle when address changes, because we shouldnt validate state when there is an address change

* adjust validation to handle any address change, not just country. translate field validations and use lowercase

* add a lowercase label for the country select as well

* Fix an issue where scroll to would not scroll to invalid select

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>
2024-07-24 17:59:15 +02:00
Vladimir Reznichenko 474b7624d0
Monorepo: rework deps patching in favour of built-in pnpm functionality (#49892)
* Monorepo: added pach.

* Monorepo: added patch.

* Monorepo: added patch.

* Monorepo: added patch.

* Monorepo: added patch.

* Monorepo: cleanup.

* Monorepo: cleanup.

* Monorepo: changelog entry.
2024-07-24 08:38:32 -07:00
Gabriel Manussakis b796b90d68
[Accessibility] Add address title to edit/add buttons on My Account page (#49171)
* Add address title to edit/add buttons on my account

* Add chengelog file

* Bump my-address template version

* Use placeholder in the edit/add address translation

* Replace sprintf with printf
2024-07-24 16:15:08 +01:00
Maikel Perez 4689a09ec3
Create combobox-control (#49691)
* Create combobox-control

* Exporting the combobox control

* Integrate the combobox control into the custom field names component

* Remove some non needed styles

* Add changelog file

* Fix comment text typo

Co-authored-by: louwie17 <lourensschep@gmail.com>

* Fix linter errors

---------

Co-authored-by: louwie17 <lourensschep@gmail.com>
2024-07-24 11:13:24 -04:00
Tung Du ac5b051fc2
Fix: Make woocommerce/product-price available in the Single Product template (#49906)
* fix: register woocommerce/product-price using registerBlockSingleProductTemplate

* fix: remove unnecessary blockMetadata

* chore: changelog

* Enable Product Price in post editor

---------

Co-authored-by: Karol Manijak <20098064+kmanijak@users.noreply.github.com>
2024-07-24 15:58:20 +02:00
Mino e39da623cf
enhancement: making tooltips message be selected based on order status slug. changes to get_order_status_label filter (#49812)
* enhancement: making tooltips message be selected based on order status. passes order object in woocommerce_get_order_status_labels filter for more personalized tooltips.

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

* fix: change incorrect keys of order status in order_status array

* remove duplicate changelog file

* fix: linting issues

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2024-07-24 13:04:59 +00:00
Tom Cafferkey 193f4e47bd
CYS: Remove strong tags from patterns (#49901)
* Remove strong tags from patterns

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

* remove bold header

---------

Co-authored-by: Luigi Teschio <gigitux@gmail.com>
Co-authored-by: github-actions <github-actions@github.com>
2024-07-24 13:57:42 +01:00
Tom Cafferkey 1372a4bc8c
CYS: Update Patterns and Fonts usage tracking modal content (#49911)
* Update content within modal

* Changelog
2024-07-24 12:55:25 +00:00
Karol Manijak 0824b7e65d
Product Collection: Revert rename of "Sync with current query" option (#49907)
* Revert renaming Sync with current query option

* Add changelog
2024-07-24 14:17:37 +02:00
Adrian Moldovan d40b2ced59
[ci] Fix automate team reviewer workflow (#49904) 2024-07-24 13:23:53 +02:00
Alba Rincón 2a00c2f163
Minimal Header - Add the customer account block to fix the spacing (#49893)
* Add the customer account block to control the spacing

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-07-24 12:14:45 +02:00
Luigi Teschio 83ab1f5351
CYS: Ensure that the button in the Intro page redirects to the Customizer when a classic theme is enabled (#49804)
* CYS: Ensure that Customizer redirect is always enabled when a classic theme is enabled

* CYS: Ensure that the button in the Intro page redirects to the Customizer when a classic theme is enabled

* clean up logic

* add site preview

* mark CYS as complete when user saves customizer changes

* improve comment

* fix unit test

* fix unit test

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-07-24 12:07:42 +02:00
Karol Manijak dace7ba296
Product Collection: add control to toggle whether block is filterable in non archive context (#49627)
* Add syncWithFilters attribute to Product Collection

* Add SycnWithFilters Inspector Control to PC

* Minor import adjustments

* Move the controls to Inherit as they share the same labels

* Rename the attirbute to filterable

* Hide control for collections

* Consume the filterable

* Consume filterable attribute so it enables the filtering

* Bring back file format

* Bring back filterable

* Move filterable from attribute to query

* Improve checks

* Fix incorrent function name

* Add changelog

* Set the default filterable value on insert

* Update test selector

* Add E2E tests to #49627 (#49715)

* Remove unnecessary call to create new post

* Fix "Use page context" control tests

* Fix post ↔ template collection sync test

* Fix non-thenable linter errors

* Extend the "Use page context" default setting test

* Add test for filtering in non-archive context

* Add test for combining editor and front-end filters

* Fix lint

* Update plugins/woocommerce-blocks/assets/js/blocks/product-collection/edit/inspector-controls/inherit-query-control.tsx

Co-authored-by: Manish Menaria <the.manish.menaria@gmail.com>

* Improve query properties access

* Rename inherit-query-control to use-page-context-control to better depict its purpose

* Lint fix

---------

Co-authored-by: Bart Kalisz <bartlomiej.kalisz@gmail.com>
Co-authored-by: Manish Menaria <the.manish.menaria@gmail.com>
2024-07-24 11:51:53 +02:00
Tom Cafferkey e6d3890bdd
CYS: Update usage tracking content (#49894)
* Update opt in content

* Changelog
2024-07-24 08:52:56 +00:00
Chi-Hsuan Huang f9598fbed1
Deprecate and create new coming soon block version (#49786)
* Migrate coming soon block

* Update coming soon patterns

* Enqueue styles

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

* Fix entire site block

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-07-24 15:12:38 +08:00
Chi-Hsuan Huang ef1a26e69c
Fix the undefined array key "name" warning in ComingSoonRequestHandler.php when the font name is not set (#49795)
* Fix undefined array key "name" warning in ComingSoonRequestHandler.php when font name is not set

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-07-24 09:55:19 +08:00
mujuonly 9fbf143df9
Fix warning: Attempt to read property "order_awaiting_payment" on null (#45821) 2024-07-24 03:09:44 +02:00
Akeda Bagus d5dcf91ee2
Ensure expiration-related modal is shown to the installed subscriptions (#49747)
Ensure expiration-related modal is shown to the installed subscriptions
2024-07-24 08:02:55 +07:00
Ron Rennick 078aa72d50
remove pnpm i from pnpm clean script (#49610)
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2024-07-23 18:18:24 -03:00
Tomek Wytrębowicz 8fb0953204
Fix flaky orphaned refund test (#49741)
Make sure the `date_paid` -> `date` -> order is deterministic.

Fixes #49630

Co-authored-by: github-actions <github-actions@github.com>
2024-07-23 21:44:23 +02:00
Vladimir Reznichenko 4ae9dee2e5
Monorepo: rework deps patching in admin plugin for better Webpack performance. (#49703)
* Monorepo: rework deps patching in admin plugin.

* Monorepo: changelog entry.
2024-07-23 16:27:42 -03:00
Alba Rincón efa506afdb
CYS - Schedule fetching patterns only once an hour (#49754)
* Schedule fetching patterns only one an hour

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

* Add notice

* Fix lint error

* Update copy

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-07-23 21:03:26 +02:00
github-actions[bot] 37441c6c52
Delete changelog files based on PR 49797 (#49809)
Delete changelog files for 49797

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-07-23 19:12:26 +01:00
Thomas Roberts afe245fdce
Make the address 2 line visible when a value is autofilled (#49730) 2024-07-23 16:44:20 +01:00