* refactor: move util functions to their own files
* refactor: replace hook with function
* Add changefile(s) from automation for the following project(s): woocommerce-blocks
* chore: remove unnecessary prop
* fix: default clear button attribute not being respected
* refactor: make the blocks respect the default clearButton attribute
* refactor: remove code duplication
* Rename getCSSVar util function
---------
Co-authored-by: github-actions <github-actions@github.com>
* Do not run tests against external envs on release-checks
* Add changefile(s) from automation for the following project(s): woocommerce
* Put back accidentally removed lines.
---------
Co-authored-by: github-actions <github-actions@github.com>
* Introducing order status constants
* Replacing static calls
* Additional comment blocks
* Updating PHP docs
* Updating PHP docs
* Add changefile(s) from automation for the following project(s): woocommerce
* Fix lint issues
* Fix lint issues
* Fix lint issues
* Removing unnecessary order statuses group constants + more documentation
* Including the 'new' status (legacy)
* Merge branch 'dev/introducing-order-status-constants' of https://github.com/woocommerce/woocommerce into dev/introducing-order-status-constants
* Moving statuses to a new enum class
* Fix CS issues
* Fix lint issues
* Minor doc improvement
* Changing namespace to make it less granular
* Adding missing documentation for existing filters
* Update plugins/woocommerce/src/Enums/OrderStatus.php
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
* Update plugins/woocommerce/includes/class-wc-order.php
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
* Update plugins/woocommerce/src/Enums/OrderStatus.php
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
* Making the order status class final
* Adding missing filter comments
* Moving conditional filter back to if statement
* Merge branch 'dev/introducing-order-status-constants' of https://github.com/woocommerce/woocommerce into dev/introducing-order-status-constants
* Adding 'since' annotation to fix lint errors
* Adding 'since' annotation to fix lint errors
* Introducing order legacy status constants
* Using the new legacy status constants in tests
* Removing unnecessary status
* Add changefile(s) from automation for the following project(s): woocommerce
* Add changefile(s) from automation for the following project(s): woocommerce
* Replacing missing status occurences
* Renaming legacy status class to internal status
* Updating class name according to base branch changes
* Fix lint issues
* Fix lint issues
* Address missing replacement
* Fix tests
---------
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
Co-authored-by: Vladimir Reznichenko <kalessil@gmail.com>
* set up SidebarNavigationScreen
* install deps
* GlobalStylesProvider
* Add labels to pages/sections
* get types in order
* get SettingItem working
* tidy up
* pass icon from PHP
* add icons to each Page
* layout styles
* edit site styles
* organize
* edit-site to 6.10
* unit tests
* lint
* lint
* Add changefile(s) from automation for the following project(s): @woocommerce/settings-editor, woocommerce, woocommerce/client/admin
* lint
* better linting
* [Settings] Create a route file to handle populating Settings (#52692)
* Add settings route
* Add changelog
* Add TODO comment
* Add changelog
* Rebase on sidebar changes
* Fix types and tests
* Fix path
* Convert to tab
* Update test
* Update sidebar to reflect the route with the active item and linking
* Add changelog
* Add changelog
* fix merge conflict errors
* Revert pnpm-lock.yaml
* [Settings] Update Modern Routes (#52757)
* update Sidebar
* cleanup
* Add changefile(s) from automation for the following project(s): @woocommerce/settings-editor
* export sidebar
* export route methods
* Revert "export route methods"
This reverts commit 46a6cd1e0a.
* handle modern pages
* Add changefile(s) from automation for the following project(s): @woocommerce/settings-editor, woocommerce
* cleanup
* remove export
* update tests
---------
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
---------
Co-authored-by: paul sealock <psealock@gmail.com>
Co-authored-by: github-actions <github-actions@github.com>
* Update test environment setup to install twentytwentytwo theme
* Add changefile(s) from automation for the following project(s): woocommerce
* Add targetHints to Data API tests for allowed methods
* Fix tests
* Fix tests
* Fix tests
---------
Co-authored-by: github-actions <github-actions@github.com>
* fix: changed core profiler industry types to the correct format
- changed profiler API to match what we're actually storing, Industry[]
- changed some core profiler steps to use the API instead of saving options directly
PTK: Check to confirm `as_has_scheduled_action` exists before using to conditionally fire logger (#52725)
* Check to confirm as_has_scheduled_action exists
Add a check to confirm that `as_has_scheduled_action` exists in the
condition that uses it to conditionally run the warning log.
* improve fallback logic
* Update plugins/woocommerce/src/Blocks/BlockPatterns.php
---------
Co-authored-by: Daniel W. Robert <danielwrobert@users.noreply.github.com>
Co-authored-by: Luigi Teschio <gigitux@gmail.com>
Co-authored-by: Albert Juhé Lluveras <contact@albertjuhe.com>
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
* Update cli-tools.md
HPOS-related CLI commands are now found under `wc hpos` instead of `wc cot`. There was also a minor change for the `verify_cot_data` sub-command, to `verify_data`.
* Clean-up of references to the `cot` subcommand.
* Update manifest (resolve conflict with other changes).
* Stop using the global variable $pagenow when checking in_app marketplace page load.
* Add changefile(s) from automation for the following project(s): woocommerce
---------
Co-authored-by: github-actions <github-actions@github.com>
* feat: Add related by setting to related products collection
This commit adds a new setting to the related products collection that allows
users to control how products are related. Users can choose to relate products
by categories, tags, or attributes.
* Remove attributes from related by control
This commit removes the attributes option from the related by control in the
Product Collection block. This option was not being used in the backend and
was potentially misleading to users.
Changes made:
- Removed attributes checkbox from RelatedByControl component
- Removed attributes from RelatedBy type definition
- Cleaned up PHP code by using PHP_INT_MAX instead of magic number
* feat: Set default values for related by setting
This commit sets the default values for the relatedBy setting in the Product
Collection block. By default, products will be related by both categories and
tags.
* Add changefile(s) from automation for the following project(s): woocommerce-blocks, woocommerce
* Add tracking for related-by filter
* Add e2e test for "Related by" setting in Related Products collection
* Remove unused import for VStack
* Add optional chaining operator for query.relatedBy
Since relatedBy is an optional prop, add the optional chaining operator to
safely access it and prevent potential undefined property access errors.
* Add tracking for related by changes in Product Collection block
This commit adds tracking for when users change the "Related by" settings in
the Product Collection block inspector controls. It records whether categories
and tags are enabled or disabled.
* Update panel title from "Relate by" to "Related by"
* Remove `blocks_product_collection_inspector_control_related_by_changed` track event
---------
Co-authored-by: github-actions <github-actions@github.com>
* Use product name as fallback alt text in product gallery
* Add changelog file
* Add docblock comment to woocommerce_single_product_image_thumbnail_html filter
* Bump product-thumbnail template version
* Fix PHP lint errors
* Remove unnecessary white space
* Escape alt attribute
* update lock
---------
Co-authored-by: Nadir Seghir <nadir.seghir@gmail.com>
The code for the old underlying container (ExtendedContainer) is still in the codebase,
it will be used (instead of the new one) if any of these snippets is present:
define('WOOCOMMERCE_USE_OLD_DI_CONTAINER', true);
add_filter('woocommerce_use_old_di_container', '__return_true');
* gridify input + button add to cart
* changelog
* css hacl to ensure full witdh when no children
* increse the CSS selectors to apply the grid
* avoid apply styles for steppers
* apply styles only to input in block editor context
* hack to align input + button at left
* fit content only for grouped products
* apply high span to align input + button elems
* ensure to define pseudo element
* fix eslint issues
* fix linting issues
* use a var to define whole width in grid
* Define custom aria-labels for order actions.
* Use aria label if defined, otherwise generate from actio name.
* Add changefile(s) from automation for the following project(s): woocommerce
* Update order action assertion to account for new aria-label property.
* CS: Fix whitespace issue.
* Bump template version number.
---------
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Seghir Nadir <nadir.seghir@gmail.com>
* Do not repeat rendering the shipping calculator button on the cart page.
* Lint fix: remove unused import
* Revert "Ensure local state is not overwritten by server when using `extensionCartUpdate` (#49311)"
This reverts commit 4861ec250e.
* Revert changes that didn't render shipping calc and instead check hasrates before rendering ShippingVia, ShippingAddress
* Revert "Revert "Ensure local state is not overwritten by server when using `extensionCartUpdate` (#49311)""
This reverts commit feec5709c5.
* Remove redunant change in import ordering
* Add changefile(s) from automation for the following project(s): woocommerce-blocks
---------
Co-authored-by: github-actions <github-actions@github.com>