Commit Graph

10542 Commits

Author SHA1 Message Date
Maikel David Pérez Gómez fe7933e7a9
Implement experiment within code for new users (#38700)
* Configure the expiriment to redirect variation treatment to the new product editor

* Add changelog file

* Fix experiment name

* Fix changelog description
2023-06-15 14:42:57 -04:00
Nathan Silveira bfd720c28f
Extract usePublishedProductsCount hook and use it in about-the-editor-menu-item (#38742) 2023-06-15 13:03:18 -03:00
Maikel David Pérez Gómez 2471dcba05
Replace 'use classic editor' with 'Turn off the new product editor' in options menu (#38693)
* Options menu in product editor view should show Turn off the new product editor with some subtext

* Record event product_editor_options_turn_off_editor_click when clicking Turn off the new product form menu item

* Add changelog file
2023-06-15 10:55:11 -04:00
Fernando Marichal d74904b1bd
Fix number of orders under tax report (#38525)
* Count unique post_id

* Add changelog

* Fix lint

* Fix Reports table

* Fix lint

* Fix $key
2023-06-15 11:11:10 -03:00
Nathan Silveira 5f94b411f0
Product Editor Onboarding: Add About the editor... option the more menu in product block editor (#38691)
* Add 'About the Editor' menu item

* Show the guide when clicking the menu item

* Add track event when clicking about the editor

* Add changelog

* Remove from product more menu
2023-06-15 10:07:46 -03:00
Matt Sherman 9d7b68b82c
Update product editor tour design (#38726) 2023-06-15 08:23:13 -04:00
Moon e50fb51b26
Set skipped flag when guided setup is skipped (#38730)
* Set woocommerce_onboarding_profile.skipped when guided setup is skipped

* Add Changelog
2023-06-14 21:12:03 -07:00
Moon 1e8bbb2800
Remove StoreDetails task when core-profiler flag is on (#38722)
* Remove StoreDetails task when core-profiler flag is on

* Add Changelog
2023-06-14 20:37:07 -07:00
Chris Runnells 1e19d186c2
Fix task list header overlap (#38707) 2023-06-14 11:44:30 -10:00
jonathansadowski 9404a7dff3
Update Action Scheduler to 3.6.1 (#38721) 2023-06-14 15:38:11 -05:00
Matt Sherman de6f77d8be
Fix transient notices overlapping product editor footer (take 2) (#38698)
* Use WooFooterItem for Footer

* Use WooFooterItem fill for TransientNotices

* Adjust TransientNotices styling to work in footer

* Fix footer width when in setup wizard

* Change export of TransientNotices from default to named

* Add border to footer

* Changelog

* Changelog

* Mock WooFooterItem to allow unit tests to pass

* Fix lint error in test
2023-06-14 16:32:28 -04:00
Ron Rennick b0c06849a9
Update status only when its changed. (#38696) 2023-06-14 16:50:09 -03:00
Corey McKrill 3595622e09
WC Tracker: Add info about features and plugin compatibility (#38613)
* Adds a data key with the list of WC features that are currently enabled on the site.
* Adds a feature_compat key to each plugin that shows its compatibility with each feature (compatible, incompatible, or uncertain) if the plugin is "WooCommerce aware", otherwise just an empty array.
2023-06-14 12:40:41 -07:00
Corey McKrill 9704873fb6
add HPOSToggleTrait.php to unit test loader (#38684)
This PR fixes two unit test files that could not be run individually by adding HPOSToggleTrait.php to the unit test boot loader. It also does a bit of namespace cleanup in HPOSToggleTrait.php.
2023-06-14 11:03:04 -07:00
Corey McKrill cf3346e739
Test removal cleanup 2023-06-14 10:56:22 -07:00
Corey McKrill 1804d44be1
Remove feature compatibility unit test
The mocks in this test were affecting other unit tests for the
PluginUtil class, but only when run in GitHub actions (the tests were
working fine locally). Rather than hold up this PR, I've created
issue #38720 as a future task to add the unit test back in once we've
figured out if there's something buggy happening with dependency
injection.
2023-06-14 10:49:50 -07:00
Fernando Marichal 47481490d8
CES modal modifications (#38643)
* Add extraFields prop

# Conflicts:
#	packages/js/product-editor/src/components/product-mvp-ces-footer/product-mvp-ces-footer.tsx

* Add changelog

* Add changelogs

* Fix styles

# Conflicts:
#	packages/js/product-editor/src/components/product-mvp-ces-footer/style.scss

* Add extraFields validation

* Remove files

* Add styles and js

* Modify the other share feedback form

* Change modal title

* Fix feedback-bar

* Fix return

* Fix params types

* Rename `extraFields` to `getExtraFieldsToBeShown`

* Fix styles

* Fix error handling

* Fix styles

* Rename prop

* Fix error message
2023-06-14 11:25:51 -03:00
Ron Rennick 0ef06972af Merge branch 'trunk' into fix/hpos-unit-test-trait 2023-06-14 11:01:28 -03:00
Vedanshu Jain e4f3273fb5
Add meta boxes for custom taxonomies in order edit screens (#38676) 2023-06-14 15:47:22 +02:00
Ron Rennick 960fa1035a
Add re-migrate support to HPOS CLI. (#38690) 2023-06-14 10:05:38 -03:00
Nathan Silveira b006eee3ae
Add `wcadmin_settings_change` tracks event when adding/removing entries in shipping (#38465)
* Add support for new properties "added" and "deleted" in settings tracking

* Add calls to actions when adding and deleting shipping zones and classes

* Add changelog

* Cover an edge case where the zone is created through adding a method and add more comments

* Fix lint issues

* Add inline comment explaining if statement
Refactor WC_Settings_Tracking to work with a single action with an additional parameter
2023-06-14 09:25:37 -03:00
Vedanshu Jain 02a08e9e3b Add unit test for checking that status has the correct value. 2023-06-14 15:17:52 +05:30
Vedanshu Jain 5f4d7db463 Remove `modified` check when migrating existing orders for consistency.
We were checking whether an order is modified before migrating them. While on surface this looks good, the logic itself has following flaws:
1. We were only checking the columns in the core posts table, but none of the meta fields.
2. Our comparison logic was written in SQL, but given that we have a much better comparison logic already written in PHP, it does not makes sense to maintain two different versions.
3. We are alrady checking for modified records in the batch processor itself, so another check this close to migration logic is not really needed.
2023-06-14 15:03:27 +05:30
Vedanshu Jain 60e168c6ca Doc fixes. 2023-06-14 14:33:48 +05:30
Vedanshu Jain 0c2508a1f1 Add re-migrate support to HPOS CLI. 2023-06-14 14:33:48 +05:30
Moon 604132391a
Visual changes for Intro, guided setup, and skipped guided setup pages (#38709)
* Change Skip this setup to Skip this step

* Visual changes on intro, user profile, and skip guided page

* Always check tracking agreement

* Change border to 2px

* Change Give yoru store a name font-size to 13

* Add Changelog

* Update test to reflect the text change

* Remove !important

* Update test snapshot

* Update test snapshot

* Remove test that is no longer necessary
2023-06-13 22:10:43 -07:00
Corey McKrill 9db19e4848
Tweak unit tests 2023-06-13 15:47:27 -07:00
Chris Runnells f89de27025 Added changelog entry 2023-06-13 12:04:43 -10:00
Moon 620ff93e5a
Additional changes for the core profiler plugins page (#38616)
* Add install-and-activate-plugins-async action to onboarding

* Add label and learn_more_link types

* Use label and learn_more_link

* Fix type

* Add changelog

* Add changelog

* Add install_priority -- this will be used in the core profiler

* Sort selected plugins by install_priority for installation

* Remove unused imports

* dev: refactor installAndActivatePlugins to xstate

* ts fixes

* Sort plugins by install_priority

* Make sure WooCommerce Shipping is always visible

* Update free extension list content

* Updated WC payment description
* Updated logo images

* Visual changes on the plugin page

* Change CTA font size from 13px to 14px
* Change spacing between the chebox and logo to 24px
* Change heading font-weight to 500

* Fix css lint error

* Fix gray-900 variable name

* Hide learn more link on mobile view

* Add back learn more link that was removed from rebase

* Send pluginsAvailable to pluginInstallermachine

* Use is_activated to determine plugin availability and install status

* Update packages/js/data/src/onboarding/types.ts

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

* Update plugins/woocommerce/src/Internal/Admin/RemoteFreeExtensions/DefaultFreeExtensions.php

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

* Add back recordTracksPluginsLearnMoreLinkClicked

* Use install-and-activate-plugins-async when timer is up

* Record plugin and link with learn more linked clicked event

* Fix failign tests

* Add comment for install_priority

---------

Co-authored-by: rjchow <me@rjchow.com>
Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2023-06-13 15:03:03 -07:00
Chris Runnells 6e39164cea Update task list CSS to prevent text from overlapping the background image 2023-06-13 12:02:43 -10:00
Jorge A. Torres 05a4884188
Address possible PHP deprecation warning in `/wc-admin/options` endpoint (#38685)
* Address possible PHP warning in `/wc-admin/options` endpoint

* Add changelog

* phpcs fix

* Implement code review suggestion
2023-06-13 16:59:55 -03:00
Nathan Silveira bc3edb0ae1
Update style of Block product editor TourKit (#38640)
* Increment style of first step of block editor tour

* Changelog
2023-06-13 16:44:01 -03:00
Vedanshu Jain 59bb1f8365 Update status only when its changed. 2023-06-13 21:12:03 +05:30
Vedanshu Jain a718a59166
Add/order model trash untrash (#38670) 2023-06-13 18:52:26 +05:30
Corey McKrill 7cbebac61c
Ensure test mocks don't pollute other tests 2023-06-12 14:49:22 -07:00
Jorge A. Torres 02e71e8c4b Add changelog 2023-06-12 18:15:03 -03:00
Jorge A. Torres eb3082e835 Address possible PHP warning in report code 2023-06-12 18:15:03 -03:00
Jorge A. Torres 9a6005a355 Cast partial refund related data in report to float before operating on it 2023-06-12 18:15:03 -03:00
Ron Rennick 42261ed77f
Ensure order ordering in order filter unit test (#38680)
* Ensure order ordering in order filter unit test

* remove unused variable, fix spacing

---------

Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2023-06-12 17:59:32 -03:00
Ron Rennick 2ad276174e add HPOSToggleTrait.php to unit test loader 2023-06-12 17:23:55 -03:00
Nathan Silveira 0fc765beb3
Product Editor Onboarding: Add "tell me more" button to wc.com page (#38639)
* Copy Guide component from @wordpress/components and fix focus issue

* Add 'tell me more' button and behavior

* Move Guide component from components package to admin package
Implement assigning an href to the finish button, sending the current page and origin as a parameter on the onFinish callback

* Remove dependency

* Restore pnpm-lock.yaml

* Add changelog

* Add comment in Guide component

* Dismiss modal only when it's finished or X button is clicked

* Add 'rel' when opening link in a new tab
2023-06-12 14:54:29 -03:00
Ron Rennick 0e95435474
improve get_children transient validation (#38666)
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2023-06-12 14:05:06 -03:00
Matt Sherman 2039d8915e
Show feedback bar after product editor tour/guide (#38669) 2023-06-12 12:43:19 -04:00
Nathan Silveira 18f2de2bc4
Always show pricing group fields, disable if not available for a product type (#38531)
* Always show General product tab

* Add info messages for variable and grouped products

* Add logic to disable/enable fields and labels based on product type

* Tweak CSS and fix links

* Add tracks events for links

* Add filters to pricing disabled message

* Tweak logic to only enable fields on certain product types instead of disabling in the opposite ones

Add fallback message when pricing is disabled but it's not Variable or Grouped product

* Add docblocks

* Fix more lint issues

* Fix last lint issues

* Update selector in e2e test

* Refactor PHP echo

* Attach to #woocommerce-product-data instead of attaching to body
2023-06-12 12:58:26 -03:00
nigeljamesstevenson 3efb6f488c
Fix flakiness in `can set variation defaults` test. (#38672) 2023-06-12 14:59:25 +01:00
github-actions[bot] f0156a24fc
Delete changelog files based on PR 38663 (#38665)
Delete changelog files for 38663

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-12 08:02:58 -05:00
Corey McKrill d2a9feda2a
phpcs cleanup 2023-06-09 17:26:38 -07:00
Corey McKrill 50f4e63ddb
Add unit tests 2023-06-09 17:14:48 -07:00
Rodel Calasagsag 77024a8da7 Add changelog 2023-06-10 06:17:07 +08:00
Rodel Calasagsag f807d5d65e Add step to wait for overlay to disappear. 2023-06-10 06:16:12 +08:00