Commit Graph

65086 Commits

Author SHA1 Message Date
Tung Du 5047182efd
Product Collection: Fix: ensure the global product object is always ready for compatibility layer (#49971)
* add: method for block to declare extra block setting for registration

* update: register Product Template block with skip_inner_blocks

* chore: remove unused import

* chore: changelog

* Revert "update: register Product Template block with skip_inner_blocks"

This reverts commit 88b076bde3.

* Revert "add: method for block to declare extra block setting for registration"

This reverts commit d1545dbba5.

* fix: filter block setting for product template

* chore: changelog

* Revert "chore: remove unused import"

This reverts commit 0f8f66bad1.
2024-08-09 16:37:45 +07:00
Tung Du aaf3046eb6
[Experimental] Product Filters Redesign: Attribute Filters: List style (#50340)
* update: new simplified markup and style

* add: editor preview

* add: show 15 items initially

* fix: render li class for checked items

* chore: naming

* chore: changelog

* update: set some preview items checked for styling purpose

* fix: only show show more button when the list is long

* chore: lint

* fix: e2e tests
2024-08-09 16:17:14 +07:00
Luigi Teschio 7e691560d4
CYS: disable zoom out on fonts/color pairs iframe (#50498)
* CYS: disable zoom out on fonts iframe

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-08-09 09:16:17 +00:00
Paul Sealock 1561024d6e
[Store Alerts] Make alert action keys unique (#50424) 2024-08-09 20:44:09 +12:00
Paul Sealock bcdff6d134
[Beta Tester] Fix build:zip script to make sure dependencies are built first (#50508) 2024-08-09 20:43:26 +12:00
Tung Du 528be023ae
Refactor: migrate the All Products block to functional component (#50203)
* refactor: migrate the All Products block to functional component

* chore: changelog

* chore: lint
2024-08-09 14:42:45 +07:00
Adrian Duffell a687a97154
Move "Grow your business" to "Things to do next" task list (#50487)
* Move marketing task to thngs to do next

* Add changelog
2024-08-09 13:06:59 +08:00
Adrian Duffell a337cfcab9
Remove remote API call in "Grow your business" task (#50479)
* Remove call to remote API in marketing task

* Add changelog

* Deprecate unused class methods
2024-08-09 12:33:39 +08:00
Sakri Koskimies 201f165600
Fix analytics report download link not being sent (action scheduler blocking) (#50082)
* Reschedule jobs blocked by other delayed jobs

* Add changelog entry

* Comment next action time fallback

* Allow actions to be scheduled in the past

---------

Co-authored-by: Eason <eason.su.tw@gmail.com>
2024-08-09 10:34:00 +08:00
Paul Sealock 9d12459c44
[Navigation] Prepare to remove feature (#50190) 2024-08-09 14:18:39 +12:00
Hugo Drelon 47e4d918c9
[Enhancement] Create new filter `wc_lock_sku_query` for SKU lock query. (#49755)
Create a new filter wc_lock_sku_query to allow third party to filter the SKU lock query.

Fixes #49660

* Create new filter wc_lock_sku_query.

* Bail early with filter prop @coreymckrill

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

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

---------

Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
Co-authored-by: github-actions <github-actions@github.com>
2024-08-08 16:15:20 -07:00
Adrian Moldovan b01aabef29
[testing workflows] Disable Metrics job in CI (#50488) 2024-08-08 20:01:38 +02:00
louwie17 003629efb3
Address some styling conflicts in the description block editor toolbar on small viewports (#50435)
* Some minor CSS changes to address GB styling conflicts

* Add changelog

* Address issue with sidebar not showing up sometimes
2024-08-08 14:41:18 -03:00
Corey McKrill 623b1f320f
Change when stock notif emails are triggered (#49583)
Moves the check for low/no stock to the point when a product's stock quantity is updated. This decouples the check from orders, since stock can also change in other contexts (such as updates via REST API).

Fixes #31664
2024-08-08 10:22:54 -07:00
Miguel Pérez Pellicer c6732011d6
Bump jetpack connection, stats and constants (#50471)
* Bump jetpack-connection package

* Fix deprecated is_staging_site

* Add required declare( strict_types = 1)

* Revert -- Add required declare( strict_types = 1)

* Bump Stats versions

* Add changelog
2024-08-08 18:19:46 +02:00
Luigi Teschio 79ccf3a77f
CYS: Fix auto scroll when a new block is added (#50431)
* CYS: Fix autoscroll when a new block is added

* add E2E test

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

* remove not necessary changes

* rename blockToScroll to insertedPattern

* add smooth scroll

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-08-08 15:57:07 +00:00
Luigi Teschio f095fc5696
CYS: fix survey tracking (#50354)
* CYS: fix survey tracking

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-08-08 17:27:18 +02:00
Alba Rincón a5dba829c9
CYS - Update icon and text colors in the assembler (#50478)
* Customer Account - Maintain the size of the icon in smaller screens

* Hide overflow text

* Update logo and buttons color

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

* Fix lint error

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-08-08 17:18:30 +02:00
Adrian Moldovan 49109ea287
[e2e tests] Fix flaky product-attributes-block-editor -> can add existing attributes (#50485) 2024-08-08 16:09:08 +03:00
github-actions[bot] e280ba3ddc
Delete changelog files based on PR 50410 (#50477)
Delete changelog files for 50410

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-08-08 13:09:09 +01:00
Adrian Moldovan 6f9863574b
[e2e tests] Fixed broken logo picker tests (#50473) 2024-08-08 13:53:58 +03:00
Tung Du 6b4001118e
[Experimental] Add default product attribute pattern to Product Filters template part (#50158)
* fix: always return an object

* tweak: fallback to the default product attribute

* add: default product attribute pattern

* update: use default product attribute pattern in the template part

* chore: changelog

* tweak: escaping

* performance: add in memory cache

* chore: lint and use strtr for readability
2024-08-08 16:47:04 +07:00
Chi-Hsuan Huang 7b86ec137e
Fix broken beta tester release GH action (#50465)
* Test beta tester action

* Test beta tester action

* Fix beta tester release action
2024-08-08 16:33:11 +08:00
Alba Rincón ff89ce7494
CYS - Move the `ai/store-title` endpoint to woocommerce admin api (#50352)
* CYS - Move the ai/store-title endpoint to woocommerce admin api

* Add middleware and callback

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

* Fix lint error

* Use constant and normalize site title values

* Add base AI Endpoint class

* Fix lint error

* Extract the ai title option name

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-08-08 10:27:29 +02:00
Chi-Hsuan Huang 8aba7eebde
Prepare 2.4.0 Beta Tester Release (#50461)
Prepared 2.4.0 Beta Tester Release
2024-08-08 14:20:44 +08:00
Chi-Hsuan Huang 450a4ce3bb
Add remote logging tool to beta tester (#50425)
* Add remote logging beta tester tool

* chore: Update log method return type to Promise<boolean>

* Update pnpm-lock.yaml

* Reformat

* Check window.wcSettings?.isRemoteLoggingEnabled

* Add changelogs

* Fix test

* Update toggle_remote_logging

* Fix toggle_remote_logging

* Improve message

* Fix lint
2024-08-08 11:12:51 +08:00
Chi-Hsuan Huang e4bb2c2317
Add remote logger as a log handler to wc logger (#50430)
* Register remote log handler in WooCommerce class

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

* Fix lint

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-08-08 10:50:16 +08:00
github-actions[bot] d0e0567291
Delete changelog files based on PR 50138 (#50457)
Delete changelog files for 50138

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-08-07 22:58:37 +02:00
Adrian Moldovan a3161244b3
[test workflows] Add LAST_FAILED_RUN switch (#50452) 2024-08-07 21:57:36 +03:00
Vladimir Reznichenko 169f02009f
CI: boost wp-env setup speed (minor, ~10 seconds). (#50445) 2024-08-07 17:46:57 +02:00
Alba Rincón 0235907b14
Customer Account - Maintain the size of the icon in smaller screens (#50410)
* Customer Account - Maintain the size of the icon in smaller screens

* Hide overflow text

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-08-07 17:45:16 +02:00
Ames Plant 2d8bd64c54
[Accessibility] Add ability for a screen reader to announce the current tab on a sing… (#50373)
Add ability for a screen reader to announce the current tab on a single product page.

Co-authored-by: amesplant <95257231+amesplant-dmv@users.noreply.github.com>
2024-08-07 17:26:27 +02:00
Tom Cafferkey 94f6ec5ccc
CYS: E2E Tests for device and zoom toolbar (#50436)
* Add e2e tests

* Changelog

* Toolbar updates
2024-08-07 15:25:07 +01:00
Tom Cafferkey 03f9b06d17
CYS: Remove links from sidebar (#50414)
* Remove EditorLinks from sidebar navigations

* Remove other links from sidebar navigations

* Reset warning modal

* Add changelog
2024-08-07 15:16:42 +01:00
Adrian Moldovan 649baf9855
[e2e tests] Tweak HTML reporter output path (#50443) 2024-08-07 16:04:55 +03:00
Vlad Olaru d46e65f092
Add default WooPayments promotions specs (#50345)
* Remove manual include PHP file since we have autoloading

* Delete transient on store country change

* Attach store country to data sources URLs

* Add WCPay default promotions

* Fallback to WCPay default promotions when marketplace suggestions are off

* Remove unused constant

* Replace deprecated uses

* Fix typos and off-brand docs

* Add changelog

* Lint fixes

* test: Update unit tests

* Cleanup

* Declare strict types

* Lint fixes

* Use default specs when remote ones are empty

* test: Update unit tests

* Lint fixes

* Lint fixes

* Remove needless condition
2024-08-07 15:57:22 +03:00
Luigi Teschio 9ae7485039
Compatibility Layer: fix 'woocommerce_before_single_product_summary' hook position (#50392)
* Compatibility Layer: fix 'woocommerce_before_single_product_summary' hook position

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-08-07 14:53:11 +02:00
Sakri Koskimies da18c925b9
Make `WC_Cache_Helper::geolocation_ajax_get_location_hash` case-insensitive, add tests (#45439)
* Add tests for geolocation_ajax_get_location_hash

* Make geolocation_ajax_get_location_hash case-insensitive

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

* Fix changelog.

* Docblock.

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

* Fix changelog.

* Strict types is required.

* Set state before assertion

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2024-08-07 05:13:57 -07:00
Jason Kytros 58d7467f31
Prevent 'PR highlight changes' from running for blockified templates (#50439) 2024-08-07 13:59:25 +02:00
Albert Juhé Lluveras 06b9380ab4
Enable Classic Template tests in the frontend and the Product Attribute template (#49199)
* Enable Classic Template tests in the Product Attribute template

* Reenable and simplify frontend test

* Add changelog file
2024-08-07 12:32:54 +02:00
Adrian Moldovan 81e5d24d3d
[testing workflows] Fix artifacts path for blocks e2e (#50432) 2024-08-07 11:08:30 +03:00
Gabriel Manussakis 1693fc7694
[Accessibility] Hide zoomed product images for screen readers. (#50003)
* Hide zoomed image products for screen readers.

* Add chengelog file
2024-08-07 09:58:03 +02:00
Jorge A. Torres ba4a82a656
Prevent sync on read when using HPOS diff CLI tool (#49726)
* Prevent read-on-sync when using `wc hpos diff` CLI tool

* Add changelog

* Implement suggestion

* Add clarifying comment

---------

Co-authored-by: Naman Malhotra <naman03malhotra@gmail.com>
2024-08-07 08:40:52 +01:00
Matt Sherman fe7fafa729
[e2e] Product Editor: Add SKU, GTIN, shipping, and custom fields to simple product creation test (#50241)
* Refactor to add steps in 'can create a simple product' test

* Remove unnecessary await

* Fill in shipping dimensions

* Add frontend verification step

* Get permalink from editor page

* Verify shipping dimensions

* Verify sku and gtin

* Fix label association for sku field

* Fill in shipping class

* Fill custom field

* Handle SKU auto-update before filling in SKU

* Changelog

* Changelog

* Add more specific locator for attributes "Add new" button

* Update comment for why click() is used instead of check() for toggle

* Fix incorrect selector for attributes "Add new" button

* Remove check for toggle being checked, as it is flaky

* Await isChecked()

* Scroll custom fields toggle into view if needed

* Make custom field toggling more reliable

* Break filling into a separate step

* Break filling and verifying of full description into separate steps

* Verify the description and fix verifying shipping details

* Make showing of description toolbar more reliable

* Suppress errant warning

* Suppress warning for conditional and add comment about why it is okay

* Remove unused const
2024-08-07 04:34:31 -03:00
louwie17 7fd864d234
Fix Gutenberg modal conflict around CSS specificity (#50387)
* Increase specificity for modal frame styling

* Add changelog

* Address other modals within product form
2024-08-07 04:29:36 -03:00
Vladimir Reznichenko f147bd9764
CI: consolidate 'pnpm/action-setup' version and it's usage (#50261)
In this PR we spin off usage of recently introduced packageManager-property across CI workflows and consolidate the version of pnpm/action-setup action we are using.
2024-08-07 09:04:24 +02:00
Chi-Hsuan Huang c37795d694
Enable remote logging feature flag (#50351)
* Enable remote logging feature flag

* Do not send log in local or dev envs

* Add changelog

* Fix env check
2024-08-07 10:33:47 +08:00
Vladimir Reznichenko a307c22d1e
Monorepo: PSR-4 classes naming and Strict types directive rules for CodeSniffer. (#49438)
* Monorepo: PSR-4 classes naming linting.

* Monorepo: codesniffer config changes after reviewing existing violations.

* Monorepo: enable `Generic.PHP.RequireStrictTypes` rule.

* Monorepo: some exclusions for the new rule.

* Monorepo: test changes.

* Monorepo: test changes.

* Monorepo: cleanup.

* Monorepo: changelog entry.
2024-08-06 14:56:23 -07:00
Adrian Moldovan adbdcceb28
[testing workflows] Only re-run failed e2e tests (#50267)
* Use Playwright's last info run

* Add changelog

* Fix workflow syntax

* Fix workflow syntax

* Try with continue-on-error

* Try with merge-multiple

* Try with pattern instead of name

* Print the run command

* Print the run command

* Use LAST_RUN_FLAG

* Update outputDir

* Update upload paths and parse the file content

* Don't try to download lat run info if the test type is not e2e

* Rename the downloaded file

* Rename the downloaded file

* Rename the downloaded file

* Full path to the downloaded file

* Check download path content

* Check download path content

* Check the last-run file in the right path

* Fail different tests on different run attempts

* Fix artifact name

* Force test failures

* Cleanup console logs

* Cleanup console logs

* Cleanup console logs

* Log if last run info exists but no tests are found

* Revert test changes
2024-08-06 14:50:25 -07:00
github-actions[bot] 0a7d23e868
Delete changelog files based on PR 50200 (#50419)
Delete changelog files for 50200

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2024-08-06 10:48:25 -07:00