Commit Graph

20273 Commits

Author SHA1 Message Date
Ilyas Foo 7e7be4f9d0
Add launch your store success screen (#46103)
* Initial commit with LYS components

* Update CustomerFeedbackSimple component to support emoji value props

* Add confetti package in woocommerce components

* Add confetti usage

* Remove unnecessary files

* Update pnpm lock

* Changelogs

* Lint and temporarily comment out tests

* Lint css and rename image

* Various fixes

* Rename transitional to congrats

* Add copy link functionaility from Moon's code and move whatsnext component

* Rename components

* Move and renames

* Fix ref type

* Add temporary dynamic actions

* Remove confetti background

* Add header

* Update xstate actions for launch success page

* Add temporary spinner

* Combine congrats data fetching to a single action and service

* Add functioning dynamic actions list

* Temporarily remove test

* Cleanups

* More cleanups

* Small lint

* add url listener for content param

* Update comment on confetti package

* Remove lodash and replace with reduce

* Fix Woo Express condition

---------

Co-authored-by: rjchow <me@rjchow.com>
2024-04-05 10:44:57 +08:00
Moon c551667646
Copy change for coming soon label in advanced setting (#46204)
* Copy change for coming soon setting

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-04 19:21:00 -07:00
Paul Sealock 04aab95452
[Launch Your Store] Dynamically create Coming Soon page content (#46101) 2024-04-05 14:56:39 +13:00
RJ 34b48892e0
fix: lys hub show only incompleted and recent tasks (#46190)
* fix: lys hub show only incompleted and recent tasks

* disable completed task items

* Update plugins/woocommerce-admin/client/launch-your-store/hub/sidebar/tasklist.tsx

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

* strikethrough font color

---------

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2024-04-05 09:54:30 +08:00
Chi-Hsuan Huang 3f601b3f45
LYS: Add coming soon page editor links (#46100)
* Add 'woocommerce_coming_soon_page_id' option to API options

* Add useComingSoonEditorLink hook to handle the coming soon editor link

* Add useComingSoonEditorLink hook and update styles

* Add changelog

* Move use-launch-your-store.js to ./hooks and update import path
2024-04-05 01:26:30 +00:00
Chi-Hsuan Huang 4c3d6ffa6b
Move the LYS feature flag check inside add_lys_default_values() (#46154)
* Move the feature flag check to add_lys_default_values method

* Add changelog

* Revert changes

* Fix bug in login functionality
2024-04-05 01:20:17 +00:00
Chi-Hsuan Huang 90c082aafb
Add feature flag options to `wc-live-branches.user.js` user script (#46152)
* Update WooCommerce Live Branches script version to 1.1 and add feature flags options

* Add changelog

* Update options

* Add encodeURIComponent
2024-04-05 01:10:21 +00:00
Chi-Hsuan Huang c3142773f5
Add missing `live-branches/install.php` require to API.php (#46159)
* Add live-branches/install.php to API

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-05 08:47:47 +08:00
Moon 1907016893
Track site visibility setting actions (#46078)
* Track site visibility actions

* Move private link text box to prevent accidental toggle

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

* Restirct site visibility settings to general tab

* Remove unnecessary site visibility render logic

* Lint fix

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-04 16:50:26 -07:00
Moon def3ac920d
Move site visibility settings to a new tab (#46140)
* Move site visibility settings to a new tab

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

* Update tab id to site-visibility and link to it from the homescreen badge

* Fix tests

* Remove unused code

* Lower case tab title

* Remove general from the slotfill id

* Remove typo

* Lint fix

* Lint fix

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-04 14:28:58 -07:00
Ron Rennick 674d7a01bf
fix the CI unit test path for legacy unit tests (#46247)
* fix the CI unit test path for legacy unit tests

* update the pattern in all the relevant CI jobs

* add the tests/unit-tests folder as well

---------

Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2024-04-04 17:50:45 -03:00
Michael Pretty 6328ad01a5
Fix tests currently failing against HPOS environment setup (#46242)
* Fix tests currently failing against HPOS environment setup

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

* fix lint warning for print_r usage

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-04 11:19:22 -07:00
louwie17 95311dc87c
Add e2e for analytics product segmentation (#46164)
* Add initial copy of new E2E analytics test

* Updated test to pass and filter by variation

* Add changelog
2024-04-04 10:01:05 -07:00
Ron Rennick bfb376abea
Sync stylelint, classnames, wp-prettier, sass-loader versions (#45597)
* bump husky, remove remnants from blocks

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

* add @playwright/test to syncpack

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

* update pnpm-lock.yaml

* add github-label-sync to syncpack

* add stylelint to syncpack

* add classnames to syncpack

* manually sync wp-prettier

* sync sass-loader version

---------

Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
Co-authored-by: github-actions <github-actions@github.com>
2024-04-04 09:48:54 -07:00
Ron Rennick 0849238776
add expected version to template warning (#46021)
* add expected version to template warning

* add changelog

* fix spacing for linting

* revert template change

---------

Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2024-04-04 09:47:10 -07:00
Jorge A. Torres 3f74ef2009
UX improvements for HPOS CLI cleanup tool (#45322)
* When order is out of sync, suggest a fix

* Allow cleanup tool to remove data for placeholders even if order can’t be loaded from HPOS

* Prevent infinite loops in cleanup tool

* Add changelog

* Fix PHPCS violations

* Improve error messages

* Fix syntax error

* Minor fix
2024-04-04 17:18:01 +01:00
Luigi Teschio 51dfbb969f
CYS - color picker: fix CSS (#46227)
* CYS - color picker: fix CSS

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-04 15:28:15 +00:00
Alba Rincón 0a0730bad7
[CYS] Stop relying on snapshot for footer and header tests (#46221)
* Stop relying on snapshot for footer and header tests

* Remove only

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-04 17:13:06 +02:00
Alba Rincón f06ef8d8e2
[CYS] Fix color palette button colors (#46216)
* CYS: add debounce to improve performance

* Fix button colors

* Format

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

---------

Co-authored-by: Luigi Teschio <gigitux@gmail.com>
Co-authored-by: github-actions <github-actions@github.com>
2024-04-04 16:26:15 +02:00
Luigi Teschio 96c9180671
CYS: add debounce to improve performance (#46212)
* CYS: add debounce to improve performance

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-04 12:19:56 +02:00
Alba Rincón 5129811c85
Disable assembler header test temporarily (#46217)
* Disable assembler header test temporarily

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-04 10:07:01 +00:00
Sakri Koskimies c0da722a93
Improve formatting for SE, LV, CZ, SK postcodes + Update tests (#45478)
* Add data providers for WC_Formatting_Functions_Test tests

* Add tests for Denmark postcodes

* Add formatting for Sweden postcodes

* Add formatting for CZ, SK postcodes. Cleanup formatting for LV

* Group wc_format_postcode tests by country

* Add changefile

* Match digits only in LV, CZ, SK postcode formatting

* Update postcode validation for CZ, SK

* Minor adjustment to regex

---------

Co-authored-by: Jorge Torres <jorge.torres@automattic.com>
2024-04-04 10:06:38 +01:00
Alba Rincón 0d6b9770f4
Fix the overlay color of the "Featured Category Triple" pattern (#46170)
* Fix the overlay color of the "Featured Category Triple" pattern

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-04 09:58:54 +02:00
Alba Rincón 35ef588981
CYS - E2E tests: Add footer section e2e tests (#45984)
* Add e2e tests for the assembler footer section

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

* Renam var

* Rename pageObject

* Add test for the preview

* Improve the test by extracting the expected class from the selected footer

* Update snapshot

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-04 09:23:49 +02:00
Alba Rincón cb4d8a6f70
CYS - E2E tests: Add header section e2e tests (#46011)
* Add e2e tests for the assembler header section

* Rename var

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

* Add test to check the preview changes when selecting a header

* Add missing header classes and all preview test

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-04 09:23:37 +02:00
Vedanshu Jain 3d2b33ca09
Avoid reading items from DB of a order whose ID is zero (#46161)
* Add unit test simulating order mix up when order ID is zero.

* Better tests.

* Dont try reading from DB when order is zero to prevent mixups.

* PHPCS fixes and changelog.

* Syntax sugar

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

---------

Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
2024-04-04 12:52:20 +05:30
Jonathan Lane 4bce1da492
Update workflow to close support issues as "won't fix/not planned" (#46202)
Co-authored-by: Jon Lane <jon.lane@automattic.com>
2024-04-04 09:31:53 +03:00
Jonathan Lane d3624dd7e0
Skip mini cart e2e test and a couple of minor fixes (#46199)
Co-authored-by: Jon Lane <jon.lane@automattic.com>
2024-04-04 09:23:43 +03:00
Sam Seay ff102c4921
Add vendor bundling of blocks frontend bundle to improve cart/checkout performance (#45859) 2024-04-04 15:31:02 +13:00
Alexandre Lara 90a9ef0392
Product Filter: Price block - Add E2E tests (#45855)
* Add E2E tests for Product Filter: Price block

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

* Use web first assertions

* Replace `toB` by `toHaveValue` in E2E tests

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-03 16:15:10 -03:00
Nima Karimi 1dc97f0801
[Woo AI] Add JSON response format (#46137)
* Add response_format to Woo AI package

* Add changelog

* Request JSON response format for product name generation

* Add changelog

* Add shared types
2024-04-03 21:37:39 +03:00
Luigi Teschio 92c62c4d96
skip color picker E2E tests (#46188)
* skip color picker E2E tests

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-03 11:09:51 -07:00
Adrian Moldovan a21ecaa4c4
Update @wordpress/env to 9.0.7 (#46177)
* Update @wordpress/env to 9.0.7

* Add changelog

* Add changelogs
2024-04-03 09:05:59 -07:00
github-actions[bot] f66d9ff4ae
Delete changelog files based on PR 46163 (#46176)
Delete changelog files for 46163

Co-authored-by: WooCommerce Bot <no-reply@woo.com>
2024-04-03 15:55:29 +02:00
Ilyas Foo ded85d1d40
Fix PaymentGatewaySuggestionsDataSourcePoller and disable deprecation logging (#46163)
* Temporarily disable deprecation logging and use old DataSourcePoller class

* Changelog

* Update DataSourcePoller.php

* Change to comment for lint

* Typo again

* Lint

* Better comment from @nigeljamesstevenson
2024-04-03 14:42:26 +01:00
github-actions[bot] c2f486b407
Delete changelog files based on PR 46026 (#46172)
Delete changelog files for 46026

Co-authored-by: WooCommerce Bot <no-reply@woo.com>
2024-04-03 15:08:29 +02:00
Luigi Teschio b4e359ee71
E2E test env: use WordPress 6.5 stable version (#46155)
* E2E test env: use WordPress 6.5 stable version

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

* Revert "Wait for notice text to be visible instead of checking data store"

This reverts commit f26892a646.

* Revert "Fix linting errors"

This reverts commit eaf90e4890.

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Thomas Roberts <thomas.roberts@automattic.com>
2024-04-03 14:33:04 +02:00
github-actions[bot] 04e952d33e
Delete changelog files based on PR 46019 (#46168)
Delete changelog files for 46019

Co-authored-by: WooCommerce Bot <no-reply@woo.com>
2024-04-03 14:04:20 +02:00
Vedanshu Jain 5dc662b736
Add guide to enable HPOS on high volume stores. (#46084)
* Add guide to enable HPOS on high volume stores.

Co-authored-by: Stephanie <stephmpi@gmail.com>
Co-authored-by: Jorge Torres <jorge.torres@automattic.com>

* Addressed review comments.

* Add manifest file.

---------

Co-authored-by: Stephanie <stephmpi@gmail.com>
Co-authored-by: Jorge Torres <jorge.torres@automattic.com>
2024-04-03 13:20:07 +02:00
RJ 40be78c265
dev: disable xstate inspector in prod build (#46109)
* dev: disable xstate inspector in prod build

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

* revert unintended require

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-03 13:53:19 +08:00
github-actions[bot] 1eadac6e6b
Delete changelog files based on PR 46088 (#46132)
Delete changelog files for 46088

Co-authored-by: WooCommerce Bot <no-reply@woo.com>
2024-04-02 18:16:41 +02:00
Thilina Pituwala 561a3d18c5
Add red bubble with update count on in-app My Subscriptions tab (#46088)
* Extract update count function.

* Pass wooUpdateCount to be used by admin components.

* Show update count bubble on in-app my subscriptions tab.

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

* Refactor how update count HTML is generated and move logic into appropriate classes.

* Show red badge when the site is disconnected, regardless of the installation status of WUM.

* Always display as 1 update is available when site is disconnected.

* Skip using dangerouslySetInnerHTML.

* Remove unused dependency.

* Move updateCount to a tab property.

* Prevent calling get_update_count if the site is not connected.

* Raw url encode the product key before signing the URL

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Muhammad Anas <muhammad.anas@automattic.com>
2024-04-02 16:04:57 +01:00
Manzur Ahammed ed3febb948
Add new task (Connect to Woo.com task) in WC onboarding (#45795)
* add a connect to store task in WC onboarding tasklist

* update changelog

* remove the time

* change task content

* make task dismissable
2024-04-02 20:25:27 +08:00
Karol Manijak 92e99d4cad
Product Collection: telemetry choosing collection (#45827)
* Use templateSlug context in Product Collection

* Implement util recognising the location for track events

* Implement the track event when user chooses a collection in Product Collection

* Add changelog

* Remove incorrect import

* Cover cases with specific Product or Specific Taxonomy

* Update event name

* Adjust Product Filters tests

* Revert wrong commit
2024-04-02 14:12:20 +02:00
Thomas Roberts 893c7ddb04
Sync Local Pickup title between Checkout block and shipping settings UI and vice/versa (#45720) 2024-04-02 11:34:32 +00:00
Thomas Shellberg 787b2db54b
Updating Woo AI version and changelog. (#46068)
* Updating Woo AI plugin version and changelog.
2024-04-02 13:18:00 +02:00
Karol Manijak 1f49f712b5
Unify Product Elements inserter category to "WooCommerce Product Elements" (#46064)
* Unify the category for all Product Elements

* Add changelog

* Bring back category to product elements that don't use shared confiug

* Add specific category to some Product Elements blocks registered only for Single Product template
2024-04-02 13:04:13 +02:00
Luigi Teschio 81bef3e641
CYS - E2E tests: add logo picker E2E tests (#45999)
* CYS - E2E tests: add logo picker E2E tests

* fix flakiness

* use as second parameter

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

* Add changes to tests projects on package.json

* CYS - E2E tests: fix flaky assembler-hub test

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

* fix flakiness

* add waitUntil

* improve logic

* fix build error

* try now

* fix unit test

* fix flakiness

* fix logic

* improve tests

* add more tests

* use .toBe

* add documentation

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Adrian Moldovan <3854374+adimoldovan@users.noreply.github.com>
2024-04-02 11:40:32 +02:00
Thomas Roberts 68c6ec6100
Prevent orders being placed when no shipping options are available (#46026)
* Prevent orders being placed with invalid shipping options

* Add changelog

* Add shipping_disable_flat_rate fixture function

* Test checking out with no valid shipping methods selected

* Update tests to add a default shipping method

* Update test_checkout_invalid_shipping_method to disable method

* If shipping methods is null, return an array with an empty string inside

* Replace WC session in tests that rely on setting cookies

* Add MockSessionHandler to handle test cases using cookies

* Add docblock comment

* Expect shipping validation to fail if chosen methods are null

* Add shipping method before testing validate_selected_shipping_methods

* Update MockSessionHandler to handle caching

* Show error when test fails

* Default the chosen shipping methods to an empty array if not set

* Split checks for needs_shipping and valid shipping apart

* Remove unnecessary session set and total calculation

* Fix lint errors

* Init session in each test

* Reimplement required methods (those that are private or use cookies)

* Update phpcs ignore comment to be inline

* Prevent error when accessing unset variable in mock cache

* Fix lint error
2024-04-02 11:03:14 +02:00
Luigi Teschio c0d0596574
CYS - E2E tests: fix flaky assembler-hub test (#46030)
* CYS - E2E tests: fix flaky assembler-hub test

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

* fix flakiness

* add waitUntil

* improve logic

* fix build error

* try now

* fix unit test

* fix flakiness

* fix logic

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-02 08:35:15 +00:00
Nathan Silveira e2eaa55b7d
Apply filter to add metadata for generated variations (#45953)
* Add meta_data parameter in generateProductVariations

* Apply filter to get meta_data to generate variations

* Add meta_data parameter in generate variations endpoint

* Update name and add documentation

* Fix useEntityRecord in blockEditor
2024-04-02 05:25:01 -03:00
RJ 7765984bf3
add/lys hub sidebar (#46056)
* changed LYS task id to hyphens for consistency with the other tasks

* add: lys hub sidebar

* ling

* lint2

* fixed sidebar title back button

* lint

* missed i18n

* sidebar title css

* unnecessary mutate

* hide test order toggle for now
2024-04-02 07:16:53 +00:00
Karol Manijak 5d47c769a4
Recognise if Product Collection is located inside Cart or Checkout blocks (#46059)
* Recognise if Product Collection is inside Cart or Checkout blocks

* Upgrade priority block recognition over templates

* Update the comments to better depict the flow

* Add changelog

* Simplify the logic
2024-04-02 09:05:17 +02:00
Moon 88c408daa5
Add coming soon page banner on the frontend (#46096)
* Add coming soon page banner on the frontend

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

* Check for shop_manager

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-01 20:25:54 -07:00
Moon 414a26e4ea
Add icons to ellipsis menu on status badge (#46098)
* Add icons to ellipsis menu -- lys

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-01 19:58:45 -07:00
Moon dabee2d37f
Copy update for coming soon badge (#46097)
* Copy update for coming soon badge

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-01 19:58:33 -07:00
Moon 96bc26287f
Site visibility settings copy changes (#46095)
* Site visibility settings copy changes

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-01 19:32:12 -07:00
Moon 06780e4c3b
Make sure we are in admin area when using current_screen() (#46093)
* Make sure we are in admin area when using current_screen()

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

* Check admin in preload_settings

* Remove unwanted changes from a different branch

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-01 17:11:44 -07:00
Ron Rennick 0b376ee6b3
clean up woocommerce-blocks package.json (#45230)
* clean up woocommerce-blocks package.json

* update from feedback

* move entry to original location

---------

Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2024-04-01 14:27:25 -03:00
Fernando Marichal 55f878021e
Fix Home screen grey background (#45895)
* Add is-product-editor class to body

* Add changelog

* Move changelog

* Fix lint
2024-04-01 09:50:25 -03:00
Veljko V 48fe28b2fd
Add E2E test for inserting Woo patterns to page (#46066) 2024-04-01 13:51:08 +03:00
Veljko V 7edd2dff14
Add new e2e test inserting woo blocks (#45896) 2024-04-01 12:52:51 +03:00
Manish Menaria a1a0128904
Product Collection: fetch all products for hand-picked products control (#45931)
* Fetch all products for hand-picked products control

This commit modifies the `getProducts` function usage within the Hand-Picked Products control, aiming to fetch all products regardless of catalog size.

The change involves explicitly setting `queryArgs` to include `per_page: 0` in the function call. This adjustment overrides the default behavior based on the `isLargeCatalog` condition, ensuring that all available products are fetched from the Store API for selection within the control.

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-01 14:17:12 +05:30
RJ aeedcc0c88
changed LYS task id to hyphens for consistency with the other tasks (#46055) 2024-04-01 11:46:46 +08:00
Thomas Roberts 0614d9233c
Fix changelog typo for 46019 (#46080) 2024-03-29 18:25:39 -07:00
Vedanshu Jain 51fd34350c
Add filter hooks for HPOS order search to support custom search filters (#45954)
This allows adding new order search methods, or remove existing ones via filter.
2024-03-29 11:39:45 -07:00
Roy Ho e3b1dd6a10
Remove clickable cursor on post title (#45998)
* Remove clickable cursor on post title

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

* Update plugins/woocommerce-blocks/assets/js/blocks/product-collection/edit/editor.scss

Co-authored-by: Karol Manijak <20098064+kmanijak@users.noreply.github.com>

* Add missing semicolon

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Karol Manijak <20098064+kmanijak@users.noreply.github.com>
2024-03-29 08:35:01 -07:00
Luigi Teschio 6e87869200
[Blocks - E2E] Update WordPress version (#46053)
* update WordPress version

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-29 16:11:33 +01:00
Oleksandr Aratovskyi 14cd6e6dfd
Remove ToS acceptance in WCPay banner and promotions JSON (#46003)
* Remove ToS acceptance in WCPay banner and promotions JSON

* Add changefile(s) from automation for the following project(s): @woocommerce/onboarding, packages/php/remote-specs-validation

* Add line break in banner to look nicer

* Center banner content

* Style banner for mobile version

* fix js test to use another block (previous one no longer exist)

* Add changefile(s) from automation for the following project(s): @woocommerce/onboarding, packages/php/remote-specs-validation, woocommerce

* Add comment to css

---------

Co-authored-by: oaratovskyi <oleksandr.aratovskyi@automattic.com>
Co-authored-by: github-actions <github-actions@github.com>
2024-03-29 14:59:29 +02:00
Niels Lange cad1aa6c2b
Ensure that each <CheckboxControl> component has a unique ID (#45655)
* Ensure that each <CheckboxControl> component has a unique id

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

* Optimise setup and teardown settings

* Wrapping setup and teardown in act()

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-29 12:46:13 +01:00
Thomas Roberts dbf0938fdd
Fix styling bug with saved payment methods in Checkout block (#46019) 2024-03-29 02:30:55 -07:00
Moon 145d75a08f
Add private link for LYS (#45915)
* Add private link

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

* Use useCopyToClipboard and remove label click behavior

* Preload settings for site visibility

* Default to live when woocommerce_coming_soon option is not available

* Remove use of classnames -- no longer needed

* Lint fixes

* Lint fixes

* Remove changes for label click behavior -- we will work on it in a separate PR

* Remove unused import

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-29 05:08:46 +00:00
Ivan Stojadinov 56ca4e3f3c
Delete changelog files based on PR 45892 (#46048)
Delete changelog files based on PR #45892
2024-03-28 17:46:14 +01:00
github-actions[bot] 171b5cd941
Delete changelog files based on PR 45962 (#46043)
Delete changelog files for 45962

Co-authored-by: WooCommerce Bot <no-reply@woo.com>
2024-03-28 13:59:23 +01:00
github-actions[bot] f0fa603bb7
Delete changelog files based on PR 45981 (#46041)
Delete changelog files for 45981

Co-authored-by: WooCommerce Bot <no-reply@woo.com>
2024-03-28 13:56:56 +01:00
github-actions[bot] b704d96904
Delete changelog files based on PR 45939 (#45993)
Delete changelog files for 45939

Co-authored-by: WooCommerce Bot <no-reply@woo.com>
2024-03-28 13:08:49 +01:00
Vedanshu Jain eda67f3b5d
Re-introduce 44084 and 44790 with back-compat (#45134)
* Introduce 44084 and 44790 back to be reintroduced with back compat.

This reverts commit fcdbc76414.

* Add changelog.

* Manually call `rest_request_after_callbacks` filter for backward compatibility.

* Make the controller checks more robust.

* Dont call rest api when controller is found but response cant be calculated.

* Add unit test for hydration class.

* Update comment docs for future warning.

Co-authored-by: Seghir Nadir <nadir.seghir@gmail.com>

* Return unfiltered routes array to prevent overwriting.

* PHPCS fixes.

* Use hydration context filters instead of duplicating REST API filters.

* PHPCS fixes.

* Adjusted unit test for new filters.

---------

Co-authored-by: Seghir Nadir <nadir.seghir@gmail.com>
2024-03-28 16:55:06 +05:30
Vlad Olaru 4917452b1f
Fix Payments and APMs tasks links when WooPayments is connected (#45962)
* Link Payments task item to Overview if WooPayments is connected

* Link APMs task item to payments task page

* Add changelog for WooCommerce

* If WCPay is connected go to Payments Overview page

It shouldn't matter if the WCPay account is fully or partially onboarded.
2024-03-28 11:52:58 +02:00
Chi-Hsuan Huang 3667d2b620
Add LYS hub site preview (#45976)
* Add lys hub site preview

* Add changelog

* Improve loading UI

* Use REQUEST_URI

* Set min-width to the page
2024-03-28 17:19:35 +08:00
Niels Lange 89031ca8a5
Adjust shipping calculations copy (#46022)
* Adjust shipping calculations copy

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-28 12:59:09 +07:00
Chi-Hsuan Huang d24a551146
Use `"You’re"` in task list progress title (#45978)
* Use "You’re" in task list progress title

* Add changelog
2024-03-28 09:21:01 +08:00
Adrian Moldovan ad60ba3a68
Add changes to tests projects in package.json (#46016) 2024-03-27 16:35:08 +00:00
Paulo Arromba 7c75791b7d
Fix: Suppress deprecated warning when applying a coupon on Cart in PHP > 8.0 (#45981)
* Fix deprecated warning when applying a coupon on Cart in PHP > 8.0

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

* Changed property type to protected

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-27 16:27:17 +00:00
Seghir Nadir 3513af5ec8
Validate missing fields in Store API (#45840)
* fix field validation

* add changelog

* fix tests

* add more checks

* fix arrays
2024-03-27 16:50:48 +01:00
Adrian Moldovan 7d6d2c94dd
Include e2e, api and performance tests in ci.yml (#45190)
Co-authored-by: Christopher Allford <6451942+ObliviousHarmony@users.noreply.github.com>
Co-authored-by: Ron Rennick <ron@ronandandrea.com>
2024-03-27 17:21:49 +02:00
Matt Sherman bb10ee5e57
Product Editor: Fix form mis-alignment (#45963)
* Remove invalid and unneeded position: static

* Changelog
2024-03-27 11:20:31 -04:00
Jonathan Lane d0f25550b7
Test to create various shipping methods (#45966)
Co-authored-by: Jon Lane <jon.lane@automattic.com>
2024-03-27 11:46:20 -03:00
Adrian Moldovan 166ca6d7db
[e2e tests] Update more products tests to work with blocks themes (#45923) 2024-03-27 11:41:50 -03:00
Fernando Marichal df90c91f08
Add E2E tests for grouped products (#45964)
* Add E2E tests for grouped products

* Add check

* Add changelog

* Fix tests

* Remove comment
2024-03-27 11:40:31 -03:00
Fernando Marichal 3cfd3893b4
Add E2E tests for product variation notices (#45853)
* Tests for variations warning

* Add changelog
2024-03-27 11:40:19 -03:00
Niels Lange 5cde8c5efe
Add e2e tests for virtual orders (#45824)
* Add e2e tests for virtual orders and refactor test names

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

* Optimise setup and teardown

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-27 21:28:54 +07:00
Alba Rincón 41e1da5033
[CYS] Redirect to transitional page to the intro page if the CYS task was not completed (#45933)
* Redirect to intro page when accessing the transitional page if no customized

* Remove only

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

* Check if the task is completed

* Add transition screen class

* Remove unused import

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-27 14:13:52 +01:00
Jonathan Lane c8202bc729
Enhance merchant new order test (#45965)
Co-authored-by: Jon Lane <jon.lane@automattic.com>
2024-03-27 14:36:49 +02:00
Luigi Teschio 11c31c2312
CYS - E2E tests: Add color picker E2E tests (#45926)
* CYS - E2E tests: Add color picker E2E tests

* remove not necessary changes

* fix E2E tests

* re-add beforeEach

* fix E2E tests

* improve test assertation

* add comment

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

* fix E2E tests

* don't print error

* fix E2E tests

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-27 12:01:26 +00:00
Adrian Moldovan 6ddbbae207
[e2e test] Fix locator for customer combobox in create order test (#45983) 2024-03-27 12:48:14 +01:00
Tom Cafferkey 271da399cc
Customer Account block: Remove margin-left from label (#45934)
Co-authored-by: github-actions <github-actions@github.com>
2024-03-27 10:24:11 +00:00
Luigi Teschio 66b5481590
Fix E2E tests for WordPress 6.5 (#44593)
* Add sharding to Blocks e2e tests

* Changelog

* Push a change to Blocks README to trigger tests

* Fix syntax

* Fixed again

* Try again

* Trying to get the shard number

* Shard names

* fix E2E test

* use wordpress 6.5 as test env

* update util

* fix Mini Cart Block E2E test

* add editor dependency

* fix E2E tests

* fix E2E tests

* fix E2E tests

* restore global setup file

* fix E2E tests

* fix global setup

* try now

* try now

* fix E2E test

* fix E2E test

* fix mini cart E2E test

* add changelog

* complete all the jobs

* update playwright

* fix E2E tests

* fix E2E test

* try now

* fix E2E test

* not show welcome guide for the post editor

* update configuration

* fix guest storage state

* fix E2E tests

* check now

* fix E2E tests

* fix command

* improve selector

* use WordPress 6.5 beta 2

* use WordPress 6.5 beta 3

* fix canvas use

* wait for button

* fix E2E test

* fix E2E test

* fix product button

* fix product collection tests

* fix wp build link

* use beforeEach

* fix E2E tests

* use WordPress RC2

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

* trigger CI

* fix E2E tests

* fix E2E tests

* fix E2E test

* fix E2E tests

* add timeout

* Fix flaky locator assertions
...by replacing them with dedicaed auto-waiting ones.

* Apply correct use of waitForRequest/Response and remove where unnecessary

* Remove obsolete waitUntils

* Fix accidentally isolated test

* Replace saveTemplate with core's saveSiteEditorEntities

* Fix findProductRow util

* Restore necessary request waiters

* Use activateTheme util instead of cli call

* Remove unused import

* Fix request destructured call
Request properties cannot be destructured (todo: create upstream issue)

* Revert some waitForRequest changes
These need to be investigated for heavy bleeding from side-effects

* Fix failing cart checkout test

* Set navigation timeout to 10s
We need this so that API like page.goto or page.waitForURL doesn't take 100 seconds (global timeout) to throw.

* Do not close the page in the page fixture override
The page will be closed anyway, and by closing it explicitly in the teardown phase of the fixture we create a flaky race condition where the page might be closed before the action/navigation timeout is reached, resulting in "page closed!" error instead of, e.g. "locator.fill timed out".

* Revert product collection tests due to conflicts

* Try fixing E2E test

* Remove some random change

* Revert to programmatic blur 🤷

* Fix additional checkout fields test

* Add a waitForRequest safety check in case it's debounced

* Fix price filter test

* Fix flaky visitTemplateEditor util

* Remove obsolete code from global setup

* Revert "Fix flaky visitTemplateEditor util"

This reverts commit 227336f265.

* update to WordPress RC3

* Add waitForCustomerDataUpdate function

* Don't wait for requests and use data store instead

* Try with new wait condition

* Re-add wait condition

* Wait for customer update in guest checkout test

* Add changelog

* fix lint error

* fix some E2E tests

* disable welcome guide

* remove beforeAll

* add timeout

* add another timeout

* increase timeout

* Add call to waitForSiteEditorFinishLoading when editing the theme template

* remove timeout

* remove not necessary comment

* clean changelog

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

* remove changelog

---------

Co-authored-by: Jon Lane <jon.lane@automattic.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Bart Kalisz <bartlomiej.kalisz@gmail.com>
Co-authored-by: Karol Manijak <20098064+kmanijak@users.noreply.github.com>
Co-authored-by: Thomas Roberts <thomas.roberts@automattic.com>
Co-authored-by: Albert Juhé Lluveras <contact@albertjuhe.com>
2024-03-27 10:54:44 +01:00
Jonathan Lane ca7e3b99ed
A few updates for flaky e2e tests (#45856)
Co-authored-by: Jon Lane <jon.lane@automattic.com>
2024-03-27 10:38:15 +02:00
louwie17 8f17cfe7f1
Remove accidental count call within an is_array check (#45939)
Remove accidental count call within an is_array check that always renders false
2024-03-27 05:06:16 -03:00
Ilyas Foo 7a70a93773
Fix DataSourcePoller footer error on upgrade downgrade (#45892)
* Add fix

* Changelog

* Change fix approach since it's crashing on 8.7.0
2024-03-27 11:35:52 +08:00