* Temporarily disable deprecation logging and use old DataSourcePoller class
* Changelog
* Update DataSourcePoller.php
* Change to comment for lint
* Typo again
* Lint
* Better comment from @nigeljamesstevenson
* E2E test env: use WordPress 6.5 stable version
* Add changefile(s) from automation for the following project(s): woocommerce-blocks
* Revert "Wait for notice text to be visible instead of checking data store"
This reverts commit f26892a646.
* Revert "Fix linting errors"
This reverts commit eaf90e4890.
---------
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Thomas Roberts <thomas.roberts@automattic.com>
* Extract update count function.
* Pass wooUpdateCount to be used by admin components.
* Show update count bubble on in-app my subscriptions tab.
* Add changefile(s) from automation for the following project(s): woocommerce
* Refactor how update count HTML is generated and move logic into appropriate classes.
* Show red badge when the site is disconnected, regardless of the installation status of WUM.
* Always display as 1 update is available when site is disconnected.
* Skip using dangerouslySetInnerHTML.
* Remove unused dependency.
* Move updateCount to a tab property.
* Prevent calling get_update_count if the site is not connected.
* Raw url encode the product key before signing the URL
---------
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Muhammad Anas <muhammad.anas@automattic.com>
* Use templateSlug context in Product Collection
* Implement util recognising the location for track events
* Implement the track event when user chooses a collection in Product Collection
* Add changelog
* Remove incorrect import
* Cover cases with specific Product or Specific Taxonomy
* Update event name
* Adjust Product Filters tests
* Revert wrong commit
* Unify the category for all Product Elements
* Add changelog
* Bring back category to product elements that don't use shared confiug
* Add specific category to some Product Elements blocks registered only for Single Product template
* 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>
* 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
* 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
* 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
* 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
* 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>
* 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>
* 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>
* 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>
* 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>
* clean up woocommerce-blocks package.json
* update from feedback
* move entry to original location
---------
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
* 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>
* 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>
* update WordPress version
* Add changefile(s) from automation for the following project(s): woocommerce-blocks
---------
Co-authored-by: github-actions <github-actions@github.com>
* 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>
* 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>
* 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>
* Introduce 44084 and 44790 back to be reintroduced with back compat.
This reverts commit fcdbc76414.
* Add changelog.
* Manually call `rest_request_after_callbacks` filter for backward compatibility.
* Make the controller checks more robust.
* Dont call rest api when controller is found but response cant be calculated.
* Add unit test for hydration class.
* Update comment docs for future warning.
Co-authored-by: Seghir Nadir <nadir.seghir@gmail.com>
* Return unfiltered routes array to prevent overwriting.
* PHPCS fixes.
* Use hydration context filters instead of duplicating REST API filters.
* PHPCS fixes.
* Adjusted unit test for new filters.
---------
Co-authored-by: Seghir Nadir <nadir.seghir@gmail.com>
* Link Payments task item to Overview if WooPayments is connected
* Link APMs task item to payments task page
* Add changelog for WooCommerce
* If WCPay is connected go to Payments Overview page
It shouldn't matter if the WCPay account is fully or partially onboarded.
* Add aria-labelledby attribute to rich text component
* Handle label click to focus rich text
* Remove unneeded ts-ignore
* Pass in label ID explicitly instead of hardcoding knowledge of its naming pattern
* Changelog
* Add tooltip attribute to block.json
* Focus text area when clicking on label
* Remove Label id... not needed
* Set text area labelled by to label
* Add aria-required to rich text
* Hide required asterisks from aria