Commit Graph

65779 Commits

Author SHA1 Message Date
Chi-Hsuan Huang 6dceb37611
Fix core profiler dropdown not closing when the arrow down icon is clicked (#52526)
* Disable pointer events for active select controls to allow dropdown closure by clicking the component

* Add changelog
2024-11-05 16:25:35 +08:00
Luigi Teschio b15b04620a
Add To Cart Form - Stepper Layout: remove flex (#52481)
* Add To Cart Form - Stepper Layout: remove flex

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-11-05 09:06:23 +01:00
Adrian Moldovan 85489b84d3
[e2e tests] Remove iterations for "Color palette should be applied" test (#52544) 2024-11-05 08:34:47 +01:00
Manish Menaria 21934d471b
Fix: Product collection inspector control showing empty section (#52543)
* Fix: Product collection inspector control showing empty section

Previously, the inspector controls were always rendering a PanelBody element even
when the collection type wasn't hand-picked, resulting in an empty section being
displayed. This change moves the PanelBody inside the conditional rendering so
it only appears when hand-picked products are being used.

Also adds missing placeholder text to the Hand-Picked products control to improve
user experience.

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-11-05 12:59:17 +05:30
Wesley Rosa a5b95bacf1
Using order status constants in unit tests (#51920)
* Introducing order status constants

* Replacing static calls

* Using order status constants in unit tests

* 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

* Updating implementation with base branch

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

* Replacing full namespace with class import

* Fix classes still using the old constant format

* Revert use of draft order status

---------

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>
2024-11-05 08:23:12 +01:00
Chi-Hsuan Huang 4c03ba8b60
Add coming soon newsletter feature flag (#52529)
* Add coming soon newsletter feature flag

* Add changelog

* Rename feature flag -> coming-soon-newsletter-template
2024-11-05 05:37:00 +00:00
Tung Du 22070a79ed
[Experimental] Expose filter params through block context (#52492) 2024-11-05 10:35:54 +07:00
RJ cb0d1b5020
fix: added noreferrer to printful link (#52524) 2024-11-05 11:13:20 +08:00
github-actions[bot] 243dde4e8a
Delete changelog files based on PR 52557 (#52563)
Delete changelog files for 52557

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
2024-11-04 17:06:54 -08:00
Damián Suárez ed2f002f42
Remove duplicate TS definition for currency code (#52545)
* remove duplicate TS definition for currency code

* changelog
2024-11-04 16:59:10 -08:00
Barry Hughes d843637ce0
Do not listen to changes made through the Options API before init. (#52557)
* Do not listen to changes made through the Options API before init.

This specifically relates to the Features Controller, which currently loads a list of feature definitions (and that involves translating strings, which is not recommended before init). Since we do not expect features to be enabled/disabled this early, this should be a reasonable adjustment.

* Update plugins/woocommerce/src/Internal/Features/FeaturesController.php

Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>

---------

Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
2024-11-04 16:51:45 -08:00
Emmanuel Ferdman e22c5baf8a
Update broken links (#52495)
* Update broken links

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>

* Update broken links

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>

* fix markdown errors

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>

* add changelog

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>

* Add manifest file

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>

---------

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
2024-11-04 21:59:50 +00:00
github-actions[bot] 9b4f3a1eb3
Delete changelog files based on PR 52431 (#52542)
Delete changelog files for 52431

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2024-11-04 12:07:46 -08:00
Damián Suárez 5238d13632
Fix typo in useSetWraperVisibility function name (#52115)
* fix type in useSetWraperVisibility function name

* changelog
2024-11-04 19:21:34 +00:00
github-actions[bot] 8716143a77
Delete changelog files based on PR 52432 (#52539)
Delete changelog files for 52432

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-11-04 10:36:10 -08:00
Moon 7c3a4f729b
Fix CES style for WP 6.7 (#52499)
* Fix CES style for WP 6.7 -- there has been HTML structure change with a different class name

* Add changefile(s) from automation for the following project(s): @woocommerce/customer-effort-score

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-11-04 10:30:49 -08:00
Karol Manijak f5d9b3adaa
Hide AbstractProductGrid blocks from inserter (soft-deprecation) (#52209)
* Hide product grid blocks from inserter

* Expose collections in the inserter

* Arrange collections imports alphabetically and registering by usage

* Add new keywords to collections

* Update tests

* Update block references

* Add changelog

* Update docs manifest

* Fix typo in collection name in test

* MAke adjsutments and cleanup of collections keywords

* Add one more keyword

* Hide Related Products from inserter

* Replace legacy Related Products with collection when transforming classic template into block one

* Replace legacy Related Products with collection in blockified Single Product Template

* Update block references and doc manifest

* Update block references

* Update tests to reflect new collection names

* Bring back pnpm-lock to original state

* Update Related Products E2E tests

* Fix the last Related Products test

* Add default queryId to Related Products pattern

* Regenerate block references and docs manifest
2024-11-04 18:57:51 +01:00
Vladimir Reznichenko 02edbf101d
[dev] Monorepo: git-checkout tweaks in project-jobs. (#52534) 2024-11-04 12:28:37 +01:00
Karol Manijak a38a2052cb
[WordPress 6.7] Fix image aspect ratio in product grid blocks (#52431)
* Override user agent styling in Chrome

* Add changelog

* Change the approach

* Change the approach one more time
2024-11-04 11:38:46 +01:00
Vladimir Reznichenko e47384d16b
[dev] Monorepo: consolidate ci-workflow (include changelog/md-files validation) (#52398) 2024-11-04 10:01:57 +01:00
Ian Yu-Hsun Lin f450159c48 Merge branch 'trunk' into feature/51567-order-attribution-install-and-connect 2024-11-04 15:54:02 +08:00
Damián Suárez be21e4ce21
Add color helpers for the Product Filters block (#52506)
* move utils.ts to utils/index.ts

* introduce color utils

* changelog

* update changelog desc
2024-11-02 10:48:13 +00:00
Thomas Roberts 32f3e08657
If local pickup text is not set, save an empty string to allow fallback to work (#51580) 2024-11-01 21:32:52 +00:00
Roy Ho 877342cd6d
[Experimental] Product filters/active block new structure (#52268)
* Update product filters active block to new structure

* Build active chips items

* Add changelog

* Remove unneeded line-height

* Fix linting

* Fix e2e tests

* Refactor removeText

* Clean up

* Add clear button even without group

* Fix stock status name in e2e test

* Remove heading block

* Remove unused i18n module

* Remove period

* Add clear button variation description

* Fix typo

* Rename active chips to removable chips

* Extract data items from removable chips to make it reusable

* Fix e2e tests

* Add frontend script loading to null

* Don't render the block if no active filters

* Disable clear button by default

* Clean up

* Hide with iAPI

* Fix linting and e2e

* fix: add hidden tag serverside

---------

Co-authored-by: Tung Du <dinhtungdu@gmail.com>
2024-11-01 05:44:46 -07:00
Karol Manijak 2d836d8088
Update E2E tests to work with WP 6.7 RC2 (#52447)
* Use WP 6.7 RC2 for Blocks env

* Update edited template heading selector

* Change selector in revertTemplate util due to issue in GB (WP 6.7)

* Update edited template heading selector in another suite

* Use page instead of editor.canvas to access components-popover

* Add changelog

* Update editor heading selector

* Update editor heading selector
2024-11-01 11:58:24 +01:00
Damián Suárez c0ae9b4a29
Rating Filter: first iteration of Minimum Rating feature (#52484)
* clean obsolete atttribute types

* check properly when showing no product Notice

* add new minRating attribute

* add first implementation of Minimum Rating panel

* introduce setCountVisibility internal helper

* add title to stars label

* rename vars. Simplify getting ratings data

* simplify checking rating_counts prop

* clean jsdoc block

* simpligy creating ratingOptions collection

* sort() > reverse()

* filter rating by minimum rating attr

* tidy process to render rating options

* changelog

* use Flex to layout the labels

* fix changelog typo

* import type explicitely
2024-11-01 10:45:07 +00:00
Adrian Moldovan b10c4d0988
[e2e tests] Remove update-woocommerce spec (#52493) 2024-11-01 12:35:15 +02:00
Mik 4b4e16454c
Track first and last 20 orders to Weekly Tracker Snapshot (#52074)
* Fetch order snapshot for HPOS

* Fetch order snapshot for legacy order storage

* Include snapshot generation time

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

* Fix linter error

* Add unit test for order snapshot data

* Add unit test for snapshot generation time

* Fix phpcs error

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-11-01 08:09:10 +00:00
Ian Yu-Hsun Lin b13faa2cdb Merge branch 'trunk' into feature/51567-order-attribution-install-and-connect 2024-11-01 15:02:00 +08:00
Ian Yu-Hsun Lin 102f7cfef2
Add order attribution install banner in order editor's order attribution metabox (#52282)
* Move OA install banner folder in favour of #49647

* Use slotfill to render OA install banner in order editor's OA metabox

* Don't show badge and image for the banner under OA metabox

* Pass title and description as props

* Pass dismissable as props to decide whether to show the Dismiss button

* Adjust the banner style to make it more customisable

* Show the banner even if the analytics overview banner was dismissed

* Adjust header banner spacing to match the items in the activity panel

* Refactor based on review suggestions

* Add JSDoc and comments and add target=_blank for header banner
2024-11-01 14:58:04 +08:00
Tung Du 8bd4f9ea34
Experimental: Product Filters Overlay overhaul (#52279) 2024-11-01 12:16:59 +07:00
Paul Sealock 148e3b9295
[Settings] Add JSON object to power React view (#52472) 2024-11-01 17:32:22 +13:00
Chi-Hsuan Huang 59c323655c
Optimize Coming Soon badge performance with early exits (#52477)
* Optimize Coming Soon badge performance with early exits

Improves performance by preventing unnecessary code execution for non-admin users:
- Add early exit in setup_hooks() for non-admin users
- Move hook registration to init to ensure WordPress is loaded
- Prevent badge-related actions from being registered for non-privileged users

This change reduces unnecessary code execution and improves overall
performance by isolating the Coming Soon badge functionality to only
run for authenticated admin users.

* Add changelog

* Fix permission check
2024-11-01 11:48:07 +08:00
Sam Seay a24502fe23
Add separator to "Place order" button and use the block style variations API (#52017) 2024-11-01 05:49:23 +13:00
Sam Seay 601e14a253
Checkout: Collapsible Order Summary in mobile view (#52253) 2024-11-01 05:48:54 +13:00
Shani f5d5caa3f0
Docs/tulum docs 1 (#52465)
* Adds two new docs in Extensions and updates three general docs

* Removes LocalWP reference

* Updates manfiest

* Fixes new line linting issue

* Updates manifest.json

---------

Co-authored-by: Shani Banerjee <shanibanerjee@Shanis-MBP.lan>
2024-10-31 09:56:34 -04:00
Wesley Rosa f6ee6de76c
Introducing order status constants (#51919)
* 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

---------

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>
2024-10-31 13:57:47 +01:00
Manish Menaria 928d523a35
Product Collection: Add "Rating, low to high" and "Rating, high to low" sorting options (#52372)
* Product Collection: Add "Rating, low to high" and "Rating, high to low" sorting options

This commit adds a new sorting option to the Product Collection block that allows
sorting products by rating from low to high. The existing "Top Rated" option has
also been renamed to "Rating, high to low" for consistency.

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-10-31 17:49:27 +05:30
Damián Suárez 90b8770257
Introduce file to define Product Collection types. Improve types handling. (#52458)
* introduce file to define collection data types

* do not define `results` always like an array

* update passing types to useCollection intances

* allow to set the useCollectionData response type

* reuse RatingValues type

* tidy collection types in status filter

* clean types defined in type-defs pck

* change changelog type

* update attribute filter

* move Collection Data types to product-collection folder

* update WCStoreV1ProductsCollectionProps path

* improve defining the results type for the collection

* update path to import product collection types

* fix path to import RatingValues type
2024-10-31 09:30:40 +00:00
louwie17 ebb300c1e7
Fix storybook wireit commands conflict (#52438)
* Update storybook wireit commands to avoid project wildcard

* Update regex for storybook build command

* Add changelog
2024-10-31 06:12:51 -03:00
Damián Suárez fa6eec988b
[Experimental] Rating Filter: clean code about dropdown mode (#52451)
* remove dropdown mode from InspectorControls

* clean dropdown code from Edit component

* clean block attributes and types

* changelog

* remove unused imported components

* remove unused PreviewDropdown component
2024-10-31 08:04:38 +00:00
Oliver Juhas 21c5a3d806
Adding `$default_path` parameter to `woocommerce_locate_template` filter (#52169)
Co-authored-by: Néstor Soriano <konamiman@konamiman.com>
2024-10-31 08:59:18 +01:00
Damián Suárez 20d210421d
Rating Filter: introduce RatingStars component (#52468)
* introduce RatingStars component

* changelog

* remove aweful inline style

* set gap zero
2024-10-31 07:33:44 +00:00
Ian Yu-Hsun Lin af0f59cfa1 Merge branch 'trunk' into feature/51567-order-attribution-install-and-connect 2024-10-31 14:56:24 +08:00
Chi-Hsuan Huang 0963fa5738
Fix JS translations broken when plugin folder name is not "woocommece" (#52448)
* Fix plugin domain handling in Translations class

* Remove unused import

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

* Fix translations

* Fix plugin file path

* Add changelog

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-10-31 10:01:45 +08:00
github-actions[bot] f9c8f8efdf
Delete changelog files based on PR 51739 (#52034)
Delete changelog files for 51739

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-10-30 16:31:38 -07:00
github-actions[bot] c9738ff207
Delete changelog files based on PR 51499 (#52036)
Delete changelog files for 51499

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-10-30 16:31:24 -07:00
github-actions[bot] 4c311261de
Delete changelog files based on PR 52405 (#52471)
Delete changelog files for 52405

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-10-30 16:26:12 -07:00
Dmytro 11188e7827
Adding Facebook extension recommendation. (#52405)
* Adding Facebook extension recommendation.

* Adding 'built by woocommerce' tag.

* Adding changelog file.

* Update plugins/woocommerce/src/Admin/Features/MarketingRecommendations/DefaultMarketingRecommendations.php

Removing 'built by WooCommerce' tag

Co-authored-by: Justin P <228780+layoutd@users.noreply.github.com>

---------

Co-authored-by: Dima <9010963+message-dimke@users.noreply.github.com>
Co-authored-by: Justin P <228780+layoutd@users.noreply.github.com>
2024-10-30 15:09:24 -07:00
Ján Mikláš 0e4d4c676e
Update email preview to show processing order email (#52415)
* Move email preview rendering into separate class

* Allow setting WC_Email $object

This is needed so in an email preview, we can set order to be rendered in an email

* Render "Processing order" with dummy order in email preview

* Always show shipping address in email preview

* Allow fetching dummy email preview product

* Add changelog

* Add unit test for EmailPreview

* Clean up filters after rendering email preview

* Improve duplicate filter comment

* Replace __return_true with a function to prevent accidental filter removal
2024-10-30 19:48:21 +03:00