Commit Graph

10529 Commits

Author SHA1 Message Date
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
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
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
Barry Hughes 902454a40c
Fix character encoding detection in CSV exporter for PHP 8.1 (#38648) 2023-06-09 14:32:09 -07:00
Barry Hughes 6db8a53918
Adjust functions in wc-formatting-functions.php to handle null argument deprecations in PHP 8.1 (#38635) 2023-06-09 14:31:11 -07:00
barryhughes 252d3bc32e Remove extraneous `@param` tag. 2023-06-09 14:07:41 -07:00
barryhughes 530a7f08d0 Always return a bool, in case the data store lacks the `untrash_order` method. 2023-06-09 13:52:21 -07:00
barryhughes 7f8747f478 Add methods to allow x-datastore untrashing. 2023-06-09 13:36:31 -07:00
barryhughes d30754b1cf Changelog entry. 2023-06-09 13:36:19 -07:00
barryhughes 4b7643cd6f Describe how untrashing should work in relation to orders. 2023-06-09 13:35:24 -07:00
Ron Rennick a172941031
Add Saint Kitts and Nevis localizations for address entry (#38621) 2023-06-09 17:07:45 -03:00
Ron Rennick 66f4e8c1bb update playwright country crud configuration 2023-06-09 16:31:01 -03:00
Ron Rennick f54686c639 update playwright stateOptions configuration 2023-06-09 15:39:34 -03:00
Corey McKrill 318a133e17
Rename feature_compat to feature_compatibility 2023-06-09 11:24:08 -07:00
Corey McKrill f0f586aa5e
phpcs cleanup 2023-06-09 11:24:08 -07:00
Corey McKrill 2a3b5bfe64
Add changelog file 2023-06-09 11:24:07 -07:00