Commit Graph

20255 Commits

Author SHA1 Message Date
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
Chi-Hsuan Huang 7a90da9d6b
Update WC Admin Homescreen header icons (#46353)
* Update admin header icons

* Update admin header icons

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

* Fix tests

* Fix lint

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-09 15:46:33 +08:00
Francesco Carlucci 98ab2f81d6
Support order search by transaction_id natively (#46129) 2024-04-09 08:57:36 +02:00
Chi-Hsuan Huang 5bb308f486
[LYS] Hide coming soon banner from preview frame (#46321)
* Hide coming soon banner from preview frame

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-09 12:54:39 +08:00
Chi-Hsuan Huang 8a9eb3a85f
Update background color and padding in WooCommerce LYS status popover (#46322)
* Update background color and padding in WooCommerce LYS status popover

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-09 12:53:22 +08:00
Sam Seay 803a62c50a
Remove all references to the product add to cart block. (#46220) 2024-04-09 14:01:32 +12:00
Patricia Hillebrandt 14c06fff80
Deprecate the $check_key_exists parameter from AssetDataRegistry and disallow duplicate data for all cases (#46139)
* Ensures data is added to the registry just once.

* ditch unnecessary param.

* Deprecate the  param for AssetDataRegistry

* Remove the  param for additional calls to AssetDataRegistry::add()

* Remove the  param for additional call to AssetDataRegistry::add() on WCAdminSharedSettings

* Trigger a PHP warning instead of throwing a fatal whenever the key being registered is not a string and whenever attempting to override existing data.

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

* Replace trigger_error with error_log to clear out lint errors.

* Address lint for trigger_error

* Update the test_already_existing_key_on_adding_data test to expect a warning instead of an exception

* Update tests

* Update method from add_data to add.

* Remove the throw InvalidArgumentException for the add and add_data methods.

* Remove the now unnecessary test_already_existing_key_on_adding_data test, considering we now return early whenever the key is duplicated, the code never reaches this stage via AssetDataRegistry:add

* Move the call to the exists method to within the add_data method.

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-08 18:48:29 -03:00
Fernando Marichal 46b07c040f
Add API Rest endpoint to duplicate product (#46141)
* Add API Rest endpoint to duplicate product

* Add update functionality

* update duplicate_product

* Fix function comment

* Add unit tests

* Add changelog

* Add missing variable

* Improve tests

* Fix tests and lint

* Add comment explaining process
2024-04-08 11:14:23 -03:00
Luigi Teschio c34399b28c
CYS - E2E test: not use snapshot approach for color picker E2E tests (#46333)
* 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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-08 16:10:07 +02:00
Luigi Teschio 8507e06173
CYS - E2E tests: add homepage picker E2E tests (#46127)
* Update checks for sale price

* Update checks for product images

* Update checks for linked products

* Update default theme for e2e environment to twentytwentythree

* Fix basic spec

* Fix locator product block editor test

* Make cart.spec.js theme agnostic

* Updated mini-cart.spec.js

* Updated cart-checkout-block-calculate-tax.spec.js

* Updated cart-block.spec.js

* Fix cart-block.spec.js

* Update account-email-receiving.spec.js

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

* Use a value for pr_number

* Update condition for the Slack alert job

* Remove pr_number argument

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

* Update conditions for the publish reports jobs

* Rename jobs

* Send GITHUB_SHA to report

* Check for skipped status

* Include Slack notification step in the reporting job

* Rename jobs

* Test update to trigger api tests

* Revert test change for api tests

* fix flakiness

* Test change to trigger all tests

* Test slack alert condition

* add waitUntil

* Force a test failure

* Revert all test changes

* improve logic

* fix build error

* try now

* Update product-inventory-block-editor.spec.js

* fix unit test

* fix flakiness

* Update checkout-block.spec.js

* Update checkout-block.spec.js

* Add utils/order

* Remove the check for more items than the coupon max amount as it fails with block themes

* Update create-simple-product-block-editor.spec.js

* Update cart-checkout-calculate-tax.spec.js

* Update checkout-block.spec.js

* Update create-simple-product-block-editor.spec.js

* Update wordpress-post.spec.js

* Update my-account-addresses.spec.js

* Update my-account-create-account.spec.js

* Update my-account-downloads.spec.js

* Update my-account-pay-order.spec.js

* Update my-account.spec.js

* Update order-email-receiving.spec.js

* Update product-grouped.spec.js

* Update product-simple.spec.js

* Update product-tags-attributes.spec.js

* Update product-variable.spec.js

* Update shop-search-browse-sort.spec.js

* Update checkout.spec.js

* Update checkout-login.spec.js

* Update checkout-create-account.spec.js

* Update wordpress-post.spec.js

* Update cart-checkout-calculate-tax.spec.js

* Update wordpress-post.spec.js

* Update mini-cart.spec.js

* Remove logging of order id

* Remove the log-out action as it invalidates the customer state and breaks other tests

* Use disableWelcomeModal

* CYS - E2E tests: add homepage picker E2E tests

* update snapshots

* add snapshots

* use screenshot tests+

* use snapshot

* try now

* update snapshot

* remove wp-container snapshot

* remove only

* add comment

* add snapshot

* enable color picker tests

* revert to twentytwentythree

* restore changes related to the color picker

* use default theme

---------

Co-authored-by: Adrian Moldovan <adim.moldovan@gmail.com>
Co-authored-by: Adrian Moldovan <3854374+adimoldovan@users.noreply.github.com>
Co-authored-by: github-actions <github-actions@github.com>
2024-04-08 10:43:41 +00:00
Luigi Teschio 9007b780c4
CYS - E2E tests: add font picker E2E tests (#45959)
* CYS - E2E tests: add font picker E2E tests

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

* reset to the default theme

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-08 10:35:37 +00:00
Luigi Teschio 606bb5cf79
CYS - E2E tests: restore the default theme (#46268)
* CYS - E2E tests: restore the default theme

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

* add comment

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-08 10:17:47 +00:00
Thomas Roberts 9f159f7141
Use address format from server in address card (#45852) 2024-04-08 01:43:42 -07:00
Moon 79d65eeea0
Add launch your store homescreen status tour (#46203)
* Tour component initial design

* Add woocommerce_lys_tour_dismissed option on 8.7.0 update

* Use woocommerce_lys_tour_dismissed to render the tour

* Rename option

* Add useSiteVisibilityTour

* Remove unused tourDismissed var

* Remove unused import

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

* Use ' not `

* Lint fixes

* Update plugins/woocommerce-admin/client/launch-your-store/tour/index.tsx

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

* Add discover more link

* woocommerce_launch_your_store_tour_hidden should be added < 8.9

* Adjust padding bottom for the footer

* Use user meta to manage woocommerce_launch_your_store_tour_hidden

* Adjust tour padding

* Fix global types

* Exclude the tour on new sites

* Fix missing doc comment

* Update tour descriptions

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2024-04-08 16:29:49 +08:00
Paul Sealock 65294dd048
[Launch your store] Add Coming Soon page templates (#46207)
* Add LYS store only coming soon contents

* fix conflict

* background color

* style login button

* styles

* possibly_update_coming_soon_page

* linting

* get_placeholder_page

* is_active_template

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

* Fix lint issue

21 | WARNING | Possible useless method overriding detected (Generic.CodeAnalysis.UselessOverridingMethod.Found)

* Fix lint issue

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-08 08:15:36 +00:00
Sam Seay f9c4b284ce
Remove the base tabs component from blocks. It is no longer used. (#46219) 2024-04-06 15:03:07 +13:00
Sam Seay be93d94130
Fix blocks e2e test for `additional-fields.merchant.block_theme.side_effects.spec.ts` (#46258)
* Wait for DOMContentLoaded to ensure that scripts are run when we try click edit shipping details.
2024-04-06 14:54:46 +13:00
Tung Du 11ec7c6255
Fix: broken contract in StoreAPI ProductCollectionData endpoint (#45247)
* revert: use original implementation

* fix: price query clause

* chore: changelog

* fix: passing full query state to get the correct count and avoid cache issue

* Replace references to woo-gutenberg-products-block

* fix php cs error

* fix php cs error

* Fix e2e tests for attributes count

* Separated out and/or query type tests for attrs count

---------

Co-authored-by: Alexandre Lara <allexandrelara@gmail.com>
Co-authored-by: roykho <roykho77@gmail.com>
2024-04-05 15:50:19 -03:00
Fernando Marichal 6fb00c4297
Fix linked product e2e tests (#46286)
* Fix linked product e2e tests

* Add changelog
2024-04-05 14:37:51 -03:00
siliconforks 0d368bfc53
Fix bug parsing memory_limit in product importer (#46051)
Previously, the code assumed that all memory_limit values used the "M"
suffix (for megabytes); values using "G" (for gigabytes), "K" (for
kilobytes), or no suffix (for bytes) were all parsed incorrectly.  Now,
all possible values should be handled correctly.

This bug has actually been fixed twice before in other locations:

Commit 538403306c (#30908)

Commit 4557108805 (#21557)
2024-04-05 17:11:38 +02:00
RJ b5b96bed04
add: lys launch store action (#46235)
* add: launch store action
2024-04-05 15:08:23 +00:00
Fernando Marichal 2c52b6ab7e
Add e2e tests for linked products (#46024)
* Add e2e tests for linked products

* Add changelog
2024-04-05 11:35:17 -03:00
Paulo Arromba afe19f2f08
Enhancement: Changing shopper feedback on payment response failure (#45961)
* Changing shopper feedback on payment response issues

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

* Disambiguated error log

* Prevent unexpected error response from outputting technical data to the user. Instead display an helpful message to prevent retries.

* Fix PHP linting.

* Changed error message and added translators comment

* Safeguarding against wc_checkout_params.i18n_checkout_error definition

* Added null check
2024-04-05 15:21:47 +01:00
Karol Manijak 0c1e4efc89
Rename the "other" location from `generic` to `site` (#46228)
* Rename the useGetLocation generic option to site

* Add changelog

* Adjust tests to change
2024-04-05 15:54:56 +02:00
github-actions[bot] cb27f36cad
Delete changelog files based on PR 45825 (#46267)
Delete changelog files for 45825

Co-authored-by: WooCommerce Bot <no-reply@woo.com>
2024-04-05 15:31:46 +02:00
Adrian Moldovan 6a183c2561
[e2e tests] Update default theme to twentytwentythree (#45937)
Co-authored-by: Luigi Teschio <gigitux@gmail.com>
Co-authored-by: github-actions <github-actions@github.com>
2024-04-05 10:13:57 -03:00
Karol Manijak 1c4b793f06
Product Collection: fix "Reset All" button in Editor filters (#46226)
* Add deselect callabck to attribute filter

* Add deselect callabck to created filter

* Add deselect callabck to featured filter

* Add deselect callabck to handpicked filter

* Cleanup deselect callabck to keyword filter

* Add deselect callabck to on salefilter

* Add deselect callabck to order by option

* Add deselect callabck to stock status filter

* Add deselect callabck to price range filter

* Add deselect callabck to price taxonomies filter

* Call all the reset filer callbacks on reset

* Add changelog

* Remove unused variable

* Replace hardcoded default filter values with the DEFAULT_FILTERS constant
2024-04-05 13:16:00 +02:00
Thomas Roberts 66ac06e9fc
Add default keys to local pickup settings to prevent PHP warning (#46182) 2024-04-05 11:08:54 +00:00
Barry Hughes d874575c86
Solve error when coupons are applied to orders that reference deleted products (#46251)
Solve error when coupons are applied to orders that reference deleted products.
2024-04-05 12:53:53 +02:00
Francesco 57b8fe8a84
refactor: `*_checkout_process_payment_error` to return 400 error code (#45979)
Co-authored-by: github-actions <github-actions@github.com>
2024-04-05 09:44:09 +00:00
Ron Rennick 97d71b25a2
update cot references in performance tests to hpos (#46245)
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2024-04-05 11:59:50 +03:00
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