Commit Graph

20672 Commits

Author SHA1 Message Date
Thomas Roberts e6bd07d465
Loop through each package to check if the chosen rate for it is valid (#47716)
* Loop through each package to check if the chosen rate for it is valid

* Add changelog
2024-05-22 21:55:31 +02:00
Veljko V b32b7049c7
Fix flaky E2E admin marketing and loading screen tests (#47665)
* Fix flaky admin marketing test

* Fix flaky loading screen test
2024-05-22 11:06:52 -07:00
Adrian Moldovan 13ab9007f6
[testing workflows] Add workflow_call trigger in CI workflow - support daily and other types of runs (#47612)
* Add workflow_call event

* Add tests-daily-run.yml

* Remove workflow version

* Update input value

* Remove secrets from caller workflow

* Rename job

* Check context

* Check context

* Check workflow_call inputs

* Override github.event_name with inputs.trigger

* Fix input name

* Add config for daily e2e tests with Gutenberg

* Update env commands for Gutenberg run

* Add disableHpos env variable in ci-utils

* Revert the trigger to push

* Revert the env variable setting in ci-jobs

* Revert the env variable setting in ci-jobs

* Rebuild utils

* Update test env start command

* Define the Gutenberg Playwright project

* Use path relative to workspace root

* Update events for test projects

* Update events for test projects

* Add changelogs

* Remove the e2e tests with Gutenberg tests from daily runs

* Set the schedule and workflow_dispatch triggers

* Add --project default flag to only run the default tests in CI

* Renamed snapshots to match the new Playwright project name
2024-05-22 11:04:44 -07:00
Seghir Nadir d2ac6ff953
Correctly attribute focus back when opening the mini cart several times (#47683)
* allow focusedOnMount element to be reset

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-22 17:03:22 +02:00
Ilyas Foo 8140a1d9c7
Fix payment task track only shown gateways (#47713)
* Fix to track only shown payment options

* Remove offline gateways and changelog
2024-05-22 22:36:12 +08:00
Thomas Roberts b7643b9b7a
Change Checkout form step numbering so it can only be toggled for all blocks, not individually per-step (#47479) 2024-05-22 07:03:48 -07:00
Thomas Roberts 845bdae5bd
Prevent Additional Checkout Fields values being shown on shortcode order confirmation (#47333) 2024-05-22 06:07:16 -07:00
Adrian Duffell da57287c56
Fix broken db update button on homescreen (#47608)
* Add handling of return url

* Use base admin URL and redirect to current page

* Update plugins/woocommerce/includes/admin/notes/class-wc-notes-run-db-update.php

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

* Update plugins/woocommerce/includes/class-wc-install.php

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

* Changelog

---------

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2024-05-22 20:09:47 +08:00
Justin Palmer 544c843b67
Add order attribution GA4 UTM parameters (#47639) 2024-05-22 13:59:50 +02:00
Chi-Hsuan Huang ee6f69a14e
Wrap private link exclusion logic in `woocommerce_private_link` option check (#47690) 2024-05-22 19:15:37 +08:00
Karol Manijak f55e25b009
Filter by Attribute: fix potential reading property of undefined error (#47699)
* Fix reading from undefined error in attribute-filter

* Add changelog
2024-05-22 11:57:53 +02:00
Ilyas Foo 04c8941099
Add global coming soon property tracks (#47644)
* Use woocommerce_tracks_event_properties filter to append coming_soon property to tracks

* Changelog

* Remove feature check

* Remove unnecessary line
2024-05-22 17:56:31 +08:00
Chi-Hsuan Huang 90432c612e
Fix "Live Branches" item not shown in the WooCommerce menu (#47691)
* Fix live branch menu not show up

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-22 09:56:23 +00:00
Karol Manijak 313ab0eb74
Rename classic template blocks to avoid confusion (#44931)
* Rename  blocks to  to distinguish them from new blocks

* Add changelog

* Change the naming convention to XYZ (Classic)

* Update classic templates descriptions

* Fix package.json lint error
2024-05-22 10:53:43 +02:00
Vedanshu Jain 38bf02b9d3
Add support for insert_or_update and use it for concurrency. (#47610) 2024-05-22 14:19:14 +05:30
Barry Hughes bbff627d2f
Reduce number of plugin readme tags, to avoid warnings. (#47688) 2024-05-22 14:14:48 +05:30
Yan Sern 169baa2929
Entrepreneur Signup: Add Skip button to Design With AI steps. (#47667)
* Add Skip button to Design With AI steps.

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

* Use window.location.href to redirect instead.

* fix css linter errors

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Luigi Teschio <gigitux@gmail.com>
2024-05-22 08:40:31 +00:00
Paul Sealock 01bfab0527
[LYS] - Make sure LYS options are available for WooPayments (#47685)
* add viz options on wcpay screens

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

* cleanup

* lint

* wp_unslash lint errors

* disable

* linter

* more linting

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-22 16:16:35 +08:00
Chi-Hsuan Huang fb2b79f502
Fix wrong LYS site icon size (#47689)
* Fix LYS site icon size

* Add changelog
2024-05-22 16:04:15 +08:00
Ilyas Foo 7794a7ac24
Add `is-busy` animation to save changes button in settings (#47626)
* Add save button loading animation

* Changelog

* Lint

* Fix loading for shipping button

* Fix Safari UI bug

* Revert "Fix Safari UI bug"

This reverts commit 3ac72422d1.
2024-05-22 14:50:48 +08:00
Adrian Moldovan cf6e01d0d6
[ci-jobs] Add disableHpos test environment variable (#47619)
* Add disableHpos test env variable

* Update events for HPOS disabled tests

* Add pull_request event to test the env

* Remove the pull_request event

* Add changelog

* Make the disableHpos var a boolean

* Also set the env in ci.yml

* Remove console log statement

* Print woocommerce_custom_orders_table_enabled

* Run test setup script again to check output

* Capture env setup output and print it

* Get woocommerce_custom_orders_table_enabled value in test env script

* Get more details on HPOS setting

* Remove the DISABLE_HPOS logic from test env setup script

* Use DISABLE_HPOS instead of ENABLE_HPOS everywhere

* Turn off no-console and jest/no-standalone-expect eslint rules for api core tests

* Test API tests with HPOS disabled

* Fix eslint error

* Clean up debug statements

* Remove pull_request test trigger
2024-05-21 18:33:43 -03:00
Adrian Moldovan 3edf17bf22
[testing workflows] Move PHP tests with WP nighly back into ci.yml (#47568)
* Move the PHP WP: nightly tests back into ci.yml

* Add changelog
2024-05-21 18:23:38 -03:00
Maikel Perez 4c0399991a
Replace copy: List Price to Regular Price (#47658)
* Replace copy: List Price to Regular Price

* Add changelog files

* Fix md-docs linter errors and update the manifest
2024-05-21 16:28:01 -04:00
Fernando Marichal c4e1cebe84
Add Playwright performance tests to Product editor (#47590)
* Add product editor tests

* Fix post editor lint

* Add changelog

* Fix lint error

* Fix Typing test

* Add log to resultsFiles

* Fix comment

* Remove PerfUtils
2024-05-21 17:24:40 -03:00
Moon 363d761eae
Run wc_update_900_add_launch_your_store_tour_option on WC 9.0 update (#47634)
* Run wc_update_900_add_launch_your_store_tour_option on WC 9.0 update

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

* Use add_option

* Lint fixes

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-21 12:15:33 -07:00
nigeljamesstevenson 660138df8e
Update stable tag to 8.9.1 (#47681)
woorelease: Update stable tag to 8.9.1
2024-05-21 18:07:53 +01:00
Yan Sern 9a1f987381
Entrepreneur Signup: Simplify final step in CYS when entering from Entrepreneur signup flow. (#47578)
* Simplify final step in CYS when entering from Entrepreneur Signup.

* Add changelog.

* Update plugins/woocommerce-admin/client/customize-store/transitional/index.tsx

Co-authored-by: Ivan Ottinger <ivan.ottinger@automattic.com>

* Show My Home button as primary button only on Entrepreneur flow.

* Use 	'customize_your_store_entrepreneur_home_click' tracks event instead.

---------

Co-authored-by: Ivan Ottinger <ivan.ottinger@automattic.com>
2024-05-21 13:56:26 +00:00
RJ 2b69d28ecb
add: return to lys from cys (#47654)
* add: return to lys from cys

* types

* lint

* lint

* fixed task id
2024-05-21 21:45:38 +08:00
Alba Rincón 1d0ec79d43
Use the term attribute sort order for the "Filter by attribute" block (#47616)
* Use the term attribute sort order for the "Filter by attribute" block

* Allow `id` and `name_num` orderby values

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-21 15:44:08 +02:00
Jorge A. Torres 7c4ce70916
Various improvements to HPOS settings (#47370)
* Properly format order counts

* Remove superfluous tooltip

* Add "is-error" class for admin settings

* Remove unused option in DataSynchronizer

* Use non-persistent group "counts" for caching count of orders pending sync

* Drop redundant method from COT controller

* Standardize usage of <strong> in COT settings

* Drop unused import

* Allow manual sync to be stopped

* Reword messages in HPOS screen

* Make PHPCS happy

* Add changelog

* Fix unit test

* Fully deprecated DataSynchronier::get_sync_status()

* Extract translatable string to prevent duplication
2024-05-21 08:35:22 -05:00
louwie17 9213073782
Update explat experiment update (#47647)
* Update experiment name

* Add changelog
2024-05-21 10:05:09 -03:00
Jorge A. Torres 58730d0698
Fix positioning of search filter in orders admin (#47640)
* Fix orders search filter position in admin

* Add changelog
2024-05-21 16:09:56 +05:30
Niels Lange 5168a21920
Block-based checkout - Update address fields display logic (#47160)
* Add “Address line 2” toggle

* Allow apartment field to be required

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

* Rename “Apartment, suite, etc.” to “Address line 2”

* Remove unused dependency

* Add key to fragment

* Simplify keys

* Address failing e2e tests

* Change “Optional (Recommended)” to “Optional”

* Toggle address line 2 visibility in editor

* Add e2e tests

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

* Update e2e tests

* Update e2e tests

* Ensure the address 2 field stays open when the seller empties it

* Optimise hasAddress2FieldValue

* Move address 2 filed related functionality into separate component

* Rmove + sign from address 2 field links

* WIP: Introduce AddressField component

* Update AddressFields component

* Refactor AddressFields and Address2Field components

* Fix CSS lint error

* Fix JS lint error

* Fix failing e2e tests

* Fix typo in e2e tests

* Improve e2e selector

* Fix core e2e tests

* Use address line 2 label for the link text

* Lazy initialise the “isFieldVisible” state

* Remove obsolete code

* Add inline comments for clarity

* Fix JS lint error

* Improve e2e tests

* Revert "Remove obsolete code"

This reverts commit 027d6adc89.

* Adjust visibility toggle

* Delete obsolete changelog file

* Add inline comment

* Fix TS error

* Remove obsolete parts

* Solve TS warning

* Remove obsolete “fieldsRef”

* Remove obsolete “setHasFieldBeenModified”

* Address various TS warnings

* Fix link styling issue on mobile

* Fix JS lint error

* Refactor and simplify address components

* Optimise Address2Field component

* Improve inline docs

* Move ‘+’ from CSS to i18n

* Rename rest of values and pass correct onChange

* force component to remount

* remove unsed useEffect

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Nadir Seghir <nadir.seghir@gmail.com>
2024-05-21 15:48:24 +07:00
Néstor Soriano f64aec8cc6
Remove the Legacy REST API from WooCommerce core (#40627)
* Replace the Legacy REST API with a stub that always returns an error.

If the Legacy REST API plugin is installed, it will "take over"
the stub and the API will be available again without noticeable
changes in behavior.

* Move the get_endpoint_data method to WooCommerce core

This method was part of the legacy REST API package but is actually
being used to query endpoints of the new REST API, so it actually
belongs to WooCommerce core.

It has been placed in a new src/Utilities/RestApiUtil class.
The existing src/Internal/RestApiUtil class has been renamed
ro RestApiParameterUtil to avoid confussion.

* Move the register_wp_admin_settings to WooCommerce core.

This method was part of the legacy REST API package but it's needed
for certain endpoints of the current REST API, for example
settings/general/woocommerce_specific_allowed_countries

* Adjust unit tests for the removal of the legacy REST API.

Basically, some tests no longer make sense so they are removed.

* Adjust webhooks for the removal of the legacy REST API.

If a webhook is configured to compose its payload using the
legacy REST API format, and the separate legacy REST API plugin
is not installed, an exception will be thrown. This will cause
the scheduled action that does the webhook delivery to fail.

* Add warning in the webhooks settings page.

The warning will show if the legacy REST API is not available
and there's at least one plugin that is configured to be delivered
using legacy payloads. Each hook will have an exclamation symbol
next to its name in the table.

Additionally, inside the webhook edition page the legacy payload
option will display "NOT AVAILABLE" instead of "deprecated"
when the legacy REST API is not available.

* Add support for queries containing the "wc-api" variable.

These queries will return a 400 error by default, but
"woocommerce_api_request" and "woocommerce_api_(query)" actions
are available for custom processing.

* Enable the woocommerce_api_enabled option if the Legacy API plugin
is installed and the option is disabled.

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

* Mark get_woocommerce_api_url function as deprecated

* Mark $api property in WooCommerce class as deprecated

* Replace call to wc()->api->get_endpoint_data in Checkout class

Replace it with just wc()->cart, which is what the invoked
endpoint was doing in the end.

* Use get_endpoint_data to get the data from /wc/store/v1/cart

---------

Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
2024-05-21 08:39:03 +02:00
Karol Manijak 929564da82
Product Collection: remove Beta label (#47572)
* Remove Beta label from Product Collection

* Remove unnecessary dependency in Product Collection page object

* Add changelog

* Udpate block references
2024-05-21 08:36:40 +02:00
Ilyas Foo 7c1802fefa
Update coming soon pages to use cardo and inter fonts via editor (#47613)
* Add type safety, update coming soon entire site changes for fonts

* Add conditional font to support TT24 and other themes

* Revert unnecessary change

* Changelog

* Lint
2024-05-21 13:35:12 +08:00
Manish Menaria 3a3a386e34
Fix: Product Collection block should respects 'Out of stock visibility' setting (#47537)
* Fix: Ensure Product Collection Block Respects "Hide Out of Stock Items" Setting

- Added logic to include the "Out of stock visibility" setting in the Product Collection block.
- Modified `ProductTemplateEdit` component to use the `getDefaultStockStatuses` function.
- Ensured that out-of-stock products are hidden in the Product Collection block when the "Hide out of stock items from the catalog" option is enabled.

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-21 10:50:05 +05:30
Ilyas Foo 4374617d43
Fix warnings when using Storefront or non-FSE themes (#47631)
* Fix warnings from undefined

* Changelog

* Revert the fse check since it disables the fonts from working in coming soon pages
2024-05-21 11:43:25 +08:00
Justin Palmer 8541afa418
Add filter to apply Base64 encoding to order attribution cookies (#47597)
* Add filter to set Sourcebuster JS base64 configuration value

* Use Sourcebuster v1.2.0

* Changelog

* Reduce line length for linter
2024-05-21 01:56:14 +02:00
Andrew Dawes 42cb91ae3c
Fix PHP DocBlock for WC_CLI_Runner (#47599)
* Fix PHP DocBlock for WC_CLI_Runner

Fixes #47598

* Update plugins/woocommerce/changelog/fix-fix-php-docblock-for-wc-cli-runner-register-route-commands-47598

* Update plugins/woocommerce/includes/cli/class-wc-cli-runner.php

Fix phpdoc linting errors 🙄

---------

Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
2024-05-20 15:45:02 -07:00
Paulo Arromba a9aa14e254
Remove check for logged in user on the order received page for displaying billing/shipping addresses (#47477)
* Remove check for logged in user on the order received page, enabling guest users with a valid link to visualize the order shipping/billing addresses.

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

* Update comment

* Bumped template version

* fix linting

* ignore hook for the whole file

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Nadir Seghir <nadir.seghir@gmail.com>
2024-05-20 20:38:53 +01:00
Niels Lange 622f2d3805
Remove title from checkout page (#47529)
* Remove title Checkout page templates

* Fix checkout header site title padding

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

* Fix failing e2e tests

* Fix failing e2e test

* Fix failing e2e test

* Substitute frameLocator in e2e tests

* Fix failing e2e tests

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-21 01:56:32 +07:00
Seghir Nadir c5208f7822
Only validate fields present in Store API schema (#47633)
* skip fields not present in schema

* remove from sanitize as well

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-20 19:30:13 +02:00
Thomas Roberts e87eb4e3ea
Use default state ordering in the Checkout block instead of sorting alphabetically (#46656)
* Remove deep sort of states

* Add changelog
2024-05-20 19:17:36 +02:00
Thomas Roberts d7ca80d6c8
Make shipping total in Cart/Checkout block order summaries show FREE if shipping price is 0 (#47553)
* Make shipping total show FREE if price is 0

* Make free text uppercase in order summary

* Add test to check free/paid shipping displays as free or shows price

* Add changelog

* Update E2E test to make sure shipping is selected correctly

* Update shipping cost e2e tests

* Further fixes to e2e tests
2024-05-20 18:42:54 +02:00
Seghir Nadir b938331d87
Correctly build up dynamic translation paths on Windows (#47625)
* correctly build up the hash on windows

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-20 17:31:45 +02:00
Adrian Duffell 8cbc799067
Update Core Profiler Industries (#47605)
* Update indistries list order

* Add arts and crafts

* Add sports and recreation

* Tweak size of dropdown to allow 9 items

* Add small screen size height restriction

* Add changelogs

* Update documentation

* Fix lint issues
2024-05-20 23:10:53 +08:00
github-actions[bot] cdc38bc4cc
Delete changelog files based on PR 47563 (#47621)
Delete changelog files for 47563

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-05-20 16:28:19 +02:00
Yan Sern 645b052376
Entrepreneur Signup: Show WordPress logo when entering Design With AI from Entrepreneur signup flow. (#47576)
* Show WordPress logo when entering Design With AI from Enterpreneur signup flow.

* Update logo on Assembler Hub.

* Really need to force it.

* Add changelog.

* Newline.

* Newline.

* Fix rebase error.

* Fix double import.

* Remove !important.
2024-05-20 15:43:24 +02:00
Barry Hughes 660b2bcb6d
If the Legacy REST API plugin is auto-installed once, do not auto-install a second time. (#47563)
* If the Legacy REST API plugin is auto-installed once, do not auto-install a second time.

* Remove unused private constant (PluginInstaller records the info we need in a sitewide option).

* Introduce the woocommerce_history_of_autoinstalled_plugins option

This option holds the same data as woocommerce_autoinstalled_plugins,
the difference is that the data in this new option is never deleted.
It's also never updated, it just holds the information of the
first autoinstall for each plugin.

* Add a migration to create woocommerce_history_of_autoinstalled_plugins

* More robust check of previous autoinstall of the plugin

* Change migration to run in 8.9.1 instead of 9.0.0

---------

Co-authored-by: Nestor Soriano <konamiman@konamiman.com>
2024-05-20 18:59:03 +05:30