Commit Graph

20209 Commits

Author SHA1 Message Date
Thomas Roberts 0614d9233c
Fix changelog typo for 46019 (#46080) 2024-03-29 18:25:39 -07:00
Vedanshu Jain 51fd34350c
Add filter hooks for HPOS order search to support custom search filters (#45954)
This allows adding new order search methods, or remove existing ones via filter.
2024-03-29 11:39:45 -07:00
Roy Ho e3b1dd6a10
Remove clickable cursor on post title (#45998)
* Remove clickable cursor on post title

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

* Update plugins/woocommerce-blocks/assets/js/blocks/product-collection/edit/editor.scss

Co-authored-by: Karol Manijak <20098064+kmanijak@users.noreply.github.com>

* Add missing semicolon

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Karol Manijak <20098064+kmanijak@users.noreply.github.com>
2024-03-29 08:35:01 -07:00
Luigi Teschio 6e87869200
[Blocks - E2E] Update WordPress version (#46053)
* update WordPress version

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-29 16:11:33 +01:00
Oleksandr Aratovskyi 14cd6e6dfd
Remove ToS acceptance in WCPay banner and promotions JSON (#46003)
* Remove ToS acceptance in WCPay banner and promotions JSON

* Add changefile(s) from automation for the following project(s): @woocommerce/onboarding, packages/php/remote-specs-validation

* Add line break in banner to look nicer

* Center banner content

* Style banner for mobile version

* fix js test to use another block (previous one no longer exist)

* Add changefile(s) from automation for the following project(s): @woocommerce/onboarding, packages/php/remote-specs-validation, woocommerce

* Add comment to css

---------

Co-authored-by: oaratovskyi <oleksandr.aratovskyi@automattic.com>
Co-authored-by: github-actions <github-actions@github.com>
2024-03-29 14:59:29 +02:00
Niels Lange cad1aa6c2b
Ensure that each <CheckboxControl> component has a unique ID (#45655)
* Ensure that each <CheckboxControl> component has a unique id

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

* Optimise setup and teardown settings

* Wrapping setup and teardown in act()

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-29 12:46:13 +01:00
Thomas Roberts dbf0938fdd
Fix styling bug with saved payment methods in Checkout block (#46019) 2024-03-29 02:30:55 -07:00
Moon 145d75a08f
Add private link for LYS (#45915)
* Add private link

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

* Use useCopyToClipboard and remove label click behavior

* Preload settings for site visibility

* Default to live when woocommerce_coming_soon option is not available

* Remove use of classnames -- no longer needed

* Lint fixes

* Lint fixes

* Remove changes for label click behavior -- we will work on it in a separate PR

* Remove unused import

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-29 05:08:46 +00:00
Ivan Stojadinov 56ca4e3f3c
Delete changelog files based on PR 45892 (#46048)
Delete changelog files based on PR #45892
2024-03-28 17:46:14 +01:00
github-actions[bot] 171b5cd941
Delete changelog files based on PR 45962 (#46043)
Delete changelog files for 45962

Co-authored-by: WooCommerce Bot <no-reply@woo.com>
2024-03-28 13:59:23 +01:00
github-actions[bot] f0fa603bb7
Delete changelog files based on PR 45981 (#46041)
Delete changelog files for 45981

Co-authored-by: WooCommerce Bot <no-reply@woo.com>
2024-03-28 13:56:56 +01:00
github-actions[bot] b704d96904
Delete changelog files based on PR 45939 (#45993)
Delete changelog files for 45939

Co-authored-by: WooCommerce Bot <no-reply@woo.com>
2024-03-28 13:08:49 +01:00
Vedanshu Jain eda67f3b5d
Re-introduce 44084 and 44790 with back-compat (#45134)
* Introduce 44084 and 44790 back to be reintroduced with back compat.

This reverts commit fcdbc76414.

* Add changelog.

* Manually call `rest_request_after_callbacks` filter for backward compatibility.

* Make the controller checks more robust.

* Dont call rest api when controller is found but response cant be calculated.

* Add unit test for hydration class.

* Update comment docs for future warning.

Co-authored-by: Seghir Nadir <nadir.seghir@gmail.com>

* Return unfiltered routes array to prevent overwriting.

* PHPCS fixes.

* Use hydration context filters instead of duplicating REST API filters.

* PHPCS fixes.

* Adjusted unit test for new filters.

---------

Co-authored-by: Seghir Nadir <nadir.seghir@gmail.com>
2024-03-28 16:55:06 +05:30
Vlad Olaru 4917452b1f
Fix Payments and APMs tasks links when WooPayments is connected (#45962)
* Link Payments task item to Overview if WooPayments is connected

* Link APMs task item to payments task page

* Add changelog for WooCommerce

* If WCPay is connected go to Payments Overview page

It shouldn't matter if the WCPay account is fully or partially onboarded.
2024-03-28 11:52:58 +02:00
Chi-Hsuan Huang 3667d2b620
Add LYS hub site preview (#45976)
* Add lys hub site preview

* Add changelog

* Improve loading UI

* Use REQUEST_URI

* Set min-width to the page
2024-03-28 17:19:35 +08:00
Niels Lange 89031ca8a5
Adjust shipping calculations copy (#46022)
* Adjust shipping calculations copy

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-28 12:59:09 +07:00
Chi-Hsuan Huang d24a551146
Use `"You’re"` in task list progress title (#45978)
* Use "You’re" in task list progress title

* Add changelog
2024-03-28 09:21:01 +08:00
Adrian Moldovan ad60ba3a68
Add changes to tests projects in package.json (#46016) 2024-03-27 16:35:08 +00:00
Paulo Arromba 7c75791b7d
Fix: Suppress deprecated warning when applying a coupon on Cart in PHP > 8.0 (#45981)
* Fix deprecated warning when applying a coupon on Cart in PHP > 8.0

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

* Changed property type to protected

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-27 16:27:17 +00:00
Seghir Nadir 3513af5ec8
Validate missing fields in Store API (#45840)
* fix field validation

* add changelog

* fix tests

* add more checks

* fix arrays
2024-03-27 16:50:48 +01:00
Adrian Moldovan 7d6d2c94dd
Include e2e, api and performance tests in ci.yml (#45190)
Co-authored-by: Christopher Allford <6451942+ObliviousHarmony@users.noreply.github.com>
Co-authored-by: Ron Rennick <ron@ronandandrea.com>
2024-03-27 17:21:49 +02:00
Matt Sherman bb10ee5e57
Product Editor: Fix form mis-alignment (#45963)
* Remove invalid and unneeded position: static

* Changelog
2024-03-27 11:20:31 -04:00
Jonathan Lane d0f25550b7
Test to create various shipping methods (#45966)
Co-authored-by: Jon Lane <jon.lane@automattic.com>
2024-03-27 11:46:20 -03:00
Adrian Moldovan 166ca6d7db
[e2e tests] Update more products tests to work with blocks themes (#45923) 2024-03-27 11:41:50 -03:00
Fernando Marichal df90c91f08
Add E2E tests for grouped products (#45964)
* Add E2E tests for grouped products

* Add check

* Add changelog

* Fix tests

* Remove comment
2024-03-27 11:40:31 -03:00
Fernando Marichal 3cfd3893b4
Add E2E tests for product variation notices (#45853)
* Tests for variations warning

* Add changelog
2024-03-27 11:40:19 -03:00
Niels Lange 5cde8c5efe
Add e2e tests for virtual orders (#45824)
* Add e2e tests for virtual orders and refactor test names

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

* Optimise setup and teardown

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-27 21:28:54 +07:00
Alba Rincón 41e1da5033
[CYS] Redirect to transitional page to the intro page if the CYS task was not completed (#45933)
* Redirect to intro page when accessing the transitional page if no customized

* Remove only

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

* Check if the task is completed

* Add transition screen class

* Remove unused import

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-27 14:13:52 +01:00
Jonathan Lane c8202bc729
Enhance merchant new order test (#45965)
Co-authored-by: Jon Lane <jon.lane@automattic.com>
2024-03-27 14:36:49 +02:00
Luigi Teschio 11c31c2312
CYS - E2E tests: Add color picker E2E tests (#45926)
* CYS - E2E tests: Add color picker E2E tests

* remove not necessary changes

* fix E2E tests

* re-add beforeEach

* fix E2E tests

* improve test assertation

* add comment

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

* fix E2E tests

* don't print error

* fix E2E tests

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-27 12:01:26 +00:00
Adrian Moldovan 6ddbbae207
[e2e test] Fix locator for customer combobox in create order test (#45983) 2024-03-27 12:48:14 +01:00
Tom Cafferkey 271da399cc
Customer Account block: Remove margin-left from label (#45934)
Co-authored-by: github-actions <github-actions@github.com>
2024-03-27 10:24:11 +00:00
Luigi Teschio 66b5481590
Fix E2E tests for WordPress 6.5 (#44593)
* Add sharding to Blocks e2e tests

* Changelog

* Push a change to Blocks README to trigger tests

* Fix syntax

* Fixed again

* Try again

* Trying to get the shard number

* Shard names

* fix E2E test

* use wordpress 6.5 as test env

* update util

* fix Mini Cart Block E2E test

* add editor dependency

* fix E2E tests

* fix E2E tests

* fix E2E tests

* restore global setup file

* fix E2E tests

* fix global setup

* try now

* try now

* fix E2E test

* fix E2E test

* fix mini cart E2E test

* add changelog

* complete all the jobs

* update playwright

* fix E2E tests

* fix E2E test

* try now

* fix E2E test

* not show welcome guide for the post editor

* update configuration

* fix guest storage state

* fix E2E tests

* check now

* fix E2E tests

* fix command

* improve selector

* use WordPress 6.5 beta 2

* use WordPress 6.5 beta 3

* fix canvas use

* wait for button

* fix E2E test

* fix E2E test

* fix product button

* fix product collection tests

* fix wp build link

* use beforeEach

* fix E2E tests

* use WordPress RC2

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

* trigger CI

* fix E2E tests

* fix E2E tests

* fix E2E test

* fix E2E tests

* add timeout

* Fix flaky locator assertions
...by replacing them with dedicaed auto-waiting ones.

* Apply correct use of waitForRequest/Response and remove where unnecessary

* Remove obsolete waitUntils

* Fix accidentally isolated test

* Replace saveTemplate with core's saveSiteEditorEntities

* Fix findProductRow util

* Restore necessary request waiters

* Use activateTheme util instead of cli call

* Remove unused import

* Fix request destructured call
Request properties cannot be destructured (todo: create upstream issue)

* Revert some waitForRequest changes
These need to be investigated for heavy bleeding from side-effects

* Fix failing cart checkout test

* Set navigation timeout to 10s
We need this so that API like page.goto or page.waitForURL doesn't take 100 seconds (global timeout) to throw.

* Do not close the page in the page fixture override
The page will be closed anyway, and by closing it explicitly in the teardown phase of the fixture we create a flaky race condition where the page might be closed before the action/navigation timeout is reached, resulting in "page closed!" error instead of, e.g. "locator.fill timed out".

* Revert product collection tests due to conflicts

* Try fixing E2E test

* Remove some random change

* Revert to programmatic blur 🤷

* Fix additional checkout fields test

* Add a waitForRequest safety check in case it's debounced

* Fix price filter test

* Fix flaky visitTemplateEditor util

* Remove obsolete code from global setup

* Revert "Fix flaky visitTemplateEditor util"

This reverts commit 227336f265.

* update to WordPress RC3

* Add waitForCustomerDataUpdate function

* Don't wait for requests and use data store instead

* Try with new wait condition

* Re-add wait condition

* Wait for customer update in guest checkout test

* Add changelog

* fix lint error

* fix some E2E tests

* disable welcome guide

* remove beforeAll

* add timeout

* add another timeout

* increase timeout

* Add call to waitForSiteEditorFinishLoading when editing the theme template

* remove timeout

* remove not necessary comment

* clean changelog

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

* remove changelog

---------

Co-authored-by: Jon Lane <jon.lane@automattic.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Bart Kalisz <bartlomiej.kalisz@gmail.com>
Co-authored-by: Karol Manijak <20098064+kmanijak@users.noreply.github.com>
Co-authored-by: Thomas Roberts <thomas.roberts@automattic.com>
Co-authored-by: Albert Juhé Lluveras <contact@albertjuhe.com>
2024-03-27 10:54:44 +01:00
Jonathan Lane ca7e3b99ed
A few updates for flaky e2e tests (#45856)
Co-authored-by: Jon Lane <jon.lane@automattic.com>
2024-03-27 10:38:15 +02:00
louwie17 8f17cfe7f1
Remove accidental count call within an is_array check (#45939)
Remove accidental count call within an is_array check that always renders false
2024-03-27 05:06:16 -03:00
Ilyas Foo 7a70a93773
Fix DataSourcePoller footer error on upgrade downgrade (#45892)
* Add fix

* Changelog

* Change fix approach since it's crashing on 8.7.0
2024-03-27 11:35:52 +08:00
Barry Hughes 30cf68a51f
Add wrapper that can sanitize using `wp_kses_post` rules, but also allows `style` elements (#45407)
Add wrapper that can sanitize using `wp_kses_post` rules, but also allowing `style` elements.
2024-03-26 11:42:01 -07:00
79mplus Admin 16760c1418
don't show draft product in featured products block (#45763)
* don't show draft product in featured products block

* updated the code to show only published product in featured products block

* Update plugins/woocommerce/src/Blocks/BlockTypes/FeaturedProduct.php

Co-authored-by: Albert Juhé Lluveras <aljullu@gmail.com>

* added a changelog file

---------

Co-authored-by: Albert Juhé Lluveras <aljullu@gmail.com>
2024-03-26 16:08:06 +01:00
Jonathan Lane af93ef15dd
Enhance the e2e tests for merchant create order flows (#45816)
Co-authored-by: Jon Lane <jon.lane@automattic.com>
Co-authored-by: Adrian Moldovan <3854374+adimoldovan@users.noreply.github.com>
2024-03-26 16:27:48 +02:00
Paul Sealock 619804cff3
Stylelint: Update config to double quotes (#45607)
* Add eslint override

* bump versions stylelint config

* re pnpm install

* fix config

* move to double quotes in scss

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

* lint fix new scss files

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-26 10:41:34 -03:00
Albert Juhé Lluveras 84065065be
Add WordPress.WP.Capabilities config to phpcs.xml (#45927)
* Add WordPress.WP.Capabilities config to phpcs.xml

* Add changelog file
2024-03-26 14:16:31 +01:00
Peter Fabian 3b2cb26631
[WP6.5] Added woocommerce requirement to Woo AI's header. (#45871)
* Added plugin requirement.
2024-03-26 13:24:41 +01:00
Chi-Hsuan Huang 2481778b2c
Update Launch Your Store task action URL (#45932)
* Add get_action_url method to LaunchYourStore task

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-26 19:51:56 +08:00
Jonathan Lane 859191f241
Improve tests for the marketing overview page (#45814)
Co-authored-by: Jon Lane <jon.lane@automattic.com>
Co-authored-by: Adrian Moldovan <3854374+adimoldovan@users.noreply.github.com>
2024-03-26 13:36:55 +02:00
Alba Rincón 217a70a31a
[CYS] Add transitional page e2e tests (#45894)
* Add transitional page tests

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-26 09:55:36 +01:00
Alba Rincón 91dda90ab3
[CYS] Add spacing between the title and the rest of the pattern (#45830)
* Add spacing between the title and the rest of the pattern

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

* Remove duplicated blockgap

* Add spacing

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-26 09:54:08 +01:00
Tom Cafferkey 0cb3b4a9ad
Block Hooks API: Add CustomerAccount block to header (#43267)
Co-authored-by: github-actions <github-actions@github.com>
2024-03-26 08:38:06 +00:00
Niels Lange 142b7d69d9
Allow to disable shipping independent of Local Pickup settings (#45828)
* Ensure that shipping can be disabled independent of Local Pickup

* Fix PHPCS issues

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-26 12:02:34 +07:00
RJ 6c12f8b6d4
add: lys xstate url handling (#45803)
* add: lys xstate url handling

* added: tests and fixes and changelog
2024-03-26 10:29:16 +08:00
RJ d063452139
dev: added xstate v5 inspector (#45879)
* dev: added xstate v5 inspector

* pnpm lock
2024-03-26 10:28:51 +08:00
Ron Rennick 1a03a64248
Sync husky, @playwright/test, github-label-sync (#45551)
* bump husky, remove remnants from blocks

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

* add @playwright/test to syncpack

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

* update pnpm-lock.yaml

* add github-label-sync to syncpack

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

---------

Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
Co-authored-by: github-actions <github-actions@github.com>
2024-03-25 15:05:09 -03:00
github-actions[bot] f325727a7f
Prep trunk for 8.9 cycle (#45817)
Prep trunk for 8.9 cycle with version bump to 8.9.0-dev

Co-authored-by: WooCommerce Bot <no-reply@woo.com>
2024-03-25 17:19:35 +01:00
github-actions[bot] 5bc944f394
Release: Remove 8.8 change files (#45818)
Delete changelog files from 8.8 release

Co-authored-by: WooCommerce Bot <no-reply@woo.com>
2024-03-25 17:17:17 +01:00
Rodrigue b3a1d8c922
Add a filter for the items to apply coupons array. (#45791)
* Add a filter for the items to apply coupons array.

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

* Add filter docbloc.

* Add since tag in filter docbloc.

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-25 17:23:47 +02:00
Adrian Moldovan 2403baca01
[e2e tests] Update customer-payment-page spec to be theme agnostic (#45888) 2024-03-25 12:03:30 -03:00
Adrian Moldovan c5c68f5b68
[e2e tests] Fix can create a simple product tests (#45884)
* Update category check in frontend

* Add changelog

* Removed describe block

* Test with single shard

* Add the 5 shards back

* Add the 5 shards back
2024-03-25 11:49:12 -03:00
Alexandre Lara 207a5b43d2
Single Product Block: Add missing allowed inner blocks to fix nesting placement restrictions (#45530)
* Add missing allowed inner blocks to Single Product block

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

* Remove unnecessary attribute from Single Product block template

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-25 10:59:57 -03:00
Marco Almeida 39ecfece30
Fix "add_action" accepted args (#45862)
* Fix "add_action" accepted args

Fixing the "add_action" accepted args on the examples

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-25 12:13:44 +00:00
And Finally 8fe1c4005e
In-app marketplace: remove extension update count bubble from menu item if we're showing a promotional bubble (#45832)
* Strip out extension update count bubble from menu item if we are showing a promotional bubble.

* Changelog.
2024-03-25 11:41:32 +00:00
Thomas Roberts c1d644dc16
Try fixing additional checkout fields E2E test (#45789)
Co-authored-by: Karol Manijak <20098064+kmanijak@users.noreply.github.com>
2024-03-25 03:56:55 -07:00
Alba Rincón 4f2ed8d262
[CYS - Core] E2E tests: add coverage for the Intro page (#45356)
* Add test for the offline intro banner

* WIP

* WIP

* Add more tests

* Remove unnecessary code

* Remove consoles

* Remove console

* Update strings

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

* Remove unnecessary code

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-25 10:28:02 +01:00
Bart Kalisz 080538ad2f
Apply upstream performance improvement to `_get_templates_paths` (#45619)
Co-authored-by: Tom Cafferkey <tjcafferkey@gmail.com>
2024-03-25 09:18:02 +00:00
Moon 12c53d9264
Add `coming soon` page and setting (#45773)
* Add 'coming-soon' page

* Add coming soon page when user hits the core profiler page.

* Added coming soon page selector under Page setup

* Move coming soon page logic to launch your store feature class

* Conditionally add coming soon select

* Move coming soon page creation logic to WooCommerce Home

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

* Fix tests


---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-22 15:33:20 -07:00
Moon 5352c705b5
Fix Shipping Task input visual issue on Firefox (#45778)
* Fix layout issue -- add align-items for flex items

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-22 10:52:47 -07:00
Leif Singer a45e5eda4f
Add a test for the `woocommerce_specific_allowed_countries` option (#45810)
* add a test for the `woocommerce_specific_allowed_countries` option

* add changelog file
2024-03-22 10:47:25 -07:00
Maikel Perez 54476cb7f3
After Variations are created, disable the fields that don’t do anything (#45838)
* Disable woocommerce/product-regular-price-field when product type is variable

* Disable woocommerce/product-sale-price-field when product type is variable

* Disable woocommerce/product-sku-field when product type is variable

* Disable Track stock quantity toggle when product type is variable

* Disable woocommerce/product-radio-field when product type is variable

* Disable woocommerce/product-shipping-class-field when product type is variable

* Disable woocommerce/product-shipping-dimensions-fields when product type is variable

* Add changelog files

* Fix php linter
2024-03-22 13:52:42 -03:00
Damián Suárez 27124828e9
[Product Block Editor]: register `metadata` attribute for all blocks (#45657)
* register the `metadata` attribute for all blocks

* bind value attribute with the nane product entity

* changelog

* add a ToDo note

* rename edit component fn to NameBlockEdit

* changelog

* restore @ts-export line

* fix eslint issue

* fix eslint issue
2024-03-22 12:23:38 -04:00
Veljko V 1ba4bcef58
Update existing test to include scenarios for adjusting shipping and payment options (#45755)
* Add test for shipping methods but as commented

* Update comment with issue number
2024-03-22 12:44:14 -03:00
Fernando Marichal 3842611975
Update copy of inventory management fields (#45801)
* Update copy of inventory management fields

* Add changelog

* Add changelog
2024-03-22 11:49:54 -03:00
Seghir Nadir 401737994f
Use state name in Checkout block address card (#45799)
* Use state name in address card

* fix linting issue

* remove extra check for checkout endpoint

* address review feedback
2024-03-22 15:14:14 +01:00
Adrian Moldovan 88834ff469
[e2e tests] Disable focused test (#45825) 2024-03-22 12:45:04 +00:00
Seghir Nadir 7d944cd259
Add Shipping phone number to the order preview panel (#45788)
* Add Shipping phone number to the order preview panel

* Update plugins/woocommerce/src/Internal/Admin/Orders/ListTable.php

Co-authored-by: Paulo Arromba <17236129+wavvves@users.noreply.github.com>

* Update plugins/woocommerce/src/Internal/Admin/Orders/ListTable.php

Co-authored-by: Paulo Arromba <17236129+wavvves@users.noreply.github.com>

* Update plugins/woocommerce/src/Internal/Admin/Orders/ListTable.php

Co-authored-by: Paulo Arromba <17236129+wavvves@users.noreply.github.com>

* Update plugins/woocommerce/src/Internal/Admin/Orders/ListTable.php

Co-authored-by: Paulo Arromba <17236129+wavvves@users.noreply.github.com>

---------

Co-authored-by: Paulo Arromba <17236129+wavvves@users.noreply.github.com>
2024-03-22 13:08:53 +01:00
Jonathan Lane 4c4a581b71
[E2E] Initiate a woo.com connection (#45813)
Co-authored-by: Jon Lane <jon.lane@automattic.com>
2024-03-22 11:53:47 +02:00
Manish Menaria ca7aed0a95
Product Collection: Don't show publicly non-queryable taxonomies (#45781)
* Don't show publicly non-queryable taxonomies

The main enhancement involves adding a visibility filter to the taxonomies query. Now, the query considers the `publicly_queryable` property of each taxonomy. Only taxonomies marked as publicly queryable are included in the final list returned by the `useTaxonomies` hook. This change ensures that the Product Collection block's taxonomy controls only display taxonomies relevant and accessible to the public, enhancing both the usability for content creators and the relevance of taxonomy selections for site visitors.

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-22 15:01:58 +05:30
Luigi Teschio c2a3abae51
[CYS - E2E tests] Add E2E tests for the loading screen (#45804)
* CYS: initial E2E tests loading page

* add more cases

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-22 10:07:33 +01:00
Christopher Allford b8bd480faf
Ensure Product Collection Block's `queryId` Uniqueness (#44522)
Since we don't need it to be _perfectly_ stable,
we can just set the `queryId` to the instance ID
on every component mounting. This is fine and
won't mark the attribute as dirty unless a
collection block is added, deleted, or moved
in just the right way. The exception to this
is collection blocks in sync patterns.
In this case the ID cannot change
because it can cause update loops in some
cases that freeze the browser.
2024-03-22 01:40:15 -07:00
Christopher Allford 5002b62d00
Reset Product Collection Pagination When Filtering (#45693)
Since we can't be sure that a page exists once the filters have been
changed we should reset the page when they do.
2024-03-21 14:03:13 -07:00
Maikel Perez a5943ab0ef
Advanced settings > Features: remove Navigation setting when store isn't using it (#45800)
* Remove Navigation setting when store isn't using it

* Add changelog file

* Fix api core test
2024-03-21 16:09:30 -03:00
Patricia Hillebrandt b790f155d0
[CYS on Core] Update the copy for the fonts opt-in modal (#45805)
* Update the copy for the fonts opt-in modal

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-21 19:49:37 +01:00
Jorge A. Torres db34a15116
Handle posts > HPOS redirect more gracefully when backup post is missing (#45605)
* Attempt to determine order type from HPOS side too in `PostsRedirectionController`

* Add changelog

* Simplify redirect logic

* Linter hates short ternaries
2024-03-21 18:33:59 +00:00
Alba Rincón 4eb9063a06
[CYS] Update the `Share feedback` survey design (#45802)
* Update the CYS feedback survey design

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

* Fix typo

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-21 18:30:40 +01:00
Adrian Moldovan d8453be3df
[e2e tests] Disable the task list reminder bar in products list (#45772)
Disable the task list reminder bar, it can interfere with the quick actions
2024-03-21 10:20:32 -07:00
Adrian Moldovan 1e0be60e7e
[e2e tests] Add tests for users management (#45673)
* Add skeleton spec

* Add missing await

* Update customer role in test env setup

* Split specs

* Add tests for user creation

* Added tests for users deletion

* Fix API tests after env setup customer role change

* Fix API tests after env setup customer role change

* Add update customer steps

* Update user edit tests

* Updated comment
2024-03-21 10:18:23 -07:00
Corey McKrill b2d70262b7
Products: Avoid fatal during variation search (#45776)
* Products: Avoid fatal during variation search

Most product types' data objects store `WC_Product_Attribute` objects in
their attributes property, whereas Product variation data objects store
an associative array of key/value pairs in their attributes property.
This is problematic because it means a fatal error can be thrown when
code assumes that a product's attributes are objects with methods rather
than simply strings. Ideally, attributes would work the same everywhere,
but it would be challenging to fix that in the codebase without breaking
backcompat. So instead, in this PR, we are simply adding some logic in
the `find_matching_product_variation` method to ensure that we're not
trying to retrieve a variation of a product object that is already a
variation.

* Fix linting issue
2024-03-21 18:07:09 +01:00
Patricia Hillebrandt 5ee4a4c1b1
[CYS] Ensure the CYS task is marked as complete only if the user customized their theme in the editor (#45792)
* Make sure the woocommerce_admin_customize_store_completed is marked as complete whenever global styles are updated by the user.

* Check for the WP_Post object before attempting to access the content property

* Mark the cys task as completed when modifying a template or template_part

* Unify the mark as complete methods and update the hooks.

* update docblock

* remove unnecessary ()

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

* Ensure the woocommerce_admin_customize_store_completed option is marked as complete whenever the user updates their styles in the editor

* Fix lint errors

---------

Co-authored-by: Alba Rincón <alba.rincon@automattic.com>
Co-authored-by: github-actions <github-actions@github.com>
2024-03-21 17:36:41 +01:00
Roy Ho 5aac82b0fe
Consolidate and move password protected product test (#45752)
* Consolidate and move password protected product test

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

* Move test to non side effect and remove remaining empty test file

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-21 07:44:30 -07:00
And Finally 40b14aea16
Don't return from `WC_Admin_Marketplace_Promotions::fetch_marketplace_promotions` if we get an empty or bad response (#45786)
* Removed return statements from conditions in `WC_Admin_Marketplace_Promotions::fetch_marketplace_promotions`. With these, if the marketplace gets a good response from the API and then later a bad or empty response, it fails to update the promotions transient, meaning that notices and menu bubbles may persist in stores after we've removed them from the API. We check the dates of promotions, so they should disappear when they expire, but it's a good idea to clear this data if the API returns an empty response or if there's an error fetching it.

* Changelog.

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

* Removed duplicate changelog file.

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

* Removed duplicate changelog file.

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-21 14:42:25 +00:00
Tom Cafferkey f2d828f49a
Block Hooks API: Add the block hooks algorithm to Woo templates (#45737)
Co-authored-by: github-actions <github-actions@github.com>
2024-03-21 08:50:40 +00:00
Tom Cafferkey e4017f0800
Block Hooks: Run block hooks on all block themes (#45581)
Co-authored-by: github-actions <github-actions@github.com>
2024-03-21 08:25:27 +00:00
Vedanshu Jain 265f3403e2
New filter to set a custom precision value for the WC calculations (#45743)
* New filter to set a custom precision value for the WC calculations

* Add changelog and docblock.

* Add since tag.

* Add since tag.

* Add prefix + correct version.

* Better filter name

---------

Co-authored-by: Yordan Soares <contacto@yordansoar.es>
2024-03-21 07:53:40 +00:00
Vedanshu Jain 622c178f28
[Tweak] Fix comment in order-received.php template (#45742)
* [Docs] Correct filename

* PHPCS fixes.

* Fix version number.

---------

Co-authored-by: konradpomocny <36989635+konradpomocny@users.noreply.github.com>
2024-03-21 07:48:02 +00:00
Luigi Teschio 7f45f13c7d
CYS - Core: fix: not mark Customize your store step as completed when the user switches theme (#45762)
* CYS - Core: fix: not mark   step as completed when the user switches theme

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

* trigger CI

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-20 22:47:05 +00:00
Roy Ho 5acef655b8
Add gap between quantity field and add to cart button when stacked (#45758)
* Add gap between quantity field and add to cart button when stacked

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

* Add specificity to quantity

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-20 15:41:10 -07:00
Michael Pretty bef14c0320
Add index to zone_id column for woocommerce_shipping_zone_locations (#45598)
Add an index to the zone_id column of woocommerce_shipping_zone_locations.
Remove the separate index on location_id. Shipping zone locations are read by zone_id when a ShippingZone is read from the database. The zone_id is also used in join statements with the shipping zones table. So an index would improve performance there. The separate KEY for the location_id column is not needed as the primary key for the table already creates an index automatically.
2024-03-20 15:14:23 -07:00
Fernando Marichal d5651111fa
Update product editor experiment name and enable pre-publish panel by default (#45745)
* Enable prepublish panel by default

* Rename experiment

* Add changelog

* Fix e2e tests

* Fix disable-block-editor
2024-03-20 17:14:54 -03:00
Adrian Moldovan 207cccdc33
[e2e tests] Improve test stability by using a stricter locator when checking product variation (#45710)
Use a stricter locator when asserting the size variation
2024-03-20 16:21:43 -03:00
Alba Rincón 90f322a7f2
Improve hero product chessboard pattern spacing (#45756)
* Improve hero product chessboard pattern spacing

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-20 18:56:54 +00:00
Alba Rincón 87bfa48638
[CYS] Fix the border of the toggle control in the assembler (#45744)
* Fix the color of the toggle control in the assembler

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-20 19:03:31 +01:00
Niels Lange be63107c92
Improve local pickup flow (#45614)
* Update shipping calculation copy

* Update shipping calculation copy

* Update shipping calculation copy

* Update legacy local pickup copy

* Remove ‘target="_blank"’ and ‘rel="noopener noreferrer"’

* WIP: Conditional message and display of legacy local pickup option

* Make util function static

* Make texts translatable

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

* Fix PHPCS errors

* Fix PHPCS errors

* Update plugins/woocommerce/includes/class-wc-shipping.php

Co-authored-by: Gerhard Potgieter <potgieterg@gmail.com>

* Remove duplicate helper method

* Improve helper method

* Replace “esc_html__” with “wp_kses” to keep URL clickable

* Optimise is_legacy_local_pickup_active() method

* Adjust CSS definitions

* Refactor is_cart_block_default() and is_checkout_block_default()

* Ensure that Rest of the World shipping methods are available

* Remove obsolete space

* Adjust text spacing

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Gerhard Potgieter <potgieterg@gmail.com>
2024-03-20 14:54:12 +00:00
Thilina Pituwala d065b786f5
Remove the ability to update Woo.com extensions not available in WP.org plugin directory (#44279)
* Remove the hook for updating update_plugins transient with data fetched from Woo.com

This prevents the WP core from updating Woo.com plugins.

* Remove the hook for updating update_themes transient with data fetched from Woo.com

This prevents the WP core from updating Woo.com themes.

* Remove the class hand hooks used for updating the API response of WP.org with update URI's from Woo.com.

* Add change log file.

* Add update_plugins and themes transient update hooks back while removing the package from Woo.com extensions.

When a Woo hosted plugin has an update, this will allow showing the update message but block the ability to update.

* Adding a hook to modify the plugin update notification on plugins.php.

When a Woo.com hosted plugin has an update available it will show a message to install Woo Marketplace plugin, if it's not installed.

* Utility class for Woo Marketplace plugin.

* Check wether the Woo marketplace plugin is already installed before modifying update notice.

* Update docblocks.

* Add status end point for wccom-site API.

* Check the existence of marketplace plugin only after the plugins are loaded.

* Add WP.org plugin api response updater back to core.

* Function to identify if the market-place plugin is installed.

* Update status API response with installation status.

* Update the status variable push to store admin frontend with information about market-place plugin.

* Styles for woo-connect-plugin component.

* Component for displaying the message to install Woo Connect plugin based on the installation status.

* Add Woo Connect plugin notice to my-subscriptions page.

* Add Woo connect plugin message to discover page.

* Add Woo Connect install/download urls to constants file.

* Add a modal for asking the user to install Woo Connect plugin.

* Update strings with constants.

* Show the Woo Connect modal when user updating plugins without Woo Connect installed.

* Show Woo Connect install notifications only when the site is connected.

* Update plugin management page messaging.

* Update notification on connect screen.

* Update notifications on plugin management page.

* Remove additional spacing in Plugin Install Notice and spacing in the discover page results and the notice.

* Use notice component instead of Card.

* Minor improvements to readability.

* Add translation support for messages displayed on plugins.php.

* Update woo connect plugin installation URL (#45127)

* Ad functions for generating WooConnect plugin install URLs.

* Make WooConnect install url to available to marketplace components.

* Make WooConnect install url to available to marketplace components.

* Link install buttons to install URL with access_token and secret.

* Update Woo Update Manager download url.

* Show admin notice to install Woo Update Manager on plugins.php.

* Adding the view for admin notice for installing woo_update_manager.

* Show woo update manager installation notice on WC admin pages and make the notice dissmisable.

* Update the install url for Woo Update Manager by adding the product ID and introduce a filter to override the product ID.

* Change the plugin name to Woo Update Manager.

* Change the download url for woo update manager

* Fix the margin below the Woo Update plugin install notice.

* Rename Woo Connect to Woo Update Manager.

* Rename wccom-site status endpoint response variables based on plugin name changes.

* Update the plugin main file name for Woo Update Manager.

* Updating the download URL.

* Updating css class names and file names from `woo-connect-plugin` to `woo-update-manager`.

* Change wooConnect variables to wooUpdateManager.

* Rename WC_Helper_Plugin to WC_Woo_Update_Manager_Plugin and remove references to market place plugin.

* Extract and reuse the logic for creating the signature.

* Use WC built-in method to check if the current page is a WC page.

* Add source parameter for installer.

* Update text copies based on flows for in-app Woo Update Manager install message.

* Update admin notice based on the flows.

* Update connect store message.

* Update the text based on the latest flow and show a different message when WUM is installed but not activated.

* Use html text for install notice message.

* Implement the bubble showing number of updates available on WooCommerce -> Extensions menu. Add one to available Woo.com updates if WUM is not installed or activated.

* Update install url to new structure.

* Update download url for WUM.

* Add a method to get the id of the WUM.

* Remove WUM from available to install list of extensions on my-subscriptions tab.

* Remove the hard coded ID of the Woo Update Manager and use the slug to get the ID of the plugin based on update-check response.

* Fixing the notice generated due to empty body.

* Update CTA and image for the not connected screen.

* Increasing the left margin of the install notice to match admin notices.

* Add close button to modal with message to activate WUM.

* Add install/activate notice to Browse and Themes tabs.

* Add the view for showing admin notice for activating the plugin.

* Update plugin name on install admin notice.

* Show install or activate admin notice based on the context.

* Update comment

* Make the linked text shorter in plugin update message.

* Generate a signed auto-install URL for woo hosted plugins without helper API (#45313)

* Generate a signed auto-install URL for woo hosted plugins without helper API

* Use product slug in auto-install URL instead of product id.

* Update activate Woo Update Manager modal buttons.

* Change install url from Woo Update Manager ID to slug.

* Allow defining the menu title and page title separately for when adding menus and sub menus in WooCommerce Admin.

* Set the page title separately for WooCommerce Extensions menu.

* Fix the update count issue.

* Update the download URL for Woo Update Manager.

* Update the download link for WUM in admin notices.

* Show WUM admin notices on WC Admin pages only when the site is connected.

* Remove additional slash in plugin admin url.

* Add wum-installed parameter to the connect URL (#45702)

* Add wum-installed parameter to the connect URL

* Send status of Woo Update Manager installation on connection init.

* Revert "Add wum-installed parameter to the connect URL"

This reverts commit 4c55038b03.

---------

Co-authored-by: Denis Dvali <denis.dvali@automattic.com>

* Fix lint errors.

* Fix lint error.

* Fix lint errors.

* Fix js lint issues.

* Update Woo Update manager admin notice.

---------

Co-authored-by: Muhammad Anas <anastts.pk@gmail.com>
Co-authored-by: Denis Dvali <denis.dvali@automattic.com>
2024-03-20 15:02:23 +01:00