woocommerce/plugins/woocommerce-blocks/assets/js/blocks/product-collection
Karol Manijak 5b420159cb
Product Collection: disable "Sync with current query" option for 2nd+ block on archive (#44577)
* Refactor store usage

* Prepare function resolving inherit property for additional check

* Add logic to disable sync with query if there's already one Product Collection on archive that does that

* Add changelog

* Cover the post editor case

* Add E2E test for that and small refactor in tests

* Remove duplicated import

* Fix lint problems

* Fix typo in test description

Co-authored-by: Alexandre Lara <allexandrelara@gmail.com>

* Replace confusin abbreviation with other description

* Update the logic to be more robust and covering also the case where Product Collection blocks are nested

* Add issue reference to the comment

* Add eslint disable before ts-ignore

---------

Co-authored-by: Alexandre Lara <allexandrelara@gmail.com>
2024-02-19 17:51:42 +01:00
..
collections Product Collection: disable "Sync with current query" option for 2nd+ block on archive (#44577) 2024-02-19 17:51:42 +01:00
edit [Product Collection] Add unique ID attribute (#43314) 2024-01-18 15:30:57 +05:30
inner-blocks/no-results New flow of adding Product Collection and basic set of Collections (#42696) 2023-12-27 11:07:27 +01:00
variations Restructure Product Collection editor files (https://github.com/woocommerce/woocommerce-blocks/pull/11981) 2023-12-06 15:50:24 +01:00
block.json Product Collection: Make attributes available in rest_product_query hook (#44150) 2024-02-12 14:15:24 +05:30
constants.ts Product Collection: Make attributes available in rest_product_query hook (#44150) 2024-02-12 14:15:24 +05:30
frontend.tsx Improve Accessibility in Product Collection Navigation (#44599) 2024-02-19 11:35:14 +05:30
icon.tsx Foundation of New Product Collection Block (https://github.com/woocommerce/woocommerce-blocks/pull/9352) 2023-05-15 08:51:49 +00:00
index.tsx Fix: Enable Pagination Block Visibility in Product Collection Block (#43132) 2023-12-29 15:45:29 +05:30
save.tsx Foundation of New Product Collection Block (https://github.com/woocommerce/woocommerce-blocks/pull/9352) 2023-05-15 08:51:49 +00:00
style.scss Improve Accessibility in Product Collection Navigation (#44599) 2024-02-19 11:35:14 +05:30
types.ts Product Collection: Make attributes available in rest_product_query hook (#44150) 2024-02-12 14:15:24 +05:30
utils.tsx Product Collection: disable "Sync with current query" option for 2nd+ block on archive (#44577) 2024-02-19 17:51:42 +01:00