Commit Graph

63688 Commits

Author SHA1 Message Date
nigeljamesstevenson 1f065a22f1
Update stable tag to 8.8.1 (#46596)
woorelease: Update stable tag to 8.8.1
2024-04-15 16:00:12 +01:00
Michael Pretty 4a9238dfd7
Fix/46128 check cached order id before get order return (#46393)
* Verify Order is valid before returning it from the OrderFactory

* Add tests to validate fix when using serializing object cache implementation

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Nestor Soriano <konamiman@konamiman.com>
2024-04-15 16:13:20 +02:00
Fernando Marichal a32433ce1c
Fix some e2e tests for linked products (#46506)
* Fix some e2e tests for linked products

* Add changelog
2024-04-15 10:59:30 -03:00
Chintesh Prajapati 0704db9af9
Fix: Remove Unused Variable 'discount_amount_html' (#46437)
* Update wc-cart-functions.php

Unused local variable 'discount_amount_html'. The value of the variable is overwritten immediately.

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-15 15:19:39 +02:00
Brent MacKinnon 8fc82e9bfd
Fix broken links from issue #46336 (#46381)
* Fixing broken links

* Update docs/payments/payment-gateway-api.md

Co-authored-by: Leif Singer <leif@automattic.com>

* Update docs/contributing/common-issues.md

Co-authored-by: Néstor Soriano <konamiman@konamiman.com>

* Update docs/payments/payment-gateway-api.md

Co-authored-by: Leif Singer <leif@automattic.com>

* Update writing-high-quality-testing-instructions.md

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

* ignore MD029 rule (1/2/3) as the linebreaks that are needed for the code block confuse its numbering

* update the docs manifest

`pnpm utils md-docs create docs woocommerce -o docs/docs-manifest.json`

---------

Co-authored-by: Leif Singer <leif@automattic.com>
Co-authored-by: Néstor Soriano <konamiman@konamiman.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Leif Singer <git@singer.sh>
2024-04-15 14:30:37 +02:00
Ron Rennick d69a36b1d5
Remove follow-redirects from dev dependencies (#46503)
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2024-04-15 12:00:02 +01:00
Prahesa Kusuma Setia b27cfc7c87
Show notice to connect to woocommerce.com in plugin update message for unconnected stores (#46082)
* woo plugins use public endpoint for unconnected stores, show message to connect to woo.com as well

* add changelog

* fix lint error

* fix lint error

* fix lint error

* fix lint error

* move is site connected check outside the loop

* add condition to show the notice when site is connected and plugin is active

* update domain to woocommerce.com
2024-04-15 07:59:34 +01:00
Chi-Hsuan Huang 9a288fb4c2
Fix coming soon page fatal error with non-FSE theme (#46570)
* Fix fatal error with non-fse theme

* Update conditional inclusion of header and footer templates in coming-soon-store-only.php

* Update conditional inclusion of header and footer templates in ComingSoonRequestHandler.php

* Remove add_theme_support( block-template-parts );

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-15 16:26:18 +12:00
Chi-Hsuan Huang fcfec4000e
Fix admin header page title (#46450)
* Fix admin header page title

* Add changelog

* Refactor page title logic in header/index.js and Loader.php

* Fix test
2024-04-15 02:46:09 +00:00
Adrian Duffell 6486c26d76
Add exclusion for users with private link (#46465)
* Add exclusion for users with private link

* Remove unused private function

* Fix lint issues

* Add changelog

* Update sanitization method

sanitize_key converts to lowercase

* Fix lint issue
2024-04-15 11:57:02 +12:00
Paul Sealock 5e8644d7a5
[LYS] Try single coming soon template (#46508)
* Create single coming soon template

* add template/template too

* delete comment

* Adjust redirect logic

* CSS selectors

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

* fix titles

* Skip tests

* lint errors

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2024-04-14 22:49:41 +12:00
Adrian Moldovan bed3124b8d
[testing workflows] Fix the plugins setup for daily e2e runs (#46511)
* Move daily site check workflow to deprecated

* Add install-plugin script

* Install plugins script

* Fix the script path, it was moved.

* Set env on job level

* Update working-directory

* Add changelog

* Use the right WC_SUBSCRIPTIONS_REPO variable

* Add a test channel id

* Update smoke-test-daily.yml

* Remove WC Subscriptions

* Update smoke-test-daily.yml

* Switch back the channel ID and remove pull_request trigger
2024-04-13 10:12:48 -07:00
Adrian Moldovan 188d46f095
[e2e tests] Fix command palette tests failing with Gutenberg installed (#46407) 2024-04-12 15:39:52 -03:00
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
Nathan Silveira 5e3d372e5f
Prepare @woocommerce/product-editor for release 1.5 (#46543) 2024-04-12 12:03:37 -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 027f83f1fa
Remove Media Library menu item from Downloads section (#46490)
* Remove MediaLibraryMenuItem from downloads

* Add changelog
2024-04-12 11:03:10 -03:00
Nathan Silveira 0b69d4d6f7
Prepare @woocommerce/admin-layout and block-templates for release (#46538)
* Prepare @woocommerce/block-templates for release

* Prepare @woocommerce/admin-layout for release

* Revert mistake
2024-04-12 13:52:36 +00:00
Fernando Marichal d8037dd154
Add menu item to Publish button with copy to draft (#46294)
* Add duplicate product store

* Add copyToDraft method

* Add copy to draft button

* Modify success notice

* Add changelogs

* Update name before saving product

* Add comment to code
2024-04-12 10:19: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
Damián Suárez 5db25ea616
[Product Block Editor]: expose __experimentalSectionActions component (#46515)
* add basic Readme.md file

* expose __experimentalSectionActions component

* changelog

* update readme example
2024-04-12 05:48:40 -04:00
Job 28e78fd655
Default to docs and forums (#46520)
* Update triage-replies.yml

we want to default towards docs and forums

* Update 1-bug-report.yml
2024-04-12 09:24:35 +00: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
Matt Sherman 4ba72b2258
Product Editor API: Add tooltip attribute to woocommerce/product-select-field block (#46447) 2024-04-11 07:20:57 -04: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 b308132799
add template deleted notice to template linting (#46347)
add template deleted notice

Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2024-04-10 15:35:12 -05: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