Commit Graph

10420 Commits

Author SHA1 Message Date
Matt Sherman 87a8f45b5d
Fix spelling errors in Remote Inbox Notifications Transformers documentation (#38387) 2023-05-22 06:07:32 -04:00
Chi-Hsuan Huang 4547922f3f
Add core profiler user profile page (#38328) 2023-05-22 11:21:16 +08:00
Moon 6d4014042b
Add woocommerce_suggest_jetpack filter to exlude Jetpack suggestion in OBW (#38286)
* Add filter for free extensions endpoint

* Add changelog

* Add filter doc

* Support woocommerce_suggest_jetpack filter to exlude Jetpack

* Update plugins/woocommerce/src/Admin/API/OnboardingFreeExtensions.php

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

---------

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2023-05-21 16:07:01 -07:00
nigeljamesstevenson ff50a69256
Remove the unnecessary `daily.playwright.config` (#38336) 2023-05-20 00:49:07 +01:00
Matt Sherman 08d7c24298
Fix race condition when rendering product attributes tab empty state (#38354) 2023-05-19 19:15:06 -04:00
Corey McKrill 4791f03b47
Implement admin-side order edit lock for HPOS orders (#38230)
This PR adds support to HPOS for order edit locking in the admin (similar to what posts and custom post types get by default). Specifically, the following is implemented:

* The lock is stored in order meta for interoperability with WP's implementation.
* Orders that are being edited by a user other than the current one will appear with a lock icon next to them in the list table. This lock icon/status is updated live via heartbeat with no page refresh necessary.
* When opening an order that is being edited by another user, a warning will be displayed, with the ability to take over the order:
* When someone has taken over an order you're editing, you'll get a warning about it automatically via heartbeat (no page refresh involved)

Fixes #37108
2023-05-19 15:50:08 -07:00
Nathan Silveira 5723f436cd
Add `wcadmin_settings_change` tracks event to shipping fields (#38305)
* Call update_option and update_options in shipping_zone_add_method

* Add new hook 'woocommerce_update_shipping_setting' to settings tracking

* Add tracking for shipping_zone_add_method

* Add tracking to shipping_zone_methods_save_changes

* Add changelog

* Update hook name and track modified option

* Prevent options from being added twice to array
start fixing php sniff issues

* Add docblocks

* Remove empty space

* Add docblock for parameter

* Fix lint issue

* Fix code introduced by mistake
2023-05-19 16:05:07 -03:00
Nathan Silveira ef0a32ff48
Reload page when toggling new-product-management-experience (#38348)
* Add callback to reload page when togglint new-product-management-experience

* Add changelog

* Implement reload for product-block-editor and code review suggestions
2023-05-19 14:57:51 -03:00
Maikel David Pérez Gómez ebf0b92960
Use feature the new feature flags engine to guard the access to the new product blocks experience (#37122)
Unregister the product-block-editor feature flag from WC Admin Test Helper, and enable product block editor feature.
2023-05-19 12:53:55 -04:00
Nathan Silveira 869b897ddd
Rename tracks event `product_attributes_add` to `product_attributes_save` on the product page and update attributes (#38278)
* Change attributes of tracks event product_attributes_add

* Don't send used_for_variations_count if it's not variable product type

* Explicitly add null values in product_attributes_add when the attribute is sent on the other call

* Rename product_attributes_add on the product page to product_attributes_save
Fix inverted local and global attributes count
Remove unnecessary parameters
Refactor code

* Update changelog
2023-05-19 12:44:54 -03:00
nigeljamesstevenson 67a583d9a8
Remove wp-env workaround (#38326) 2023-05-19 16:14:55 +01:00
Vedanshu Jain 048778a72b
Support strict SQL modes in HPOS migration that dont allow zero date (#38332) 2023-05-19 16:57:50 +02:00
nigeljamesstevenson f903feb741
Break down `create-variable-product` spec into smaller files (#38335) 2023-05-19 15:38:41 +01:00
Mike Jolley 28c72e81c4
Remove the global wc-cart-fragments enqueue (#35530) 2023-05-19 13:53:41 +01:00
Matt Sherman ab770510c1
Always show product variations empty state with message when there are no "used for variations" attributes (#38358) 2023-05-19 08:37:22 -04:00
Matt Sherman 2992e22507
Show correct confirmation message when removing an attribute from a product (#38355) 2023-05-19 08:27:47 -04:00
nigeljamesstevenson c99d60647e
E2e/gutenberg latest nightly 0 (#38287) 2023-05-19 12:24:08 +01:00
Chi-Hsuan Huang fc493c41ef
Remove sample data from product templates (#38343)
* Remove sample data from product templates for product task

* Add changelog

* Update product templates

* Remove unused columns from product templates and set Published to -1
2023-05-19 19:04:15 +08:00
Peter Fabian 862a947d7c
Install/update: Make the DELETE in 2 queries instead of 60+ (#37472) 2023-05-19 12:35:37 +02:00
Ashwin Parthasarathi ee31067f8f
Dev/37219 add hook to remove order items (#37822) 2023-05-19 12:10:11 +02:00
Jorge A. Torres f94ef3aa0a Add tests 2023-05-18 17:33:24 -05:00
Jorge A. Torres 0d4fd536b8 Move EditLock to correct folder 2023-05-18 17:33:24 -05:00
Jorge A. Torres 7b2afeb381 Improve styles for edit lock icon 2023-05-18 17:33:24 -05:00
Jorge A. Torres 4025c07097 Add changelog 2023-05-18 17:33:23 -05:00
Jorge A. Torres 5dd84a5fe6 Integrate edit lock into edit order screen 2023-05-18 17:33:23 -05:00
Jorge A. Torres ead99659e8 Integrates edit locking into the orders list table 2023-05-18 17:33:23 -05:00
Jorge A. Torres 4a11c03083 Remove ‘_edit_lock’ from internal datastore keys 2023-05-18 17:33:23 -05:00
Jorge A. Torres cc385bf16d fixes to css list table 2023-05-18 17:33:23 -05:00
Jorge A. Torres fb5ac94218 Change how the checkbox column is rendered in the ListTable 2023-05-18 17:33:23 -05:00
Jorge A. Torres e74f3eb206 Initial version of EditLock 2023-05-18 17:33:23 -05:00
Jorge A. Torres f306e632fa Allow CSS classes to be defined for table list rows and the table itself 2023-05-18 17:33:23 -05:00
Jorge A. Torres d18c13eb71 Fix possible error in ListTable bulk actions 2023-05-18 17:33:23 -05:00
Corey McKrill e8afe4649a
COT CLI: Add support to verify specific order types. (#38318)
This PR fixes the bug the where we were only verifying shop_order orders. This also adds the option to provide a list separated by , of order types to verify.

Fixes #38317
2023-05-18 10:09:33 -07:00
louwie17 2843fbb7a8
Fix editor header hidden in Firefox (#38247)
* Update page config to add support for layout header/footer

* Fix lint error
2023-05-18 13:00:42 -03:00
Ron Rennick 5d6b3d5ceb
Use esc_html_e instead of esc_attr_e (#36868) 2023-05-18 11:56:11 -03:00
Vedanshu Jain 2650292fa6 Minor doc fix. 2023-05-18 17:08:54 +05:30
Vedanshu Jain 33acd4c4d1 Add support to verify specific order types. 2023-05-18 17:08:54 +05:30
rodelgc 94b665817c Merge branch 'trunk' into e2e/remove-daily-playwright-config 2023-05-18 19:36:19 +08:00
rodelgc e3a39d5b20 Clear cookies on request 2023-05-18 19:34:35 +08:00
Joshua T Flowers 81e92392d5
Fix double scrollbars on product editor page (#38281)
* Refactor Layout component to functional component

* Add class to pages based on page path

* Add styling for interface skeleton on product pages

* Add changelog entries

* Move product page styles out of product editor package and into client

* Fix linting issues

* Check for location before checking path in page tracking

* Dont add body classes when no page path exists

* Record page view without router location for embed pages
2023-05-18 05:25:36 -03:00
Néstor Soriano 32bd197d0e
Minor grammar fix 2023-05-18 09:26:25 +02:00
Chi-Hsuan Huang b8aa7eb1fe
Update task list documentation and example (#38245)
* Update woocommerce task list examples

* Update onboarding-tasks.md

* Add changelog

* Update changelog

* Update task list doc

* Update onboarding-tasks.md

* Update examples readme

* Fix lint

* Update onboarding-tasks.md

* Fix build wca example cmd

* Update plugins/woocommerce-admin/docs/features/onboarding-tasks.md

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

* Update plugins/woocommerce-admin/docs/features/onboarding-tasks.md

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

* Update plugins/woocommerce-admin/docs/features/onboarding-tasks.md

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

* Update plugins/woocommerce-admin/docs/features/onboarding-tasks.md

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

* Update task list image

---------

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2023-05-18 11:21:53 +08:00
RJ 00952e8b95
add: core profiler fetch extensions (#38270)
add: fetch extensions and countries from API for core profiler

- prefetch it once in the machine init so that it's instant when used later
- fetch it again in preExtensions state and store it to context
- added prefetch for getCountries as well
2023-05-18 10:50:59 +08:00
Moon baf7714dfa
Add onboarding/plugins REST endpoint (#38174)
* Remove unused $job_id argument

* Support WP_Upgrader argument -- helps for testing

* Minor refactor to support a custom logger in install_plugins

   * Support a custom logger in install_plugins
   * Support swapping out WP_Upgrader impl.
   * Added woocommerce_plugins_install_async_callback callback to call install_plugins with a custom logger from action scheduler

* Add a new REST endpoint for onboarding plugins

* POST /wc-admin/onboarding/plugins/install-async -- queues plugin installs to action scheudler
* GET /wc-admin/onboarding/plugins/scheduled-installs/:job_id -- returns current status of given job id

* Remove WP_Upgrader support -- not using it

* Add changelog

* Fix phpcs errors

* Call complete

* Update test to wait 1 sec before checking the action scheduler

* Remove test that requires waiting an async action

* Add test for 404 status

* Add status field

* Remove woocommerce_plugins_install_async_callback action -- no longer used

* Call run-in-background endpoint with blocking=false to simulate a background process

* Update plugins/woocommerce/src/Admin/PluginsInstallLoggers/AsynPluginsInstallLogger.php

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

* Update plugins/woocommerce/src/Admin/PluginsInstallLoggers/PluginsInstallLogger.php

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

* Update plugins/woocommerce/tests/php/src/Admin/API/OnboardingPluginsTest.php

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

* Update plugins/woocommerce/tests/php/src/Admin/API/OnboardingPluginsTest.php

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

* Update plugins/woocommerce/tests/php/src/Admin/API/OnboardingPluginsTest.php

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

* Update plugins/woocommerce/src/Admin/PluginsInstallLoggers/PluginsInstallLogger.php

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

* Fix incorrect logger name

* Add max_execution_time setting

* Remove test code

* Skip failing test -- hard to test as the function uses site url and test env does not actaully have a running WP

* code format

* Revert background process changes

* Add install and activate endpoint

* Update plugins/woocommerce/src/Admin/PluginsInstallLoggers/AsynPluginsInstallLogger.php

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

* Update plugins/woocommerce/src/Admin/API/OnboardingPlugins.php

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

* Require activate_plugins permission

* Add test to check for permissions

* Update install and activate schema

* Fix: import AsyncPluginsInstallLogger correctly

* Fix: add missing comments

---------

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2023-05-17 19:08:00 -07:00
Ron Rennick d8eee11eb2
Fix TT3 styles and typography in the single product's attributes table (#37895) 2023-05-17 16:37:49 -03:00
rodelgc 677c3c9cee Add changelog 2023-05-18 00:22:32 +08:00
rodelgc 58f113ec47 Remove daily playwright config 2023-05-18 00:21:26 +08:00
rodelgc 34dd147b5b Fix assertion 2023-05-18 00:11:50 +08:00
rodelgc bdb4fa35fe Replace networkidle with web assertions 2023-05-17 23:56:54 +08:00
rodelgc 30e27254c1 Add utility methods for the variable product tests 2023-05-17 23:29:27 +08:00
rodelgc 0ef5904b7e Add utility method for creating variations 2023-05-17 23:28:18 +08:00
rodelgc 054fa4f65a Checkout the new files 2023-05-17 23:25:35 +08:00
rodelgc 6fb55fc686 Add changelog 2023-05-17 23:24:18 +08:00
rodelgc 82dc1e3fae Delete old spec 2023-05-17 23:22:34 +08:00
rodelgc db10af9583 Apply timeout to all tests 2023-05-17 15:31:28 +08:00
rodelgc 043bfa1943 Add explicit waits 2023-05-17 15:20:02 +08:00
rodelgc fd5bc2a420 Replace deprecated page methods.
Blur and wait for autosave.
Add a few explicit waits.
2023-05-17 15:19:18 +08:00
rodelgc 3be1f45f2e Merge branch 'trunk' into e2e/increase-timeouts 2023-05-17 12:52:49 +08:00
rodelgc 77d75b1a34 Set timeout within test 2023-05-17 12:18:49 +08:00
Moon 3db18516e6
Update RIN Transformers doc with examples. (#38176)
* Update transformers doc with examples

* Add changelog
2023-05-16 19:13:56 -07:00
Chi-Hsuan Huang dcbfbe2748
Cleanup task list and re-organize file structure (#38271)
* Deprecate onboarding task snooze APIs

* Cleanup task list and organize tasks file structure

* Add changelog

* Fix lint

* Fix tests

* Remove two-columns check logic

* Fix mock path
2023-05-17 09:54:31 +08:00
jamelreid 900b264ec7 Added changelog 2023-05-16 15:40:52 -05:00
jamelreid c1518d1352 Removed wp-env workaround 2023-05-16 15:39:20 -05:00
rodelgc e077c4c027 Replace deprecated page methods 2023-05-17 03:07:08 +08:00
rodelgc f2108a81ae Increase spec timeout to 3m 2023-05-17 00:45:07 +08:00
James Collins 8dc16fa48d
Re-assign existing webhooks during user deletion (#37814)
Co-authored-by: James Collins <james@om4.com.au>
Co-authored-by: Nestor Soriano <konamiman@konamiman.com>

Includes UI detailing how many webhooks are assigned to each of the users being deleted, and explaining how the re-assignment works.
2023-05-16 16:23:10 +02:00
rodelgc 35ba63403a Update readme 2023-05-16 20:41:23 +08:00
rodelgc 319c8038f7 Add changelog 2023-05-16 20:38:56 +08:00
rodelgc 83c0e3e393 Increase spec timeout to 2m 30s 2023-05-16 20:37:54 +08:00
rodelgc 8d4066aff5 Increase default timeout to 2m 2023-05-16 20:37:40 +08:00
Maikel David Pérez Gómez 4b3479595b
Only register blocks when user navigates to the product edit page (#38303)
* Remove block registration from within the Editor component

* Expose the initBlocks function to be used outside of the product package

* Register blocks within the ProductPage component

* Add changelog files

* Unregister blocks when product page gets unmounted
2023-05-16 07:41:26 -03:00
Chi-Hsuan Huang 8d249841b9
Fix `get_options` deprecation notice (#38289)
* Fix get_options deprecation notice

* Add changelog

* Remove duplicates
2023-05-16 09:36:20 +08:00
RJ 38dc82b4b1
dev: add core profiler state machine tests (#38154)
dev: added tests for core profiler state machine

- added tests to demonstrate model based testing with @xstate/test
2023-05-16 08:56:39 +08:00
Corey McKrill 5a3e0b1a67
Introduce missing button element classes for the account orders and downloads (#37933)
Ensures button styles are consistent in the front end UI.
2023-05-15 17:18:11 -07:00
nigeljamesstevenson 06006619b3
Update test timeout to 90 seconds, and suggest using `DEFAULT_TIMEOUT_OVERRIDE` in E2E README (#38288) 2023-05-15 20:12:39 +01:00
Maikel David Pérez Gómez 332094e87d
Update shipping class block to match new designs (#38301)
* Change the section title from Shipping fee to Shipping class

* Replace the radio buttons with a regular dropdown

* Add changelog files
2023-05-15 13:06:48 -04:00
Christopher Allford dedf728d51
Support PHPUnit Tests In `wp-env` (#38265)
You can now run unit tests with `test:unit:env` after using
`env:test` to start the environment.
2023-05-15 09:47:50 -07:00
“Chris ad5c577abe Merge branch 'trunk' into fix/tt3-attributes-table 2023-05-15 14:25:41 +03:00
“Chris f1b1df93d1 Bump order-again template 2023-05-15 14:25:18 +03:00
“Chris 66c5a16e2e Bump template versions 2023-05-15 14:24:27 +03:00
“Chris ee74bc6873 Merge branch 'trunk' into add/tt3-comp-button-classes 2023-05-15 14:23:19 +03:00
Vedanshu Jain 2d6e433e05
Fix the child order upshifting when parent order is deleted (#38199) 2023-05-15 16:03:35 +05:30
nigeljamesstevenson c190f971b1
skip k6 api batch update when batch create fails (#38282) 2023-05-15 11:16:11 +01:00
Fitim Vata 642a66fd8c [Fix] Undefined array key 1, 2, 3 when using list to extract woocommerce cookie values. 2023-05-15 11:44:23 +02:00
Moon 0bf6859383
Add Business Location page to the core profiler (#38019)
* Add core profiler - welcome to woo page

* Update checkbox styles

* Add tracks

* Update default tracking value

* Update copies

* using invoked promise instead of useState

- take advantage of xstate's built ins for side effects instead of  useEffect/hooks
- discovered that error result wasn't really handled in original useEffect
- use text labels instead of inline functions so that we can decouple the implementation from the machine model
- todo: can move the invoked function out elsewhere and also tests if needed (not necessary here because it's a simple call)

* add: core profiler scaffolding using xstate

* Add navigation and progress-bar components

* fix css lint error

* Update plugins/woocommerce-admin/client/core-profiler/components/navigation/woologo.tsx

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

* Update plugins/woocommerce-admin/client/core-profiler/components/progress-bar/progress-bar.tsx

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

* Update plugins/woocommerce-admin/client/core-profiler/components/navigation/navigation.tsx

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

* Remove var from __ function

* Use woocommerce prefix for classnames

* Fix css lint error

* Fix broken tests

* Add business location page

* Remove unwanted changes from rebase

* Remove unwanted changes from rebase

* Redirect to Woo Home on exit

* Add tracks

* Fix js lint error

* Add loader page

* Support meta value from nested states

* Use navigateTo

* Add tests for getCountryStateOptions

* Use Country type from navigation package

* Rename useStages to getLoaderStageMeta

* Add changelog

* Move progress from 20 to 80

* Fix xstate warning

* Fix broken pnpm lock

* Fix eslint errors

* Update plugins/woocommerce-admin/client/core-profiler/services/country.ts

Co-authored-by: RJ <27843274+rjchow@users.noreply.github.com>

* Update plugins/woocommerce-admin/client/core-profiler/index.tsx

Co-authored-by: RJ <27843274+rjchow@users.noreply.github.com>

* Save country to option

* Fix jslint error

* Update plugins/woocommerce-admin/client/core-profiler/services/country.ts

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

* Update plugins/woocommerce-admin/client/core-profiler/style.scss

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

* Fix eslint error

* Use decodeEntities directly

* Update comment for artificial 3 seconds wait

* Disable Go to my store button when country is empty

* Style for mobile devices

* Style updates for the country dropdown

* Fix js lint error

* Update country dropdown border color

* Style the loader

* Fix css lint

---------

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
Co-authored-by: rjchow <me@rjchow.com>
Co-authored-by: RJ <27843274+rjchow@users.noreply.github.com>
2023-05-15 04:56:47 +08:00
rodelgc e729c776b9 UPdate readme 2023-05-13 16:48:55 +08:00
rodelgc e4845842cb Default to 90 sec 2023-05-13 16:48:49 +08:00
rodelgc 9f592117a1 Add changelog 2023-05-13 16:14:54 +08:00
Ron Rennick f6b5913d32
Add HPOS specific k6 test suite (#37665)
* Add HPOS specific k6 test suite

* revert unintntional partial revert of #37719

---------

Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2023-05-12 16:25:51 -03:00
Faisal Alvi 8e9ff0d7f5
Fix/37601 Add `aria-describedby` to Select options button (#37880)
* Add `aria-describedby` to select options button

* add a changelog

* update the chnagelog file

* fix type

* fix the function name

* remove `aria-describedby`s if with value

* suggestions implemented

* Minor PHPCS fixes

---------

Co-authored-by: Jorge A. Torres <jorge.torres@automattic.com>
2023-05-12 16:16:38 -03:00
Ron Rennick 0c639eb10d
Add changelog file 2023-05-12 13:30:24 -03:00
louwie17 0ea5205672
Move template addition to feature flag (#38276)
* Remove template from product type and move to feature flag

* Add changelog

* Fix lint errors
2023-05-12 13:28:57 -03:00
Ron Rennick 71f3a8c40d
Do not call login if user is already logged in (#37850) 2023-05-12 13:27:10 -03:00
Ron Rennick 36202d744d skip k6 batch update when batch create fails 2023-05-12 13:20:11 -03:00
Vedanshu Jain e45dbd7301
Compute if any order is pending, when deciding to process next migration batch (#38165)
We change the behavior of how we decide whether to continue or stop the migration. Earlier, when deciding, we were counting all pending orders which was slow especially on large sites, and will continue to get slower as the migration processes. However, now we will only fetch if there is any order that needs migrating to decide whether to go ahead with the migration or not, which should be much faster then calculating the total count.
2023-05-12 16:34:05 +02:00
Nestor Soriano 6ed8fb4e4c
Delete child orders using wc_get_order->delete
Also remove get/set_verify_parent_id methods as in the end
they don't seem to be needed.
2023-05-12 15:32:41 +02:00
Karol Manijak fabc728119
Update/woocommerce blocks 10.2.0 (#38246) 2023-05-12 13:49:39 +02:00
Alejandro Iglesias 0f2561bec7 amends from CR 2023-05-12 11:15:51 +02:00
Karol Manijak 05ddf0bb8e Update the changelog file 2023-05-12 08:08:28 +02:00
Karol Manijak 5424af88a8 Restore composer.lock files 2023-05-12 07:55:17 +02:00
rodelgc d99b122d5e Fix pluginSlug error 2023-05-12 13:05:23 +08:00
rodelgc 074c8b871a Test Gutenberg and its nightly build 2023-05-12 12:21:23 +08:00
AashikP 7e3729c5fc
Add e2e test for Merchant > Pages > Can create a new page (#38238)
* Add create-page.spec.js

Create e2e test for Critical Flow: Merchant > Pages > Can create a new page

* Add changelog entry

* Update selector for close dialog

---------

Co-authored-by: Jon Lane <jon.lane@automattic.com>
2023-05-11 15:23:47 -07:00
Nathan Silveira 345cca1e09
Fix activity panel not showing unread when closed (#38173)
* Create new attribute to calculate more accurately if activity tab has something "new"

* Fix wrong attribute name

* Revert previous change, rename functions and remove isPanelOpen clause from hasAbbreviatedNotifications logic

* Rename functions
2023-05-11 16:07:13 -03:00
Christopher Allford 7b7ca116f6
Update `wp-env` To 7.0.0 (#38223)
* Updated `wp-env` To 7.0.0

* Adopted `wp-env` Changes To `update-wp-env.php`

* Updated E2E Test Bootstrapping

With the changes to `wp-env` we can update our
test bootstrapping to use the new functionality.

* Changelogs

* Restored `update-wp-env.php` Usage

There's a bit of work to do in support of this and I
don't want it to hold up the pull request!

* Fixed `wp-env` JSON Problems

It was writing an empty array in places where the
expectation was an empty object.

* Fixed Broken Echo Escape

* Fixed Init Quoting

* Update close button locator

* Reverted Quote Removal

There is an upstream bug relating to quotes that needs to be resolved!

* Reverted Quote Removal

---------

Co-authored-by: rodelgc <rodel.calasagsag@automattic.com>
2023-05-11 11:31:10 -07:00
rodelgc 2b573d4f54
In E2E Readme, add instruction to run Playwright UI mode (#38197)
* Add instruction for running Playwright UI mode

* Add changelog
2023-05-11 10:49:13 -07:00
Michael Pretty 6be097ff45
Add context to the credit card names used for translators. (#36364)
Co-authored-by: Michael Pretty <prettyboymp@Michaels-MacBook-Pro.local>
Co-authored-by: Jorge A. Torres <jorge.torres@automattic.com>
2023-05-11 16:59:24 +02:00
Ron Rennick 246053277e
Fix/37599 Add Product Name in the `aria-label` attribute (#37830) 2023-05-11 10:55:58 -03:00
Karol Manijak 8c7fa2e171 Add changelog entry 2023-05-11 14:28:57 +02:00
Karol Manijak 966c586113 Update composer.lock files 2023-05-11 14:28:32 +02:00
Nestor Soriano a0a2390d9e
Delete child orders using existing functions instead of direct db access.
Additionally, add get/set_verify_parent_id methods to the order object.
2023-05-11 12:48:21 +02:00
rodelgc a5c3838a1d Add changelog 2023-05-11 18:20:41 +08:00
rodelgc 78fd2f88af Add test steps 2023-05-11 18:18:29 +08:00
Néstor Soriano eccff559a5
Hide state selector from Ethiopia and Rwanda addresses (#35481)
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2023-05-11 11:05:11 +02:00
Alejandro Iglesias 4688290463
Save order before calculating totals if created via REST API (#37845) 2023-05-11 10:29:48 +02:00
Alejandro Iglesias 6a3839e7fa make nonce verification static 2023-05-10 23:50:25 +02:00
Alejandro Iglesias 79acdad45b remove password reset query arg 2023-05-10 23:50:19 +02:00
Alejandro Iglesias f3f9a3a45c Revert previous fix 2023-05-10 23:50:11 +02:00
Ron Rennick d93a5d4e88
Add default styles for product meta in the TT3 order details table (#38172) 2023-05-10 16:59:46 -03:00
Nathan Silveira f668ce72ac
Add tests to tracks events fired through JS (#38124)
* Add test for inbox_note_view event

* Add tracks test for Layout's page_view

* Add test to inbox_action_click

* Add tests to analytics_filter tracks event

* Add tracks event test to activity_panel_open

* Add tests to tracks event activity_panel_orders_orders_begin_fulfillment

* Add tracks tests to activity_panel_stock_update_stock

* Improve tests based on code review comments

* Mock recordEvent and recordPageView globally

* Add missing mock

* Improve inbox panel tests
2023-05-10 09:36:42 -03:00
Nestor Soriano 2ff1c70f9d
Add changelog file 2023-05-10 12:55:14 +02:00
Nestor Soriano 7b5b6420fe
Fix the child order upshifting when parent order is deleted
PR 36218 implemented child order upshifting (setting their parent
order id to 0) when the parent order is deleted, but this needs to
happen only when the post type of the parent order is hierarchical,
otherwise child orders need to just be deleted. This commit fixes that.
2023-05-10 12:47:59 +02:00
Chi-Hsuan Huang fa658a0e94
Fix "Add store details" task fails to mark as completed for selecting Nigeria based address (#38181)
* Fix "add store details" task fails to mark as completed for selecting Nigeria based address while OBW

* Add changelog

* Remove empty line

* Fix lint
2023-05-10 17:08:33 +08:00
Menaka S c3d06ad05f
Add WC Tracker unique payment method (#37951)
Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
2023-05-10 09:22:58 +02:00
Ilyas Foo 1b8eeed2e2
Fix tracks identifier mismatch (#38094)
* Add tracks identifyUser when initializing wcTracks object

* Changelog

* Remove unused code

* Lint

* Lint

* More lint
2023-05-10 14:08:19 +08:00
Chi-Hsuan Huang 687549dc6b
Fix "Marketing & Merchandising" padding on store management panel (#38088)
* Add a 24px spacing between the Manage my store header and the Marketing & Merchandising heading

* Add changelog

* Update store management card style

* Update .woocommerce-store-management-links__card-body padding
2023-05-10 13:02:22 +08:00
Chi-Hsuan Huang 956d09c34b
Fix shipping tour layout context error (#38183)
* Add LayoutContextProvider to embedded body layout to fix shipping tour error

* Show an error notice and record track when failing to update shipping option

* Add changelog

* Update error message

* Remove unused import
2023-05-10 13:01:37 +08:00
Chi-Hsuan Huang 4ba276d3fb
Re-enable purchase unit tests and falling back to simply not display any prices when data is not available (#38163)
* Re-enable Purchase unit tests

* Fallback to simply not display any prices rather than empty prices when data is not available.

* Add changelog
2023-05-10 10:30:59 +08:00
Jonathan Lane 71981b5318
Playwright 1.33 and UI mode (#38100)
* Update Playwright to 1.33

* Add UI command

* Changelog entry

* Increase timeout

* Increase timeout again

* Moved Playwright to devDependencies

* Remove UI command

* Re-update Playwright

* Comment out failing assertion

---------

Co-authored-by: Jon Lane <jon.lane@automattic.com>
2023-05-10 09:30:08 +08:00
Matt Sherman d11f50b5a3
Update empty state for product attributes tab (#38126)
* Remove empty state HTML

* Add empty attribute when product has no attributes

* Remove unused woocommerce_admin_meta_boxes.has_local_attributes

* Remove unused toggle_add_global_attribute_layout

* Remove unused button.add_attribute click handling (button doesn't exist anymore)

* Fix positioning of Expand / Close

* Remove unnecessary add-attribute-container div

* Refactor attribute search selection handling

* Remove empty attribute if adding an existing attribute

* Update e2e test clicking of "Add new" attribute button

* Update Tracks handling for "Add new" attribute button

* Changelog

* Fix action recorded when "Add new" button is clicked

* Remove console.log statements

* Allow propagation of click event on "Create value" button

* Move Tracks wcadmin_product_attributes_buttons action: 'add_existing' to product-tracking TS

* Make function names more descriptive. Add comment to clarify why event.preventDefault is used.
2023-05-09 20:04:29 -04:00
Tomek Wytrębowicz 00c151f9aa
Remove `qs` dependency from `woocommerce-admin` (#35128) 2023-05-09 21:03:25 +02:00
Fernando Marichal eef417fe39
Variations - Rename the Generate variations button after variations are created (#38084)
* Rename 'Generate variations' button

* Add changelog

* Fix button rename

* Refactor fix
2023-05-09 15:12:29 -03:00
Barry Hughes 6a42565550
fixed spacing issue of thumb image (#35491) 2023-05-09 10:51:25 -07:00
Fernando Marichal 765a87a741
Variations - Remove separator between buttons and empty state screen (#38123)
* Remove separator between buttons and empty state screen

* Add changelog

* Fix separator style
2023-05-09 12:43:25 -03:00
Tomek Wytrębowicz bbf4f47c9c Remove qs dependency from `WCAddonsTour` ,
use native `URLSearchParams` instead.
2023-05-09 14:57:39 +02:00
Chi-Hsuan Huang 4c9bcbc30e
Add missing woocommerce_run_on_woocommerce_admin_updated hook for RemoteInboxNotificationsEngine scheduled action (#38159)
* Remove maybe_mark_complete usage

* Add changelog

* Add woocommerce_run_on_woocommerce_admin_updated hook

* Add changelog

* Fix lint
2023-05-09 18:53:08 +08:00
Chi-Hsuan Huang 059d1de563
Remove core onboarding usage of woocommerce_updated hook (#38158)
* Remove maybe_mark_complete usage

* Add changelog
2023-05-09 18:20:42 +08:00
Chi-Hsuan Huang 2189cb181a
Hide "Upload a logo" step in Personalize task if theme doesn't support it (#38161)
* Hide upload logo step in Personalize task if theme doesn't support it

* Add changelog

* Fix lint
2023-05-09 18:20:18 +08:00
Chi-Hsuan Huang e06097b4c2
Fix `wc-experimental` strings are not translated (#38108)
* Add wc-experimental to translated_scripts

* Add changelog
2023-05-09 17:07:36 +08:00
Chi-Hsuan Huang 0148c3eafd
Make all fields in the tax location form mandatory (#38137)
* Make all fields in the tax location form mandatory

* Add changelog
2023-05-09 17:01:37 +08:00
Joshua T Flowers 329fcd1bc3
Add tinymce scripts to product editor pages (#38175)
* Add tinymce scripts to product editor pages

* Add changelog entry
2023-05-09 04:32:00 -03:00
Chi-Hsuan Huang 4a237ca476
Migrate Purchase task and dashboard utils to TS (#37725)
* Fix onboarding productTypes TS define type

* Rename purchase.js -> purchase.tsx

* Rename utils.js -> utils.ts

* Migrate dashboard/util to TS

* Rename tasks fills to index.ts

* Migrate purchase task to TS

* Add changelog

* Fix types

* Update changelog
2023-05-09 11:28:57 +08:00
Jorge A. Torres 1206b5a38a
Enhancement: Add order note to display held stock inventory. #29132 (#37833) 2023-05-08 19:46:14 -03:00
Jorge A. Torres 8eb8a09c88 Minor fixes 2023-05-08 18:18:39 -03:00
Jorge A. Torres 63916fed3c Drop `$held_stock_counter` to simplify logic 2023-05-08 17:53:05 -03:00
“Chris 38db587d1e Add changelog 2023-05-08 22:23:04 +03:00
“Chris 105137c406 Add styling for wc-item-meta in order details table 2023-05-08 22:20:48 +03:00
“Chris 92287f7557 Make phpcs happy 2023-05-08 22:00:21 +03:00
“Chris f43b943523 Merge branch 'trunk' into add/tt3-comp-button-classes 2023-05-08 21:50:30 +03:00
AashikP 552806b34a
Add e2e test for Merchant > Posts > Can create a new post (#38041)
* Add create-post.spec.js

Create e2e test for Critical Flow: Merchant > Posts > Can create a new post

* Fix e2e Merchant Create Post

* Force delete created post
* Check for Welcome modal - close if exists
* Change assertion for Published post confirmation from `check if true` to `check if visible`
* Added changelog file

* e2e-pw: Create post - replace btoa

Replace deprecated function btoa with Buffer function
2023-05-08 10:33:29 -07:00