* Fix the issue
* Add changefile(s) from automation for the following project(s): woocommerce-blocks
* Add E2E test to cover this regression
* Fix: On sale collection should be visible after refresh in Post
---------
Co-authored-by: github-actions <github-actions@github.com>
* Add zoom functionatility to Single Product gallery images when main Product Image is missing
* Alternative approach
* Add changelog file
* Still add placeholder class for extra backwards compatibility
* Bump template version
* Remove unnecessary class name change
* Fix wrong type
* Fix PluginInstaller::install_plugin_core so it works on Windows
* Wrap the autoinstall of the Legacy REST API plugin in try-catch block
and log any exception thrown
* Make sure that the wc_installing transient is deleted even if install fails
* Temp commit
* Clean up unused codes and streamline logic
* More cleanups and add comment
* Better naming and fix logic
* Rename and comment
* Changelog
* Changelog
* Lint
* Moved leap year utils to date package, added tests
* Moved functions to utils, add tests
* Add more test
* Fix changelog
* Clean up the cache when a coupon is updated
When the coupon’s status transitions from publish to future, the ‘coupon_id_from_code’ cache entry needs to be deleted otherwise the coupon will remain available for use.
* Remove coupon cache entries when not published
* Add changefile(s) from automation for the following project(s): woocommerce
---------
Co-authored-by: Toby Herbert <tobyherbert@nialtoservices.co.uk>
Co-authored-by: github-actions <github-actions@github.com>
* Update PR template and auto change log
* Ignore .github md files in linting
* Rebuilt monorepo-utils to solve conflict
* Updated regex pattern to include uppercase X
* Move the changelog entry not required checkbox on top of the description.
* Return the comment even if shouldAutomateNoChangelog is false
* Updated tests
* Rebuilt monorepo-utils
---------
Co-authored-by: Adrian Moldovan <3854374+adimoldovan@users.noreply.github.com>
* Add status-completed endpoint
* Use new status-completed endpoint
* Add changefile(s) from automation for the following project(s): woocommerce
* Revert back unwanted changes
* Cache /wc-admin/launch-your-store/survey-completed call
---------
Co-authored-by: github-actions <github-actions@github.com>
* Only init WC Site Tracking if in admin or a rest request
* Add changelog
* Refactor tracks logic
* Create helper function store store api requests and make use of this
* Move conditionals back to woocommerce class
* Remove use of is_rest_api_request within is_store_api_request
* Fix lint errors
* Add check to see if WC_Tracks exist
* Also include tracking in CLI
* Make use of wc_admin_record_tracks_event instead of WC_Tracks directly
* Add `woocommerce_order_note_deleted` hook for a successful order note delete
* Update plugins/woocommerce/includes/wc-order-functions.php
Co-authored-by: Jorge A. Torres <jorge@0xbad.com>
* Include `order_id` in order note object
* Introduce `woocommerce_order_note_deleted` hook
* Appease linter
* Adjust unit test
* Add changelog
---------
Co-authored-by: EVOKE <evoke.lektrique@gmail.com>
* Fix issue where Product Collection wasn't showing anything
- Moved queryId logic to a new `useQueryId` custom hook to encapsulate the logic.
- Simplified attribute setting in `useEffect` by using a default attributes value.
- Utilized `fastDeepEqual` to check for attribute equality
These changes fix the issue where the Product Collection block did not display properly in the template editor, ensuring consistent rendering of products.
* Add comment
* Add changefile(s) from automation for the following project(s): woocommerce-blocks
* Remove leftover comment
* Add e2e tests for Product Collection block visibility after refresh
Added end-to-end tests to verify the visibility of the Product Collection block after page refresh in both Product Archive and Post contexts.
- Added tests to ensure the Product Collection block remains visible after refreshing the template or post editor.
- Updated existing tests to use `BLOCK_LABELS` for better readability and maintainability.
* Improve E2E tests
---------
Co-authored-by: github-actions <github-actions@github.com>
* Add PatternsToolkit class to fetch patterns from PTK
* Pass the new PatternsToolkit class to the BlockPatterns constructor
* Extract the pattern registration code to the 'register_block_pattern' function
* Extract the file patterns registration to `register_block_patterns_from_files`
* Registers patterns from ptk
* Add ids of excluded patterns (because they have jetpack deps)
* Add PTK client tests
* Filter out patterns with post_type diff than "wp_block"
* Add missing excluded pattern
* Add error log and improve error messages from the PTK client
* Extract function to register patterns to PatternRegistry class
* Extract function to register patterns from PTK
* Rename PatternsToolkitClient to PTKClient
* Extract AI related code to the AIPatterns class
* Rename test to match class name
* Add missing package dep in BlockPatterns
* Cache and register PTK patterns
* Add feature flag
* Fix linting errors
* Add tests for the PatternRegistry
* Add tests for the PTKPatternsStore
* Add changefile(s) from automation for the following project(s): woocommerce
* Check pattern ID exists to filter
* Check title is set when registering the pattern
* Remove unnecessary code from test
* Add more patterns to the excluded list
* Add actions to reset the patterns transient on plugin deactivation and tracking option updates
* Schedule fetching pattern async when updating or activating the plugin and on allowing tracking
* Fetch patterns always async
* Add changefile(s) from automation for the following project(s): woocommerce
* Only schedule the fetch_patterns actions if it's not pending
* Add changefile(s) from automation for the following project(s): woocommerce
* Remove unnecessary import
* Fix tests
* Return empty array instead of error
* Fix imports and comments
* Remove unused function
* Fix lint errors
* Fix log
---------
Co-authored-by: github-actions <github-actions@github.com>
* Add changelog
* Only include default 'additional content' in e-mails when it hasn't been configured
* Remove (now) unnecessary code from new order e-mail
* Simplify logic in `get_additional_content()`
This changes the item schemas for Orders and Order Refunds API
endpoints to correctly specify that the rate_id property in a tax_line
object is an integer, not a string.
Fixes#32037
* Focus tab shows focus style
* Tabbing when inside the tabs takes you to the first focusable element inside the current tab's tab panel
* Users can press the left and right arrow keys to move between tabs
* When a tab is focused and the Home key is pressed the first tab in the list should be focused. When the End key is pressed the last tab should be focused
* Add changelog file
* Fix e2e tests
* Add changelog file
* Get last tab by index
* Fix linter errors
* Add PatternsToolkit class to fetch patterns from PTK
* Pass the new PatternsToolkit class to the BlockPatterns constructor
* Extract the pattern registration code to the 'register_block_pattern' function
* Extract the file patterns registration to `register_block_patterns_from_files`
* Registers patterns from ptk
* Add ids of excluded patterns (because they have jetpack deps)
* Add PTK client tests
* Filter out patterns with post_type diff than "wp_block"
* Add missing excluded pattern
* Add error log and improve error messages from the PTK client
* Extract function to register patterns to PatternRegistry class
* Extract function to register patterns from PTK
* Rename PatternsToolkitClient to PTKClient
* Extract AI related code to the AIPatterns class
* Rename test to match class name
* Add missing package dep in BlockPatterns
* Cache and register PTK patterns
* Add feature flag
* Fix linting errors
* Add tests for the PatternRegistry
* Add tests for the PTKPatternsStore
* Add changefile(s) from automation for the following project(s): woocommerce
* Check pattern ID exists to filter
* Check title is set when registering the pattern
* Remove unnecessary code from test
* Add more patterns to the excluded list
* Add actions to reset the patterns transient on plugin deactivation and tracking option updates
* Add changefile(s) from automation for the following project(s): woocommerce
---------
Co-authored-by: github-actions <github-actions@github.com>
* Partially revert #45767
* Add changefile(s) from automation for the following project(s): woocommerce-blocks
* Add test for description on checkout order summary block
* Add another test back in for order summary description
---------
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Alex Florisca <alex.florisca@automattic.com>
* CYS: allow to the user to move the pattern
* add feature flag
* Add changefile(s) from automation for the following project(s): woocommerce
* CYS: Add shuffle button
* CYS - add shuffle feature
* Add changefile(s) from automation for the following project(s): woocommerce
* use WooCommerce feature flag approach
* fix lint error
* Highlight the pattern when the user hovers it
* Add changefile(s) from automation for the following project(s): woocommerce
* CYS - Assembler: improve feature flag check
* Add changefile(s) from automation for the following project(s): woocommerce
* improve logic
---------
Co-authored-by: github-actions <github-actions@github.com>
* CYS: allow to the user to move the pattern
* add feature flag
* Add changefile(s) from automation for the following project(s): woocommerce
* CYS: Add shuffle button
* CYS - add shuffle feature
* Add changefile(s) from automation for the following project(s): woocommerce
* use WooCommerce feature flag approach
* fix lint error
* Highlight the pattern when the user hovers it
* Add changefile(s) from automation for the following project(s): woocommerce
---------
Co-authored-by: github-actions <github-actions@github.com>