Commit Graph

4496 Commits

Author SHA1 Message Date
Tomek Wytrębowicz da14803c64 Add fancy placeholders for Marketing components (https://github.com/woocommerce/woocommerce-admin/pull/5611)
- Add placeholders for `RecommendedExtensionsItem` and `KnowledgebaseCardPost`. Addresses https://github.com/woocommerce/woocommerce-admin/issues/5375.
- Fix translation of "By" in KnowledgeBase Card. Addresses https://github.com/woocommerce/woocommerce-admin/pull/5611#discussion_r525406563 (comment).
2020-11-23 11:15:07 +01:00
Adrian Duffell 6a873ad470 Update Customer Effort Score to ignore tasks performed on mobile (https://github.com/woocommerce/woocommerce-admin/pull/5672)
* Update Customer Effort Score to only ask feedback from desktop users

* Add test for mobile disabling

* Update documentation

* Fix broken test

Instantiation of `CustomerEffortScoreTracks` was moved to the individual tests because it has the side effects of adding hooks in the constructor.
2020-11-23 06:26:24 +08:00
Moon edde19a7fb Stripe - Remove redundant text (https://github.com/woocommerce/woocommerce-admin/pull/5701)
* Remove redundant text

* Remove stripe subtext
2020-11-20 14:48:58 -08:00
louwie17 76954a5e23 Continue showing tasklist even if list is complete, only hide if set to hidden (https://github.com/woocommerce/woocommerce-admin/pull/5673) 2020-11-20 14:46:47 -04:00
Joshua T Flowers e47d4a3bf7 Update core menu item order in navigation (https://github.com/woocommerce/woocommerce-admin/pull/5698) 2020-11-20 12:37:33 -05:00
Joshua T Flowers 4543860a2e Allow navigation feature in plugin and core builds (https://github.com/woocommerce/woocommerce-admin/pull/5697) 2020-11-20 12:37:23 -05:00
Matt Sherman f5f222096a Always call onRemove when action is clicked in Snackbar (https://github.com/woocommerce/woocommerce-admin/pull/5703) 2020-11-19 19:59:49 -05:00
Matt Sherman 64b40a9e39 Fix typo in classname that prevented explicit dismissal button not being styled correctly (https://github.com/woocommerce/woocommerce-admin/pull/5700) 2020-11-19 19:01:57 -05:00
Jeff Stieler daebc45ac9 Fix snackbar dismissal bug (https://github.com/woocommerce/woocommerce-admin/pull/5696)
* Fix hook dependencies.

* Dismiss notices from both stores.

* Pass onRemove2 prop to SnackbarList

Co-authored-by: Matt Sherman <matt@jam123.com>
2020-11-19 16:51:47 -05:00
renovate[bot] e50d4a8442 Update dependency @testing-library/react to v11.2.0 (https://github.com/woocommerce/woocommerce-admin/pull/5663)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-19 12:30:06 +10:00
Rasmy Nguyen b007043d94 Remove check for Jetpack and WCS from Stripe onboarding task (https://github.com/woocommerce/woocommerce-admin/pull/4933)
* Remove check for WC Services and Jetpack

As part of work to move stripe connect logic to the Stripe plugin, this removes the WC Services and Jetpack dependencies from the stripe onboarding flow in WC-Admin.

This also adds a ToS prompt to the stripe OAuth onboarding task. Because we
are removing the Jetpack and WC Services dependencies for Oauth, it is
no longer clear that data will be shared with WC. As such we need to add
this notice.

Further, this adds a link to revert to manual config so that merchants
can opt-out of sharing data with WC.
2020-11-19 02:00:53 +00:00
Moon 30cfb76e2e Prevent adding duplicate queue item by checking action and label values (https://github.com/woocommerce/woocommerce-admin/pull/5682)
* Prevent adding duplicate queue item by checking action and label values
2020-11-18 16:30:22 -08:00
Joel Thiessen 4e5fa5cee9 Hiding primary tabs on Settings within WooCommerce since it's redundant with items in nav (https://github.com/woocommerce/woocommerce-admin/pull/5630)
* Hiding tabs displayed on wc-status pages as well
2020-11-18 15:54:24 -08:00
Matt Sherman ad78576cf4 Record Tracks events when CES notice/snackbar and modal is viewed (https://github.com/woocommerce/woocommerce-admin/pull/5648) 2020-11-18 15:53:52 -05:00
Sam Seay be47d9d795 Only import the Gridicons we need, to reduce package size. (https://github.com/woocommerce/woocommerce-admin/pull/5668) 2020-11-19 09:52:24 +13:00
Matt Sherman 2c76b62541 Update CES tests to fake that they are in wp-admin (https://github.com/woocommerce/woocommerce-admin/pull/5678) 2020-11-18 14:44:57 -05:00
Sam Seay ebddffb8e8 Post 1.7.0 beta release chores (https://github.com/woocommerce/woocommerce-admin/pull/5558)
* Bump versions to 1.8.0-dev
* Update changelog for 1.7.0
2020-11-19 08:36:45 +13:00
Fernando 649cb0f6ad Fixed orders panel flickering (https://github.com/woocommerce/woocommerce-admin/pull/5655)
* Fixed orders panel flickering

This commit fixes the orders panel flickering when Gutenberg is activated

* Fixed badge flickering

* Removed unnecessary line

* Fixed items selector

This commit fixes the items selector. The method 'getItemsTotalCount' was returning the 'defaultValue' instead of the 'totalCount' when  its value was 0

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-11-18 15:59:46 -03:00
Joel Thiessen f8e053dcb4 Renaming navigation body classes to be less generic (https://github.com/woocommerce/woocommerce-admin/pull/5660) 2020-11-18 10:43:20 -08:00
Moon af4c268742 Add key to the component to fix the warning and unexpected behavior (https://github.com/woocommerce/woocommerce-admin/pull/5661) 2020-11-18 15:29:18 -03:00
Fernando e5cf64cb14 Fixed Link component prop (https://github.com/woocommerce/woocommerce-admin/pull/5653)
* Fixed Link component prop

This commit fixes a Link component prop name

* Fixed Link prop

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-11-18 12:31:21 -03:00
Renovate Bot e80584733a Update dependency babel-loader to v8.2.1 2020-11-18 03:54:23 +00:00
Adrian Duffell ae1024dff8 Add autoloading of WooCommerce classes in PHP tests (https://github.com/woocommerce/woocommerce-admin/pull/5650)
* Restore composer install on WooCommerce plugin

Previously removed in c26db640d6

* Remove direct require of wc-install.php

In some contexts, this causes phpunit to halt because of the early exit call in wc-install.php:

defined( 'ABSPATH' ) || exit;

* Add temporary composer 1 downgrade before installing WooCommerce
2020-11-18 10:36:18 +08:00
Bec Scott ff923bcb82 Add support for an explicit dismiss button to snackbar, as well as an onDismiss callback (https://github.com/woocommerce/woocommerce-admin/pull/5623)
* Add support for an explicit dismiss button to snackbar, as well as an onDismiss callback

* Fix effect dependencies

* Fix disabling auto-dismiss when explicit dismissing is on, fix cursor styles

* fix noops and dismiss on action

* refactor action click handler

* rename dismiss button class

* increase CES modal placeholder z index

* white. space.

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-11-18 12:15:42 +10:00
Renovate Bot 970cf81892 Update dependency @testing-library/jest-dom to v5.11.6 2020-11-18 01:49:26 +00:00
Paul Sealock 947c6a4c32 update package dependencies 2020-11-18 13:33:41 +13:00
Matt Sherman efc5dbb68d Show CES survey after editing an order (https://github.com/woocommerce/woocommerce-admin/pull/5540)
* Add enqueing of CES survey for shop order editing
* Only hook up transition_post_status if on edit page
2020-11-17 17:23:15 -05:00
Paul Sealock eefc8cade0 fixes 2020-11-17 16:11:10 +13:00
Paul Sealock e3a3d3af5c create ext readme 2020-11-17 16:11:10 +13:00
Paul Sealock 8709dd3682 add dewps request table 2020-11-17 15:57:18 +13:00
Sam Seay 625dbe0ae5 Fix a bug where wc-tracks was not loaded as a dependency. (https://github.com/woocommerce/woocommerce-admin/pull/5645)
Fixes woocommerce/woocommerce-admin#5644
2020-11-17 13:55:08 +13:00
Jeff Stieler dc0f3b70f3 Fix classnames in mobile app inbox notes. (https://github.com/woocommerce/woocommerce-admin/pull/5641)
Missed in https://github.com/woocommerce/woocommerce-admin/pull/5462.
2020-11-16 16:39:36 -05:00
Joel Thiessen b3e094889a Preventing desktop-sized navigation placeholder from appearing on mobile during load (https://github.com/woocommerce/woocommerce-admin/pull/5616) 2020-11-16 10:11:13 -08:00
louwie17 7a2a361cb8 Update panel icon order - moving help tab far right (https://github.com/woocommerce/woocommerce-admin/pull/5624)
* Allows tabs component to render custom tab components, removing the need for showDisplayOptions

* Add display options logic to getTabs function

* Update const name from PR review suggestion
2020-11-16 09:48:50 -04:00
Sam Seay 364b764eb5 Fix the travis build and move the e2e tests to GH actions (https://github.com/woocommerce/woocommerce-admin/pull/5635) 2020-11-16 17:33:06 +13:00
Paul Sealock 3ca852ae5b version bump dewp 2020-11-16 15:34:47 +13:00
Paul Sealock 7189fb6d4e update scripts to composer 2 (https://github.com/woocommerce/woocommerce-admin/pull/5577) 2020-11-16 11:59:11 +13:00
Jeff Stieler 3857d03e1d Fix WCS slug. (https://github.com/woocommerce/woocommerce-admin/pull/5614)
Tracks data was checking FB install instead.
2020-11-13 15:31:18 -05:00
louwie17 43e7a5e5ca Add logic to skip WC Payment plugin note if not part of the onboarding business extension list (https://github.com/woocommerce/woocommerce-admin/pull/5619) 2020-11-13 15:56:39 -04:00
Bec Scott fde504f9d6 Fix reference to navigation package and fix transient notices so it looks at core/notices as well as core/notices2 (https://github.com/woocommerce/woocommerce-admin/pull/5583)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-11-13 11:21:06 +10:00
Bec Scott 0b721d4461 Add icon to snackbar (https://github.com/woocommerce/woocommerce-admin/pull/5563)
* Add an icon to the snackbar displayed for CES

* Change icon from SVG to a unicode emoji pencil

* formatting changes to satisfy CI

* bump ci

* Fix prop types and jsdocs for the customer effort score component

* whitespace >:-(

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-11-13 10:53:28 +10:00
Joel Thiessen b8238d91dc Adding wrapper class around navigation to implement scroll styles/logic (https://github.com/woocommerce/woocommerce-admin/pull/5570) 2020-11-12 09:10:42 -08:00
louwie17 aebd120a16 Replaced default inbox message styling with message-is-unread styling, and deleted message-is-unread styles (https://github.com/woocommerce/woocommerce-admin/pull/5573) 2020-11-12 08:47:40 -04:00
louwie17 b8efece7cb Alter select control padding to match text-control (https://github.com/woocommerce/woocommerce-admin/pull/5587) 2020-11-12 08:47:11 -04:00
Paul Sealock 4e785e30a7 Package builds: avoid building dependency-extraction-webpack-plugin (https://github.com/woocommerce/woocommerce-admin/pull/5598)
* fix starter pack

* fixes

* revert lock

* fixup package.json
2020-11-12 22:31:18 +13:00
Adrian Duffell 25c2841a20 Bump WooCommerce to v4.5 in minimum requirements documentation (https://github.com/woocommerce/woocommerce-admin/pull/5610) 2020-11-12 09:07:02 +08:00
Joshua T Flowers 140f6dfc79 Allow extensions to order items in submenus (https://github.com/woocommerce/woocommerce-admin/pull/5607) 2020-11-12 11:19:28 +13:00
Joshua T Flowers 4dde76e01c Update non-wca pages registered with nav to embed pages (https://github.com/woocommerce/woocommerce-admin/pull/5606)
Co-authored-by: Sam Seay <samueljseay@gmail.com>
2020-11-11 16:27:26 -05:00
Joshua T Flowers 48d7a856af Update custom post type menu item defaults (https://github.com/woocommerce/woocommerce-admin/pull/5591)
* Update post type items to return associative array

* Remove default parent from post type items
2020-11-11 15:36:43 -05:00
Timmy Crawford 904425e5fc Update Woo tested and min versions. (https://github.com/woocommerce/woocommerce-admin/pull/5603)
* Update Woo tested and min versions.

* Update Woo tested and min versions.

* Load the installer class in bootstrap.

Co-authored-by: Sam Seay <samueljseay@gmail.com>
2020-11-11 12:30:27 -08:00
Fernando 0e78190fb2 Home screen - Fixed the orders not displaying bug (https://github.com/woocommerce/woocommerce-admin/pull/5590) 2020-11-12 09:28:44 +13:00
Paul Dechov 2b89b403ff Task List: Match Stripe settings to mode of provided keys (https://github.com/woocommerce/woocommerce-admin/pull/5353)
* Match settings to mode of provided keys

* Add validation error for mismatched mode edge case

* Tweak key validation error message for conciseness

* Add test mode case to method's isConfigured check

* Refactor stripe method isConfigured logic for clarity

* Fix small error message typo
2020-11-11 17:09:44 -03:00
Joel Thiessen db6a404ba8 Refactoring logic handling auto-folding navigation to support resize event (https://github.com/woocommerce/woocommerce-admin/pull/5578) 2020-11-11 11:44:58 -08:00
Joshua T Flowers cae0f33e38 Fix non-matching items and post type matching (https://github.com/woocommerce/woocommerce-admin/pull/5593)
* Don't match menu items with a non-positive score

* Match single post type page to post type menu item
2020-11-11 10:16:12 -08:00
Sam Seay 7d32d6db0e Change rendering of homescreen layout so store links are last (https://github.com/woocommerce/woocommerce-admin/pull/5579)
* Change rendering of homescreen layout so store links are last.

* Render in left column in 2 column mode.

* Revert accidental log changes.

* Make homescreen layout component width-aware.

Potentially toggle the two column styling when viewport width changes.

Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>
2020-11-11 12:20:15 -05:00
Jeff Stieler c794428710 Fix column scroll collision after layout change. (https://github.com/woocommerce/woocommerce-admin/pull/5586)
* Reset homescreen column stickiness when layout changes.

* Close display options menu when making a selection.
2020-11-11 12:19:24 -05:00
Renovate Bot 9ffabb8d13 Update dependency @testing-library/user-event to v12.2.2 2020-11-11 07:31:43 +00:00
Renovate Bot ccb38910cc Update dependency babel-jest to v26.6.3 2020-11-11 03:51:03 +00:00
Sam Seay 908f8babb9 Fix a bug where the modal would display even when dismissed. (https://github.com/woocommerce/woocommerce-admin/pull/5581) 2020-11-11 13:23:33 +13:00
Moon df0b78f163 Update/5348 trigger ces on changing setting (https://github.com/woocommerce/woocommerce-admin/pull/5569)
* Trigger CES on the settings page when settgins get updated

* Added base test case for the CES class

* Update comments for the test

* Fix failing test -- moved down setup code after parent::setUp() so that the parent setUp runs first

* Fix coding standard

* Rename add_actions to enable_survey_enqueing_if_tracking_is_enabled and include admin_init action call in the method
2020-11-10 12:34:24 -08:00
Joel Thiessen d097dfaa23 Restoring the lost "Orders ->Add order" menu item on new nav (https://github.com/woocommerce/woocommerce-admin/pull/5574) 2020-11-10 09:36:03 -08:00
louwie17 89b88bd620 Add help tab to the home screen (https://github.com/woocommerce/woocommerce-admin/pull/5538)
* Show help tab always on homescreen, update help icon, and fix tests

* Add items to help menu for homescreen, when taskName is blank

* Add test for homescreen items when taskName is blank

* Add or case for showing help for performingSetupTask, incase setup happens on annother route

* Removed tabindex logic to allow for keyboard navigation when multiples tabs are available

* Update activity panel height and top when new navigation experience is enabled

* Moved style back into scss wrapper and used parent selector - &
2020-11-10 09:36:04 -04:00
Albert Juhé Lluveras 7ffcaaaa0a Fix typo in DataStore (https://github.com/woocommerce/woocommerce-admin/pull/5548) 2020-11-10 14:25:35 +01:00
Paul Sealock 4d9b6c80c6 prep Navigation and DEWP package release (https://github.com/woocommerce/woocommerce-admin/pull/5576) 2020-11-10 13:39:19 +13:00
Paul Sealock 29f1d823fe Fix homescreen id on client (https://github.com/woocommerce/woocommerce-admin/pull/5564) 2020-11-10 12:02:26 +13:00
Timmy Crawford 95dfca5983 Customers: Update column heading for date registered. (https://github.com/woocommerce/woocommerce-admin/pull/5542) 2020-11-09 13:23:22 -08:00
Joshua T Flowers db71989e7b Add documentation for navigation feature (https://github.com/woocommerce/woocommerce-admin/pull/5537) 2020-11-09 16:05:45 -05:00
Moon ad4a0371c3 Add onsubmit_label string that can be used to create a snackbar upon … (https://github.com/woocommerce/woocommerce-admin/pull/5544)
* Add onsubmit_label string that can be used to create a snackbar upon survey submission

* Make onSubmitLabel required
2020-11-09 11:09:04 -08:00
Bec Scott 4cde62561a Copy the snackbar component from Gutenberg into wp-admin (https://github.com/woocommerce/woocommerce-admin/pull/5532)
* Copy the snackbar component from Gutenberg into wp-admin

* Copy @wordpress/data in from Gutenberg

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-11-09 17:17:08 +10:00
Joel Thiessen c8a67bfef9 Navigation: Adding ability for new navigation to scroll when list of links exceed viewport height (https://github.com/woocommerce/woocommerce-admin/pull/5524)
* Adding ability for new navigation to scroll when list of links exceeds the viewport height

* Resetting scroll to the top of element when transitioning menus on navigation
2020-11-06 12:52:01 -08:00
Sam Seay 536f426525 Do a refresh when redirecting to homescreen after OBW to ensure inbox notifications show. (https://github.com/woocommerce/woocommerce-admin/pull/5547) 2020-11-06 16:52:57 -03:00
Joel Thiessen 17b7fc0f1f Promoting Overview & "all_items" menu options to appear first in navigation feature. (https://github.com/woocommerce/woocommerce-admin/pull/5534) 2020-11-06 11:36:55 -08:00
Jeff Stieler 057725895b Add missing translation call. (https://github.com/woocommerce/woocommerce-admin/pull/5549) 2020-11-06 13:08:30 -05:00
Jeff Stieler 041aec8ff9 Homescreen layout changes (https://github.com/woocommerce/woocommerce-admin/pull/5465)
* Migrate homescreen specific backend code to its own class.

* Default to single column homescreen.

Create an option to handle the default homescreen layout value.

* Potentially reset sticky column when layout is changed.

* Move homescreen components to their new locations.

* Clean up defunct CSS.

* Default to the two-column layout on existing stores.

* Remove header from inbox notes.

* Add "your store today" header on two column homescreens.

* Set default homescreen layout to two columns when task list is complete or hidden.

* Remove unused variables.

* Add sticky scrolling behavior to both homepage columns.
2020-11-06 12:53:03 -05:00
Fernando f739d1feac Added support for custom actionable statuses (https://github.com/woocommerce/woocommerce-admin/pull/5550)
* Added support for custom actionable statuses

This commit adds support for custom actionable statuses

* Fixed styles

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-11-06 13:50:24 -03:00
Timmy Crawford 8e5e410605 Add missing text domain on home screen stats. (https://github.com/woocommerce/woocommerce-admin/pull/5541) 2020-11-06 08:36:33 -08:00
Timmy Crawford fbfb1dc86b Data: Verify we have an interval array before accessing. (https://github.com/woocommerce/woocommerce-admin/pull/5546) 2020-11-06 08:33:57 -08:00
Fernando 6ae4c5fbfd Home Screen - migrated orders panel (https://github.com/woocommerce/woocommerce-admin/pull/5455)
Fixes woocommerce/woocommerce-admin#5238
2020-11-06 14:21:05 +13:00
Joel Thiessen c73bafbd09 Store Profiler - include Creative Mail as a free extension (https://github.com/woocommerce/woocommerce-admin/pull/5543)
* Include Creative Mail as a free extension in onboarding wizard on main flow
2020-11-05 16:55:44 -08:00
Joshua T Flowers 7e9c10af58 Update menu sorting for new nav structure (https://github.com/woocommerce/woocommerce-admin/pull/5533)
* Move marketplace to top level

* Alphabetize extensions menu
2020-11-05 09:40:23 -05:00
Joshua T Flowers 88a4ed76eb Try: Register plugins under separate navigation menu (https://github.com/woocommerce/woocommerce-admin/pull/5513)
* Create separate methods for registering plugin items

* Fix add plugin category

* Allow scrolling of nav menu

* Use group title

* Add example plugin items

* Make menu item and category methods private

* Add analytics pages to navigation

* Register home item if dashboard feature is enabled

* Allow navigation registration from all wca items

* Update example plugin item registration

* Update order of menu groups

* Update plugins group name to extensions

* Remove temporary scroll fixes
2020-11-05 09:00:04 -05:00
renovate[bot] dbd7c823f6 Update babel monorepo to v7.12.5 (https://github.com/woocommerce/woocommerce-admin/pull/5525)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-05 13:50:38 +13:00
Adrian Duffell 173f5802a4 Update readme.txt to Unix style (LF) line endings (https://github.com/woocommerce/woocommerce-admin/pull/5517) 2020-11-05 07:33:40 +08:00
Sam Seay 5c50c4cc03 Restyle the setup task list to match new designs (https://github.com/woocommerce/woocommerce-admin/pull/5520)
Dev: Add the new `<Badge>` component to @woocommerce/components
Dev: Restyle the setup task list header to display incomplete tasks
2020-11-05 10:48:26 +13:00
Moon 72b9e7911e Update/5394 remove label printing mention for non us countries (https://github.com/woocommerce/woocommerce-admin/pull/5527)
* Do not insert label printing text for non-us countries

* Add test cases

* Rename variable
2020-11-03 19:39:56 -08:00
Renovate Bot a3f1fd2d5b Update dependency babel-jest to v26.6.2 2020-11-04 02:54:11 +00:00
Renovate Bot 32fe882069 Update dependency @testing-library/react to v11.1.1 2020-11-04 02:39:42 +00:00
Renovate Bot 84bd8b75dd Update dependency @octokit/graphql to v4.5.7 2020-11-04 01:51:43 +00:00
Bec Scott 2bdab078e0 Use snackbar before CES modal (https://github.com/woocommerce/woocommerce-admin/pull/5406)
* Spike out customer effort score

* Refactor CustomerEffortScore as Package (https://github.com/woocommerce/woocommerce-admin/pull/5342)

* Use an interstitial snackbar to trigger the CES modal

* Moved notice (snackbar) into @woocommerce/customer-effort-score

* Tidy up _webpack.config.js

* Fix linter issues

* refactor setting up CES tracking, add try..catch around loading from localStorage

* Add CES feature toggle (https://github.com/woocommerce/woocommerce-admin/pull/5387)

* Add feature toggle to only enable the customer effort score in development

* Move check into Loader

* fix logic 🙄

Co-authored-by: Rebecca Scott <me@becdetat.com>

* Add client-side check of the feature flag

* fix tabs in config

* Fix comment

* Use product lifecycle and options

* Add product count to tracks props

* Use Loader::load_features instead of DIY

* drop initiallyVisible from container

Co-authored-by: Rebecca Scott <me@becdetat.com>
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2020-11-04 10:48:56 +10:00
Sam Seay 06f9248572 Reorganize the store management link section and provide extensibility (https://github.com/woocommerce/woocommerce-admin/pull/5476)
Rearrange the store management links under categories and expose extensibility via the `woocommerce_admin_homescreen_quicklinks` filter.
2020-11-04 13:33:04 +13:00
Bec Scott 17c149f66e Only allow Customer Effort Score gathering if tracking is allowed (https://github.com/woocommerce/woocommerce-admin/pull/5365)
* Spike out customer effort score

* Refactor CustomerEffortScore as Package (https://github.com/woocommerce/woocommerce-admin/pull/5342)

* Tidy up _webpack.config.js

* Fix linter issues

* refactor setting up CES tracking, add try..catch around loading from localStorage

* Add CES feature toggle (https://github.com/woocommerce/woocommerce-admin/pull/5387)

* Add feature toggle to only enable the customer effort score in development

* Move check into Loader

* fix logic 🙄

Co-authored-by: Rebecca Scott <me@becdetat.com>

* Add client-side check of the feature flag

* fix tabs in config

* Fix comment

* Use product lifecycle and options

* Add product count to tracks props

* Display CES modal once per event per store

* Remove TODO

* appease the formatting gods

* Use Loader::load_features instead of DIY

* Drop CustomerEffortScoreTracks singleton

* Fix tracks event name

* Only add the CES JS if tracking is allowed

* Only display the CES modal if tracking is allowed

* bump ci

* Pull package-lock.json from main

* Refactor to remove some duplication

* Revert to keep toggleVisible etc

Co-authored-by: Rebecca Scott <me@becdetat.com>
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2020-11-04 10:30:34 +10:00
Milana Cap 76bf8eb0e8 Fix wrong class name for querying Categories Report in the example docs (https://github.com/woocommerce/woocommerce-admin/pull/5522) 2020-11-04 13:27:22 +13:00
Matt Sherman ce0ea8e12c Remove Store Setup Alert (https://github.com/woocommerce/woocommerce-admin/pull/5499) 2020-11-03 14:45:35 -05:00
Moon f657d108a3 Add width: 100% style to the container of the popover menu to expand menu item width to 100% (https://github.com/woocommerce/woocommerce-admin/pull/5519)
Co-authored-by: Moon <moon.kyong@demandmedia.com>
2020-11-02 18:03:56 -08:00
Bec Scott 00eeede732 Display CES modal once per action per store (https://github.com/woocommerce/woocommerce-admin/pull/5352)
* Spike out customer effort score

* Refactor CustomerEffortScore as Package (https://github.com/woocommerce/woocommerce-admin/pull/5342)

* Tidy up _webpack.config.js

* Fix linter issues

* refactor setting up CES tracking, add try..catch around loading from localStorage

* Add CES feature toggle (https://github.com/woocommerce/woocommerce-admin/pull/5387)

* Add feature toggle to only enable the customer effort score in development

* Move check into Loader

* fix logic 🙄

Co-authored-by: Rebecca Scott <me@becdetat.com>

* Add client-side check of the feature flag

* fix tabs in config

* Fix comment

* Use product lifecycle and options

* Add product count to tracks props

* Display CES modal once per event per store

* Remove TODO

* appease the formatting gods

* Use Loader::load_features instead of DIY

* Drop CustomerEffortScoreTracks singleton

* Fix tracks event name

* bump ci

* Pull package-lock.json from main

* Refactor to remove some duplication

Co-authored-by: Rebecca Scott <me@becdetat.com>
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2020-11-03 11:57:47 +10:00
Joel Thiessen 15b45c9db4 Navigation: Applying styles & behavior for folded menu, including mobile (https://github.com/woocommerce/woocommerce-admin/pull/5497)
* Adding base styles for collapsed nav menu.

* Handling varying behaviour on mobile-sized screens, with the menu overlaying content instead of shrinking the content area.

* Folding the menu by default on screen sizes less than 960px, and if that condition is met after an orientation change

* Refactoring logic from Header/index.js to flag if user has scrolled to apply shadow to folded navigation as well.

* Refactoring styles in navigation feature to allow them to be loaded properly with webpack (with imports/etc).
2020-11-02 16:57:49 -08:00
Matt Sherman 134040bbe9 Add PSR-4 naming checks to PHP linting (https://github.com/woocommerce/woocommerce-admin/pull/5512)
* Add PSR-4 class lint rule.
* Fix path to Package file based on namespace.

Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>
2020-11-02 14:47:00 -05:00
Bec Scott 0a1cec3d4e Only show CES survey on correct page (https://github.com/woocommerce/woocommerce-admin/pull/5511)
* Spike out customer effort score

* Refactor CustomerEffortScore as Package (https://github.com/woocommerce/woocommerce-admin/pull/5342)

* Tidy up _webpack.config.js

* Fix linter issues

* refactor setting up CES tracking, add try..catch around loading from localStorage

* Add CES feature toggle (https://github.com/woocommerce/woocommerce-admin/pull/5387)

* Add feature toggle to only enable the customer effort score in development

* Move check into Loader

* fix logic 🙄

Co-authored-by: Rebecca Scott <me@becdetat.com>

* Add client-side check of the feature flag

* fix tabs in config

* Fix comment

* Use product lifecycle and options

* Add product count to tracks props

* Use Loader::load_features instead of DIY

* Only show the CES survey in the correct screen

Co-authored-by: Rebecca Scott <me@becdetat.com>
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2020-11-02 16:08:17 +10:00
Bec Scott 1e1e428354 Add store age to CES tracked data (https://github.com/woocommerce/woocommerce-admin/pull/5373)
* Spike out customer effort score

* Refactor CustomerEffortScore as Package (https://github.com/woocommerce/woocommerce-admin/pull/5342)

* Tidy up _webpack.config.js

* Fix linter issues

* refactor setting up CES tracking, add try..catch around loading from localStorage

* Add CES feature toggle (https://github.com/woocommerce/woocommerce-admin/pull/5387)

* Add feature toggle to only enable the customer effort score in development

* Move check into Loader

* fix logic 🙄

Co-authored-by: Rebecca Scott <me@becdetat.com>

* Add client-side check of the feature flag

* fix tabs in config

* Fix comment

* Use product lifecycle and options

* Add product count to tracks props

* Use Loader::load_features instead of DIY

* Only display the CES modal if tracking is allowed

* Move MONTH constant into @woocommerce/data

* Remove unused const

Co-authored-by: Rebecca Scott <me@becdetat.com>
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2020-11-02 13:47:15 +10:00
Matthew Harris f284638c7b Fix wrong casing used on the PayPal brand name (https://github.com/woocommerce/woocommerce-admin/pull/5514) 2020-11-02 15:22:50 +13:00
Joshua T Flowers 197320d93e Update navigation width to match designs (https://github.com/woocommerce/woocommerce-admin/pull/5489) 2020-10-30 14:02:22 -04:00
Joel Thiessen 8659fabca7 Updates to repair issues when using composer 2 resulting in the Navigation class not being loaded (https://github.com/woocommerce/woocommerce-admin/pull/5510)
Composer 2 utilizes stricter conventions, so this fix involved repairing the namespace for the Navigation class, and adding a mechanism to load features that are contained within subdirectories.
2020-10-30 08:46:27 -07:00
Joshua T Flowers aaaa82779b Prevent double fill of Customers nav slot (https://github.com/woocommerce/woocommerce-admin/pull/5495) 2020-10-30 11:28:34 -04:00
Bec Scott f29995124c Basic customer effort score survey functionality (https://github.com/woocommerce/woocommerce-admin/pull/5324)
* Spike out customer effort score

* Refactor CustomerEffortScore as Package (https://github.com/woocommerce/woocommerce-admin/pull/5342)

* Tidy up _webpack.config.js

* Fix linter issues

* refactor setting up CES tracking, add try..catch around loading from localStorage

* Add CES feature toggle (https://github.com/woocommerce/woocommerce-admin/pull/5387)

* Add feature toggle to only enable the customer effort score in development

* Move check into Loader

* fix logic 🙄

Co-authored-by: Rebecca Scott <me@becdetat.com>

* Add client-side check of the feature flag

* fix tabs in config

* Fix comment

* Use product lifecycle and options

* Add product count to tracks props

* Use Loader::load_features instead of DIY

Co-authored-by: Rebecca Scott <me@becdetat.com>
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2020-10-30 16:52:52 +10:00
Joshua T Flowers 2360086775 Add navigation feedback notes (https://github.com/woocommerce/woocommerce-admin/pull/5475)
* Add navigation feedback note

* Add navigation feedback follow-up note

* Update class names
2020-10-29 16:30:04 -04:00
renovate[bot] 590c58a5de Update dependency dompurify to v2.2.0 (https://github.com/woocommerce/woocommerce-admin/pull/5484)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Sam Seay <samueljseay@gmail.com>
2020-10-30 08:48:59 +13:00
renovate[bot] c2576c06d5 Update dependency lint-staged to v10.5.0 (https://github.com/woocommerce/woocommerce-admin/pull/5486)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Sam Seay <samueljseay@gmail.com>
2020-10-30 08:34:42 +13:00
renovate[bot] d7d8b321fb Update dependency promptly to v3.1.0 (https://github.com/woocommerce/woocommerce-admin/pull/5487)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Sam Seay <samueljseay@gmail.com>
2020-10-30 08:34:13 +13:00
Gan Eng Chin 4a28c61d86 Import @wordpress/base-styles/default-custom-properties in CSS file. (https://github.com/woocommerce/woocommerce-admin/pull/5491)
This is to get the root admin scheme color, so that we can use --wp-admin-theme-color in CSS.
2020-10-30 08:33:48 +13:00
Sam Seay 1a26102a7a Use the Puppeteer waitForSelector to fix flakyness in e2e tests. (https://github.com/woocommerce/woocommerce-admin/pull/5504) 2020-10-30 07:51:37 +13:00
Ron Rennick 9b02ba526e Use consistent markdown headers in navigation readme (https://github.com/woocommerce/woocommerce-admin/pull/5417) 2020-10-29 21:33:31 +13:00
Renovate Bot 2b8c7f8976 Update dependency babel-jest to v26.6.1 2020-10-29 02:49:22 +00:00
renovate[bot] 140a9895e6 Update dependency @testing-library/user-event to v12.1.10 (https://github.com/woocommerce/woocommerce-admin/pull/5481)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-10-29 12:11:26 +10:00
Fernando f0398ee502 Added Accordion component (https://github.com/woocommerce/woocommerce-admin/pull/5474)
* Added Accordion component

This commit adds an Accordion component to our available components

* Refactored Accordion component

* Added new Accordion component to index

* Fixed a few Accordion details

* Accordion fixed

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-10-28 15:02:22 -03:00
Jeff Stieler c26db640d6 Update dependencies in prep for Composer 2.x. (https://github.com/woocommerce/woocommerce-admin/pull/5462)
* Update dependencies in prep for Composer 2.x.

* Rollback jetpack autoloader update.

* Restore range versions for composer dependencies, regenerate lock with Composer 1.x.

* Fix PSR-4 Classes (https://github.com/woocommerce/woocommerce-admin/pull/5473)

* PSR-4 class names need to match their filename.

Remove underscores in classnames.

* Fix reported class name in deprecation notice.

* Fix comments.

* We don't need composer dependencies in core WC test setup.

* Update composer lockfile using version 2.x.

* Temporarily turn off error display.

Function deprecation notices are breaking tests.
2020-10-28 13:12:14 -04:00
Timmy Crawford 4a1f4b233a Add 1.6.x changelog entries (https://github.com/woocommerce/woocommerce-admin/pull/5464) 2020-10-27 12:54:15 -07:00
Bec Scott 133a985b9a Fix downloads report (https://github.com/woocommerce/woocommerce-admin/pull/5441)
* Wrong filter argument

* Fix - duplicate schema properties

* Use $export_item instead of $export_column

Co-authored-by: Sultan Nasir Uddin <manikdrmc@gmail.com>
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-10-27 11:31:39 -04:00
Bec Scott 2315bf1662 Fix missing custom autocompleter attribute in Search component of Advanced Filter (https://github.com/woocommerce/woocommerce-admin/pull/5448)
Co-authored-by: khoand0000 <khoand0000@gmail.com>
2020-10-27 10:52:56 -04:00
Joshua T Flowers c2fe5c2cfd Add navigation plugin example (https://github.com/woocommerce/woocommerce-admin/pull/5425)
* Add nav items example plugin

* Fix URLs

* Use WP components button in example
2020-10-26 14:26:48 -04:00
Gan Eng Chin 43a54106f3 Convert the marketing tab cards to use the new @wordpress/components Card component. (https://github.com/woocommerce/woocommerce-admin/pull/5428)
* Change WooCommerce Card to WordPress Card in the WelcomeCard component.

Use isElevated and margin-bottom to make the Card look close to previous UI.

* Use WordPress Card in KnowledgeBase.

For the description in Card header, it will be rendered as a p element instead of h2, which should be more semantically correct. Test is updated to reflect this.

* Add Card component wrapper that supports title and description props.

* Use WordPress Card component wrapper in recommended extensions.

* Code refactor to use WordPress Card wrapper.

* Use WordPress Card wrapper in installed extension.

* Use margin-bottom for children layout at the parent CSS level.

* Add test for Card.

* Fix no margin between cards in Coupons page, and remove previous css for WooCommerce Card.

* Remove old WooCommerce Card css.

* Don't use isElevated in Card, to match the style in WooCommerce Home screen.

* Make item border color consistent with WordPress Card in Installed Extension card.

Use WordPress Card without CardBody here because we don't want the padding from CardBody.

* Make the card description look similar to previous WooCommerce Card description.

* Fix spelling in CSS class names.

* Fix WooCommerce spelling in comment.

* Change the Marketing Card style to match with WooCommerce Home style.

Also change the text gray color to use CSS variable instead of hardcoded gray value.

Also remove the usage of h2 in the Card header to follow WooCommerce Home style.

* Use $gray-200 as light borders between items in card.

* Remove unneeded CSS code based on TODO in comment.
2020-10-23 14:41:45 +08:00
Gan Eng Chin f5432beb72 Display a "read blog" message (https://github.com/woocommerce/woocommerce-admin/pull/5453)
* Display a "read blog" message when there is an error in getting blog posts or there is no blog posts.

* Simplify ReadBlogMessage with interpolateComponents and Link.
2020-10-23 14:07:58 +08:00
Joel Thiessen 3c62e171da Navigation: Adding Tracks by tying into wc-admin page view (https://github.com/woocommerce/woocommerce-admin/pull/5466)
* Adding 'has_navigation' flag to tracks pageView events to indicate if new navigation is enabled (https://github.com/woocommerce/woocommerce-admin/pull/5332)

* Testing if navigation is active using window.wcNavigation instead of window.wcAdminFeatures to handle the edge case of a single page opting out
2020-10-22 15:13:57 -07:00
Jeff Stieler eefe2e8acc Add Homescreen layout control (https://github.com/woocommerce/woocommerce-admin/pull/5429)
* Remove inbox-specific class, widen single column.

* Create user preference for homescreen column layout.

* Add display options "tab" to homescreen.

* Style display options.

* Tweak homepage layout option values.

* Add tracks events for homepage layout.

* Add test coverage for homescreen display options.

* No need to use Fragment component.

* Use named exports.

* Fix display options styling on mobile/narrow viewports.

Don't show the options at all if we're forcing single column.

* Fix linting error.
2020-10-22 18:13:14 -04:00
Paul Sealock ff203db3a8 include animate styles (https://github.com/woocommerce/woocommerce-admin/pull/5457) 2020-10-23 10:04:14 +13:00
Joshua T Flowers 11ebc96fbe Show parent as default back button label (https://github.com/woocommerce/woocommerce-admin/pull/5435)
* Show parent as default back button label

* Make back button logic more succinct
2020-10-22 15:56:44 -04:00
Joshua T Flowers fbdce6cd4e Set WCA pages as top level in navigation if no parent exists (https://github.com/woocommerce/woocommerce-admin/pull/5456) 2020-10-22 14:42:49 -04:00
Joshua T Flowers d8c4297e28 Allow full URLs to be used for nav items (https://github.com/woocommerce/woocommerce-admin/pull/5454) 2020-10-22 14:36:28 -04:00
Timmy Crawford 22212e83ae Remove no longer used isPanelEmpty logic. (https://github.com/woocommerce/woocommerce-admin/pull/5423) 2020-10-22 08:14:13 -07:00
Timmy Crawford 915a7531b9 Update Notes deprecation versions. (https://github.com/woocommerce/woocommerce-admin/pull/5404) 2020-10-22 08:12:13 -07:00
renovate[bot] 7f67bccb5b Update dependency @woocommerce/e2e-environment to v0.1.6 (https://github.com/woocommerce/woocommerce-admin/pull/5444)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-22 14:12:58 +10:00
Paul Sealock 7e351c18a3 Navigation: extend with WC Admin router links (https://github.com/woocommerce/woocommerce-admin/pull/5445)
* add test case

* save

* pages

* comments

* use id

* bail on no wcAdmin pages

* prefix
2020-10-22 16:01:25 +13:00
renovate[bot] 29f6bcc126 Update babel monorepo (https://github.com/woocommerce/woocommerce-admin/pull/5439)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-22 12:19:55 +10:00
Paul Dechov 9ebf4769e0 Redirect instead of stalling on WCPay inbox note install action (https://github.com/woocommerce/woocommerce-admin/pull/5413)
Switches the WCPay inbox note from no URL to an action param admin URL. This allows redirecting to the next setup step after allowing installation & activation to complete (instead of stalling on busy state). Adding a ToS message enables navigating directly into the WCPay onboarding flow.

Co-authored-by: James Rodger <james.rodger@automattic.com>
Co-authored-by: Vasily Belolapotkov <belolapotkov.v@gmail.com>
2020-10-21 14:57:16 -04:00
Joshua T Flowers 0809b07254 Add features section and settings (https://github.com/woocommerce/woocommerce-admin/pull/5381)
* Add features section and settings

* Force page refresh on option update
2020-10-21 13:15:36 -04:00
Joshua T Flowers 84e006cc62 Migrate navigation store to data package (https://github.com/woocommerce/woocommerce-admin/pull/5420)
* Move data store to package and hydrate navigation

* Use wc settings to get site URL and title

* Use wc settings admin link

* Update nav util tests to work with installs in subdirectory
2020-10-21 13:02:45 -04:00
Joshua T Flowers 81a8a28b20 Only show menu group if items exist (https://github.com/woocommerce/woocommerce-admin/pull/5403)
* Only show menu group if items exist

* Improve performance for menu item filtering
2020-10-21 13:01:46 -04:00
Renovate Bot 0d264cf22e Update dependency lint-staged to v10.4.2 2020-10-21 05:36:36 +00:00
Renovate Bot 098c9cb88a Update dependency babel-jest to v26.6.0 2020-10-21 04:11:56 +00:00
Renovate Bot 439cb7923a Update dependency @testing-library/user-event to v12.1.9 2020-10-21 02:49:26 +00:00
renovate[bot] 109256a944 Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/5325)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-21 12:49:23 +10:00
Renovate Bot 66aab27da8 Update dependency @testing-library/react to v11.1.0 2020-10-21 01:32:09 +00:00
Joshua T Flowers 209feda59d Fix plugin page screen registration in navigation (https://github.com/woocommerce/woocommerce-admin/pull/5407) 2020-10-20 16:12:36 -04:00
Joshua T Flowers f5f3331e60 Exclude certain nav items from core migration (https://github.com/woocommerce/woocommerce-admin/pull/5422) 2020-10-20 14:47:41 -04:00
Joshua T Flowers c0be4ecb56 Enqueue styles on non-WC pages (https://github.com/woocommerce/woocommerce-admin/pull/5419)
* Enqueue styles on non-WC pages

* Only load extra styles when navigation is enabled
2020-10-20 14:47:11 -04:00
Gan Eng Chin 523eac0131 Display messages for empty content and network request error (https://github.com/woocommerce/woocommerce-admin/pull/5411)
* Code refactor with reducer and new action type SET_ERROR.

* Add default state for errors and code for SET_ERROR for blogPosts.

* Don't use handleFetchError, instead save the error and blogPosts category into redux store.

* Display message for error and empty content.

* Fix grammar; fix relevant test.

* Code refactor: put action type strings in one place.

* Add tests for error UI.

* Remove illustration for empty content with no blog posts.
2020-10-19 23:18:21 +08:00
Paul Sealock 146f22aabe Homescreen: Indicator labels i18n (https://github.com/woocommerce/woocommerce-admin/pull/5405)
* Just remove . from description

* Use trim instead ht Jeff.

Co-authored-by: Timmy Crawford <timmydcrawford@gmail.com>
2020-10-16 12:10:29 -07:00
Sam Seay 91e3e7336d Fix a number of crashes that occur in reports when Gutenberg is active (https://github.com/woocommerce/woocommerce-admin/pull/5409)
Also fix a blank screen issue with rendering reports.

Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>
2020-10-17 07:47:29 +13:00
Timmy Crawford 1a94f54837 Home Screen: Always show the inbox for temporary gutenberg plugin fix. (https://github.com/woocommerce/woocommerce-admin/pull/5416) 2020-10-16 10:35:38 -07:00
Fernando fbb3e8efd2 Added array casting (https://github.com/woocommerce/woocommerce-admin/pull/5415)
This commit adds an array casting after getting "woocommerce_onboarding_profile" option.

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-10-16 12:47:09 -03:00
Joshua T Flowers f1fe4211a5 Fix navigation and WooCommerce menu ordering (https://github.com/woocommerce/woocommerce-admin/pull/5383)
* Add order to WooCommerce Admin nav items

* Fix order for WC setting items

* Add more ordering to analytics and set home to top
2020-10-15 21:31:14 -04:00
Adrian Duffell f0d0ed2e76 Add exclusion rule to PHPCS config for TODO comments (https://github.com/woocommerce/woocommerce-admin/pull/5388)
TODO comments are an established practice in this repo, with ~100 occurrences. This removes the warning in our PHP linter about it. This warning was blocking some Git commits being made due to the linting in the pre-commit hook.
2020-10-16 07:41:23 +08:00
Joshua T Flowers 59e7681207 Fix up menu item migrations in WC navigation (https://github.com/woocommerce/woocommerce-admin/pull/5363)
* Add URLs to categories to assist migrating items

* Migrate items when URL matches callback

* Check if nav is enabled before adding extra marketing menu

* Unset URLs on categories after migration
2020-10-15 16:28:03 -04:00
Timmy Crawford 016f4cc2d9 Update version to 1.7.0-dev. (https://github.com/woocommerce/woocommerce-admin/pull/5397) 2020-10-15 13:18:02 -07:00
Fernando 59f836d55f Show orders, stock and reviews activity panels (https://github.com/woocommerce/woocommerce-admin/pull/5400)
This commit fixes the check to show orders, stock and reviews activity panels

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-10-15 12:49:46 -07:00
Jeff Stieler 7ca9e691d4 Migrate Enzyme tests to React Testing Library (https://github.com/woocommerce/woocommerce-admin/pull/5299)
* Migrate leaderboard tests to RTL.

* Remove test of default prop value.

* Migrate ReportSummary tests to RTL.

* Migrate ActivityCard tests to RTL.

* Migrate ActivityCardPlaceholder tests to RTL.

* Migrate remaining ProductType tests to RTL.

* Migrate Card tests to RTL.

* Update RTL and user event packages.

* Migrate Date tests to RTL.

* Migrate D3Legend tests to RTL.

* Migrate D3Base tests to RTL.

* Migrate Gravatar tests to RTL.

* Migrate ImageUpload tests to RTL.

* Migrate ProductImage tests to RTL.

* Migrate Rating tests to RTL.

* Migrate Search tests to RTL.

* Migrate Plugins tests to RTL.

* Migrate SelectControl tests to RTL.

* Migrate Timeline tests to RTL.

Remove tests that inspect DOM since there are snapshots.

* Migrate DismissModal tests to RTL.

* Migrate SetupNotice tests to RTL.

* Migrate WelcomeCard tests to RTL.

* Fix setup error reason retrieval in ShippingBanner.

* Migrate ShippingBanner tests to RTL.

* Migrate RecommendedExtensions tests to RTL.

* Migrate KnowledgeBase tests to RTL.

* Rename enzyme setup file, modify to setup RTL.

* No need to import jest-dom in test files.

* Remove enzyme dependency.

* Use snapshot for testing Leaderboard markup.

* Switch from "not to be empty" to "be in the document".

* No need to waitFor() recordEvent mock.

* Be specific about clicking the "hide" button.

* Use toBeVisible() instead of checking style property.
2020-10-15 08:41:39 -04:00
Sam Seay fc030fb007 Migrate the devdocs examples to Storybook CSF stories (https://github.com/woocommerce/woocommerce-admin/pull/5271)
Fixes woocommerce/woocommerce-admin#5234
2020-10-15 14:55:55 +13:00
renovate[bot] eb91d413eb Update dependency enzyme-to-json to v3.6.1 (https://github.com/woocommerce/woocommerce-admin/pull/5368)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-15 11:11:42 +13:00
renovate[bot] 2ce600cde9 Update dependency locutus to v2.0.14 (https://github.com/woocommerce/woocommerce-admin/pull/5369)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-15 11:11:08 +13:00
Paul Dechov c25b2d55f4 Task List: Show Stripe task in Brazil (https://github.com/woocommerce/woocommerce-admin/pull/5377) 2020-10-15 10:25:42 +13:00
renovate[bot] 17c9c05c3d Pin dependency @wordpress/plugins to 2.22.0 (https://github.com/woocommerce/woocommerce-admin/pull/5366)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-15 09:59:53 +13:00
renovate[bot] d42cb0d6a9 Update dependency moment to v2.29.1 (https://github.com/woocommerce/woocommerce-admin/pull/5370)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-15 09:58:53 +13:00
renovate[bot] 51b23130df Update dependency prismjs to v1.22.0 (https://github.com/woocommerce/woocommerce-admin/pull/5372)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-15 09:53:40 +13:00
Paul Sealock 35de289fb5 New Package: DependencyExtractionWebpackPlugin (https://github.com/woocommerce/woocommerce-admin/pull/5198)
* create package

* dynamically make package list

* better readmne

* point to woo's not wp's for starter pack
2020-10-15 09:50:57 +13:00
Joel Thiessen f1ce55041c Adding 24px spacing between any sibling nav groups (https://github.com/woocommerce/woocommerce-admin/pull/5329) (https://github.com/woocommerce/woocommerce-admin/pull/5359)
Adding 24px spacing between any sibling nav groups on new navigation feature (https://github.com/woocommerce/woocommerce-admin/pull/5329)
2020-10-14 11:48:21 -07:00
Jeff Stieler 7c7a13077b Polyfill wc_is_running_from_async_action_scheduler(). (https://github.com/woocommerce/woocommerce-admin/pull/5379)
Supports WC versions < 4.0.0.
2020-10-14 09:46:09 -04:00
Sam Seay 5d9664c723 Attempt to check for a theme specific element when completing Theme step. (https://github.com/woocommerce/woocommerce-admin/pull/5367)
The theme selection page e2e test is intermittently failing and it
is not clear why. It could be that there is a failure going from
the last setup step to this one because the selectors for this
step are ambiguous and could refer to anything.

This specifically waits for an element that is unique to the
theme selection screen in the hope of removing ambiguity.
2020-10-14 19:10:50 +13:00
Renovate Bot b6953260ab Update dependency node-watch to v0.7.0 2020-10-14 04:36:13 +00:00
Joel Thiessen b2e5d32db9 Preventing the legacy coupons page from being readded when the naviga… (https://github.com/woocommerce/woocommerce-admin/pull/5307)
* Preventing the legacy coupons page from being readded when the navigation plugin is active (woocommerce/navigation woocommerce/woocommerce-admin#122)

I've also added a check to prevent the "coupons page has moved" note from being displayed, since it's no longer applicable in the new nav.

* Addressing linting issues with PHP files

* Updating conditions to work correctly with navigation as feature instead of external plugin

* Updating comment text
2020-10-14 16:02:47 +13:00
Fernando 4dd0232c44 Added a check to show the "Store Setup" button (https://github.com/woocommerce/woocommerce-admin/pull/5360)
This commit adds a check to show the "Store Setup" button

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-10-13 12:51:54 -07:00
Bec Scott 209dbef800 Add manage orders on the go admin note (https://github.com/woocommerce/woocommerce-admin/pull/5159)
* Rename admin notes classes and file names to fit conventions

* Use a facade class that adds deprecation warnings to each function call

* Add "Manage orders on the go" admin note

* Remove a rebase zombie 🙀

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-10-13 14:35:53 +10:00
Paul Sealock ad7cf64303 Navigation: Add client code (https://github.com/woocommerce/woocommerce-admin/pull/5309)
* is_feature_enabled

* feature class

* copy/paste

* hooked up

* its alive

* add wc-admin items

* clean up entry point

* Analytics remove url

* rebase error

* add back in check is_feature_enabled

* specificity CSS
2020-10-13 14:40:53 +13:00
Paul Sealock c9242f7122 Navigation: Move PHP code to WC Admin (https://github.com/woocommerce/woocommerce-admin/pull/5308)
* is_feature_enabled

* copy/paste

* hooked up

* text domain

* rebase fix

* text domain
2020-10-13 13:49:39 +13:00
Paul Sealock c089b49b38 Navigation: Prep feature flags and option (https://github.com/woocommerce/woocommerce-admin/pull/5292)
* add feature flag

* hydrate options on embedded screens

* is_feature_enabled

* feature class

* feedback

* better name

* fix
2020-10-13 13:05:06 +13:00
Bec Scott 61c189f456 Add option remote inbox notifications rule processor (https://github.com/woocommerce/woocommerce-admin/pull/5206)
* Add option remote inbox notifications rule processor

* Add default option value to option rule

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-10-13 08:47:12 +10:00
Paul Sealock 319923f435 Test Zips: make sure assets are up to date (https://github.com/woocommerce/woocommerce-admin/pull/5313)
* cleand and composer install

* better
2020-10-13 11:00:54 +13:00
Jeff Stieler 8a0f580d1b Check for connected JP+WCS and non-ShipStation country for shipping defaults. (https://github.com/woocommerce/woocommerce-admin/pull/5320)
Fix UK country code too.
2020-10-09 13:28:41 -07:00
Bec Scott b8adfaaa94 Shipping task smart default: add exceptions (https://github.com/woocommerce/woocommerce-admin/pull/5312)
* Require Jetpack connected and WCS active to mark the shipping task as complete

* Require country _not_ be in AU, NZ, or UK to mark shipping methods as complete

* Bump CI

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-10-08 19:18:19 -07:00
Sam Seay f6cd6c25c8 Ensure that the iOS smart banner is rendered on embed pages as well as wc-admin pages. (https://github.com/woocommerce/woocommerce-admin/pull/5311) 2020-10-08 19:17:11 -07:00
Joshua T Flowers 91e57586f4 Load onboarding data when enabled or directly visiting (https://github.com/woocommerce/woocommerce-admin/pull/5290)
* Always load onboarding data in component global settings

* Load onboarding data when enabled or directly visiting
2020-10-08 17:10:55 -07:00
Paul Sealock 52137fe3fa bump wp components and base styles (https://github.com/woocommerce/woocommerce-admin/pull/5293) 2020-10-09 12:10:32 +13:00
Fernando 3fb1fbba6a Invalidating cache for "getTasksStatus" (https://github.com/woocommerce/woocommerce-admin/pull/5291)
This commit invalidates the cache for "getTasksStatus" to force a rerequest of the value.

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-10-08 14:25:41 -07:00
Timmy Crawford 178278c951 Change WooCommerce Services to WooCommerce Shipping & Tax. (https://github.com/woocommerce/woocommerce-admin/pull/5305) 2020-10-08 14:15:29 -07:00
Sam Seay 259489a0b9 Fix a bug in tax automation logic and track the event in analytics (https://github.com/woocommerce/woocommerce-admin/pull/5276) 2020-10-08 14:08:03 +13:00
Bec Scott 1c009dd9e7 Add/confirm tax settings note (https://github.com/woocommerce/woocommerce-admin/pull/5279)
* Add note to confirm automated tax settings

* add back automated_tax_is_supported function

* Trigger CI

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-10-08 09:12:31 +10:00
Bec Scott 51867b3d3b Add @deprecated tag to DeprecatedNotes comments (https://github.com/woocommerce/woocommerce-admin/pull/5283)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-10-08 09:09:33 +10:00
Paul Sealock a4e8f6996c Navigation: Update PHP registration (https://github.com/woocommerce/woocommerce-admin/pull/5255)
* UPdate to new registration API

* conditionally add path to Overview

* add comment

* change to is_top_level
2020-10-08 10:10:37 +13:00
Paul Sealock 90cad8c945 update starter pack (https://github.com/woocommerce/woocommerce-admin/pull/5254) 2020-10-08 07:40:21 +13:00
Adrian Duffell 8466859eb9 Fix inconsistent line endings in readme.txt (https://github.com/woocommerce/woocommerce-admin/pull/5281)
This updates the Stable tag line in readme.txt to use a CRLF style line ending. This makes it consistent with the rest of the file and fixes “mixed line ending” type error messages when opening.
2020-10-07 11:34:27 +08:00
Renovate Bot a5bb7688bf Update dependency enzyme-adapter-react-16 to v1.15.5 2020-10-07 01:26:59 +00:00
Renovate Bot e5b85e7a90 Update dependency babel-jest to v26.5.2 2020-10-07 01:19:28 +00:00
Joel Thiessen 23c19ee1b2 Removing breadcrumbs from wc-admin header, replacing with simple titl… (https://github.com/woocommerce/woocommerce-admin/pull/5232)
Removing breadcrumbs from wc-admin header, replacing with simple title (https://github.com/woocommerce/woocommerce-admin/pull/3963)

This is an interim step towards the integration of wc-navigation, where a back button will be provided to restore the critical functionality of the breadcrumbs. Note that the `breadcrumbs` data was preserved since it's still being utilized do construct the document title (in semi-breadcrumb-fashion) on both the backend and front-end.
2020-10-06 13:42:46 -07:00
Joshua T Flowers 173b8c6262 Update store setup link to redirect to setup wizard (https://github.com/woocommerce/woocommerce-admin/pull/5200) 2020-10-06 23:35:54 +03:00
Joshua T Flowers 443e2f9a55 Wrap search control selected items in list (https://github.com/woocommerce/woocommerce-admin/pull/5231)
* Wrap search control selected items in list

* Fix up snapshots
2020-10-06 23:27:38 +03:00
Fernando 20a14ca689 Added animation to Inbox note deletion (https://github.com/woocommerce/woocommerce-admin/pull/5263)
This commit adds an animation to Inbox note deletion

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-10-06 11:07:06 -03:00
Fernando 1da4eedbf0 Moved Inbox Panel component (https://github.com/woocommerce/woocommerce-admin/pull/5252)
This commit moves the Inbox Panel component

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-10-06 10:13:32 -03:00
Jeff Stieler e62114e307 Remove dynamic content hash from chunk names. (https://github.com/woocommerce/woocommerce-admin/pull/5229)
* Don't auto generate chunk names.

This should make SVN diffs much easier to navigate for WP.org deploys.

* Include script version parameter in async chunk requests.

* Add version parameter to CSS chunks.
2020-10-06 08:58:15 -04:00
Jeff Stieler 2358f022ef Declare the note constants on the deprecated class. (https://github.com/woocommerce/woocommerce-admin/pull/5215)
* Declare the note constants on the deprecated class.

This avoids triggering PHP errors when third party code references the old class constants.

* Remove deprecation notices and return the call result

* Restore deprecated notices.

* Avoid magic strings.

* Pass WC_Admin_Note constructor argument to migrated class.

* Allow subclasses to access the facade class instance.

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-10-06 08:56:40 -04:00
Paul Dechov 1bdd2ea0e1 Search component: Behavior and styling tweaks (https://github.com/woocommerce/woocommerce-admin/pull/5199)
Fix visual issues with the <Search> component.
2020-10-06 12:22:22 +13:00
Bec Scott 9906c6c1b3 Add note status remote inbox notifications rule processor (https://github.com/woocommerce/woocommerce-admin/pull/5207)
* Add note status remote inbox notifications rule processor

* Notes class rename

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-10-06 07:51:59 +10:00
renovate[bot] a1967f194c Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/5266)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-06 10:21:19 +13:00
Joel Thiessen 484221c0cd Updating Stripe key field validation to support test keys (https://github.com/woocommerce/woocommerce-admin/pull/4391) (https://github.com/woocommerce/woocommerce-admin/pull/5201)
Updating Stripe key field validation to support test keys (https://github.com/woocommerce/woocommerce-admin/pull/4391)

Currently the form to configure Stripe keys accessed via the task list presents an error when test keys are used. I've updated the validation in order to support the format for test keys as well.
2020-10-05 11:52:12 -07:00
renovate[bot] 5c49051dcf Update dependency debug to v4.2.0 (https://github.com/woocommerce/woocommerce-admin/pull/5220)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-05 17:43:29 +13:00
renovate[bot] c316887f0a Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/5265)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-05 17:12:34 +13:00
renovate[bot] 3b88df6a31 Update dependency dompurify to v2.1.1 (https://github.com/woocommerce/woocommerce-admin/pull/5221)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-02 17:38:38 +13:00
Sam Seay 0d6d0dd36f Improve the pre-commit hook setup for wc-admin (https://github.com/woocommerce/woocommerce-admin/pull/5233) 2020-10-02 17:38:13 +13:00
Bec Scott a75d1a5254 Change store details tooltip to a popover (https://github.com/woocommerce/woocommerce-admin/pull/5212)
* Change store details tooltip to a popover

* Change 'skip setup' tooltip to be a popover as well

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-10-02 11:47:08 +10:00
Timmy Crawford 6db5126771 Onboarding: Remove check for legacy onboarding in redirect logic. (https://github.com/woocommerce/woocommerce-admin/pull/5230) 2020-10-01 06:08:41 -07:00
Adrian Duffell f08ccc57d7 Remove customer analytics data upon order deletion (https://github.com/woocommerce/woocommerce-admin/pull/5171)
This deletes the associated customer record when an order is deleted, provided that this is the only order for the customer.
2020-10-01 20:09:04 +08:00
Paul Dechov 4d0e062ee1 Task list: Turn off Stripe test mode when submitting live keys (https://github.com/woocommerce/woocommerce-admin/pull/5226) 2020-09-30 09:24:14 -07:00
Bec Scott 6ad7be3d58 Fix wakeup visibility for PHP 8 compatibility (https://github.com/woocommerce/woocommerce-admin/pull/5211)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-09-30 13:51:25 +10:00
Renovate Bot f3441c866a Update dependency config to v3.3.2 2020-09-30 03:14:25 +00:00
Renovate Bot a51d5dc690 Update dependency @testing-library/react-hooks to v3.4.2 2020-09-30 01:53:32 +00:00
Paul Sealock 7c1eae7263 version bump (https://github.com/woocommerce/woocommerce-admin/pull/5219) 2020-09-30 14:13:28 +13:00
Joshua T Flowers 1d3b9c0573 Redirect to setup wizard when activation transient is present (https://github.com/woocommerce/woocommerce-admin/pull/5214) 2020-09-29 17:14:04 -07:00
Jeff Stieler 6db31e351f Check to enable automated taxes after Jetpack connection is made. (https://github.com/woocommerce/woocommerce-admin/pull/5210) 2020-09-29 16:57:06 -07:00
Bec Scott 2ba064abf4 Remove product settings video note (https://github.com/woocommerce/woocommerce-admin/pull/5213)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-09-29 13:16:59 -07:00
Sam Seay 305eff84b3 Fix a bug where the store task list would remain after completion (https://github.com/woocommerce/woocommerce-admin/pull/5205)
* Adjust the logic of display of the store setup link.

* Fix a bug where some values of woocommerce_task_list_complete cause issues with updating.
2020-09-29 08:24:39 -07:00
Fernando 2cf7ea56a8 Onboarding - Store Profiler - Removed selected CBD option for eCommerce plan (https://github.com/woocommerce/woocommerce-admin/pull/5124)
* Added filter to selected industries list

This commit adds a filter to the selected industries list

* Fixed lint error

* Fixed lint issues

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-09-29 08:10:40 -07:00
Fernando 63f2b9de8b Enlarged store profiler text in two steps (https://github.com/woocommerce/woocommerce-admin/pull/5194)
* Fixed small text in OBW

This commit makes some OBW texts larger

* Fixed list items size

This commit makes the list items in the 2nd step of the OBW larger

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-09-29 08:04:30 -07:00
Joshua T Flowers 6e8b4bad5f Fix header height and positioning for wc nav (https://github.com/woocommerce/woocommerce-admin/pull/5173)
* Fix header height and positioning for wc nav

* Remove body margin via CSS
2020-09-29 15:57:50 +03:00
Bec Scott 27a6b4d967 Add rule processors for country and state (https://github.com/woocommerce/woocommerce-admin/pull/5203)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-09-29 15:21:44 +10:00
Bec Scott ad8f8c5b08 Rename admin notes classes and file names to fit conventions (https://github.com/woocommerce/woocommerce-admin/pull/5142)
* Rename admin notes classes and file names to fit conventions

* Use a facade class that adds deprecation warnings to each function call

* Tidy up after rebase

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-09-28 14:35:10 +10:00
renovate[bot] df91b1f0a6 Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/5204)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-28 15:43:02 +13:00
Joshua T Flowers 45ea46a6f1 Pass Stripe supported countries in tasks status REST API (https://github.com/woocommerce/woocommerce-admin/pull/5197) 2020-09-25 19:21:06 +03:00
Jeff Stieler 264aa8dee4 Add Variations Report (https://github.com/woocommerce/woocommerce-admin/pull/5167)
* Add initial Variations Report to analytics feature.

* Restrict query to variations when not specifying any product IDs.

* Add route to get variations without specifying a parent.

* Move variations table component to variations report directory.

* Add missing LIMIT clause to variations report query.

* Remove broken features from Variations table.

* Add Variations report controller to CSV emailer.

* Add initial Variation Stats endpoint, based on Product Stats.

* Hook Variations Report components up to new stats endpoint.

* Hook attribute filter up to variations report queries.

* Remove variation title filter usage.

See: https://github.com/woocommerce/woocommerce-admin/pull/5100

* Use filtered separator in variation name formatting.

* Add "single variation" to variations report, fix autocompleter API request.

* Fix segmentation by variation.

* Add comparison to variations report.

* Always include manually specified variations in report results.

* Fix variations report table comparison mode.

The ReportTable component expects the `filter` query param.

* Fixing styling of compare button without table search component.

* Add variation filter to Orders report.

* Link orders count to orders report filtered by variation.

* Orders report: include variation attributes in product names.

* Further style tweaks for variations report download button.

* Add variations filter to order stats query.

* Clean up "category includes" login in REST controllers.

Prep for "category excludes" in the Variations report.

* Support category exclusion in report filters.

* Fix filter param used by the variation report table component.

* Add category filter to variations report.

* Fix initial selected ReportTable rows when using non-default compareParam.

* Add a new autocompleter for variable products.

* Add products filter to variations report.

* Fix tests.

* Handle variation IDs that are no longer found.

* Add documentation.

* Use getSetting() instead of directly accessing window properties in client code.

* Fix ordering Variations by SKU.
2020-09-25 09:57:48 -04:00
Fernando 1f667456b2 Modified "Skip setup wizard" button text (https://github.com/woocommerce/woocommerce-admin/pull/5196)
This commit changes the "Skip setup wizard" button text to "Skip setup store details"

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-09-25 08:48:14 -03:00
Paul Sealock 4b8a03d83b add dependencies in loader (https://github.com/woocommerce/woocommerce-admin/pull/5169) 2020-09-25 12:20:21 +12:00
renovate[bot] fdd2c73122 Update dependency locutus to v2.0.12 (https://github.com/woocommerce/woocommerce-admin/pull/5148)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-25 09:25:26 +12:00
Sam Seay e6d5786d1b Adjust the logic of display of the store setup link. (https://github.com/woocommerce/woocommerce-admin/pull/5180) 2020-09-25 09:23:27 +12:00
Fernando ce3dab196e Renamed task list item (https://github.com/woocommerce/woocommerce-admin/pull/5190)
This commit renames the task list item "Store wizard" to "Store details"

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-09-24 08:53:13 -03:00
Sam Seay 20959e76b4 Remove store registration checks that are no longer needed. (https://github.com/woocommerce/woocommerce-admin/pull/5170)
Fixes woocommerce/woocommerce-admin#4443

Some investigation found that woocommerce/woocommerce-admin#4443 is no longer a reproducible issue. Why this issue no longer exists is not clear, but it makes sense now to disable the store registration checks as they are only called once. This PR just removes the checks but does not change any other behaviour.
2020-09-24 09:49:11 +12:00
Joshua T Flowers 6ea8752e30 Fix version update script for composer.json (https://github.com/woocommerce/woocommerce-admin/pull/5165) 2020-09-23 06:10:05 -07:00
Joshua T Flowers 12ffd61133 Show payments task for non-US stores when wcpay installed (https://github.com/woocommerce/woocommerce-admin/pull/5166) 2020-09-23 05:55:19 -07:00
Renovate Bot feddd93d66 chore(deps): update dependency replace to v1.2.0 2020-09-23 08:40:42 +00:00
Renovate Bot 8a5ead6901 chore(deps): update dependency request-promise to v4.2.6 2020-09-23 06:35:37 +00:00
Renovate Bot 603ce733c7 chore(deps): update dependency recast to v0.20.3 2020-09-23 05:09:13 +00:00
Renovate Bot b425397af9 chore(deps): update dependency puppeteer to v5.3.1 2020-09-23 03:27:19 +00:00
Renovate Bot 88430d9787 chore(deps): update dependency lint-staged to v10.4.0 2020-09-23 02:19:10 +00:00
Renovate Bot 0e82edd912 chore(deps): update dependency @storybook/addon-console to v1.2.2 2020-09-23 01:22:00 +00:00
Fernando 4aa01340ab Store Profiler - Industry: reduced padding and removed industry (https://github.com/woocommerce/woocommerce-admin/pull/5157)
* Reduced list padding

This commit reduces the industries list "padding" and its "min-height"

* Removed item from industries list

This commit removes the item "Art, Music & Photography" from the industries list

* Fixed e2e tests

This commit fixes the e2e tests

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-09-22 09:20:42 -03:00
renovate[bot] 04359e6032 chore(deps): lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/5168)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-22 15:50:35 +12:00
Sam Seay b492a2aa15 Use 'yes' to update modal dismiss option. (https://github.com/woocommerce/woocommerce-admin/pull/5152)
Fixes a bug in Atomic sites where dismissing the home screen modal would not set the option causing the modal to come back on each reload.
2020-09-19 08:19:55 +12:00
Adrian Duffell 46e9747968 Update remote-inbox-notification feature flag to true for all environments (https://github.com/woocommerce/woocommerce-admin/pull/5160) 2020-09-18 13:54:21 +08:00
Adrian Duffell 49f74d8b15 Add check for remote inbox notifications opt-out (https://github.com/woocommerce/woocommerce-admin/pull/5162)
The marketplace suggestions opt-out is now used to determine if remote inbox notifications should be fetched. This corresponds to the
`woocommerce_show_marketplace_suggestions` WP option.

Additionally, a new protected method is added to the class. This provide a series of checks for whether remote notifications are enabled on the site.
2020-09-18 13:53:49 +08:00
Paul Sealock 328075abb7 Remove ` @woocommerce/wc-admin-settings` from data package (https://github.com/woocommerce/woocommerce-admin/pull/5158)
* remove getAdminLink

* prep for package release

* correctly pass in args

* tests
2020-09-18 14:22:52 +12:00
Paul Sealock 2dea138505 Update/components deps (https://github.com/woocommerce/woocommerce-admin/pull/5153)
* bump components dependencie

* prep for package release
2020-09-18 08:19:36 +12:00
Jason Conroy a60f59fa10 Add Google Ads & Marketing by Kliken Note Provider (https://github.com/woocommerce/woocommerce-admin/pull/5107)
* Remove Facebook Experts note

* Swap Facebook Marketing Experts Note for Google Ads and Marketing

* Update db version for 1.6.0
2020-09-17 10:50:49 -07:00
Francesco 36f61c89f1 chore: rename WCS to WC Shipping & Tax (https://github.com/woocommerce/woocommerce-admin/pull/5139) 2020-09-16 16:45:16 -05:00
Paul Sealock d057022caf force to a float (https://github.com/woocommerce/woocommerce-admin/pull/5149) 2020-09-17 08:33:52 +12:00
Jeff Stieler 3abeda602a Search all variation attribute values, not just global ones. (https://github.com/woocommerce/woocommerce-admin/pull/5141)
* Search all variation attribute values, not just global ones.

* Fix variations test for WC < 4.4.
2020-09-16 09:57:38 -04:00
Renovate Bot a4ec2b94b0 Update dependency lint-staged to v10.3.0 2020-09-16 03:18:04 +00:00
Renovate Bot 054c3d59eb Update dependency ast-types to v0.14.2 2020-09-16 03:01:45 +00:00
Renovate Bot 0267a3a08d Update dependency @octokit/graphql to v4.5.6 2020-09-16 02:37:43 +00:00
Jeff Stieler b531f51cad Don't include "min" suffix in build JavaScript when targeting core. (https://github.com/woocommerce/woocommerce-admin/pull/5130)
Files with "min" are ignored by GlotPress / translate.wp.org.
2020-09-15 11:36:58 -04:00
Bec Scott 90567853de Enable the home screen for everybody (https://github.com/woocommerce/woocommerce-admin/pull/5108)
* One-shot to enable the homescreen for everybody

* Make the home page the default (only) experience

* remove option check in activity panel tabs, get tests working, fix lint issues

* Remove is-homescreen CSS class

* Remove extra home page route registration

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-09-15 09:44:46 +10:00
Bec Scott baad343599 Add filters for columns in reports (https://github.com/woocommerce/woocommerce-admin/pull/5134)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-09-15 08:29:09 +10:00
renovate[bot] f411c1aa51 Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/5133)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-14 12:50:05 +12:00
Bec Scott 5310944f17 Add option to not charge sales tax (https://github.com/woocommerce/woocommerce-admin/pull/5111)
* Add option to not set up sales tax

* Correct JS lint errors

* Add abort option to plugin step

* Inline redirect to home page

* Use testing-library/react for the new test

* Also set woocommerce_calc_taxes to 'no'

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-09-14 08:50:02 +10:00
Fernando 11656dcd6c Modified connection check (https://github.com/woocommerce/woocommerce-admin/pull/5129)
This commit modifies the connection check for the note 'wc-admin-wc-helper-connection'

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-09-12 11:56:33 -03:00
Adrian Duffell 7cd9e7f929 Remove the chevron icons from the “Finish setup” task list (https://github.com/woocommerce/woocommerce-admin/pull/5114)
* Remove the chevron icons from the “Finish setup” task list

* Add a data-testid attribute to the TaskDashboard dismiss button for testing

* Add test for dismiss button in TaskDashboard component
2020-09-11 14:09:17 +08:00
Paul Sealock 4a07997a86 Packages: release prep (https://github.com/woocommerce/woocommerce-admin/pull/5122)
* packgages version bumps

* fix errant s?
2020-09-11 14:33:10 +12:00
renovate[bot] b82bb4bc3b Update dependency dompurify to v2.0.15 (https://github.com/woocommerce/woocommerce-admin/pull/5112)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-09 11:46:58 -04:00
renovate[bot] 81fb8c7baf Pin dependencies (https://github.com/woocommerce/woocommerce-admin/pull/5109)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-09 11:26:14 -04:00
Jeff Stieler 35ee9901bc Avoid changing product titles by removing variation title filter usage. (https://github.com/woocommerce/woocommerce-admin/pull/5100)
* Remove use of `woocommerce_product_variation_title_include_attributes` filter.

* Use attribute values in product variation titles.

* Include attribute values in product variation name during segmentation.

* Include attribute values in product variations autocompleter query.
2020-09-09 09:29:10 -04:00
Renovate Bot 86be861a61 Update dependency husky to v4.3.0 2020-09-09 03:28:02 +00:00
Renovate Bot 6d66901da8 Update babel monorepo to v7.11.6 2020-09-09 02:23:52 +00:00
Bec Scott 55a9944911 Add performance on mobile admin note (https://github.com/woocommerce/woocommerce-admin/pull/5106)
* Add performance on mobile admin note

* use MONTH_IN_DAYS constant

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-09-09 08:35:59 +10:00
Rua Haszard 2002c74289 Update Storybook to latest (https://github.com/woocommerce/woocommerce-admin/pull/5105)
* WIP - upgrade storybook via `npx sb upgrade`

* fix broken storybook build - use custom MiniCssExtractPlugin package

Co-authored-by: haszari <rua@automattic.com>
2020-09-09 07:54:42 +12:00
Bec Scott 92b37234f6 Add Edit products on the move admin note (https://github.com/woocommerce/woocommerce-admin/pull/5054)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-09-08 09:01:12 +10:00
Jeff Stieler 4736c3fd27 Combine translation chunks when language packs are updated. (https://github.com/woocommerce/woocommerce-admin/pull/5094)
Removes version from filename and prevents WP_Filesystem use without successful initialization.
2020-09-07 12:46:39 -04:00
renovate[bot] 70d4f9392a Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/5102)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-07 14:27:04 +12:00
Timmy Crawford 89c7cede0c Onboarding: Set woocommerce_setup_jetpack_opted_in true on Jetpack connection. (https://github.com/woocommerce/woocommerce-admin/pull/5101) 2020-09-07 09:38:26 +10:00
Bec Scott cd128488df Add initial end to end test suite (https://github.com/woocommerce/woocommerce-admin/pull/5028)
Co-authored-by: Ron Rennick <ron@ronandandrea.com>
Co-authored-by: Rebecca Scott <me@becdetat.com>
Co-authored-by: Sam Seay <samueljseay@gmail.com>
2020-09-04 14:31:09 +12:00
Timmy Crawford 6e419e14ee Onboarding: Add TOS note to bundle install. (https://github.com/woocommerce/woocommerce-admin/pull/5096) 2020-09-03 16:35:06 -07:00
Paul Sealock 3c6483e842 Remove wc api 🎉 (https://github.com/woocommerce/woocommerce-admin/pull/5075)
* remove wc-api selects and constansts

* remove extendedItems dependence on wc-api

* remove wc-api

* PR feedback
2020-09-04 09:45:40 +12:00
Jeff Stieler ebfd28a9e6 Add product attribute filter to Orders Report. (https://github.com/woocommerce/woocommerce-admin/pull/5068)
* Add product attribute filter to Orders report config.

* Add attribute args to Orders report controller.

* Include attribute filters in orders report query.

* Add attribute args to Orders Stats report controller.

* Include attribute filters in orders report stats query.

* Add test for product attribute filter in orders report.

* Add tests for invalid parameter values.

* Add tests for product attribute filter in order stats endpoint.

* Fix tests for PHP 5.6 and WC 3.8.x.
2020-09-03 10:08:06 -04:00
Jeff Stieler 8814f6b46a Fix `analytics_filters_filter` event props. (https://github.com/woocommerce/woocommerce-admin/pull/5079) 2020-09-03 10:04:04 -04:00
renovate[bot] 36ed773769 Update dependency d3-time-format to v2.3.0 (https://github.com/woocommerce/woocommerce-admin/pull/5070)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-03 14:40:55 +10:00
renovate[bot] 9d95fe6c84 Update dependency dompurify to v2.0.14 (https://github.com/woocommerce/woocommerce-admin/pull/5071)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-03 14:36:25 +10:00
Sam Seay 2146ccb78e Add an automated taxes smart default (https://github.com/woocommerce/woocommerce-admin/pull/5076) 2020-09-03 14:56:52 +12:00
Bec Scott b4fef3059c Add ToS agreement copy to the WCPay setup task (https://github.com/woocommerce/woocommerce-admin/pull/5085)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-09-03 12:28:31 +10:00
Jason Conroy 0e42d2794d Consistently use USA spelling of optimize (https://github.com/woocommerce/woocommerce-admin/pull/5067) 2020-09-03 10:29:04 +09:30
renovate[bot] 27927dd3c5 Update dependency lint-staged to v10.2.13 (https://github.com/woocommerce/woocommerce-admin/pull/5073)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-02 15:52:25 +12:00
Bec Scott b5f9cf5fcd New marketing copy for the Kliken Google Ads plugin (https://github.com/woocommerce/woocommerce-admin/pull/5074)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-09-02 13:42:04 +10:00
Renovate Bot 0b864be6c8 Update dependency enzyme-adapter-react-16 to v1.15.4 2020-09-02 03:39:22 +00:00
Renovate Bot 6d147aa3fd Update babel monorepo to v7.11.5 2020-09-02 01:20:27 +00:00
Fernando 29e2dbffc9 Migrated "import" store to "wp.data" (https://github.com/woocommerce/woocommerce-admin/pull/4982)
* Migrated the "import" store to "wp.data"

This commit migrates the "import" store to "wp.data"

# Conflicts:
#	client/analytics/settings/historical-data/layout.js
#	packages/data/src/index.js

# Conflicts:
#	packages/data/src/index.js

# Conflicts:
#	packages/data/src/index.js

* Added error handling

This commit adds error handling to the apiFetch

* Fixred reducer.js

* Added reducer.js tests

* Removed "endpoint" references

* Tests fixed

* Removed old import store files and wc-api-spec import references

This commit removes old import store files and "wc-api-spec" import references

# Conflicts:
#	client/wc-api/wc-api-spec.js

# Conflicts:
#	client/wc-api/wc-api-spec.js

* Added interval to invalidate resolution of getImportStatus

* Fixed timestamp

* Store dependency removed

* Fixed reimport functionality

# Conflicts:
#	client/analytics/settings/historical-data/index.js

* Refactored layout.js

* Refactored clearCache method

* inProgress check refactored

* Using activeImport from store

# Conflicts:
#	client/analytics/settings/historical-data/index.js

* Fixed console warning

# Conflicts:
#	client/analytics/settings/historical-data/index.js

* Migration done!

# Conflicts:
#	client/analytics/settings/historical-data/index.js

* Fixed hasImportFinished

* Test fixed

* Removed "setImportFinished" from actions.js and index.js

* Added style to disabled button

* Fixed incorrect "Finalizing"  status

* Fixed tests

* Fixed notes update on importation start

* Removed local constants

* Removed css for disabled button

* Typo corrected

* Fixed param for getImportError method

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-09-01 10:21:31 -03:00
Jeff Stieler aa86428ebc Add support for advanced filters with multiple instances. (https://github.com/woocommerce/woocommerce-admin/pull/5050)
* Refactor filter input row into component.

* Support multiple filter value in "add filter" list.

* Refactor out one-off updateFilter() callback.

* Use array index to remove filters.

Also create unique keys for multiple value filters.

* Use numeric index instead of filter "key" for change callbacks.

* Maintain unique keys for multiple filter components.

This avoids rerenders when filters are removed.

* Calculate instance numbers in constructor.

* Support advanced filter instances in navigation helper methods.

* Add allowMultiple to advanced filters README.

* Fix tests.

* Add test cases for multiple filter instances.

* Handle missing attribute names and terms in screen reader text.

* Fix perpetual loading indicator when there are no attribute terms.

* Handle new boolean case when generating screen reader text.

* Handle multiple filter instances when creating report queries.

* Remove unused variables.
2020-09-01 08:23:27 -04:00
Jeff Stieler bc39bdf646 Show full variation name instead of parent product in orders report. (https://github.com/woocommerce/woocommerce-admin/pull/5056) 2020-09-01 08:22:36 -04:00
Sam Seay fb03e64ced Profile wizard style consistency updates (https://github.com/woocommerce/woocommerce-admin/pull/5059)
Co-authored-by: Joshua Flowers <joshuatf@gmail.com>
Co-authored-by: James Koster <james@jameskoster.co.uk>
2020-09-01 20:47:49 +12:00
Timmy Crawford 08a0ec3739 Remove industry option for travel. (https://github.com/woocommerce/woocommerce-admin/pull/5065) 2020-09-01 13:45:14 +10:00
Bec Scott 440137b555 Show usage modal when skipping the OBW (https://github.com/woocommerce/woocommerce-admin/pull/5061)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-09-01 10:16:53 +10:00
renovate[bot] 46ad94fb1d Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/5060)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-01 09:51:13 +12:00
Chris Shultz 570de23747 Stop using missing installPlugin function and fix WCS 1.24 compatibility (https://github.com/woocommerce/woocommerce-admin/pull/5025)
* Update Shipping Banner to use installPlugins since installPlugin has been removed.

* Fix shipping banner compatibility with WCS 1.24.

* Update metabox content to match WC 4.5 metaboxes.
2020-08-31 08:13:14 -07:00
renovate[bot] 394bf4db3c Update dependency babel-jest to v26.3.0 (https://github.com/woocommerce/woocommerce-admin/pull/5004)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-31 11:55:26 +12:00
Timmy Crawford 4983060727 Update contributors list to include woocommerce. (https://github.com/woocommerce/woocommerce-admin/pull/5057) 2020-08-28 06:29:04 -07:00
Joshua T Flowers 94db7f7f76 Add monthly pricing toggle to product types (https://github.com/woocommerce/woocommerce-admin/pull/5015)
* Add monthly pricing toggle

* Move product type label to its own folder

* Add popover to product type label

* Add card help text

* Add product type component tests

* Add tests for product types step

* Refactor validation in product types

* Export ProductTypes component for testing
2020-08-28 15:39:24 +03:00
Sam Seay dbec08f7dc When toggling the task list, record a track event. (https://github.com/woocommerce/woocommerce-admin/pull/5049)
Fixes woocommerce/woocommerce-admin#4760
2020-08-28 15:59:33 +12:00
Paul Sealock 7e7064e38c Fix components internal deps (https://github.com/woocommerce/woocommerce-admin/pull/5018)
* Fix components internal deps

* Pass full response

* remove errant comment
2020-08-28 11:55:48 +12:00
Bec Scott b64efcb2e8 Tweak button padding so it works on Safari (https://github.com/woocommerce/woocommerce-admin/pull/5043)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-08-28 09:00:12 +10:00