Commit Graph

3999 Commits

Author SHA1 Message Date
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
Jeff Stieler 650ecac14a Add "Product Attribute" advanced report filter. (https://github.com/woocommerce/woocommerce-admin/pull/5038)
* Simplify variation name logic.

* Remove errant commas from variation autocomplete options.

* Add single variation filter to products report.

* Include more variations in search results.

Also trim the response fields down.

* Add initial AttributeFilter component.

Only selected of attribute names for now.

* Add attribute term selection control.

* Position attribute filter inputs side by side.

* Add loading indicator to attribute term control.

* Clear term when attribute value changes, and handle backspaces.

* Generate screen reader text.

* Translate filter labels, add field separator.

* Improve grammar in screen reader text.

* Fix lint errors.
2020-08-27 08:11:12 -04:00
Jeff Stieler 5e7f2af61d Rename "profile" to "store details". (https://github.com/woocommerce/woocommerce-admin/pull/4965)
* Rename "profile" to "store details".

* Missed some /profiler links.

* Fix linter error.

* Store details => Setup Wizard.

* Rename task list item.
2020-08-27 08:10:23 -04:00
Bec Scott 550445e1a4 Add error logging to remote inbox notifications data source poller (https://github.com/woocommerce/woocommerce-admin/pull/4922)
* Add error logging to remote inbox notifications data source poller

* Change DataSourcePoller to use WC_Logger

* Remove test feed

* Tidy up log messages

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-08-27 15:47:37 +10:00
Sam Seay c0c9a20f73 Fix a bug where an event's data was recorded in camel case. (https://github.com/woocommerce/woocommerce-admin/pull/5051)
Fixes woocommerce/woocommerce-admin#4464 

`wcadmin_tasklist_shipping_label_printing` events were being filtered into rejected events because the data being passed was in camel case instead of snake case. This fixes that issue.
2020-08-27 14:26:59 +12:00
Sam Seay c884f96bf9 Add WooCommerce Mobile App Banner Ad for Android and iOS (https://github.com/woocommerce/woocommerce-admin/pull/5037)
Fixes woocommerce/woocommerce-admin#4654 

The feature calls for a mobile app ad banner to be displayed to users on mobile devices.

Based on the discussion in woocommerce/woocommerce-admin#4654 this implements the following:

1. [an iOS Smart App Banner](https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/PromotingAppswithAppBanners/PromotingAppswithAppBanners.html). This banner is a meta tag that is generated in PHP. It will only display on iOS devices. One note about this: **This tag is not directly trackable like the implemented Android banner. If we would like to track its success then I believe [these instructions are relevant](https://stackoverflow.com/questions/12906502/is-it-possible-to-track-click-throughs-from-iphone-smart-banner/20422334woocommerce/woocommerce-admin#20422334)**. 

2. A mobile app banner ad that **only displays on Android** and only displays at the `738px` breakpoint specified in the issue. To only display this banner ad on Android, we use basic checking of the user agent string. I weighed this up against other approaches and for this kind of niche use case a simple UA string check is (imho) still the best way to do this.

3. The banner ad makes use of user preferences to retain a per user setting that determines if that user has dismissed the Android banner. We don't/can't do anything like this for the iOS Smart App Banner (but in theory we shouldn't need to).
2020-08-27 13:46:53 +12:00
Timmy Crawford 0374d48849 Onboarding: Do not show extensions bundle test if CBD is selected. (https://github.com/woocommerce/woocommerce-admin/pull/5040) 2020-08-26 09:15:02 -07:00
Timmy Crawford dd799b0504 Clean up copy/paste (https://github.com/woocommerce/woocommerce-admin/pull/5039) 2020-08-26 09:14:31 -07:00
Jeff Stieler e845de7003 Fix missing title component in advanced filter screen reader interpolation. (https://github.com/woocommerce/woocommerce-admin/pull/5032) 2020-08-26 08:29:21 -04:00
Bec Scott 0bf9ef371c Add new note: Selling online courses (https://github.com/woocommerce/woocommerce-admin/pull/5036)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-08-26 14:11:14 +10:00
renovate[bot] cad9379a76 Update dependency @testing-library/jest-dom to v5.11.4 (https://github.com/woocommerce/woocommerce-admin/pull/5044)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-26 15:35:08 +12:00
renovate[bot] 3bb3678451 Update dependency @babel/core to v7.11.4 (https://github.com/woocommerce/woocommerce-admin/pull/5042)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Paul Sealock <psealock@gmail.com>
2020-08-26 15:33:54 +12:00
renovate[bot] 6b5d6fb68e Update dependency ast-types to v0.14.1 (https://github.com/woocommerce/woocommerce-admin/pull/5047)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-26 15:25:09 +12:00
renovate[bot] 8bf5cff688 Update dependency d3-format to v1.4.5 (https://github.com/woocommerce/woocommerce-admin/pull/5048)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-26 15:24:04 +12:00
renovate[bot] ca138988ae Pin dependency @babel/plugin-proposal-class-properties to 7.10.4 (https://github.com/woocommerce/woocommerce-admin/pull/5041)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-26 15:20:06 +12:00
renovate[bot] 5a32526123 Update dependency @testing-library/react to v10.4.9 (https://github.com/woocommerce/woocommerce-admin/pull/5045)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-26 14:43:57 +12:00
renovate[bot] 327e1d2e56 Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/5029)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-26 14:10:36 +12:00
Joshua T Flowers d4dd74e44a Remove onboarding feature flag and a/b testing (https://github.com/woocommerce/woocommerce-admin/pull/4999)
* Remove store page creation during new onboarding experience

* Remove onboarding feature flag

* Add back in onboarding feature flag to enable feature loading
2020-08-25 00:51:41 +03:00
Jeff Stieler eea63f602f Refactor task list status to onboarding data store. (https://github.com/woocommerce/woocommerce-admin/pull/4998)
* Add onboarding task status API endpoint.

* Add task status to onboarding data store.

* Update appearance task to use onboarding store for status info.

* Update main task list component to use onboarding data store for status info.

* Clear onboarding status info "cache" when setting shipping rates in the task list.

* Clear onboarding status info "cache" when enabling payment methods from the task list.

* Fix onboarding data store reducer tests.

* Clean up redundant code, nest task status settings under new key for hydration.

* Include tasks status in onboarding data hydration.

* Update tax task to use onboarding data store for status info.

* Avoid continually rehydrating onboarding data.

* Refactor payment task method retrieval to use onboarding data store.

* Fix bug with disappearing appearance tax steps.

* Update appearance completion faster by using hydrated onboarding value.

* Avoid PHP warnings when onboarding isn't enabled.

* Remove unused imports.
2020-08-24 09:20:57 -04:00
Joshua T Flowers f2771ab449 Add complete and incomplete task counts to tasklist_complete event (https://github.com/woocommerce/woocommerce-admin/pull/5000) 2020-08-24 14:19:36 +03:00
Joshua T Flowers 07b3c87f6b Add filter to allow modification of report columns (https://github.com/woocommerce/woocommerce-admin/pull/4984)
* Add filter to allow modification of report columns

* Check for report columns existence before filtering
2020-08-24 14:18:48 +03:00
renovate[bot] fa2a90cad6 Update dependency d3-selection to v1.4.2 (https://github.com/woocommerce/woocommerce-admin/pull/4928)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-24 12:31:09 +12:00
Sam Seay e61548d2c5 Refactor the Header component from class to function. (https://github.com/woocommerce/woocommerce-admin/pull/5023)
Working towards woocommerce/woocommerce-admin#4654 this refactors the `<Header>` component to be functional so that it can use hooks. The plan is to use the `useUserPreferences` hook there to determine if the mobile banner should be rendered or not.
2020-08-24 10:46:18 +12:00
renovate[bot] fac5a4609d Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/4836)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-24 10:09:25 +12:00
renovate[bot] 7c66c885d5 Update dependency core-js to v3 (https://github.com/woocommerce/woocommerce-admin/pull/4174)
* Update dependency core-js to v3

* core-js paths

* update babel and jest presets

* remove unused jest preset

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Paul Sealock <psealock@gmail.com>
2020-08-24 09:35:46 +12:00
Paul Sealock 74e8d7622e Items dataStore: Migrate from wc-api (https://github.com/woocommerce/woocommerce-admin/pull/5009)
* Create wp.data folder

* order panel

* fix isUnboundedRequest with Categories

* products report

* products table

* indicators and leaderboards

* orders and stock panels

* utils

* tests

* save

* updateStock

* remove wc-api items

* updateItems -> setItems
2020-08-21 11:37:41 +12:00
Paul Sealock 2f650b74a0 Replace useFilters with wp's withFilters (https://github.com/woocommerce/woocommerce-admin/pull/4962)
* use wp withFilters

* changelog

* remove altogether

* other uses of withFilters

* Add deprecation warning to README
2020-08-21 11:14:55 +12:00
Joshua T Flowers 0605e614a9 Group tasks by completion status (https://github.com/woocommerce/woocommerce-admin/pull/5001) 2020-08-20 22:33:55 +03:00
Daniel Bitzer d8098d6fd7 Adds `@woocommerce/tracks` package (https://github.com/woocommerce/woocommerce-admin/pull/5017)
* Add @woocommerce/tracks package.json

* Add @woocommerce/tracks .npmrc

* Move lib/tracks.js in to tracks package

* Add tracks package debug dependency

* Add readme for tracks package

* Add changelog for tracks package

* Add info about debugging and opt-ins to tracks package readme

* Load tracks package script

* Add tracks package to packages readme

* Add tracks package to webpack config

* Add tracks package external to starter-pack

* Replace lib/tracks uses with @woocommerce/tracks

* Update package-lock.json
2020-08-20 14:29:52 +09:30
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
Harris Wong 276d8455b0 Update style on shipping banner (https://github.com/woocommerce/woocommerce-admin/pull/4948)
* Change is-button to is-primary to address style issues

* Make sure the text is vertically aligned
2020-08-06 17:06:05 -07:00
James Koster 2c592b1209 Update the colors of the illustrations in the welcome modal to use the theme spot color (https://github.com/woocommerce/woocommerce-admin/pull/4945) 2020-08-06 16:58:00 -07:00
renovate[bot] fd69c155fd Update dependency @testing-library/react to v10.4.8 (https://github.com/woocommerce/woocommerce-admin/pull/4929)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-06 12:05:04 +12:00
Sam Seay 0d95facf92 Task list - add a shortcut back to store setup (https://github.com/woocommerce/woocommerce-admin/pull/4853)
Fixes woocommerce/woocommerce-admin#4592

This adds the functionality to support a store setup tab displayed in ActivityPanel. The tab currently just redirects to the home page, rather than implementing the nice-to-haves of displaying the task list in the panel. The reason for this, is that I found it would require significant refactoring of the task list to support this currently.

As part of this I have also refactored rendering of tabs inside into 2 new functional components: <Tabs> and <Tab>. The reason for this is to decompose large untestable components, test them and by virtue of being decomposed they will also be more reusable in future. Ideally would have been refactored to a functional component as well, but it would have been too large a task.
2020-08-06 10:02:24 +12:00
Jeff Stieler 17d79a2d67 Load chunked translation data from language packs. (https://github.com/woocommerce/woocommerce-admin/pull/4937)
* Combine all JSON translation chunks into one file.

* Use WP_Filesystem.

* Handle core WooCommerce text domain when running as a package.
2020-08-05 15:29:05 -04:00
Fernando 6c264a08a0 Added key to generic items in list without one (https://github.com/woocommerce/woocommerce-admin/pull/4936)
This commit adds a key to generic items in list that don't have one

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-08-05 16:01:02 -03:00
Fernando 3873c415cb Replaced prop sent to "CSSTransition" for item key (https://github.com/woocommerce/woocommerce-admin/pull/4924)
This commit replaces a prop sent to the component "CSSTransition" for the item key.

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-08-05 09:16:24 -03:00
Sam Seay 34d8d930b0 Display modal with more info about the new homescreen (https://github.com/woocommerce/woocommerce-admin/pull/4890)
Fixes woocommerce/woocommerce-admin#4590

This implements a paged modal via the Gutenberg Guide component. Some styling adjustment was needed to match the designs exactly.

This also introduces 3 SVG based illustrations for display in the modal. According to this comment there is a need to color them based on the theme at some point, but based on a current lack of requirements for that, I felt that could be done at a separate time (that was suggested in the comment as well).
2020-08-05 12:14:56 +12:00
Jason Conroy b078134073 Add product and category props to mock RecommendedExtensionsItem (https://github.com/woocommerce/woocommerce-admin/pull/4912) 2020-08-04 15:04:27 -07:00
renovate[bot] 5b17866c03 Update dependency @testing-library/jest-dom to v5.11.2 (https://github.com/woocommerce/woocommerce-admin/pull/4872)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-04 16:19:10 +12:00
renovate[bot] b8784a6331 Update dependency @testing-library/react-hooks to v3.4.1 (https://github.com/woocommerce/woocommerce-admin/pull/4873)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-04 16:17:30 +12:00
Sam Seay a52610640f Clean up webpack config and add tsconfig.json (https://github.com/woocommerce/woocommerce-admin/pull/4800) 2020-08-04 15:41:09 +12:00
Paul Sealock 8b80c83b09 Prepare to publish packages (https://github.com/woocommerce/woocommerce-admin/pull/4908)
* get changelogs ready

* bump versions in package.json

* reset stable tag
2020-08-04 15:10:36 +12:00
Jeff Stieler 239b6c95b8 Fix use of Jetpack autoloader. (https://github.com/woocommerce/woocommerce-admin/pull/4920)
* Require the correct autoloader file.

* Include composer file when updating version numbers.

* Add notice for development builds not using JETPACK_AUTOLOAD_DEV.

* Only bump version numbers when preparing a release.
2020-08-04 13:13:48 +12:00
Joshua T Flowers cf66e7984c Allow revisiting of the payments task (https://github.com/woocommerce/woocommerce-admin/pull/4918)
* Allow revisiting of the payments task

* Remove un-used import of getAdminLink

Co-authored-by: Timmy Crawford <timmydcrawford@gmail.com>
2020-08-03 16:05:39 -07:00
Fernando Espinosa 95ce793bc0 Remove new WP 5.5 meta box arrows in the shipping banner (https://github.com/woocommerce/woocommerce-admin/pull/4914) 2020-08-03 15:56:31 -07:00
Timmy Crawford 1855057d25 Onboarding: Change account required text on biz step. (https://github.com/woocommerce/woocommerce-admin/pull/4909) 2020-08-03 15:08:07 -07:00
Timmy Crawford 979251784d Use lifesaver icon instead of gridicon for help panel. (https://github.com/woocommerce/woocommerce-admin/pull/4905) 2020-08-03 14:54:57 -07:00
Fernando a39e6fee62 Added personalization to purchase extension task (https://github.com/woocommerce/woocommerce-admin/pull/4849)
* Added personalization to purchase extension task

This commit adds personalization to purchase extension task

* Removed unnecessary naming fix

This commit removes an unnecessary naming fix

* Corrected param description

* Solved translation problem

* Naming corrected

The method 'getGroupedOnboardingProducts' was given a more accurate name.

* Modified string substitution

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-08-03 16:24:57 -03:00