Commit Graph

21066 Commits

Author SHA1 Message Date
Gabriel Manussakis e086ba7d32
[Accessibility] Add required indicator to form login (#48743)
* Add accessibility attributes to form login

* Add accessibility attributes to lost password form

* Add accessibility attributes to reset password form

* Bump form login templates

* Add accessibility attributes to register form

* Update login forms with aria-required attribute

* Hide asterisk for screen readers in the register form

* Add changelog file
2024-07-02 16:37:33 +02:00
Bhupesh Mishra 3d37c92c7c
Fix for tags overlapping divider line issue in "Filter by product category" (#48756)
* Fix for tags overlapping divider line issue in "Filter by product category"

Issue fixed where tags are overlapping divider line in "Filter by product category".

* Fix for tags overlapping divider line issue in "Filter by product category"

Issue fixed where tags are overlapping divider line in "Filter by product category".

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-07-02 06:33:52 -07:00
Alba Rincón 72c1084608
CYS - Fetch patterns from the private dotcom patterns category (#49007)
* Fetch patterns from the private dotcom patterns

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-07-02 15:18:26 +02:00
Alba Rincón e842d4bc26
[CYS] Avoid the intro cards to get smaller on large screens (#48983)
* Avoid the intro cards to get smaller on large screens

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

* Add flex wrap

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-07-02 15:06:58 +02:00
Vladimir Reznichenko 12ec2b757d
CI: bug-fix for linting missing strict types directive in new php files. (#49015)
CI: buffix for linting missing strict types directive.
2024-07-02 14:48:33 +02:00
Luigi Teschio 130edc9860
CYS: open Intro panel when user clicks on Design your homepage (#49005)
* CYS: open Intro panel when user clicks on Design your homepage

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-07-02 13:56:34 +02:00
Mike Jolley dabc29c04e
Enhancement: Update account creation settings wording (#48556)
* Reword and reorganise existing account settings

* Disable account creation options if toggled off

* Toggle disabled state of related options

* Update settings crud tests

* changelog

* Hide based on subscriptions checkbox also
2024-07-02 12:37:15 +01:00
Damián Suárez fae23f0906
Product Editor: disable Add button when no terms or options when creating variations (#48928)
* fix doc. improve doc

* disabe `Add` button when not terms nor options

* variant="primary" > isPrimary

* move helpers to utils file. improve jsdoc

* add tests for hasTermsOrOptions helper

* add isAttributeFilledOut unit tests

* changelog

* allow any type in unit tests

* show a toolip with not possible to add attributes

* fix wrong inline code comment

* expect the Add button is initially disabled

* check the `Add attributes` button is enabled

* changelog

* remove obvios jsdoc

* check all terms are accepted

* minor changes

* update tests

* remove console.log to dev purpose

* improve E2E testing remviing attr row
2024-07-02 08:30:24 -03:00
Luigi Teschio fe4141f663
CYS: Remove iframe animation (#48941)
* CYS: Remove animation

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

* lint CSS

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-07-02 08:08:38 +00:00
Luigi Teschio fb1c2b9936
CYS: Revisit sidebar layout (#48803)
* WIP

* improve layout

* improve CSS

* fix import

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

* lint scss

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-07-02 10:03:56 +02:00
Alba Rincón 4dcaca793f
Add a new icon style to the Customer Account block (#48979)
* Add a new icon style to the Customer Account block

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

* Fix lint errors

* Improve svg margins

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-07-02 09:34:59 +02:00
github-actions[bot] fbbf452243
Delete changelog files based on PR 48664 (#49000)
Delete changelog files for 48664

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-07-02 15:07:06 +08:00
Alexandre Lara 504799bcce
[Experimental] Product Filters Redesign > Filters: Implement Dynamic Block Title and Icon (#48638)
* Modify Product Filters block to use block variations

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

* Add dynamic blocks icon and title

* Make Attribute Filter block title dynamic

* Add E2E tests for the Product Filters block

* Remove unnecessary block attribute

* Improve clarity of the comment text

* Add new icons for individual filters

* Dynamically set the title and heading of the block based on the selected attribute

* Add E2E test to check for block title and heading change on selecting an attribute

* Replace custom block variation type by BlockVariation type from @wordpress/blocks

* Replace variation `isActive` function by an array of strings

* Fix heading for each individual filter

* Add a default attribute name when there is no attributes registered in the store

* Fix i18n strings

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-07-01 17:46:00 -03:00
Naman Malhotra ddc4bddc17
Fix failing test due to concurrent product creation (#48989)
* Fix test due to concurrent product creation

* Add changefile(s) from automation for the following project(s): woocommerce
2024-07-02 02:49:18 +07:00
Veljko V 97f8f863d1
Improve account email receiving e2e test to fix flakiness (#48957)
Co-authored-by: Adrian Moldovan <3854374+adimoldovan@users.noreply.github.com>
2024-07-01 16:14:41 +00:00
Damián Suárez 603e774188
E2E: remove UI check when creating attribute global terms (#48934)
* do not wait for the `is-validating` state

* changelog

* not only this test
2024-07-01 18:49:51 +03:00
Albert Juhé Lluveras f85a7ba3d4
Avoid Product Search Results block template to fall back to the Product Catalog template from the theme (#48887)
* Avoid Product Search Results block template to fall back to the Product Catalog template from the theme

* Add changelog file
2024-07-01 16:20:43 +02:00
Vladimir Reznichenko f1b974a910
Revert "Monorepo: don't optimize composer autoloading by default. (#48971)" (#48982)
This reverts commit 76b1bd4ae7.
2024-07-01 15:13:25 +02:00
Vladimir Reznichenko e2ce65d02d
Tooling: lint new php files for strict types directive (take 2). (#48943)
This PRs is take two on expanding new php-files linting to validate strict types directive.
2024-07-01 13:58:13 +02:00
Luigi Teschio d709d53d9a
CYS: make the entire shuffle section clickable (#48889)
* CYS: make the entire shuffle section clickable

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

* fix import

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-07-01 13:56:41 +02:00
Vladimir Reznichenko 76b1bd4ae7
Monorepo: don't optimize composer autoloading by default. (#48971)
This PR drops composer autoloader optimization for the WooCommerce plugin to speed up the build process. The autoloader still gets optimized in `plugins/woocommerce/bin/build-zip.sh` file.
2024-07-01 13:55:36 +02:00
Mike Jolley 4ff97e4915
Enhancement: Show account created notice on order confirmation page (#48673)
* Add notice on confirmation page for new accounts

* Reset should remove nag

* Changelog
2024-07-01 12:41:29 +01:00
github-actions[bot] 6e36d92a59
Delete changelog files based on PR 48778 (#48977)
Delete changelog files for 48778

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-07-01 17:35:25 +08:00
Luigi Teschio d4128118c1
CYS: no highlight the pattern when it is added (#48802)
* CYS: Improve Block Toolbar logic

* CYS: no highlight pattern when it is added

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-07-01 11:21:06 +02:00
github-actions[bot] 5b6797dc22
Delete changelog files based on PR 48863 (#48974)
Delete changelog files for 48863

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-07-01 17:14:29 +08:00
Corey McKrill 2dac6fb9e4
SSR: Update labels for "API enabled" item (#48878) 2024-06-28 16:20:54 +02:00
Vladimir Reznichenko 6b121e2f34
CI: caching tweaks in GitHub actions (#48865)
* Tooling: cache pnp deps

* Tooling: try fixing cache errors

* Tooling: try to parallelize js builds a bit

* Tooling: try to parallelize js builds a bit

* Tooling: try to parallelize js builds a bit

* Tooling: try to parallelize js builds a bit

* Tooling: try to parallelize js builds a bit

* Tooling: try to parallelize js builds a bit

* Tooling: try to parallelize js builds a bit

* Tooling: try to parallelize js builds a bit

* Tooling: try to parallelize js builds a bit

* Tooling: added pre-build steps to solve concurrency issues

* Tooling: limit workers

* Tooling: revert to original build command

* Tooling: playwright related tweaks

* Tooling: minor tweaks.

* Tooling: fix caching path.

* Tooling: trigger php builds to test deps caching.

* Tooling: trigger php builds to test deps caching.

* Tooling: lock caching to monorepo setup, so it doesn't slow down build steps.

* Tooling: lock Playwright cache to build, as build is pre-requisite for running tests.

* Tooling: added caching build-folders.

* Tooling: added caching build-folders.

* Tooling: added caching build-folders.

* Revert "Tooling: added caching build-folders."

This reverts commit c57b9dff13.

* Tooling: added caching build-folders.

* Tooling: cleanup sweep.

* Tooling: cleanup sweep.

* Tooling: added a changelog entry.

* Tooling: cleanup.

* Tooling: try speedup live branches build.

* Tooling: try speedup live branches build.

* Tooling: cleanup.

* Tooling: try speedup live branches build.

* Tooling: try speedup live branches build.
2024-06-28 14:50:32 +01:00
Paulo Arromba 67de31b823
Fixed "woocommerce_new_order" triggering on checkout blocks page visit (#47422)
* Prevent "woocommerce_new_order" from being triggered on orders with "checkout-draft" status

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

* Prevent "woocommerce_new_order" from being triggered on orders with "checkout-draft" status

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

* Added ´checkout-draft´ to the list of previous status triggering a new order action for order creation

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

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

* Added "draft" status on Order creation in HPOS to prevent triggering the new order hook

* Do not fire "woocommerce_new_order" on order creation in CPT that is still in one of the draft statuses.

* Fire "woocommerce_new_order" on order status change from one of the draft statuses, on par with CPT logic

* Removed unnecessary line (duplicate of L2607).

* Updated changelog.

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

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

* Updated comment

* Move data fetch to right before it is needed.

* Reverted moved line, as the $previous_state needs to be get first thing.

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

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

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

* Changelog change

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

* Changelog change

* Unit tests for creating draft orders without triggering new order hook

* Linting

* Unit tests update

* Removed unnecessary draft status from tests

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-06-28 18:30:40 +05:30
Jorge A. Torres d79b3b7f6a
Make product variations endpoints aware of parent product id provided (#48804)
* Prevent REST API access to variation product's that don't match the parent product_id

* Rework checks

* Update unit tests

* Add changelog

* Apply suggestions from code review

Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>

---------

Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2024-06-28 13:58:28 +01:00
Thomas Roberts 06c98dee1b
Load mini cart scripts by default on touch-enabled (mobile) devices (#48769) 2024-06-28 13:23:32 +01:00
Naman Malhotra b5de9d101f
Ensuring only single product creation with unique SKU for concurrent requests (#47476)
* Ensuring product creation with unique sku for concurrent requests

* improved comments

* added changelog

* self review

* lint fixes

* self review

* Added condition if the sku is empty

* Modified tests to ensure we insert unique skus

* self review

* self review - fixed tests

* self review - fixed tests

* lint fixes

* lint fixes

* lint fixes

* lint fixes

* Feedback review

* self

* feeback review changes

* self review

* self review - selecting values from DUAL

* using options table instead of DUAL

* using options table instead of DUAL

* FINAL bugs in tests

* Executing SKU check only during REST requests

* Typeo

* Added logging

* Added comment

* Review feedback

* self review

* self review lint fix

* self review lint fix
2024-06-28 17:38:45 +05:30
Manish Menaria c70750b85a
Fix: Show preview label only when Product Collection block is selected (#48795)
* Fix: Show preview label only when Product Collection block is selected

Updated the `ProductCollectionContent` component to display the preview label only when the Product Collection block itself is selected. Previously, the preview label was shown when either the block or any of its inner blocks were selected.

Key Changes:
- Removed the `isSelectedOrInnerBlockSelected` constant and its logic.
- Updated the condition to use `props.isSelected` directly to determine if the block is selected.

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

* Update E2E tests

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-06-28 16:48:11 +05:30
Adrian Moldovan d3aa89baa7
Remove performance tests from PR checks (leave on push to trunk) (#48927) 2024-06-28 10:56:26 +00:00
Vladimir Reznichenko 032a7be469
Monorepo: minor tooling tweaks (zip compression level, composer invocations) (#48857)
* Tooling: composer related tweaks

* Tooling: composer related tweaks

* Tooling: composer related tweaks

* Tooling: composer related tweaks

* Tooling: composer related tweaks

* Tooling: better zip compression and faster build times

* Tooling: composer related tweaks

* Tooling: composer related tweaks

* Tooling: composer related tweaks

* Tooling: pnpm related tweaks

* Tooling: pnpm related tweaks

* Tooling: composer related tweaks

* Tooling: revert unnecessary change.

* Tooling: revert unnecessary change.

* Tooling: cleanup.

* Tooling: cleanup.

* Tooling: cleanup.

* Tooling: added a changelog entries.

* Tooling: cleanup.
2024-06-28 10:54:05 +01:00
Vladimir Reznichenko 7aa459fd84
Revert "CI: lint strict types directive for new files (#48779)" (#48921)
This reverts commit 66ae029f70.

Strict types directive linting introduced in https://github.com/woocommerce/woocommerce/pull/48779 has some flows to address before we can re-introduce it again.
2024-06-28 11:51:00 +02:00
Veljko V 8c7950b0c6
Fix flaky mini-cart and create-checkout-block e2e tests (#48916)
Fix flaky Gutenberg and Services tests
2024-06-28 10:49:29 +01:00
Luigi Teschio 6b366c2390
CYS: fix flickering effect (#48767)
* CYS: fix flickering effect

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

* not use hook

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-06-28 11:38:27 +02:00
Veljko V 9a58378fec
Fix merchant settings general e2e test (#48907) 2024-06-28 10:10:33 +01:00
Wacław Jacek 9cc937d1f9
Don't recommend WCS&T on Edit Order page with WCShip/WCTax active (#48704) 2024-06-28 11:09:01 +02:00
Luigi Teschio 026e93916a
CYS: when the footer/header is clicked, the border color is blue (#48765)
* CYS: when the footer/header is clicked, the border color is blue

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

* improve CSS

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-06-28 08:40:01 +00:00
Damián Suárez 93e148d921
E2E: update how to detect when global attributes are loaded. (#48915)
* rename helper file name

* detect attributes loaded at data-layer level

* changelog
2024-06-28 08:39:11 +00:00
Tung Du 185a3d579c
[Experimental] Product Filters Overlay Navigation block (#48677)
* add: block scaffold

* add: block settings and editor preview

* chore: discard change to pnpm lock file

* add navigation block to the template part

* test: add basic E2E tests

* chore: changelog

* fix: no full width button

* test: remove layout check

* tweak: dynamically fetch button styles

* try: fontsizepicker

* remove: FontSizePicker dute to lack of ability to change label

* fix: use correct icon from the design

* address review feedback

* update class to follow naming convention. use explicit value to better indicate the navigation style

* fix: remove unnecessary style that breaks the global style

* fix: remove unnecessary style
2024-06-28 08:16:21 +00:00
Niels Lange 545ec78185
Make proceed to order button non sticky when zoom level is bigger than 100% (#48391)
* Make proceed to order button non sticky when zoom level is bigger than 100%

* Define sticky container based on media query

* Revert previous inline comment

* Update display logic

* Adjust threshold to stabilise visibility toggling

* Improve readability
2024-06-28 10:05:49 +02:00
Damián Suárez 38390ab6e8
Product Editor: improve E2E tests. Test the `+3 More` item label in the Organization tab (#48891)
* introduce attributes fixture

* expose the tabs from the new data/ folder

* introduce confirmGlobalAttributesLoaded helper

* reuse confirmGlobalAttributesLoaded helper

* reuse attributes fixture

* check the `+3 More` item label

* changelog

* not only this test

* rename to waitForGlobalAttributesLoaded
2024-06-28 07:58:22 +01:00
Vladimir Reznichenko 66ae029f70
CI: lint strict types directive for new files (#48779)
Tooling: extend php-files linting (require strict types directive)
2024-06-28 08:09:40 +02:00
Manish Menaria b0ef3886c0
Product Collection: Fix Preview badge border-radius and alignment (#48856)
* Fix Preview badge border-radius and alignment

The Preview badge's bottom left and right corners now have border-radius set to 0px to ensure they smoothly morph into the block's stroke. The badge is visually aligned with the furthest edge of the block's right border.

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

* Fix Lint errors

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-06-28 11:14:59 +05:30
Paul Sealock 28ce50fefe
Store Alerts: Update widths to match main body (#48487) 2024-06-28 08:37:25 +12:00
Fernando Marichal 5811655e1a
Revert "Set stock quantity value to 0 by default (#48448)" (#48863)
* Revert "Set value to stock quantity"

This reverts commit 4350f497fd.

* Revert "Undo set_stock_quantity"

This reverts commit 19affd841b.

* Add changelog

* Fix lint

* Fix lint

* Fix lint warning

* Undo set_stock_quantity
2024-06-27 13:23:56 -03:00
Wacław Jacek c7fcc8eaac
Don't recommend WCS&T in default extension recommendations if WCShip or WCTax is active (#48705) 2024-06-27 17:17:50 +02:00
Ilyas Foo 6d1de12aa9
Fix shipping zones add zone button flinching (#48869)
* Fix add zone button flinching and vertical centering

* Changelog
2024-06-27 23:06:46 +08:00