Commit Graph

63297 Commits

Author SHA1 Message Date
Thomas Roberts f26892a646
Wait for notice text to be visible instead of checking data store 2024-04-02 11:42:36 +01:00
Thomas Roberts b47ddcceab
Move comment above condition 2024-04-02 11:38:06 +01:00
Thomas Roberts 42462d9f13
Enter edit mode in canvas instead of clicking 2024-04-02 11:38:06 +01:00
Thomas Roberts 3fa57b7781
Rename setTitle to setLocalPickupTitle in e2e utils 2024-04-02 11:38:05 +01:00
Thomas Roberts e6aae8c195
Remove unnecessary repeated e2e teardown tasks 2024-04-02 11:38:05 +01:00
Thomas Roberts 03d1dfb035
Add spacing 2024-04-02 11:38:05 +01:00
Thomas Roberts 949d2d4a57
Update function return type to be explicitly null 2024-04-02 11:38:04 +01:00
Thomas Roberts 01dc8a0873
Fix further lint errors 2024-04-02 11:38:03 +01:00
Thomas Roberts 8bab404e99
Fix lint errors 2024-04-02 11:38:03 +01:00
Thomas Roberts bfa2601118
Remove unused import 2024-04-02 11:38:02 +01:00
Thomas Roberts 5465b075be
Add changelog 2024-04-02 11:38:02 +01:00
Thomas Roberts 77f27c2507
Add e2e test for local pickup title setting 2024-04-02 11:38:01 +01:00
Thomas Roberts 270e566e65
Wait for snackbar confirmation when saving local pickup settings 2024-04-02 11:38:00 +01:00
Thomas Roberts ae50cac705
Add setTitle function to localPickupUtils 2024-04-02 11:37:59 +01:00
Thomas Roberts a2055f6079
Add defensive checks and handle site editor and page editor 2024-04-02 11:37:59 +01:00
Thomas Roberts 256da8525b
Update localPickupText attribute from wcSettings in editor 2024-04-02 11:37:59 +01:00
Thomas Roberts 1b578c998f
Get localPickupText from wcSettings in frontend block 2024-04-02 11:37:58 +01:00
Thomas Roberts 1ec1e4e360
Add update_local_pickup_title that runs on save
This will update the core setting when the local pickup text is changed.
2024-04-02 11:37:57 +01:00
Thomas Roberts 76cc3bc7eb
Add find_local_pickup_text_in_checkout_block function
This recurses through the inner blocks and tries to find the local pickup text.
2024-04-02 11:37:57 +01:00
Thomas Roberts e3d26743ff
Add localPickupText to asset_data_registry on checkout block 2024-04-02 11:37:56 +01:00
Luigi Teschio 81bef3e641
CYS - E2E tests: add logo picker E2E tests (#45999)
* CYS - E2E tests: add logo picker E2E tests

* fix flakiness

* use as second parameter

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

* Add changes to tests projects on package.json

* CYS - E2E tests: fix flaky assembler-hub test

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

* fix flakiness

* add waitUntil

* improve logic

* fix build error

* try now

* fix unit test

* fix flakiness

* fix logic

* improve tests

* add more tests

* use .toBe

* add documentation

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Adrian Moldovan <3854374+adimoldovan@users.noreply.github.com>
2024-04-02 11:40:32 +02:00
Thomas Roberts 68c6ec6100
Prevent orders being placed when no shipping options are available (#46026)
* Prevent orders being placed with invalid shipping options

* Add changelog

* Add shipping_disable_flat_rate fixture function

* Test checking out with no valid shipping methods selected

* Update tests to add a default shipping method

* Update test_checkout_invalid_shipping_method to disable method

* If shipping methods is null, return an array with an empty string inside

* Replace WC session in tests that rely on setting cookies

* Add MockSessionHandler to handle test cases using cookies

* Add docblock comment

* Expect shipping validation to fail if chosen methods are null

* Add shipping method before testing validate_selected_shipping_methods

* Update MockSessionHandler to handle caching

* Show error when test fails

* Default the chosen shipping methods to an empty array if not set

* Split checks for needs_shipping and valid shipping apart

* Remove unnecessary session set and total calculation

* Fix lint errors

* Init session in each test

* Reimplement required methods (those that are private or use cookies)

* Update phpcs ignore comment to be inline

* Prevent error when accessing unset variable in mock cache

* Fix lint error
2024-04-02 11:03:14 +02:00
Luigi Teschio c0d0596574
CYS - E2E tests: fix flaky assembler-hub test (#46030)
* CYS - E2E tests: fix flaky assembler-hub test

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

* fix flakiness

* add waitUntil

* improve logic

* fix build error

* try now

* fix unit test

* fix flakiness

* fix logic

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-02 08:35:15 +00:00
Nathan Silveira e2eaa55b7d
Apply filter to add metadata for generated variations (#45953)
* Add meta_data parameter in generateProductVariations

* Apply filter to get meta_data to generate variations

* Add meta_data parameter in generate variations endpoint

* Update name and add documentation

* Fix useEntityRecord in blockEditor
2024-04-02 05:25:01 -03:00
RJ 7765984bf3
add/lys hub sidebar (#46056)
* changed LYS task id to hyphens for consistency with the other tasks

* add: lys hub sidebar

* ling

* lint2

* fixed sidebar title back button

* lint

* missed i18n

* sidebar title css

* unnecessary mutate

* hide test order toggle for now
2024-04-02 07:16:53 +00:00
Karol Manijak 5d47c769a4
Recognise if Product Collection is located inside Cart or Checkout blocks (#46059)
* Recognise if Product Collection is inside Cart or Checkout blocks

* Upgrade priority block recognition over templates

* Update the comments to better depict the flow

* Add changelog

* Simplify the logic
2024-04-02 09:05:17 +02:00
Moon 88c408daa5
Add coming soon page banner on the frontend (#46096)
* Add coming soon page banner on the frontend

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

* Check for shop_manager

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-01 20:25:54 -07:00
Moon 414a26e4ea
Add icons to ellipsis menu on status badge (#46098)
* Add icons to ellipsis menu -- lys

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-01 19:58:45 -07:00
Moon dabee2d37f
Copy update for coming soon badge (#46097)
* Copy update for coming soon badge

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-01 19:58:33 -07:00
Moon 96bc26287f
Site visibility settings copy changes (#46095)
* Site visibility settings copy changes

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-01 19:32:12 -07:00
Moon 06780e4c3b
Make sure we are in admin area when using current_screen() (#46093)
* Make sure we are in admin area when using current_screen()

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

* Check admin in preload_settings

* Remove unwanted changes from a different branch

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-01 17:11:44 -07:00
Maikel Perez 75a563df58
Redirect to the edit product page after changing the product type and publishing it (#46092)
* Redirect to the edit product page after changing the product type and publishing it

* Add changelog file
2024-04-01 14:43:35 -03:00
Ron Rennick 0b376ee6b3
clean up woocommerce-blocks package.json (#45230)
* clean up woocommerce-blocks package.json

* update from feedback

* move entry to original location

---------

Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2024-04-01 14:27:25 -03:00
Fernando Marichal 55f878021e
Fix Home screen grey background (#45895)
* Add is-product-editor class to body

* Add changelog

* Move changelog

* Fix lint
2024-04-01 09:50:25 -03:00
Veljko V 48fe28b2fd
Add E2E test for inserting Woo patterns to page (#46066) 2024-04-01 13:51:08 +03:00
Veljko V 7edd2dff14
Add new e2e test inserting woo blocks (#45896) 2024-04-01 12:52:51 +03:00
Manish Menaria a1a0128904
Product Collection: fetch all products for hand-picked products control (#45931)
* Fetch all products for hand-picked products control

This commit modifies the `getProducts` function usage within the Hand-Picked Products control, aiming to fetch all products regardless of catalog size.

The change involves explicitly setting `queryArgs` to include `per_page: 0` in the function call. This adjustment overrides the default behavior based on the `isLargeCatalog` condition, ensuring that all available products are fetched from the Store API for selection within the control.

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-01 14:17:12 +05:30
RJ aeedcc0c88
changed LYS task id to hyphens for consistency with the other tasks (#46055) 2024-04-01 11:46:46 +08:00
Thomas Roberts 0614d9233c
Fix changelog typo for 46019 (#46080) 2024-03-29 18:25:39 -07:00
Vedanshu Jain 51fd34350c
Add filter hooks for HPOS order search to support custom search filters (#45954)
This allows adding new order search methods, or remove existing ones via filter.
2024-03-29 11:39:45 -07:00
Roy Ho e3b1dd6a10
Remove clickable cursor on post title (#45998)
* Remove clickable cursor on post title

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

* Update plugins/woocommerce-blocks/assets/js/blocks/product-collection/edit/editor.scss

Co-authored-by: Karol Manijak <20098064+kmanijak@users.noreply.github.com>

* Add missing semicolon

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Karol Manijak <20098064+kmanijak@users.noreply.github.com>
2024-03-29 08:35:01 -07:00
Luigi Teschio 6e87869200
[Blocks - E2E] Update WordPress version (#46053)
* update WordPress version

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-29 16:11:33 +01:00
Oleksandr Aratovskyi 14cd6e6dfd
Remove ToS acceptance in WCPay banner and promotions JSON (#46003)
* Remove ToS acceptance in WCPay banner and promotions JSON

* Add changefile(s) from automation for the following project(s): @woocommerce/onboarding, packages/php/remote-specs-validation

* Add line break in banner to look nicer

* Center banner content

* Style banner for mobile version

* fix js test to use another block (previous one no longer exist)

* Add changefile(s) from automation for the following project(s): @woocommerce/onboarding, packages/php/remote-specs-validation, woocommerce

* Add comment to css

---------

Co-authored-by: oaratovskyi <oleksandr.aratovskyi@automattic.com>
Co-authored-by: github-actions <github-actions@github.com>
2024-03-29 14:59:29 +02:00
Niels Lange cad1aa6c2b
Ensure that each <CheckboxControl> component has a unique ID (#45655)
* Ensure that each <CheckboxControl> component has a unique id

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

* Optimise setup and teardown settings

* Wrapping setup and teardown in act()

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-29 12:46:13 +01:00
Thomas Roberts dbf0938fdd
Fix styling bug with saved payment methods in Checkout block (#46019) 2024-03-29 02:30:55 -07:00
Moon 145d75a08f
Add private link for LYS (#45915)
* Add private link

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

* Use useCopyToClipboard and remove label click behavior

* Preload settings for site visibility

* Default to live when woocommerce_coming_soon option is not available

* Remove use of classnames -- no longer needed

* Lint fixes

* Lint fixes

* Remove changes for label click behavior -- we will work on it in a separate PR

* Remove unused import

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-29 05:08:46 +00:00
Ivan Stojadinov 56ca4e3f3c
Delete changelog files based on PR 45892 (#46048)
Delete changelog files based on PR #45892
2024-03-28 17:46:14 +01:00
github-actions[bot] 171b5cd941
Delete changelog files based on PR 45962 (#46043)
Delete changelog files for 45962

Co-authored-by: WooCommerce Bot <no-reply@woo.com>
2024-03-28 13:59:23 +01:00
github-actions[bot] f0fa603bb7
Delete changelog files based on PR 45981 (#46041)
Delete changelog files for 45981

Co-authored-by: WooCommerce Bot <no-reply@woo.com>
2024-03-28 13:56:56 +01:00
github-actions[bot] b704d96904
Delete changelog files based on PR 45939 (#45993)
Delete changelog files for 45939

Co-authored-by: WooCommerce Bot <no-reply@woo.com>
2024-03-28 13:08:49 +01:00