Commit Graph

4177 Commits

Author SHA1 Message Date
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
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