Commit Graph

3618 Commits

Author SHA1 Message Date
Paul Sealock 7a62d36516 Filters: Fix static query parameters (https://github.com/woocommerce/woocommerce-admin/pull/4458)
* Fix Filters' staticParams

* Don't update report table page when chart type is changed or filter menu has been opened.

Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>
2020-06-02 11:03:26 +12:00
Matt Sherman c7aeeb8b8c Set tabIndex on `SelectControl` wrapper div so that images and spans in options can be clicked on to select options in Firefox and Safari. (https://github.com/woocommerce/woocommerce-admin/pull/4474) 2020-06-01 14:25:08 -04:00
Joshua T Flowers 2c9b19521a Fix error handling for plugins on server error (https://github.com/woocommerce/woocommerce-admin/pull/4462)
* Handle server errors in plugin components

* Show generic server error message for plugin install if no plugin errors exist

* Fix plugin error tests
2020-06-01 13:39:58 +03:00
Fernando fd020a2f4c Added new notification to ask about migrating from Shopify. (https://github.com/woocommerce/woocommerce-admin/pull/4465)
* Added new notification to ask about migrating from Shopify.

This commit adds a new notification to ask the client if they want to migrate from Shopify to WooCommerce.

* Modified action's name

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-05-31 11:52:30 -03:00
Paul Sealock 4cddf7f671 Remove old OBW wc-api method (https://github.com/woocommerce/woocommerce-admin/pull/4469) 2020-05-30 22:59:10 +12:00
Joshua T Flowers 19f209c8dc Await profile items update in skip (https://github.com/woocommerce/woocommerce-admin/pull/4471) 2020-05-29 18:18:15 +03:00
Jeff Stieler 396db4447a OBW: JP step - use the correct store name for updating profile items. (https://github.com/woocommerce/woocommerce-admin/pull/4468) 2020-05-29 13:01:14 +03:00
Paul Sealock 16cb332f28 IconButton: Replace with Button (https://github.com/woocommerce/woocommerce-admin/pull/4415) 2020-05-29 14:32:37 +12:00
Paul Sealock 54c00eecf9 Homepage: Add tracks events to Stats List period changes (https://github.com/woocommerce/woocommerce-admin/pull/4448) 2020-05-29 12:40:51 +12:00
Joshua T Flowers 04e39480af Update import to new pluginNames location (https://github.com/woocommerce/woocommerce-admin/pull/4461) 2020-05-28 12:55:45 -06:00
Joshua T Flowers f132e35c7b Add EU VAT extension note (https://github.com/woocommerce/woocommerce-admin/pull/4452)
* Add EU VAT extension note

* Add note types to default notes query
2020-05-28 11:52:25 +03:00
Joshua T Flowers d14fd4dbe1 Migrate onboarding data store to wp data (https://github.com/woocommerce/woocommerce-admin/pull/4433)
* Migrate onboarding from wc-api to wp-data store

* Add tests for onboarding reducer

* Update references to onboarding data store

* Update tests for replacing profileItems

* Add onboarding hydration for profile items

* Prevent store from being registered twice

* Add requesting state to onboarding store

* Prevent duplicate registration on all wp data stores

* Update more components to use new wp data onboarding store

* Add tests for onboarding requesting state

* Update isRequesting to use isOnboardingRequesting
2020-05-28 11:51:40 +03:00
Joshua T Flowers 77992029da Add method to send WC profile data after profiler completion (https://github.com/woocommerce/woocommerce-admin/pull/4177)
* Add method to send WC profile data after profiler completion

* Send profiler data if complete on a newly connected site

* Check for put method existence before using the helper API

* Only send wc profile data if opted into tracking
2020-05-28 11:50:38 +03:00
Jeff Stieler cd146b388e Update TaskList design (https://github.com/woocommerce/woocommerce-admin/pull/4434)
* Update task list to closer match new designs.

* Update TaskList placeholder to match the new design.

* Hook up store details task click.

* Don't show "skip" prompt for task list on new home screen.

* Update time estimates for tasks.

* Add progress indicator to TaskList.

* Use null container for store details task.

* Fix progress bar styling.

* Just use card menu for TaskList dismissal.

* Don't show TaskList on analytics overview if homepage feature is enabled.

* Initial refactor of TaskList to use WP card.

* Style TaskList items and card header.

* Style "hide" button for TaskList.

* Don't show TaskList after it's completion.

* Don't show TaskList placeholder when options are still loading.

Avoid a potential flash of the placeholder without showing the TaskList.

* Fix border radius on progress bar.

* Fix TaskList header style with homepage feature disabled.

* Remove defunct function.

* Remove unnecessary import.

* Some minor color tweaks (https://github.com/woocommerce/woocommerce-admin/pull/4436)

* Colors

* Only show time estimation for incomplete tasks

* Don't show chevron on completed tasks.

Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>

* Preload task list completed option, show placeholder when loading.

* Fix alignment of "hide this" button.

Co-authored-by: James Koster <james@jameskoster.co.uk>
2020-05-27 10:08:39 -06:00
Joshua T Flowers 53dde217f6 Handle multiple plugin installs in a single request (https://github.com/woocommerce/woocommerce-admin/pull/4411)
* Allow plugins API to install multiple plugins at once

* Update wpdata to handle installing multiple plugins and errors

* Remove client-side error message switch

* Update plugin tests for multiple plugins param

* Update plugins API to WP standards

* Add error for non-allowed plugins instead of silently failing

* Allow error handling for individual plugins

* Fix up js tests for new API response

* Add installed plugin to response on successful install
2020-05-27 10:28:13 +03:00
Bec Scott 925db4dfd6 Add install Jetpack CTA to stats on home page (https://github.com/woocommerce/woocommerce-admin/pull/4442)
* Add install Jetpack CTA to stats on home page

* Fix installed/activated logic and change the install text depending on the plugin state

* Hold user data properly so it works

* Fix hover and focus styles for the primary button

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-05-27 12:38:57 +10:00
Jason Conroy 308a14ff38 Bind onClick event handler for marketing kb article click (https://github.com/woocommerce/woocommerce-admin/pull/4437) 2020-05-26 08:33:58 +09:30
Paul Sealock 96a4856940 OBW: Get utils plugins data from wp.data (https://github.com/woocommerce/woocommerce-admin/pull/4362)
* OBW: utils, get plugins from dataStore

* better

* add installedPlugins argument
2020-05-25 12:26:08 +12:00
Joshua T Flowers cbc96b0253 Refactor notes and conditions for adding notes (https://github.com/woocommerce/woocommerce-admin/pull/4340)
* Add note traits to check for existence and generic conditions

* Add new note type for marketing notes

* Delete marketing notes when opted out

* Add tests for marketing notes
2020-05-22 16:48:40 +03:00
Joshua T Flowers 3a88b6f980 Add setting to see if WcPay is configured (https://github.com/woocommerce/woocommerce-admin/pull/4145) 2020-05-22 13:40:10 +03:00
Jeff Stieler 3c8490c26b Add existing TaskList component to new home screen (https://github.com/woocommerce/woocommerce-admin/pull/4378)
* Move TaskList component up in directory tree.

* Render the TaskList on the new home screen.

* Render single tasks in isolation on new home screen.

* Fix "is requesting" selection for options API.

* Add loading placeholder for TaskList.

* Add initial test for the task list on the home screen.

* Fix dynamic imports under test.

* Add test for inline TaskList on home screen.

* Test that single task view works on new home screen.

* Restore Jest mocks between tests.

* Fix linting errors.
2020-05-21 11:15:08 -06:00
renovate[bot] 0165d7ce0c Update dependency eslint-plugin-react to v7.20.0 (https://github.com/woocommerce/woocommerce-admin/pull/4407)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-21 10:58:24 +10:00
renovate[bot] ec20a11c91 Update dependency eslint-plugin-jest to v23.13.1 (https://github.com/woocommerce/woocommerce-admin/pull/4406)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-21 10:55:37 +10:00
renovate[bot] ac67a958a4 Update dependency emoji-flags to v1.3.0 (https://github.com/woocommerce/woocommerce-admin/pull/4405)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-21 10:53:46 +10:00
renovate[bot] 517cf3d536 Update dependency autoprefixer to v9.8.0 (https://github.com/woocommerce/woocommerce-admin/pull/4404)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-21 10:46:14 +10:00
renovate[bot] 3af3017a39 Update dependency @testing-library/user-event to v10.3.3 (https://github.com/woocommerce/woocommerce-admin/pull/4403)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-21 10:41:09 +10:00
renovate[bot] 5781d962f0 Update dependency @testing-library/jest-dom to v5.8.0 (https://github.com/woocommerce/woocommerce-admin/pull/4402)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-21 10:32:39 +10:00
renovate[bot] 3163312e66 Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/4389)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-21 09:39:59 +10:00
Paul Sealock fbd41ceca7 Homepage: Style summary numbers (https://github.com/woocommerce/woocommerce-admin/pull/4370)
* Homwpage: add SummaryNumbers to display data

* fixup merge styles

* move style overrides to stats-list
2020-05-21 10:15:18 +12:00
Paul Dechov 0972cac0d0 Task List: Small fixes and adjustments to WCPay task (https://github.com/woocommerce/woocommerce-admin/pull/4373)
* Fix WCPay task Settings link

Fixes woocommerce/woocommerce-admin#4293 by setting link type for new pageload.

* Check for success query param to show notice

* Shrink WCPay task footnote so it fits in one line

* Remove unnecessary Fragment wrapper

* Omit option update from client side

The payment method is already enabled when the connection is finalized on redirect.
2020-05-20 14:25:28 -04:00
Ron Rennick 756dd8c1de make revenue total sales column optional (https://github.com/woocommerce/woocommerce-admin/pull/4397) 2020-05-20 13:03:30 -03:00
Matt Sherman 039626649b Home Screen: Switch to @wordpress/icons on Store Management (Quick Links) card (https://github.com/woocommerce/woocommerce-admin/pull/4400) 2020-05-20 09:34:49 -04:00
Joshua T Flowers 1f11358cfb Separate Jetpack connection logic in shipping task (https://github.com/woocommerce/woocommerce-admin/pull/4381)
* Separate Jetpack connection logic in shipping task

* Don't check for Jetpack activation on Connect step
2020-05-20 12:43:09 +03:00
Daniel Bitzer c6371c32db Fix in app purchase back link for recommend marketing extensions card (https://github.com/woocommerce/woocommerce-admin/pull/4301)
* Add getInAppPurchaseUrl lib function

* Implement getInAppPurchaseUrl for marketing tab

* Include the directory with the wccom-site param

* use getInAppPurchaseUrl helper function in onboarding CartModal component

* Fix 'addQueryArgs' is defined but never used

* Fix Missing JSDoc @return description

* Make connectNonce setting a global setting rather than a marketing once

Co-authored-by: Jason Conroy <jason@findingsimple.com>
2020-05-20 15:03:58 +09:30
Paul Sealock 9b3b420e1a 1.2.2 version bump (https://github.com/woocommerce/woocommerce-admin/pull/4395)
* 1.2.2 changelog

* version bump 1.2.2

* tested up to 5.4.1
2020-05-20 12:24:33 +12:00
Matt Sherman d1ec055035 Home Screen: Add Store Management (Quick Links) card (https://github.com/woocommerce/woocommerce-admin/pull/4350) 2020-05-19 09:16:19 -04:00
Paul Sealock f45fecfbed Advanced Filters: fix currency initialization (https://github.com/woocommerce/woocommerce-admin/pull/4356)
* Advanced Filters: fix currency initialization

* fix readme

* get formatCurrency method
2020-05-19 14:38:02 +12:00
Joshua T Flowers 65145bf92c Add Jetpack connection to plugin benefits step (https://github.com/woocommerce/woocommerce-admin/pull/4374)
* Allow updateActivePlugins to add new plugins instead of replace

* Add autoConnect prop to Jetpack Connect component

* Add connect component to plugin benefits screen

* Add onError and missing prop types for Connect

* Update redirect URL after Jetpack connection

* Add tests for added active plugins

* Skip install if plugin error exists

* Update active and installed plugins to use replace flag

* Update tests to handle replace flag

* Refactor plugin install flow pending state
2020-05-19 12:47:25 +12:00
Joshua T Flowers 35616d5f22 Enable tracking on the fly during onboarding (https://github.com/woocommerce/woocommerce-admin/pull/4368)
* Enable the tracking scripts from client-side on opt-in

* Add more info to tracks debug

* Disable tracks if opted out
2020-05-18 13:35:50 -06:00
Timmy Crawford e6c13a4a02 Release: 1.2.0 (https://github.com/woocommerce/woocommerce-admin/pull/4328)
* Release: 1.2.0

* Updates per feedback.

* Get installed plugins from new plugin settings object. (https://github.com/woocommerce/woocommerce-admin/pull/4357)

* Bumping version numbers

* synch package-lock.json with master

Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>
2020-05-15 12:30:02 -07:00
renovate[bot] 01bb072a6f Update dependency @testing-library/user-event to v10.2.4 (https://github.com/woocommerce/woocommerce-admin/pull/4361)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-15 15:54:54 +12:00
renovate[bot] 230414e740 Update dependency @testing-library/react to v10.0.4 (https://github.com/woocommerce/woocommerce-admin/pull/4360)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-15 15:08:51 +12:00
renovate[bot] ae67dc8259 Update dependency @octokit/graphql to v4.4.0 (https://github.com/woocommerce/woocommerce-admin/pull/4359)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-15 15:08:07 +12:00
Claudio Sanches 392b69ee21 Fixed PHP notice about undefined index of items (https://github.com/woocommerce/woocommerce-admin/pull/4377)
Notice caused by the missing 'items' param required for 'array' types
2020-05-14 14:12:59 -06:00
renovate[bot] a03fb37ada Update wordpress monorepo (https://github.com/woocommerce/woocommerce-admin/pull/4131)
* Update wordpress monorepo

* Downgrade base styles version to 1.4.0

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Joshua Flowers <joshuatf@gmail.com>
2020-05-14 16:34:33 +12:00
Paul Sealock 8430b1cba7 Homepage: Add stats numbers (https://github.com/woocommerce/woocommerce-admin/pull/4288) 2020-05-14 15:23:03 +12:00
Ron Rennick 6720c17140 update unit test bootstrap for WC 4.2 (https://github.com/woocommerce/woocommerce-admin/pull/4312) 2020-05-13 09:56:05 -03:00
Joshua T Flowers 6fd251bfe4 Adds Jetpack stats to performance indicator endpoints (https://github.com/woocommerce/woocommerce-admin/pull/4291)
* Move allowed report analytics data to separate function

* Add function to retrieve allowed Jetpack module endpoints

* Fix API urls

* Add number format as default for jetpack modules

* Add module permissions and format to array

* Add filter for returned data from performance indicators API

* Filter jetpack stats by queried dates

* Fix empty date query filtering

* Mock the Jetpack API response

* Add tests for Jetpack stats in allowed endpoints

* Add tests for filtering Jetpack stats based on time

* Add tests for default args
2020-05-13 14:52:32 +03:00
renovate[bot] 44d5a79346 Pin dependency eslint-plugin-jest-dom to 2.1.0 (https://github.com/woocommerce/woocommerce-admin/pull/4358)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-13 16:52:15 +12:00
Jeff Stieler 3e48eba385 Get installed plugins from new plugin settings object. (https://github.com/woocommerce/woocommerce-admin/pull/4357) 2020-05-12 18:29:41 -06:00