Commit Graph

4543 Commits

Author SHA1 Message Date
louwie17 cad707f57c Highlight help panel with tooltip (https://github.com/woocommerce/woocommerce-admin/pull/5826)
* Show highlight help panel popup after user enters uncompleted task more then once

* Updated styling of highlight tooltip

* Removed empty array from the useSelect to prevent unnecessary re-renders

* Updated styling of the highlight tooltip to match wireframe and wrote tests

* Fix close button location

* Add event tracking

* Add changelog

* Make use of user preferences meta data for task visit tracking

* Add support for toggling the show boolean

* Make sure the delay works correctly for highlight tooltip

* Continue tracking tasks visit count, and added onShow callback for tooltip
2020-12-18 09:17:07 -04:00
Moon aff8a66fe7 Add missing namespace for translation (https://github.com/woocommerce/woocommerce-admin/pull/5905) 2020-12-17 16:06:39 -08:00
David Levin 4822afe5fb update section header component styles to match typography in @wordpress/components (https://github.com/woocommerce/woocommerce-admin/pull/5891)
* update card header styles to match typography in @wordpress/components

* revert analytics card headers

Co-authored-by: David Levin <davidlevin@Davids-MacBook-Pro-2.local>
2020-12-17 13:49:03 -08:00
MILLER/F fbcc65034f Allow setting Jetpack connection when JETPACK_MASTER_USER isn't available (https://github.com/woocommerce/woocommerce-admin/pull/5880)
* Allow setting Jetpack connection when JETPACK_MASTER_USER isn't available

* Fix linting

* Fix lint

* Update OnboardingSetUpShipping.php

Added filter description
2020-12-17 20:49:18 +01:00
Jeff Stieler e342864b74 Use createHigherOrderComponent(). (https://github.com/woocommerce/woocommerce-admin/pull/5898)
Fixes some "anonymous" components in tree.
2020-12-17 10:03:09 -05:00
Jeff Stieler c8c544f70c Support custom product attributes in advanced filter (https://github.com/woocommerce/woocommerce-admin/pull/5848)
* Add product attributes autocomplete for Search control.

* Support single selection in Search component.

* Fix SelectControl input after selection in single mode.

* Remove label from Search component's inner SelectControl.

Placeholder is the behavior we want to avoid label and selection collision.

* Match Search component selected prop to SelectControl.

It's passed through anyhow.

* Rework attribute filter to use new endpoints for custom terms.

* Hook up custom attribute filter to report queries.

* Fix errant space in filter name.

* Fix SelectControl active status when control is disabled.

* Fix SelectControl "has tags" logic for non-multiple use cases.

* Fix attribute filter screen reader text.

* Update changelogs.

* Move custom attribute test to it's own function.

* Remove SelectControl input disabling.

This was supposed to improve keyboard behavior for non-multiple controls, but it was questionable.

* Fix backspace in attribute term field.
2020-12-17 09:59:01 -05:00
Adrian Duffell 9a0ffaeca7 Add Docker app for PHP Test Suite (https://github.com/woocommerce/woocommerce-admin/pull/5297) 2020-12-17 21:02:10 +08:00
Joshua T Flowers 2068b36fe7 Add navigation opt out modal (https://github.com/woocommerce/woocommerce-admin/pull/5857)
* Add navigation opt out script

* Check to see if opted out before loading opt out scripts

* Include opt out styles

* Close modal after clicking 'Share Feedback'

* Update to not use export default
2020-12-16 09:08:14 -05:00
louwie17 9055d3831e Update verified product owner view for a review (https://github.com/woocommerce/woocommerce-admin/pull/5877)
* Add checkmark svg and update verified owner view

* Add changelog

* Fix lint errors, add tooltip, and add test
2020-12-16 08:32:40 -04:00
Renovate Bot 57cfae76e7 chore(deps): update dependency promptly to v3.2.0 2020-12-16 07:52:47 +00:00
Renovate Bot f1fefe1d34 chore(deps): update dependency node-watch to v0.7.1 2020-12-16 06:35:33 +00:00
Renovate Bot 9a19f83ab1 chore(deps): update dependency lint-staged to v10.5.3 2020-12-16 05:14:46 +00:00
Renovate Bot f3ccda4366 chore(deps): update dependency husky to v4.3.6 2020-12-16 04:34:59 +00:00
Renovate Bot 85c90af1ec chore(deps): update dependency @testing-library/user-event to v12.6.0 2020-12-16 03:57:07 +00:00
Moon 800ccb17c2 Adjust countries for checkout and payment list (https://github.com/woocommerce/woocommerce-admin/pull/5869) 2020-12-15 18:04:56 -08:00
Renovate Bot a392ffb631 chore(deps): update babel monorepo 2020-12-16 01:37:47 +00:00
Paul Sealock 8c8efd59fc Dependency Extraction Webpack Plugin: Handle irregular dependency names (https://github.com/woocommerce/woocommerce-admin/pull/5770)
* fix irregular dependency names

* starter pack

* blocks registry

* update docs
2020-12-16 08:22:19 +13:00
Joshua T Flowers 6e2bf974c7 Add filter for root back URL (https://github.com/woocommerce/woocommerce-admin/pull/5878)
* Add filter for root back URL

* Add filter for root back button label
2020-12-15 12:05:32 -05:00
Paul Sealock 8f606ea159 Fix docs syntax error (https://github.com/woocommerce/woocommerce-admin/pull/5876) 2020-12-15 12:51:16 +13:00
Joshua T Flowers 2a7ac8e684 Register core product taxonomies (https://github.com/woocommerce/woocommerce-admin/pull/5811)
* Add product tags and categories taxonomies to menu

* Add product attributes page

* Register product taxonomies

* Register product attribute taxonomy screens

* Move order to taxonomy item getter

* Add match expressions for product tags and attributes

* Check against wc taxonomies instead of registering wc taxonomies

* Add comments to regex match groups

* Update nav readme to include taxonomies

* Update to less ambiguous taxonomy check
2020-12-14 17:58:03 -05:00
Jeff Stieler f5b243d073 Fix typo in Variation Stats Datastore context variable. (https://github.com/woocommerce/woocommerce-admin/pull/5874) 2020-12-15 09:28:13 +13:00
Jeff Stieler 1ce3fb1436 Add Product Attributes Endpoint (https://github.com/woocommerce/woocommerce-admin/pull/5840)
* Add new product attributes endpoint that allows searching.

Including custom attributes in the results.

* Add endpoint to fetch custom attribute values by slug.

* Add initial tests for Product Attributes endpoint.

* Test Product Attribute search.

* Fix schema/params for attribute terms endpoint.

* Add tests for custom term values endpoint.

* Add a LIMIT to the attributes query.

* Add endpoint to retrieve single attribute by slug.

Fixes the 'self' link.
2020-12-14 10:28:48 -05:00
Ilyas Foo 1ac787f568 fix: remove Historical Analytics Data notice woocommerce/woocommerce-admin#5286 (https://github.com/woocommerce/woocommerce-admin/pull/5725)
* fix: remove Historical Analytics Data notice woocommerce/woocommerce-admin#5286

* fix: removed reference for HistoricalData class elsewhere

* Remove Historical Data Alert facade (https://github.com/woocommerce/woocommerce-admin/pull/5725)
2020-12-14 18:02:40 +08:00
Bec Scott 871bd1369e Use client side filter on the CSV download (https://github.com/woocommerce/woocommerce-admin/pull/5787)
* Use woocommerce_admin_report_table client side filter on the CSV download

* Remove duplicated applyFilters call

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-12-14 15:08:19 +10:00
Renovate Bot 73377a08a3 Update dependency @octokit/graphql to v4.5.8 2020-12-14 00:29:26 +00:00
Paul Sealock 0dbbd7534d Documentation: Add wc_admin_register_page docs (https://github.com/woocommerce/woocommerce-admin/pull/5844)
* Add wc_admin_register_page docs

* update readme.txt

* icon feedback

* better example code

* proper import

* updated links
2020-12-14 12:04:32 +13:00
renovate[bot] d8da6a9872 Update dependency @testing-library/user-event to v12.5.0 (https://github.com/woocommerce/woocommerce-admin/pull/5847)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-12-14 11:10:57 +13:00
renovate[bot] bdd567bf6d Update dependency dompurify to v2.2.3 (https://github.com/woocommerce/woocommerce-admin/pull/5852)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-12-14 10:32:00 +13:00
louwie17 e2c7937f44 Only show card placeholder for item that is updating, not the whole list (https://github.com/woocommerce/woocommerce-admin/pull/5845)
* Only show card placeholder for item that is updating, not the whole list

* Always merge reviews
2020-12-11 09:56:44 -04:00
Fernando dc02c47499 Home Screen - Small refactor to tasks extensibility (https://github.com/woocommerce/woocommerce-admin/pull/5833)
* Added unregister extended task

This commit adds a method to unregister extended task when the plugin is deactivated

* Refactored task lists handling

This commit refactors the task lists handling

* Added default task type

This commit adds a default task type

* Fixed method comment

* Moved method to group objects to lib

This commit moves method to group objects to `lib`

* Refactored getUngroupedTasks method

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-12-10 23:29:45 -03:00
louwie17 484e945460 Fix updating WC customer without wordpress user (if multiple orders are present) (https://github.com/woocommerce/woocommerce-admin/pull/5825)
* Create get last order function that does not rely on Wordpress user, and add test for use case

* Add change log

* Make sure tests use the right index for comparison

* Order by date_created_gmt first and order id second, and wrote test for get_last_order

* Fix test assertion, and remove unnecessary parameter
2020-12-10 09:42:17 -04:00
Albert Juhé Lluveras e44193cb1d Fix count bubble alignment in SearchListItem with latest @wordpress/components (https://github.com/woocommerce/woocommerce-admin/pull/5809)
* Remove showCount prop from SearchListControlItem

* Add option to show counts in ShowListControl story

* Fix count alignment in SearchListItem with latest Gutenberg

* Add new changelog entry

* Update dated prop description
2020-12-10 11:44:31 +01:00
Bec Scott 88b64b6980 Fix regression where store age is 0 while isResolving for the option is returning false (https://github.com/woocommerce/woocommerce-admin/pull/5858)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-12-10 17:26:31 +10:00
Moon 13a738558c Hide shipping cost task if user has disabled shipping (https://github.com/woocommerce/woocommerce-admin/pull/5850)
* Hide shipping cost task if user has disabled shipping

* Add countries array to dataEndpoints

* Export the presentational component so that it can be tested

* Add a test for the shipping component
2020-12-09 17:24:36 -08:00
louwie17 c1ad7aa21d Move collapsible to panels config, fixing orders panel (https://github.com/woocommerce/woocommerce-admin/pull/5855)
* Move collapsible to panels config, so we can always set it to true for orders

* Add changelog
2020-12-09 16:57:41 -04:00
Renovate Bot 65160f7c81 Update dependency husky to v4.3.5 2020-12-09 04:35:56 +00:00
Renovate Bot 9a44a93edb Update dependency cross-env to v7.0.3 2020-12-09 03:38:47 +00:00
Renovate Bot e922b86d84 Update dependency @testing-library/react-hooks to v3.7.0 2020-12-09 02:32:04 +00:00
Joshua T Flowers 10b9579cde Add nav item route regex matching (https://github.com/woocommerce/woocommerce-admin/pull/5818)
* Use default expression to match items

* Pass match expression for WCA homepage

* Match post types if the current post type matches item

* Remove unused getParams

* Update tests for isMatch util

* Update nav docs

* Update default expression to match params in any order

* add query arg tests: additional and order

* Use match score based on regex matches

* Return max safe int for exact matches

* Update tests for match score

* more tests

Co-authored-by: Paul Sealock <psealock@gmail.com>
2020-12-09 13:45:30 +13:00
Bec Scott 0e7249c910 Add filter by variations in reports note (https://github.com/woocommerce/woocommerce-admin/pull/5208)
Authored-by: Rebecca Scott <me@becdetat.com>
2020-12-08 16:50:27 +13:00
Joel Thiessen 99b3396b50 Fix/5831 nav add plugin settings (https://github.com/woocommerce/woocommerce-admin/pull/5842)
* Adding simple add_plugin_setting_item() hook that enables adding a nav item only to the Settings menu

* Adding warning when a plugin attempts to register a settings item with illegal args

* rename to add_setting_item

Co-authored-by: Paul Sealock <psealock@gmail.com>
2020-12-08 16:32:10 +13:00
Moon bc6ba4f3ac Revert "Convert before and after dates to UTC (https://github.com/woocommerce/woocommerce-admin/pull/5819)" (https://github.com/woocommerce/woocommerce-admin/pull/5834)
This reverts commit c86563c3ac.
2020-12-07 16:01:22 -08:00
Moon 16ef985c39 Apply CSS directly to woocommerce-homepage-notes-wrapper class to prevent applying the style to other classes (https://github.com/woocommerce/woocommerce-admin/pull/5835) 2020-12-07 12:18:51 -08:00
Moon c6df45c6c7 Add onboarding settings only for the home and setup wizard pages (https://github.com/woocommerce/woocommerce-admin/pull/5771)
* Add onboarding settings only if the current page is one of the WC admin pages.

* Uses screen object to detect WC Admin pages

* Removed unused variable

* Use PageController to check for the WC Admin pages -- it is more reliable

* Add onboarding settings only if the current page is home or setup wizard
2020-12-07 12:09:09 -08:00
Moon dcff488152 Remove WooCommerce Tax copies if it is already installed (https://github.com/woocommerce/woocommerce-admin/pull/5726) 2020-12-07 10:44:32 -08:00
Moon 8fec9af1ad Check for empty spaces by trimming the values (https://github.com/woocommerce/woocommerce-admin/pull/5828) 2020-12-07 10:44:24 -08:00
Ilyas Foo 9c7055a135 Test install script resets test environment (https://github.com/woocommerce/woocommerce-admin/pull/5761)
* Add reset option to bin/install-wp-tests.sh

* Fix logic issues and made reset more verbose

* Add testing suite removal on reset

* Change behaviour of test install script to reset by default

* Silence install-wp-tests.sh reset commands
2020-12-07 13:10:13 +08:00
Ilyas Foo 99aa5ddfba Update README.md and CONTRIBUTING.md (https://github.com/woocommerce/woocommerce-admin/pull/5772)
* Update README.md and CONTRIBUTING.md

* Add note about WooCommerce development environment
2020-12-07 08:33:08 +08:00
Moon c86563c3ac Convert before and after dates to UTC (https://github.com/woocommerce/woocommerce-admin/pull/5819)
Fixes woocommerce/woocommerce-admin#5810
2020-12-07 11:53:06 +13:00
Adrian Duffell 300504ea94 Fix inconsistent customer Type parameter in REST endpoints (https://github.com/woocommerce/woocommerce-admin/pull/5823)
The wc-analytics/reports/orders and /wc-analytics/reports/orders/stats endpoints have inconsistent parameter names for filtering the customer type: customer_type vs customer.

This was affecting the Customer Type filter in the orders analytics, reported in issue woocommerce/woocommerce-admin#5803, where the component expects the parameter names to be the same. This is because it uses a parameter name based on the key in the filter configuration (customer_type).

To resolve this, this PR updates /wc-analytics/reports/orders/stats to accept both customer_type and customer as parameter names for this filter. The customer parameter has however been deprecated in its description to discourage usage.

Co-authored-by: Sam Seay <samueljseay@gmail.com>
2020-12-07 06:39:29 +08:00