Commit Graph

64154 Commits

Author SHA1 Message Date
Karol Manijak d49db0486e
Update Compatibility Layer docs (#48456)
* Update compatibility layer docs to mention Product Collection

* Add changelog

* Update plugins/woocommerce-blocks/docs/internal-developers/blockified-templates/compatibility-layer.md

Improve my English

Co-authored-by: Albert Juhé Lluveras <contact@albertjuhe.com>

---------

Co-authored-by: Albert Juhé Lluveras <contact@albertjuhe.com>
2024-06-13 09:57:51 +02:00
Alba Rincón 1f9b130357
[CYS - Full Composability]: When the user is in the "Design your homepage" menu, hovering over the header or footer will should not make them highlighted (#48358)
* Add inert to header and footer on the homepage

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

* Refactor to pass query as a param to the hook

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-06-13 09:37:34 +02:00
Chi-Hsuan Huang 54321a5a60
Add generic error boundary component (#48363)
* Fix storybook

* Add experimental error boundary component

* Add error boundary component

* Fix empty content button

* Add changelog

* Fix storybook

* Reset state after actioned

* Fix story

* Address feedback
2024-06-13 05:05:28 +00:00
Chi-Hsuan Huang 4112c97d13
Handle core profiler get countries error (#48317)
* Handle core profiler get countries error

* Update style

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

* Update button and code style

* Address feedback

* Fix lint

* Record skip step track and rename event

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-06-13 12:42:30 +08:00
Chi-Hsuan Huang ab1789afd2
Remove onboarding welcome modals (#48346) 2024-06-13 10:39:21 +08:00
Niels Lange 6a0a9be504
Revert #47083 (#48423)
* Revert #47083

* Revert e2e test
2024-06-13 00:23:23 +02:00
Adrian Moldovan 1f534d0280
[e2e tests] Update the report configuration for core e2e tests and add a new workflow call for report publishing (#48424)
* Add a call to a new report workflow in woocommerce-test-reports repo

* Test change to trigger tests

* Update report title

* Test change to trigger tests

* Check REPORT_TITLE

* Add quotes on all arguments

* Update reporting configuration to all core e2e jobs

* Add changelog

* Use GITHUB_HEAD_REF for pull_request

* Set REPORT_TITLE for workflow dispatch

* Updated trigger from daily-e2e to daily-checks
2024-06-12 13:38:37 -07:00
Veljko V 08e44d0c4c
Fix flaky e2e test and update login util (#48446) 2024-06-12 13:35:36 -07:00
Matt Sherman 8a69728312
Product Editor: Show error notice when error occurs uploading an image via drop on Images (#48396)
* Export MediaUploaderErrorCallback

* Show notice when error uploading image

* Changelog

* Changelog

* Wrap error message in __ for translation

* Fix sprintf/__ usage to avoid lint errors
2024-06-12 15:50:48 -04:00
Adrian Moldovan bc34fce4e9
Update @wordpress/env to 9.7.0 in blocks library (#48443) 2024-06-12 17:34:44 +00:00
Corey McKrill 4b40a3170c
Logging: Handle multibyte characters and slashes in context data (#48341)
The json_encode function encodes multibyte characters literally by
default, which makes them unreadable in the log files. This change
ensures those characters remain intact, rather than encoded. It also
adds better handling for characters that get escaped with slashes.

Fixes #44743
2024-06-12 10:14:55 -07:00
Veljko V ed310fede4
Fix flaky assembler homepage e2e test (#48356)
* Fix flaky assembler homepage test

* Add changelog

* Increase waiting time for the assembler loading

* Remove beforeEach and add function to all tests
2024-06-12 10:09:41 -07:00
Veljko V 2899a5da94
Fix flaky activate-and-setup/core-profiler.spec.js e2e test (#48430)
* Fix flaky store owner core profiler e2e test

* Remove focused test
2024-06-12 13:32:27 -03:00
Albert Juhé Lluveras fe611abc7e
Clean up theming sections in WooCommerce blocks docs (#48420)
* Clean up theming sections in WooCommerce blocks docs

* Add changelog file

* Change intro text

* Fix TOC
2024-06-12 16:29:42 +02:00
Karol Manijak c378a698ce
Hide Products (Beta) from inserter (#48204)
* Hide Products (Beta) from inserter

* Add changelog

* Update E2E test replacing Products with Product Collection block

* Add step to choose collection in E2E test

* Change fill PW method to pressSequentially so the inserter shows blocks

* Update changelog entry
2024-06-12 15:45:27 +02:00
Karol Manijak 635524b481
Replace Products (Beta) with Product Collection in product archive templates (#48112)
* Replace Products (Beta) with Product Collection block in blockified template

* Add necessary attributes that influences the look of blocks

* Replace Products (Beta) with Product Collection block in product search results

* Replace Products (Beta) with Product Collection block in products by attribute

* Replace Products (Beta) with Product Collection block in products by category

* Replace Products (Beta) with Product Collection block in products by tag

* Replace Products (Beta) with Product Collection when transforming from classic product archive

* Change the no results content in blockified search results template

* Replace Products (Beta) with Product Collection block in product search results

* Add product search in no results content of blockified product search result

* Add ts-ignore before createBlocksFromInnerBlocksTemplate imports

* Add changelog

* Remove step of replacing Products (Beta) with Product Collection in compatibility layer tests

* Remove step of replacing Products (Beta) with Product Collection in Product Collection tests

* Fix lint

* Update E2E tests of Product Collection

* Adjust Products (Beta) E2E tests

* Add Product Collection focus step in E2E tests

* Improve the way PC block is focused

* Further tests adjustments and new tests comparing classic template with Product Collection

* Bring back the click on body

* Include tips from reviewer

* Enter edit mode, step that I accidentally removde

* Bring the E2E test flow with updating product catalog

* Change the way of removing focus from PC block in tests

* Fix lint

* Improve the layout of search in No Results

* Use previous patterns in Product Search No Results to preserve translations

* Add Search button label in product search form pattern

* Fix lint

* Improve comment explanation

* Extract No Results content to separate pattern in order to make the content translatable

* Lint fix

* Add missing footer to the blockified Products by Tag template

* Exclude woocommerce/patterns from phpcs rules that dont apply there

* Make PC block responsive by default in product archive templates

* Fix typo

* Fix typo

---------

Co-authored-by: Manish Menaria <the.manish.menaria@gmail.com>
2024-06-12 15:45:09 +02:00
Oleksandr Aratovskyi 5a4835ea39
Improve consistency of Manage button for different WooPayments KYC states (#48212)
* Small refactoring

* Override the CTA text and behaviour in gateway settings for the WooPayments plugin

* Address lint issues

* Add changelog

* Fix bug introduced during refactoring

* Fix lint error

---------

Co-authored-by: oaratovskyi <oleksandr.aratovskyi@automattic.com>
2024-06-12 16:22:43 +03:00
Barry Hughes 70fa4aaa36
Revise community review policy. (#48412) 2024-06-12 10:00:00 -03:00
Damián Suárez c85fe30dd2
WooCommerce: fixes the checks when migrating the product form template (#48386)
* fixes the checks when migrating the template

* changelog

* minor jsdoc enhancement

* yoda condition
2024-06-12 12:36:21 +01:00
Luigi Teschio 2c754bb667
CYS: Fix CSS header (#48389)
* CYS: fix css header

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-06-12 11:38:10 +02:00
Luigi Teschio 5c6c9923a5
CYS: hide popover when the mouse pointer leaves the site preview and then back. (#48394)
* CYS: hide popover when the mouse pointer leaves the site preview and then back

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-06-12 09:18:06 +00:00
Barry Hughes f9afd4d7bc
Fix interpolation syntax introduced in #47311. (#48337) 2024-06-12 10:07:24 +02:00
Albert Juhé Lluveras 54854f16cf
Document template parts used by the Classic Template block (#48183)
* Document template parts used by the Classic Template block

* Add changelog file

* More changes

* Change image

* More changes (II)

* Update plugins/woocommerce-blocks/docs/internal-developers/templates/README.md

Co-authored-by: Manish Menaria <the.manish.menaria@gmail.com>

* Update plugins/woocommerce-blocks/docs/internal-developers/templates/classic-template.md

Co-authored-by: Manish Menaria <the.manish.menaria@gmail.com>

* Make image smaller and centered

* Change PHP template parts section format

---------

Co-authored-by: Manish Menaria <the.manish.menaria@gmail.com>
2024-06-12 09:36:55 +02:00
Adrian Moldovan 1fe724b6ef
Remove deprecated workflows, actions and related scripts (#48364) 2024-06-12 10:21:47 +03:00
Ilyas Foo 7f657cca53
Add test for `wcpay_connect_account_clicked` track (#48347)
* Refactor Connect Account Page test, add wcpay_connect_account_clicked track test

* Changelog
2024-06-12 14:39:21 +08:00
RJ 8e186cd27b
fix: core profiler already connected to jetpack (#48345)
* fix: core profiler already connected to jetpack
2024-06-12 13:24:45 +08:00
github-actions[bot] 10bad90c6f
Prepare Packages for Release (#48411)
Automated change: Prep @woocommerce/csv-export for release.

Co-authored-by: lanej0 <lanej0@users.noreply.github.com>
2024-06-11 15:59:46 -07:00
github-actions[bot] 1d3c34eacd
Prepare Packages for Release (#48410)
Automated change: Prep @woocommerce/currency for release.

Co-authored-by: lanej0 <lanej0@users.noreply.github.com>
2024-06-11 15:55:38 -07:00
github-actions[bot] d88e877eea
Prepare Packages for Release (#48409)
Automated change: Prep @woocommerce/customer-effort-score for release.

Co-authored-by: lanej0 <lanej0@users.noreply.github.com>
2024-06-11 15:49:59 -07:00
Maikel Perez e3e303e776
Enable image inline actions in the variations table (#48083)
* Create UploadFilesMenuItem component

* Create MediaLibraryMenuItem component

* Create ImageActionsMenu component

* Integrate ImageActionsMenu with VariationsTableRow

* Add extensibility to the ImageActionsMenu component

* Add changelog file

* Fix compilation errors

* Fix linter errors

* Allow images only to be uploaded from the UploadFilesMenuItem component

* Fix image aligment in the actions menu toggle
2024-06-11 22:42:02 +00:00
github-actions[bot] 31254c4d45
Prepare Packages for Release (#48408)
Automated change: Prep @woocommerce/date for release.

Co-authored-by: lanej0 <lanej0@users.noreply.github.com>
2024-06-11 15:41:49 -07:00
github-actions[bot] d2ea42a658
Prepare Packages for Release (#48407)
Automated change: Prep @woocommerce/data for release.

Co-authored-by: lanej0 <lanej0@users.noreply.github.com>
2024-06-11 15:37:33 -07:00
github-actions[bot] 35609532b0
Prepare Packages for Release (#48406)
Automated change: Prep @woocommerce/eslint-plugin for release.

Co-authored-by: lanej0 <lanej0@users.noreply.github.com>
2024-06-11 15:31:03 -07:00
github-actions[bot] 4c42a8d914
Prepare Packages for Release (#48405)
Automated change: Prep @woocommerce/tracks for release.

Co-authored-by: lanej0 <lanej0@users.noreply.github.com>
2024-06-11 15:29:16 -07:00
github-actions[bot] 594d466ece
Prepare Packages for Release (#48404)
Automated change: Prep @woocommerce/navigation for release.

Co-authored-by: lanej0 <lanej0@users.noreply.github.com>
2024-06-11 15:26:38 -07:00
github-actions[bot] 1504add942
Prepare Packages for Release (#48403)
Automated change: Prep @woocommerce/number for release.

Co-authored-by: lanej0 <lanej0@users.noreply.github.com>
2024-06-11 15:10:48 -07:00
github-actions[bot] c3fffc28bf
Prepare Packages for Release (#48402)
Automated change: Prep @woocommerce/explat for release.

Co-authored-by: lanej0 <lanej0@users.noreply.github.com>
2024-06-11 22:03:35 +00:00
Jonathan Lane e5e51a41b8
Update Playwright to 1.44.1 from 1.41.1 (#48291)
Co-authored-by: Jon Lane <jon.lane@automattic.com>
Co-authored-by: Bart Kalisz <bartlomiej.kalisz@gmail.com>
Co-authored-by: Adrian Moldovan <3854374+adimoldovan@users.noreply.github.com>
2024-06-11 21:52:48 +03:00
Néstor Soriano e64f7b31bc
Make coupon metadata read robust against wrongly stored product related metadata (#48362)
Coupon metadata keys `product_ids` and `excluded_product_ids` are stored by WooCommerce as a comma-saparated list of values, but apparently some plugins mistakenly re-store these as serialized arrays. This pull request changes the database metadata read code so that it supports both comma-separated lists and serialized arrays.

Fixes #40569
2024-06-11 11:23:28 -07:00
Corey McKrill dc5ad32fb7
Logging: Ensure filtered log messages don't persist across multiple log handlers (#48336)
Log messages can be modified via the `woocommerce_logger_log_message`
filter hook on a per-handler basis, but if the message is modified for
the first handler, the subsequent handlers were receiving the modified
message instead of the original. This simply ensures each handler
receives the original message instead.

Fixes #47126
2024-06-11 10:33:02 -07:00
Adrian Moldovan d63da14787
Skip the install and build steps for changelog auto add workflow (#48368)
Co-authored-by: github-actions <github-actions@github.com>
2024-06-11 20:02:56 +03:00
Adrian Moldovan f3a7c0a6ec
[ci] Skip build for lint jobs (#48234) 2024-06-11 20:01:43 +03:00
Adrian Moldovan a7f634d5ef
[blocks e2e] Move Blocks e2e into ci.yml (#48224) 2024-06-11 19:57:23 +03:00
Ron Rennick 5650f88514
add community check to live branch workflow (#48190)
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2024-06-11 13:48:00 -03:00
rodelgc 72cd6fd925
Add changelog entries (#48390) 2024-06-12 00:01:47 +08:00
Luigi Teschio af2946aa34
CYS: Refactor routing approach (#48312)
* CYS: Refactor routing approach

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

* remove focus logic

* remove routekey prop

* pass onNavigateBackClick callback as prop

* create dedicated CSS class

* lint css

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-06-11 15:26:04 +02:00
Damián Suárez 4921018e5a
Product Block Editor: disable the `product-editor-template-system` flag even for the dev-env (#48378)
* disable `product-editor-template-system` as default

* changelog
2024-06-11 14:22:06 +01:00
Adrian Moldovan 665d45ba38
[e2e tests] Disable task list reminder bar in analytics-data spec - fixed flaky tests (#48357)
* Disable task list reminder bar

* Remove unused product fixture

* Disable tour via the api
2024-06-11 13:55:38 +02:00
rodelgc deb15d201e
Sync #319 with trunk (#48348)
* Use DOM API to create Order Attribution inputs

* Add changelog entry

* Delete unnecessary changelog

---------

Co-authored-by: Tomek Wytrębowicz <tomalecpub@gmail.com>
2024-06-11 16:40:35 +08:00
Chi-Hsuan Huang f1badbfb4b
Add global ErrorBoundary component for handling errors in react admin (#48250)
* feat: Add ErrorBoundary component for handling errors in WooCommerce admin client

* Add changelog

* Add tests for error-boundary

* Update plugins/woocommerce-admin/client/error-boundary/index.tsx

Co-authored-by: RJ <27843274+rjchow@users.noreply.github.com>

* Wrap text in __()

* Address feedback

* Fix tests

* Improve mobile view

* Update button

---------

Co-authored-by: RJ <27843274+rjchow@users.noreply.github.com>
2024-06-11 16:14:44 +08:00