Commit Graph

65072 Commits

Author SHA1 Message Date
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
Bart Kalisz 1da62a3fb5
Core: Update @wordpress/e2e-test-utils-playwright to wp-6.6 (#50274)
Co-authored-by: Adrian Moldovan <3854374+adimoldovan@users.noreply.github.com>
2024-08-06 19:51:11 +03:00
Vlad Olaru a2d1468c42
Fix and improve payment gateway suggestions unit tests (#50390)
* test: Fix and improve payment gateway suggestions unit tests

* Add changelog

* Code styling fix

---------

Co-authored-by: Daniel Mallory <daniel.mallory@automattic.com>
2024-08-06 18:26:48 +03:00
Tom Cafferkey f01e945204
CYS: Fix DeviceToolbar animation (#50411)
* Wrap device toolbar in motion div

* Adds changelog
2024-08-06 15:27:55 +01:00
Albert Juhé Lluveras bd41bd34f6
Remove duplicate Add to Cart Form block from Webpack entries (#50394)
* Remove duplicate Add to Cart Form block from Webpack entries

* Typo

* Add changelog file
2024-08-06 15:57:41 +02:00
Tom Cafferkey a579e866b7
CYS: Add Zoomed Out feature (#50070)
* useZoomOut hook

* Update iframe with logic with zoomed out feature

* Add back in styling code for margins

* Spaces to tabs

* Device size toolbar

* Move zoom out state to context

* Rename variable

* Fork iframe component from Gutenberg

* Add getCompatibilityStyles needed for forked iframe

* Update usePopoverHandler iframe selector

* Remove zoom out context as its not needed

* Revert "Remove zoom out context as its not needed"

This reverts commit b29780d805.

* Add Zoom Out toggle to icons WIP

* Fix icon fill

* Update selectors to fix toolbar and sidebar pattern bugs

* Add comment to get getCompatibilityStyles file

* Update iframe comment

* Move device toolbar into its own component

* Resize and device changes

* Add prop to disable the resize handler

* Update toolbar to work with Zoom Out

* Hide changes behind feature gate so they dont impact design with AI flow

* Toolbar account for top device bar

* Add body class for with/without AI flow

* Adds changelog

* Fix typo

* Change TS comment to expect error

* Cleanup iframe with unneeded code

* Remove getcompatibilitystyles

* Remove device code from resizable frame

* Add ? operator

* Remove keydown code from iframe

* Fix toolbar scroll

* Pass deviceType as a prop to resizable frame

* Disable devicetoolbar whilst editor is loading

* Disable focus state

* Remove comment

* not disabled selector for button hover states

* Fix linting

* Remove unused fn

* Focus specific styles
2024-08-06 14:29:21 +01:00
Adrian Moldovan e9146f5ba4
[testing workflows] Update concurrency group for CI workflow (#50407) 2024-08-06 15:18:56 +02:00
Tom Cafferkey 91a1b92e9a
Image Optimization: Compress pattern placeholder images (#50405)
* Compress images

* Adds changelog
2024-08-06 13:42:21 +01:00
RJ b74bd01ca1
fix: remove defaultProps in prep for react 19 (#50266) 2024-08-06 12:20:45 +00:00
Vladimir Reznichenko 783f6dd3c2
Monorepo: update pinned pnpm version to 9.1.3 in packageManager property. (#50402) 2024-08-06 14:17:24 +02:00
Sam Seay 1488a02817
Remove unused php imports from BlockTemplatesRegistry that were accidentally left in a previous commit (#49757)
* Remove unused php imports that were accidentally left in ddabdb1bc2
2024-08-06 23:20:31 +12:00
Adrian Moldovan 657a3fb99a
[testing workflows] Update concurrency to not cancel the workflow when running on trunk (#50397) 2024-08-06 13:39:57 +03:00
Tarun Vijwani 5e5378e444
Remove Active Shipping Zones check for displaying shipping calculator on Cart Page (#49214)
* Remove active shipping zones check for displaying shipping calculator

- Remove active shipping zones check for displaying shipping calculator on Cart Page

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

---------

Co-authored-by: Tarun Vijwani <tarun.vijwani@automattic.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Seghir Nadir <nadir.seghir@gmail.com>
2024-08-06 10:41:26 +01:00
Fernando Marichal c410610c62
Rename and move errorHandler method (#50277)
* Rename and move errorHandler method

* Add changelog
2024-08-06 06:39:35 -03:00
Bart Kalisz 52119dfcc9
Fix CI Metrics job (#50214) 2024-08-06 11:23:04 +02:00