Commit Graph

3918 Commits

Author SHA1 Message Date
Sam Seay 2f1d65847c Remove usage of __experimentalResolveSelect (https://github.com/woocommerce/woocommerce-admin/pull/4949)
This uses a generator action and hooks to reimplement the CTA as a more
simple and logicless component, with most of the logic now in the
HOC component.
2020-08-20 16:02:01 +12:00
Sam Seay 4e06df996a Add the jest-environment tag to known tags for jsdoc to avoid lint errors. (https://github.com/woocommerce/woocommerce-admin/pull/5002) 2020-08-20 14:15:08 +12:00
Renovate Bot a42c124321 Update dependency @octokit/graphql to v4.5.4 2020-08-19 22:06:38 +00:00
renovate[bot] 69efe549fe Update dependency grunt to v1.3.0 (https://github.com/woocommerce/woocommerce-admin/pull/5008)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-19 15:54:23 +12:00
renovate[bot] 27c2d4d3af Update dependency enzyme-adapter-react-16 to v1.15.3 (https://github.com/woocommerce/woocommerce-admin/pull/5007)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-19 15:30:59 +12:00
Paul Sealock c7f63f7452 get selectors from wc-api (https://github.com/woocommerce/woocommerce-admin/pull/4997) 2020-08-19 10:03:40 +12:00
Jeff Stieler c16da34c30 Migrate export data store to wp.data (https://github.com/woocommerce/woocommerce-admin/pull/4958)
* Add export ID to success response and fix typos in endpoint schema.

* Initial export data store.

Allows for starting export, but not checking progress.

* Use new export data store in analytics report tables.

* Remove defunct report export wc-api files.

* Apply review feedback from another wp.data PR.

* Use getResourceName() util for more DRYness.

* Fix linter error.

* Add response status code to fetchWithHeaders control.

* Use HTTP status rather than response body to determine success.

* Fix tests.

* Remove unused import from actions.
2020-08-18 09:04:58 -04:00
Joshua T Flowers df89bb7aac Fix note data actions and consolidate query constants (https://github.com/woocommerce/woocommerce-admin/pull/4990) 2020-08-18 14:45:42 +03:00
Bec Scott 4e8ca09a3a Remove composite products from onboarding (https://github.com/woocommerce/woocommerce-admin/pull/4996)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-08-18 10:56:36 +10:00
Timmy Crawford a2e6b6e82e Remove composite product from 1.4 release notes (https://github.com/woocommerce/woocommerce-admin/pull/4995)
I apparently made a bit of a mistake when assembling the changelog for 1.4. Thanks @becdetat for noticing this.
2020-08-17 17:31:12 -07:00
Timmy Crawford 7b2aedf88b Final css tweaks for business modal in onboarding wizard. (https://github.com/woocommerce/woocommerce-admin/pull/4994) 2020-08-17 15:11:42 -07:00
Timmy Crawford 0259a6b52a Update Jetpack Autoloader to match Woo Core. (https://github.com/woocommerce/woocommerce-admin/pull/4993)
* Update Jetpack Autoloader to match Woo Core.

* Don't pin JP Autoloader.
2020-08-17 15:06:00 -07:00
Paul Sealock 8afad405d4 Remove unused lib/date (https://github.com/woocommerce/woocommerce-admin/pull/4987) 2020-08-18 09:53:13 +12:00
Paul Sealock 5cbd4ed521 Documentation: Fix Add Report (https://github.com/woocommerce/woocommerce-admin/pull/4991)
* Update readme

* better
2020-08-18 09:45:21 +12:00
Paul Sealock 23846221e6 jsDoc: Fix errors (https://github.com/woocommerce/woocommerce-admin/pull/4985)
* jsDoc errors, round 1

* round 2

* round 3

* voila

* root0 -> props
2020-08-18 09:36:24 +12:00
Timmy Crawford dfdc6d8f28 CSS fixes for Business Features popover. (https://github.com/woocommerce/woocommerce-admin/pull/4907) 2020-08-17 12:13:12 -07:00
Jeff Stieler 96e3ed4730 Fix typo in reports store action creators. (https://github.com/woocommerce/woocommerce-admin/pull/4992) 2020-08-17 13:52:33 -04:00
Bec Scott c253cc7796 Add updateOptions prop to Layout tests (https://github.com/woocommerce/woocommerce-admin/pull/4986)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-08-17 10:30:46 +10:00
Jeff Stieler 7ad5ea7d8d Use filtered headers array in onColumnsChange callback. (https://github.com/woocommerce/woocommerce-admin/pull/4964)
* Use filtered headers array in onColumnsChange callback.

* Table column example: show headers when there are no results.
2020-08-14 12:14:04 -04:00
Manos Psychogyiopoulos a236f6d79f Add 'woocommerce_analytics_update_order_stats_data' filter (https://github.com/woocommerce/woocommerce-admin/pull/4934) 2020-08-14 15:59:29 +03:00
Joshua T Flowers 1d339174f8 Migrate reports data store to wp data (https://github.com/woocommerce/woocommerce-admin/pull/4966)
* Move controls to data package root

* Add reports data store in wp data

* Move report utils to data package

* Update error state and actions to match existing methods

* Update references to reports data store

* Add error setters

* Fix control registration path

* Add reports reducer tests

* Remove remaining report wc-api references

* Handle PR feedback

* reference packgage, not lib/date

Co-authored-by: Paul Sealock <psealock@gmail.com>
2020-08-14 14:19:04 +03:00
Sam Seay be18a1945a Adjust renovate to automerge devDependencies. (https://github.com/woocommerce/woocommerce-admin/pull/4979) 2020-08-14 13:11:09 +12:00
Paul Sealock c3d1e1eb61 Stock Report: Fix bad text domains (https://github.com/woocommerce/woocommerce-admin/pull/4980)
* Fix bad text domains

* fix currency bug
2020-08-14 08:25:08 +12:00
Sam Seay 1d482e6357 Match the requires version to the exact Wordpress version number. (https://github.com/woocommerce/woocommerce-admin/pull/4956) 2020-08-13 11:20:14 -07:00
Jeff Stieler 025860c879 Delete associated customer analytics data when user is deleted from WordPress. (https://github.com/woocommerce/woocommerce-admin/pull/4977)
* Delete customer lookup rows when their corresponding user is deleted.

* Asynchronously delete users from customer lookup table.

* Add user deletion test case.

* Fix user deletion test.
2020-08-13 09:23:51 -04:00
Joshua T Flowers 483055dd75 Migrate notes data store to wp data (https://github.com/woocommerce/woocommerce-admin/pull/4943)
* Add initial notes data store using wp data

* Cache individual note queries

* Update notes undo endpoint to batch update endpoint

* Allow batch updates of notes

* Add requesting state

* Update components to use new note store

* Remove old notes store from wc-api

* Get note IDs from json and validate data in REST API

* Add an updating state to each note

* Throw errors in actions so they can be caught by client

* Add store reducer tests

* Handle PR feedback

* Fix failing tests

* Don't set inbox panel visibility while batch updating

* Move woocommerce block to external dependencies
2020-08-13 16:23:38 +03:00
Jeff Stieler 5fbc511f25 Don't directly import from React, use @wordpress/element. (https://github.com/woocommerce/woocommerce-admin/pull/4978) 2020-08-13 08:29:29 -04:00
renovate[bot] 2ca0182582 Update dependency moment-timezone-data-webpack-plugin to v1.3.0 (https://github.com/woocommerce/woocommerce-admin/pull/4843)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-13 15:55:09 +12:00
renovate[bot] 9a4d0b40f2 Pin dependencies (https://github.com/woocommerce/woocommerce-admin/pull/4870)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-13 15:53:47 +12:00
renovate[bot] 72dcbfd3b7 Update dependency qs to v6.9.4 (https://github.com/woocommerce/woocommerce-admin/pull/4930)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-13 15:40:43 +12:00
renovate[bot] 7320a0663c Update dependency autoprefixer to v9.8.6 (https://github.com/woocommerce/woocommerce-admin/pull/4927)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-13 15:28:04 +12:00
renovate[bot] 872aa2aa35 Update dependency @automattic/color-studio to v2.3.1 (https://github.com/woocommerce/woocommerce-admin/pull/4968)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-13 15:14:05 +12:00
renovate[bot] 7850c5f896 Update dependency prismjs to v1.21.0 [SECURITY] (https://github.com/woocommerce/woocommerce-admin/pull/4953)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-13 15:13:43 +12:00
renovate[bot] 82d50d5d3a Update dependency @octokit/graphql to v4.5.3 (https://github.com/woocommerce/woocommerce-admin/pull/4969)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-13 14:41:00 +12:00
renovate[bot] e50d6edb7c Update dependency node-sass to v4.14.1 (https://github.com/woocommerce/woocommerce-admin/pull/4844)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-13 14:35:46 +12:00
Paul Sealock c145783e0a Fix dependency declarations (https://github.com/woocommerce/woocommerce-admin/pull/4972)
* renmove WC comment block

* client routes

* more fixes

* moar search

* getting there

* by hand now

* david beating goliath

* mission accomplished

* client filepath

* save

* got it

* remove script

* fixes

* deal with package internal dep

* remove webpack alias

* fix webpack relative paths

* remove commented rule

* remove extra line

* remove unused modules entry
2020-08-13 14:05:22 +12:00
renovate[bot] d5abba63f7 Update dependency @testing-library/jest-dom to v5.11.3 (https://github.com/woocommerce/woocommerce-admin/pull/4970)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-13 13:06:15 +12:00
renovate[bot] 8c71e548ef Update dependency concurrently to v5.3.0 (https://github.com/woocommerce/woocommerce-admin/pull/4971)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-13 12:53:20 +12:00
Sam Seay 52b5fd693f Improve jest performance significantly by downgrading to 24.9.0 (https://github.com/woocommerce/woocommerce-admin/pull/4942)
Recently there have been significant slowdowns
of the test suite in Jest. I frequently had the test suite
taking 130-150 seconds to run.

After some exploration and trial/error I found that
https://github.com/facebook/jest/issues/9457 is likely the cause.

This was confirmed after the downgrade where I saw test runs drop
to an average of about 35 seconds per run.
2020-08-13 11:29:48 +12:00
Jeff Stieler 2c8402eebf Fix Table component `onQueryChange` prop default (https://github.com/woocommerce/woocommerce-admin/pull/4959)
* Fix default value for Table component onQueryChange.

* Add component changelog.

* Convert Table component tests to react-testing-library.

* Add test coverage for default callback props.
2020-08-12 15:35:26 -04:00
Joshua T Flowers 260843c528 Fix industry args type in REST API (https://github.com/woocommerce/woocommerce-admin/pull/4974)
* Fix industry args type in REST API

* Only allow object for industry param

* Fix onboarding industry object shape in test case.

Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>
2020-08-12 15:57:55 +03:00
Claudio Sanches 073a3f706f Fix usage of "package" tag in file headers (https://github.com/woocommerce/woocommerce-admin/pull/4940)
* Don't require package tag or file comment inside src

* Removed package tag from files inside src

* Fixed tests directory in phpcs.xml.dist

* Fixed usage of package tag

* Fixed new classes

* Fixed coding standards

* Fixed coding standards in tests
2020-08-11 16:18:47 -03:00
Joshua T Flowers 92a8a58d2b Remove payment task actions (https://github.com/woocommerce/woocommerce-admin/pull/4917)
* Remove task list payment actions

* Check that the payments task has been marked complete in checkout note

* Track payments completion via enabled gateways

* Allow toggling to unfinish task when no payments enabled
2020-08-11 15:20:48 +03:00
Bec Scott b511469dc8 Automatically add free local shipping zone on completing the profiler (https://github.com/woocommerce/woocommerce-admin/pull/4857)
* Set up profile completed action

* Stub out the steps

* Only run if Jetpack is installed and connected

* Return if WCS isn't active

* Return unless physical is selected as a product type

* Return if there are existing shipping zones

* Shipping labels are enabled when WCS is installed

* Set up free local shipping

* Comment for the profiler complete action

* By default there is no international/catch-all shipping method set up

* Add review shipping settings note

* Record tracks event

* Fix logic

* Add unit test around setting up free local shipping

* Rename some functions

* Use countries service to get all countries

* Drop duplicated possibly_add_note()

* Check the old value when determining if the profiler has completed

* Fall back to country code if country name doesn't exist

* Use admin_url fn to build up URL

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-08-11 14:39:25 +10:00
Bec Scott 028e1fcab4 Post-release, update readme, bump versions to 1.6.0-dev (https://github.com/woocommerce/woocommerce-admin/pull/4950)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-08-11 11:05:03 +10:00
Paul Sealock 8d5718fdb8 Reviews: Create wp.data dataStore (https://github.com/woocommerce/woocommerce-admin/pull/4941)
* scaffold out reviews store

* hook up dataStore

* get controls working

* getReviews working

* get count working

* get errors working

* indicators working

* reducer tests

* reviews

* Remove wc-api

* cleanup

* better way to fetch with headers

* add comment with issue

* better resolver
2020-08-11 12:16:27 +12:00
Jeff Stieler a42d4f4683 Don't redirect to connect Jetpack if "no thanks!" selected. (https://github.com/woocommerce/woocommerce-admin/pull/4944) 2020-08-10 08:18:09 -04:00
renovate[bot] 56dec569b5 Update babel monorepo (https://github.com/woocommerce/woocommerce-admin/pull/4925)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-10 21:37:47 +12:00
Timmy Crawford 2b7fddb16b Setup Payments: Add eWAY for AU/NZ Stores. (https://github.com/woocommerce/woocommerce-admin/pull/4947)
* Setup Payments: Add eWAY for AU/NZ Stores."

* Fix typo
2020-08-06 17:09:10 -07:00
Joshua T Flowers 09415ef7a8 Remove erroneous navigation component (https://github.com/woocommerce/woocommerce-admin/pull/4923) 2020-08-06 17:07:36 -07:00