Commit Graph

20303 Commits

Author SHA1 Message Date
Ron Rennick 4fa2e3822c
Update the monorepo to node v20 (#45148)
* test bumping node to v18

* remove community contributor condition from review assignment

* Add changefile(s) from automation for the following project(s): @woocommerce/tracks, @woocommerce/onboarding, @woocommerce/number, @woocommerce/notices, @woocommerce/navigation, @woocommerce/internal-js-tests, @woocommerce/extend-cart-checkout-block, @woocommerce/expression-evaluation, @woocommerce/explat, @woocommerce/experimental, @woocommerce/eslint-plugin, @woocommerce/dependency-extraction-webpack-plugin, @woocommerce/date, @woocommerce/data, @woocommerce/customer-effort-score, @woocommerce/currency, @woocommerce/csv-export, @woocommerce/create-woo-extension, @woocommerce/create-product-editor-block, @woocommerce/components, @woocommerce/api, @woocommerce/admin-e2e-tests, woocommerce-blocks, woocommerce-beta-tester, woocommerce, woo-ai

* bump node to v20

* Add changefile(s) from automation for the following project(s): @woocommerce/tracks, @woocommerce/onboarding, @woocommerce/number, @woocommerce/notices, @woocommerce/navigation, @woocommerce/internal-js-tests, @woocommerce/extend-cart-checkout-block, @woocommerce/expression-evaluation, @woocommerce/explat, @woocommerce/experimental, @woocommerce/eslint-plugin, @woocommerce/dependency-extraction-webpack-plugin, @woocommerce/date, @woocommerce/data, @woocommerce/customer-effort-score, @woocommerce/currency, @woocommerce/csv-export, @woocommerce/create-woo-extension, @woocommerce/create-product-editor-block, @woocommerce/components, @woocommerce/api, @woocommerce/admin-e2e-tests, packages/php/remote-specs-validation, woocommerce-blocks, woocommerce-beta-tester, woocommerce, woo-ai

* Add changefile(s) from automation for the following project(s): @woocommerce/tracks, @woocommerce/onboarding, @woocommerce/number, @woocommerce/notices, @woocommerce/navigation, @woocommerce/internal-js-tests, @woocommerce/extend-cart-checkout-block, @woocommerce/expression-evaluation, @woocommerce/explat, @woocommerce/experimental, @woocommerce/eslint-plugin, @woocommerce/dependency-extraction-webpack-plugin, @woocommerce/date, @woocommerce/data, @woocommerce/customer-effort-score, @woocommerce/currency, @woocommerce/csv-export, @woocommerce/create-woo-extension, @woocommerce/create-product-editor-block, @woocommerce/components, @woocommerce/api, @woocommerce/admin-e2e-tests, woocommerce-blocks, woocommerce-beta-tester, woocommerce, woo-ai

* add blocks eslint-plugin-woocommerce to project workspace

* add e2e-environment as a peer to e2e-utils

* restore version on @woocommerce/api

* update lock file

* move e2e-environment to devDependencies

* add undefined location check to admin js test

---------

Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
Co-authored-by: github-actions <github-actions@github.com>
2024-04-12 13:49:55 -03:00
Adrian Moldovan 1fee0439d3
[testing workflows] Move metrics job to ci.yml (#46471)
* Move deprecated workflows to deprecated folder

* Configure new test job for metrics

* Add changelog

* Update start command

* Update start command

* Archive metrics results

* Fix script path

* Fix name in archive results condition

* Add the actual run command for pull_request event

* Run with pnpm --filter

* Test run for push event

* Revert test conditions

* Add WP_ARTIFACTS_PATH env variable

* Update path to readme.txt

* Revert github event conditions

* Add CODEVITALS_PROJECT_TOKEN env

* Set WP_ARTIFACTS_PATH on job level

* Add blocks templates in the changes list
2024-04-12 11:46:01 -03:00
Ilyas Foo 395a70756a
Fix K6 performance tests with LYS feature turned on (#46539)
* Set woocommerce_coming_soon option to no when setting up performance E2E

* Changelog
2024-04-12 15:14:48 +01:00
Oleksandr Aratovskyi 5bcbb52a9b
Remove BNPL (Klarna) apm and fix icons on wcpay welcome page (#46523)
* Update payment method icons

* Use latest payment methods icons on wcpay weclome page

* Style payment icons on wcpay welcome page similarly to connect page

* Remove BNPL from wcpay welcome page additional payment methods

* Add changefile(s) from automation for the following project(s): @woocommerce/onboarding, woocommerce

* Fix warnings on CB payment method

* Fix lint error

* Change discover icon to new

---------

Co-authored-by: oaratovskyi <oleksandr.aratovskyi@automattic.com>
Co-authored-by: github-actions <github-actions@github.com>
2024-04-12 17:07:12 +03:00
Nathan Silveira 450b06a1e1
Always use productTemplateId when available and use editedRecord in useEntityRecord hooks (#46395)
* Use editedRecord instead of record

* Always use productTemplateId when available

* Change private methods to protected in ProductVariationTemplate

* Use editedRecord in hook useEntityRecord

* Update changelogs

* Restore attribute renamed by mistake

* Change useProductTemplate unit test
2024-04-12 10:16:35 -03:00
Adrian Moldovan d8ffca8d40
Revert "Update phpcs to squizlabs/php_codesniffer" (#46524)
* Revert "Update phpcs to squizlabs/php_codesniffer (#46350)"

This reverts commit 01f9880387.

* php file test change

* Revert test php file change
2024-04-12 10:12:35 -03:00
rodelgc b73de2ae4a
k6 perf tests: Add assertions for the "Shop" page title and product headers. (#46469) 2024-04-12 15:04:45 +03:00
rodelgc 522c8893a5
Add checks for page title and footer (#46485) 2024-04-12 15:01:39 +03:00
Luigi Teschio 8653d4c4fe
Blocks - E2E: Fix visibility store (#46521)
* Blocks - E2E: Fix visibility store

* add changelog
2024-04-12 11:26:12 +00:00
RJ 2bd388057f
add: lys hub tracks (#46462)
* add: lys hub tracks

* moved tasks object up
2024-04-12 18:36:56 +08:00
Adrian Duffell 41b6310e3d
Remove Launch Your Store Feature Flag (#46510)
* Enable launch-your-store feature flag

* Add changelog
2024-04-12 16:13:42 +08:00
Jonathan Lane 2d1ba5f7c4
A number of fixes for some of the top flaky e2e tests (#46494)
Co-authored-by: Jon Lane <jon.lane@automattic.com>
2024-04-12 08:53:21 +03:00
Adrian Moldovan 349f09151a
Add JS lint scripts for woocommerce plugin (#46214) 2024-04-12 07:30:17 +03:00
And Finally 63443b502d
Add clause to `CustomMetaDataStore::get_meta_keys` query to exclude empty order meta keys (#46476)
* Add clause to query in `CustomMetaDataStore::get_meta_keys` to exclude metas where the key is ''.

* Addressing linter error. Removed unnecessary prepare.
2024-04-11 17:24:35 +01:00
Ron Rennick c6048b5c49
Add glob, rimraf, and uuid to Syncpack (#46278)
* add uuid to syncpack

* add rimraf to syncpack

* add glob to syncpack

* Add changefile(s) from automation for the following project(s): @woocommerce/tracks, @woocommerce/product-editor, @woocommerce/onboarding, @woocommerce/number, @woocommerce/notices, @woocommerce/navigation, @woocommerce/internal-js-tests, @woocommerce/integrate-plugin, @woocommerce/expression-evaluation, @woocommerce/explat, @woocommerce/experimental, @woocommerce/eslint-plugin, @woocommerce/dependency-extraction-webpack-plugin, @woocommerce/date, @woocommerce/data, @woocommerce/customer-effort-score, @woocommerce/currency, @woocommerce/csv-export, @woocommerce/components, @woocommerce/block-templates, @woocommerce/ai, @woocommerce/admin-layout, @woocommerce/admin-e2e-tests, woocommerce

---------

Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
Co-authored-by: github-actions <github-actions@github.com>
2024-04-11 12:52:49 -03:00
Ron Rennick 01f9880387
Update phpcs to squizlabs/php_codesniffer (#46350)
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2024-04-11 12:52:26 -03:00
Paul Sealock b9a1f97420
[LYS] Coming Soon template layout changes (#46403)
* Update template tweaks

* Blockify the gaps

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

* Update banner styles

* vertical center

* 500 weight on login

* Update login/logout button font-weight

* Revert "Update login/logout button font-weight"

This reverts commit b985d2a0f6.

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-11 20:01:56 +08:00
github-actions[bot] ea2becadaf
Delete changelog files based on PR 46429 (#46474)
Delete changelog files for 46429

Co-authored-by: WooCommerce Bot <no-reply@woo.com>
2024-04-11 19:20:03 +08:00
Chi-Hsuan Huang 7e759905e3
Tweak LYS sidebar styles (#46449)
* Tweak LYS sidebar styles

* Fix styles

* Remove setting link from lys hub description

* Fix lint
2024-04-11 09:32:31 +00:00
Karol Manijak de54195c3a
Enable Classic Template Products by Tag test (#46428)
* Enable Product Tag template test

* Add changelog
2024-04-11 08:58:01 +02:00
Jonathan Lane 084d10c0ba
Check shop page after page deletion (#46448)
Co-authored-by: Jon Lane <jon.lane@automattic.com>
2024-04-11 09:52:45 +03:00
Karol Manijak 7efd3d4652
Product Collection: break taxonomies filter into multiple menu items per each taxonomy (#46160)
* Split taxonomies filter into seperate filter per taxonomy

* Add changelog

* Improve onDeselect function

* Update tests

* Fix lint

* Satisfy TS by returning single React element rather than array of elements

* Remove unused variable
2024-04-11 08:13:42 +02:00
RJ 09b002cb50
add: lys prefetch congrats data (#46406) 2024-04-11 12:48:40 +08:00
Chi-Hsuan Huang 5a57525bd6
Make LYS preview frame resizable (#46327)
* Make LYS preview frame resizable

* Add changelog

* Refactor site-preview.scss: Remove components-resizable-box__container styles

* Set z-index to 2 to preview container to fix resizing handler on max size

* Make room for the handle on the left side
2024-04-11 11:06:00 +08:00
Adrian Duffell 2751023836
Display the coming soon page on front-end requests (#46223)
* Add coming soon helpers

* Add coming soon request handler

* Add coming soon init

* Remove empty file

* Add cache invalidator

* Add service provider inline docs

* Add changelog

* Add handling when woocommerce_coming_soon is deleted

* Add helper to get url from WP instance

* Typo fix

* Use the helper to get url

* Handle scenario where coming soon page is unavailable

* Skip admin exclusion test

* Update plugins/woocommerce/src/Internal/ComingSoon/ComingSoonRequestHandler.php

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

---------

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2024-04-10 23:17:43 +00:00
Paul Sealock ef4ecd286a
[LYS] Coming Soon template tweaks (#46402)
* Update social link urls

* Align wide

* hide banner on Coming soon page

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-11 10:37:24 +12:00
Ron Rennick d94ed1a843
update makepot command to use include vs exclude (#46287)
* update makepot command to use include vs exclude

* add the changelog

---------

Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2024-04-10 14:59:47 -05:00
Fernando Marichal 618221e321
Remove periods at the end of section descriptions (#46346)
* Remove period after question mark

# Conflicts:
#	plugins/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/ProductVariationTemplate.php
#	plugins/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/SimpleProductTemplate.php

* Remove useless periods

# Conflicts:
#	plugins/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/SimpleProductTemplate.php

* Fix comments

* Add changelog

* Fix comment

* Modify comment

* Fix comments
2024-04-10 16:04:30 -03:00
Nathan Silveira 3fb744313b
Add isSelectableByUser attribute to product templates (#46394)
* Add selectable attribute in product template to allow creation of product templates that do not appear on the "Change product type" UI

* Always use productTemplateId when available, otherwise fallback to standard-product-template

* Rename attribute

* Use editedRecord in hook useEntityRecord

* Revert "Always use productTemplateId when available, otherwise fallback to standard-product-template"

This reverts commit 2960fcd520.

* Revert "Use editedRecord in hook useEntityRecord"

This reverts commit c28e005e7b.

* Add changelogs

* Fix unit tests

* Increment changelog
2024-04-10 17:57:42 +00:00
Albert Juhé Lluveras 76bbd95db5
Fix wrong Shop title shown in classic themes after deleting the page (#46429)
* Fix wrong Shop title shown in classic themes after deleting the page

* Add changelog file

* Add explanatory comment
2024-04-10 19:45:34 +02:00
Alexandre Lara 87f31f8ed0
Bump eslint-import-resolver-typescript from 3.2.4 to 3.6.1 (#45910)
* Bump eslint-import-resolver-typescript from 3.2.4 to 3.6.1

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-10 13:54:12 -03:00
Alexandre Lara 060befe8e8
Bump dataloader from 2.1.0 to 2.2.2 (#45906)
* Bump dataloader from 2.1.0 to 2.2.2

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-10 12:14:04 -03:00
Roy Ho deef144a43
Add translation context to ambiguous words (#46382)
* Add translation context to ambiguous words

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-10 06:17:14 -07:00
Chi-Hsuan Huang 95b36650d7
Fix Launch Your Store task item should not be clickable once completed (#46361)
* Fix Launch Your Store task item should not be clickable once completed

* Add changefile(s) from automation for the following project(s): @woocommerce/experimental, woocommerce

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-10 20:32:15 +08:00
Chi-Hsuan Huang 0387404d7f
[LYS] Tweak site visibility settings page (#46365) 2024-04-10 18:56:03 +08:00
Thomas Roberts 255a45911c
Update shipping and payment radio controls to use borders on selected items (#46150) 2024-04-10 02:54:05 -07:00
Bart Kalisz b8df34659c
Blocks E2E: Ensure legacy template slugs are supported (#46269) 2024-04-10 10:38:55 +02:00
Adrian Moldovan 9df545046a
[test reporting] Include list of failed tests in Slack notifications (#46360) 2024-04-10 10:10:08 +03:00
Jonathan Lane c7de30b773
[DOCS] Update core critical flows with update e2e tests (#46400)
* Update core critical flows with update e2e tests

* Updated docs manifest

---------

Co-authored-by: Jon Lane <jon.lane@automattic.com>
2024-04-09 19:14:20 -04:00
Bart Kalisz 7f6d21395e
Blocks E2E: Fix template revert tests (#46373) 2024-04-09 17:03:00 +02:00
Chi-Hsuan Huang f74104667e
Restrict site visibility badge to WC Home screen & adjust badge padding (#46359)
* Adjust padding on site visibility status badge

* Only show badge on WooCommerce home

* Add changelog
2024-04-09 22:34:37 +08:00
Chi-Hsuan Huang c48f80ed30
Sync LYS task completion with `woocommerce_coming_soon` option (#46358)
* Update LaunchYourStore::is_complete method to use get_option('woocommerce_coming_soon') instead of get_option('launch-status')

* Update LaunchYourStore hooks to remove launchStatus variable

* Add changelog

* Update logic
2024-04-09 22:30:46 +08:00
Thomas Roberts e111784e60
Ensure local pickup "enabled" setting is read correctly on client-side (#46334)
Co-authored-by: Niels Lange <info@nielslange.de>
2024-04-09 06:31:04 -07:00
Luigi Teschio 5fdbf8e8f8
CYS - E2E tests: add create your own section E2E tests (#46337)
* CYS - E2E test: not use snapshot approach for color picker E2E tests

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

* remove comment

* CYS - E2E tests: add create your own section E2E tests

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

* trigger CI

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-09 15:06:30 +02:00
Seghir Nadir afee75f871
Use individual meta keys for Additional fields. (#46091)
* add regression tests

* Refactor to using single meta key per field

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

* refactor rest of code

* keep set_array_meta same

* use correct function in condition

* fix spacing

* add docs

* fix markdown issues

* handle false bool meta

* adjust admin keys

* fix merchant tests

* handle checkboxes in checkout response

* address feedback

* Update plugins/woocommerce-blocks/docs/third-party-developers/extensibility/checkout-block/additional-checkout-fields.md

Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>

* Update plugins/woocommerce-blocks/docs/third-party-developers/extensibility/checkout-block/additional-checkout-fields.md

Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>

* Update plugins/woocommerce-blocks/docs/third-party-developers/extensibility/checkout-block/additional-checkout-fields.md

Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>

* Update plugins/woocommerce-blocks/docs/third-party-developers/extensibility/checkout-block/additional-checkout-fields.md

Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>

* Update plugins/woocommerce-blocks/docs/third-party-developers/extensibility/checkout-block/additional-checkout-fields.md

Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>

* update ledt places and reduce abstractions

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>
2024-04-09 12:48:27 +01:00
Leif Singer fe5efc2c45
Remove a few unnecessary test annotations (#45596) 2024-04-09 06:54:10 -03:00
github-actions[bot] 242cff1b22
Delete changelog files based on PR 46277 (#46367)
Delete changelog files for 46277

Co-authored-by: WooCommerce Bot <no-reply@woo.com>
2024-04-09 11:21:38 +02:00
Ivan Stojadinov 97bc91b216
Delete changelog files based on PR 46139 2024-04-09 11:16:23 +02:00
Leif Singer 8ee74ede0e
Update Woo.com references to WooCommerce.com (#46259)
* replace capitalized Woo.com with WooCommerce.com

* replace http URLs

* replace https URLs

* replace developer.woo.com

* add missing version in `@since` tag

* unslash the HTTP_REFERER

* WordPress.Security.ValidatedSanitizedInput.InputNotSanitized

* add changelog file

* add more changelog files

* address linter errors

* address more linter errors

* fix test

* more linter errors
2024-04-09 09:50:15 +01:00
nigeljamesstevenson df4dcf3da7
Update Action Scheduler to 3.7.4 (#46277)
* Update Action Scheduler to 3.7.4

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-09 09:32:33 +01:00