Commit Graph

20780 Commits

Author SHA1 Message Date
Vlad Olaru 54a2466f32
Fix WooPayments incentives allowed promo notes logic (#48105)
* Fix WCPay incentive allowed promo notes logic

The WCPay promo notes need to be added to the allowed
list regardless if WCPay is installed and active.
We will respect marketplace suggestions and promo
dismissal settings.

* Added changelog entry
2024-06-04 13:34:11 +03:00
Karol Manijak 7d3309dc6c
Related Products: hide unusable options from Inspector Controls (#47845)
* Hide unusable options from Related Products block

* Add changelog

* Fix the dscription of Single Product template compatibility layer tests

* Add E2E test

* Replace editorUtils with editor in E2E tests

* Fix typo

Co-authored-by: Bart Kalisz <bartlomiej.kalisz@gmail.com>

* Fix typo

---------

Co-authored-by: Bart Kalisz <bartlomiej.kalisz@gmail.com>
2024-06-04 11:51:27 +02:00
Albert Juhé Lluveras 017b01acf7
Minor improvements to BlockTemplatesController instantiation (#48107)
* Fix wrong comment in BlockTemplatesController class docs

* Remove unused function parameters

* Code style

* Add changelog file
2024-06-04 09:23:23 +02:00
Sam Seay 8696a2f17c
Fix an e2e test that was merged incorrectly in #47526 (#48122) 2024-06-04 18:14:31 +12:00
Ilyas Foo c53e0282a3
Fix missing "discover more" url in LYS tour (#48109)
* Add URL to discover more link

* Changelog
2024-06-04 10:33:39 +08:00
Adrian Moldovan 9b251ce318
[testing workflows] Add test environments and deprecate the daily e2e workflow (#48101)
* Deprecate pr-smoke-test.yml

* Add configs for each environment

* Add scripts

* Add arguments to playwright command

* Update pnpm scripts and existing e2e projects

* Fix shellcheck warning

* Update test env start for Gutenberg stable run

* Add changelog

* Remove unused var

* Set the USE_WP_ENV var

* Configure daily e2e jobs

* Rename some steps
2024-06-03 14:12:45 -07:00
Jonathan Lane 2a912b50ae
Test to initiate connection to WooCommerce.com (#48028)
Test to connect to wc.com

Co-authored-by: Jon Lane <jon.lane@automattic.com>
2024-06-03 13:25:07 -07:00
Alexandre Lara b702fb1288
[Experimental] Product Filters Redesign: Hide individual filter blocks from the Block Inserter (#47526)
* Hide individual filter blocks from the inserter

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

* Adjust E2E tests to check for hidden filters

* Fix file conflict

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: roykho <roykho77@gmail.com>
2024-06-03 12:26:21 -07:00
Lucio Giannotta 45cbc41f65
Move registration of block categories on the server side (#47836)
Previously, we registered block categories on the client-side, leading to them not
being available until client initialization. This meant, for example, that hooking
external blocks to our categories would result in a warning.

With this change, we register the categories server-side, and only update them
on the client-side to attach the SVG icon. This is the recommended approach
in the Gutenberg docs, to make sure we use the SVG primitive, which affords some
accessibility features.
2024-06-03 20:34:41 +02:00
Thomas Roberts b0db3aeab4
Update payment method integration links for improved a11y and not to point to WC Blocks repo (#47936) 2024-06-03 11:29:11 -07:00
Thomas Roberts bb92392d9f
Apply spacing improvements to the Checkout block (#47565) 2024-06-03 11:18:42 -07:00
Adrian Moldovan d4a4590ed6
[php tests] Skip test_order_updated_webhook_delivered_once (#48064) 2024-06-03 10:04:18 -07:00
Veljko V 3d3945652e
Fix flakiness in e2e checkout block and launch your store tests (#48016)
Co-authored-by: Adrian Moldovan <3854374+adimoldovan@users.noreply.github.com>
2024-06-03 17:08:10 +03:00
Roy Ho f7ef2ca91b
Add a higher priority z-index to coming soon banner (#48082)
* Add a higher priority z-index to coming soon banner

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-06-03 06:05:54 -07:00
Niels Lange 93214eeb2b
[Enhancement]: Block-based checkout input fields style updates (#46362)
* Adjust border and box-shadow color for textual inputs

* WIP: Style checkboxes

* Vertically center checkmark

* Adjust focus outline width

* Adjust selected checkbox background in light mode

* Adjust background color of selected radio button

* Add chevron icon to dropdown fields

* Add changelog

* Fix CSS lint issues

* Adjust outline width

* Revert checkbox styles

* Adjust input field height and label size

* Revert box-shadow styles

* Add spacing between coupon title and coupon code

* Simplify onFocus and onBlur

* Fix outline width when focusing combobox

* Ensure chevron points down after selecting value

* Adjust outline color of focused delivery option

* POC: Use currentColor for focus states
2024-06-03 18:46:08 +07:00
github-actions[bot] 9fb0aacc25
Delete changelog files based on PR 48077 (#48093)
Delete changelog files for 48077

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-06-03 16:31:27 +08:00
Bart Kalisz 44efb7ffac
Blocks E2E: Use layout-based selectors in Thumbnails block tests (#47904)
* Use layout-based selectors in Thumbnails block tests

* improve test readability

* add changelog entry
2024-06-03 10:26:27 +02:00
Seghir Nadir b4efa72b07
Revert "Add phone number to my account shipping address. (#47062)" (#48077)
* Revert "Add phone number to my account shipping address. (#47062)"

This reverts commit 4840af874a.

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-06-03 09:11:02 +02:00
Adrian Moldovan d2bde1368a
Tweak the changes configuration for e2e and api tests (#48067) 2024-05-31 07:49:49 -07:00
Roy Ho b85e1aa402
Use correct AND expression (#48011)
* Use correct AND expression

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-31 05:23:57 -07:00
Barry Hughes 9403cc46ba
Do not update the `last_access` field of API keys unnecessarily. #47912) 2024-05-31 12:44:01 +02:00
github-actions[bot] c44af56029
Delete changelog files based on PR 47994 (#48043)
Delete changelog files for 47994

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-05-31 16:51:34 +08:00
github-actions[bot] be89612237
Delete changelog files based on PR 47004 (#48041)
Delete changelog files for 47004

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-05-31 16:36:47 +08:00
Luigi Teschio 0712c6037b
Add To Cart Form: Improve the default style and add the `Stepper` style (#47664)
* Add To Cart Form: Improve the default style and add the Stepper style

* fix height button when no variation is selected

* not allow the user to set 0 as value of the input

* format css

* fix padding

* format css

* fix CSS

* unset margin to align with the button
2024-05-31 10:25:04 +02:00
github-actions[bot] 2b319684e2
Delete changelog files based on PR 47798 (#47982)
Delete changelog files for 47798

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-05-31 16:20:35 +08:00
Chi-Hsuan Huang 8cbf2356ff
Update LYS survey completion track prop names (#47985)
* Update survey completion track in Congrats component

* Add changelog

* Update prop name

* Fix survey score
2024-05-31 15:06:45 +08:00
Chi-Hsuan Huang c49960df74
Fix coming soon footer banner doesn't display properly on tablet and mobile (#47980)
* Fix coming soon footer banner doesn't display properly on tablet and mobile

* Add changelog

* Fix test

* Revert button text change

* Revert test change
2024-05-31 15:05:59 +08:00
github-actions[bot] 239d33d70e
Delete changelog files based on PR 47871 (#47946)
Delete changelog files for 47871

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-05-31 15:03:19 +08:00
Karol Manijak fe30778293
Increase product excerpt default length in Single Product template and block (#47651)
* Increase the length of Product Summary block (core/post-excerpt variation)

* Add changelog

* Bring back the Product Summary variation to original length

* Increase the Product Summary length to max 100 words in Single Product template and block

* Increase the Product Summary length to max 100 words in Single Product block

* Update tests

* Change the attribute type froms tring to niumber as expected
2024-05-31 08:19:06 +02:00
Patricia Hillebrandt 5dd7713346
[Performance]: Replace `classnames` usage with `clsx` (#47760)
* Replace classnames with clsx within woocommerce-blocks.

* Undo unnecessary change to getClassnames const.

* Replace classnames with clsx within woocommerce-admin.

* Add changelog.

* Update the pnpm lock file

* Address lint.

* Address lint errors for the block-library.
2024-05-31 05:49:36 +02:00
Chi-Hsuan Huang 38dbde4ba8
Clean up tasklist progression headercard experiment (#47983)
* Clean up tasklist progression headercard experiment

* Add changelog
2024-05-31 11:45:12 +08:00
Manzur Ahammed a7ade5d2dc
Show notice for expired and expiring subscriptions in settings and in-app extensions page (#47004)
* show notice on WC core about subs expired

* add notice in wc core my subscription page

* dismiss subscription notice

* add rest api for dismiss subscription notioce

* dismiss notice permanently

* code refactor

* fix issue in expired subs

* not showing expiring subs notice if expired sub notice render

not showing expiring subs notice if expired sub notice render

* fix lint

* added changelog

* update comment

* fix js lint

* update response

* added new endpoint for notice

* update the endpoint URL

* update the endpoint URL

* show notice after one month

* add css class for refactor

* fix lint

* Add missing callback after the merge

* check plugin is installed on current site

* add comments, and fix missing price

* fix lint

* remove unnecessary duplicate asset load

* fix notice so that it only trigger dismiss API on notices close

* localize the renew product price

* track events in the wc settings page

* Use the correct field product_regular_price instead of product_price

* Add missing period in the notice message

* add nonce to the dismiss notice API

* extract dismiss notice API call to different code

* extract expired and expiring component to 1 component

* add track events for tsx components

* fix nonce checking

* fix lint

* fix lint

* enrich the button and hyperlink url to contains the product_id of expiring / expired subscription

* fix lint

* fix lint

---------

Co-authored-by: Akeda Bagus <akeda.bagus@automattic.com>
Co-authored-by: prahesa.setia <prahesa.kusuma.setia@automattic.com>
2024-05-31 08:34:36 +07:00
Moon 04a5e67d88
LYS - Delete WooPay test orders on launch (#47832)
* Add woopayments/test-orders-count endpoint

* Load test order count

* Call deleteTestOrders

* Remove test code

* Use wc_get_orders to retrive test orders

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

* typecast deleteTestOrders

* Type removeTestOrders input

* Remove woopayment activation check -- do not need as we are using wc_get_orders

* Add tests for test order count and delete endpoints

* Delete test class

* Add tests for test order count and delete endpoints

* Lint fixes

* Lint fixes

* Lint fixes

* Remove unused import

* Fix timing issue with counting test orders

* Add hasWooPayments guard

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: rjchow <me@rjchow.com>
2024-05-30 16:19:30 -07:00
Barry Hughes 3bf01a50d3
Fix the permissions check for customer downloads REST API endpoints. (#47854)
Ensures the customer ID is actually retrieved during a permissions check.

Fixes #27109
2024-05-30 16:04:20 -07:00
Manish Menaria 4bee1547b7
Fix: "On Sale" collection isn't displaying on Editor side (#47994)
* 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>
2024-05-30 21:55:49 +05:30
github-actions[bot] 8519e621e4
Delete changelog files based on PR 47987 (#48006)
Delete changelog files for 47987

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-05-30 23:08:13 +08:00
github-actions[bot] c90b1af1b3
Delete changelog files based on PR 47938 (#48004)
Delete changelog files for 47938

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-05-30 22:58:56 +08:00
Jorge A. Torres 9766816b80
Handle `screen-reader-text` on e-mails (#47738)
* Add changelog

* Remove 'screen-reader-text' elements from e-mails using XPath

* Undo screen-reader-text removal via XPath

* Add screen-reader-text CSS to e-mail styles

* Remove screen-reader-text from e-mail CSS template

* Introduce "must use" styles for e-mails

* Document filter
2024-05-30 14:16:00 +00:00
Patricia Hillebrandt 1d593e3d89
Update pnpm lock file with react 18 (#47993)
* Update the pnpm lock file

* add changelog
2024-05-30 13:24:39 +02:00
Damián Suárez ac6fe9f933
Product Block Editor: populate shipping class slug automatically (#47896)
* extend shipping_classses with '/suggest-slug' endpoint

* generate slug automatically

* changelog

* jsdoc

* polish setting and pulling the slug

* replace checkbox by button

* reword slug inout label with "Slug"

* add slug help

* use prefix input property

* isPrimary is deprecated. Use "variant" instead

* fixing typo. props to @mdperez86
2024-05-30 12:05:34 +01:00
louwie17 b0a1787304
Revert some changes around class loading (#47987)
* Revert some changes around class loading

* Add changelog
2024-05-30 07:22:59 -03:00
Albert Juhé Lluveras 712ffa3381
Add zoom and flex slider functionatility gallery images for variable products with missing Product Image (#47714)
* 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
2024-05-30 10:41:05 +02:00
Néstor Soriano c6424c09d1
Make the plugin autoinstall process more robust (#47798)
* 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
2024-05-30 09:01:47 +02:00
Ilyas Foo c9752f1eaf
Fix analytics chart previous year data when date range includes 29 Feb (#45874)
* 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
2024-05-30 12:54:00 +08:00
Ilyas Foo 98b32b5ecc
Fix getPreviousDate default behaviour to compare previous year (#47951)
* Add default compare previous_year and add tests

* Changelogs
2024-05-30 11:31:10 +08:00
Paul Sealock a39ca21df5
[LYS] Add woocommerce_coming_soon_exclude hook (#47787) 2024-05-30 10:58:14 +12:00
Toby Herbert 0f21660277
Prevent the possibility of unpublished coupons from being available (#47739)
* 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>
2024-05-29 17:31:02 -05:00
Jonathan Lane 2f4c9ecf57
Update pnpm lock file with react 18 (#47973)
* Update pnpm-lock file with new react

* Changelog

---------

Co-authored-by: Jon Lane <jon.lane@automattic.com>
2024-05-29 17:03:48 -03:00
Moon 8cdd549038
Use LYS API endpoint for woocommerce_admin_launch_your_store_survey_completed option (#47915)
* 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>
2024-05-29 11:14:20 -07:00
louwie17 494e65f77b
Fix tracking files being loaded on the front end (#47938)
* 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
2024-05-29 14:06:42 -03:00