Commit Graph

205 Commits

Author SHA1 Message Date
Joshua T Flowers d29d674768 Onboarding: Add reminder to complete profiler (https://github.com/woocommerce/woocommerce-admin/pull/3524)
* Add note to complete profiler

* Add note actions

* Update note to actioned when profiler is marked complete

* Update note to actioned client-side when completing profiler
2020-01-10 09:36:30 +08:00
Ron Rennick d657613888 add privacy erasure via woocommerce hook (https://github.com/woocommerce/woocommerce-admin/pull/3511)
* add privacy erasure via woocommerce hook

Co-Authored-By: Joshua T Flowers <joshuatf@gmail.com>
2020-01-09 09:07:16 -04:00
Joshua T Flowers 90112354b1 Update historical data notice to actioned on import (https://github.com/woocommerce/woocommerce-admin/pull/3539)
* Add hook for regenerating data init

* Set note to actioned on data import

* Update note status on client-side import start
2020-01-09 10:11:39 +08:00
Joshua T Flowers d96a8b88b4 Update broken note action hooks (https://github.com/woocommerce/woocommerce-admin/pull/3535)
* Update action hooks to use new prefix

* Update error prefixes for notes
2020-01-09 10:10:29 +08:00
Joshua T Flowers da9421692f Onboarding: Add option to track appearance completion (https://github.com/woocommerce/woocommerce-admin/pull/3503)
* Add option to track appearance completion

* Disable proceed button if no logo and not dirty state
2020-01-09 10:05:03 +08:00
Ron Rennick d1f198b21f Sync refactor tweaks (https://github.com/woocommerce/woocommerce-admin/pull/3504)
* add check for in progress actions

* add check for AS get_date() function

* incorporate review feedback

* remove unnecessary else
2020-01-08 09:53:05 -04:00
Jeff Stieler 76e5483cf2 Release 0.24.0 (https://github.com/woocommerce/woocommerce-admin/pull/3520)
* Bump version.

* Add changelog entries.

* Update tested to.
2020-01-07 10:54:05 -05:00
Timmy Crawford 41986bd8f0 Analytics: Change Refunds to Returns (https://github.com/woocommerce/woocommerce-admin/pull/3514)
* Change Refunds to Returns

* Also rename the chart

* Rename dashboard chart
2020-01-03 15:12:53 -08:00
Joshua T Flowers af5022c3d1 Reports sync refactor (https://github.com/woocommerce/woocommerce-admin/pull/3285) 2020-01-03 00:00:37 +08:00
Joshua T Flowers a2bff95a4a Onboarding: Redirect the user to the task list if referer is wccom checkout (https://github.com/woocommerce/woocommerce-admin/pull/3495) 2020-01-02 10:30:12 +08:00
Jeff Stieler e93a2abcf9 Tag version 0.23.3 (https://github.com/woocommerce/woocommerce-admin/pull/3475)
* Bump plugin version.

* Add changelog entry.
2019-12-31 11:18:36 -08:00
Joshua T Flowers 700cf7bb2d Onboarding: Add purchase products task list item (https://github.com/woocommerce/woocommerce-admin/pull/3472)
* Add an array of installed plugins to wcSettings

* Don't include already installed plugins in cart items

* Move cart modal component

* Add purchase task and modal to task list

* Rename ambiguous task getter method

* Remove modal purchase later prop

* Show completed product purchase task item after purchase

* Don't show cart modal if all items previously purchased
2019-12-31 16:50:45 +08:00
Joshua T Flowers 52c81230c3 Onboarding: Install free themes during profiler (https://github.com/woocommerce/woocommerce-admin/pull/3484)
* Add theme name to theme activation response

* Install and activate theme on choose in profiler

* Only auto install free themes and not currently active themes

* Move getPriceValue to dashboard utils

* Don't add free themes to the cart
2019-12-30 18:11:50 +08:00
Joshua T Flowers 3da148156e Onboarding: Add theme install and activation endpoints (https://github.com/woocommerce/woocommerce-admin/pull/3482)
* Add API endpoint to install themes

* Add API endpoint to activate a theme

* Add an array of allowed themes and sanitize slugs

* Limit allowed themes to already installed or free themes

* Add theme installation tests

* Add tests for theme activation

* Add onboarding theme installation and activation tests

* Remove unused argument in onboarding plugins API
2019-12-30 15:47:15 +08:00
Timmy Crawford 44748bb16e Onboarding: Add another option to platforms. (https://github.com/woocommerce/woocommerce-admin/pull/3471)
* Onboarding: Add another option to platforms.

* Add revenue question for other woo store.

* Add new option value to REST enum.
2019-12-27 08:30:59 -08:00
Joshua T Flowers 986703686e Onboarding: Add in tracks for failed plugin installation (https://github.com/woocommerce/woocommerce-admin/pull/3483) 2019-12-27 07:20:52 +08:00
Jeff Stieler b742c132da Invalidate API caches when updating analytics settings. (https://github.com/woocommerce/woocommerce-admin/pull/3465) 2019-12-26 17:50:30 -05:00
Paul Sealock 402294c500 DataStores: normalize contexts to plural (https://github.com/woocommerce/woocommerce-admin/pull/3419)
* DataStores: normalize contexts to plural

* downloads_stats
2019-12-26 11:50:52 +13:00
Jeff Stieler c28b6d9f2c Fix DB version retrieval default value. (https://github.com/woocommerce/woocommerce-admin/pull/3473)
Value should be null if not set.
2019-12-24 13:19:08 -05:00
Justin Shreve 5068282b7b Add purchase modal at the end of the profile wizard (https://github.com/woocommerce/woocommerce-admin/pull/3444)
* Add purchase modal to confirm intent before cart redirect

* Handle PR feedback: Fix comment on getProductIdsForCart, move cart modal to open on theme page (which rewrites the mark completed functionality), fix CSS display, Add busy stsate to redirect to cart button

* Fix some minor naming issues and add a busy state on thee later link
2019-12-20 07:58:38 -05:00
Jeff Stieler 747618cb2d Bump version to 0.23.2. (https://github.com/woocommerce/woocommerce-admin/pull/3453)
* Update version to 0.23.2.

* Add changelog entries.
2019-12-20 07:24:49 -05:00
Jeff Stieler 162a8cd550 Allow report caching layer to be filtered off. (https://github.com/woocommerce/woocommerce-admin/pull/3434)
* Add filter to conditionally disable report caching.

* Disable caching for Orders Stats unit tests.

Fixes the display of the last query when tests fail.
2019-12-17 16:21:44 -05:00
Jeff Stieler 79ad163a3a Fix user data fields filter name. (https://github.com/woocommerce/woocommerce-admin/pull/3428)
Missed in woocommerce/woocommerce-admin#3339.
2019-12-17 08:36:22 -05:00
Jeff Stieler 7804d010ed Add moment dependency to script registration. (https://github.com/woocommerce/woocommerce-admin/pull/3429)
Our app and packages expect momentjs as an external.
2019-12-17 08:35:51 -05:00
Paul Sealock 9a4369d984 Bump minimum WP version to 5.3 (https://github.com/woocommerce/woocommerce-admin/pull/3393)
* Bump minimum WP version

* Bump min WP version in main README.
2019-12-13 10:05:41 -05:00
Ron Rennick 4f71ae79a9 update customer rest controller for last active date in local time (https://github.com/woocommerce/woocommerce-admin/pull/3388) 2019-12-10 16:46:17 -04:00
Justin Shreve 1acd567e76 Default the Calypso environment to production (https://github.com/woocommerce/woocommerce-admin/pull/3347) 2019-12-10 14:36:45 -05:00
Justin Shreve a0e47e8dfd Add a button to continue setup after importing products (https://github.com/woocommerce/woocommerce-admin/pull/3402) 2019-12-10 14:28:19 -05:00
Ron Rennick d1b356919c don't load analytics dashboard for users without needed capability (https://github.com/woocommerce/woocommerce-admin/pull/3386)
* don't load analytics dashboard for users without needed capability

* add helper function
2019-12-10 10:04:39 -04:00
Joshua T Flowers df172f4592 Onboarding: Reduce number of queries needed to update logo (https://github.com/woocommerce/woocommerce-admin/pull/3397)
* Add stylesheet and themeMods to settings and remove customLogo

* Remove queries to get current stylesheet and thememods
2019-12-10 11:08:44 +07:00
Paul Sealock 6a92ccb932 Release/0.23.1 (https://github.com/woocommerce/woocommerce-admin/pull/3395)
* release changes 0.23.0

* check onboarding function

* version bumps

* fix package.json typo

* fix version typo
2019-12-10 08:02:09 +13:00
Paul Sealock 557cf0fbc4 release changes 0.23.0 (https://github.com/woocommerce/woocommerce-admin/pull/3371) 2019-12-10 07:30:38 +13:00
Ron Rennick fe0aaaa8ab Add/disable plugin filter (https://github.com/woocommerce/woocommerce-admin/pull/3361)
* add filter to allow WC Admin to be disabled

* update filter name
2019-12-06 13:13:28 -04:00
Ron Rennick ba30224098 Stardardize hooks (https://github.com/woocommerce/woocommerce-admin/pull/3339)
* rename woocommerce_reports_* hooks/filters to woocommerce_analytics_*

* introduce woocommerce_navigation_ filter prefix

* update remaining wc_admin_* filters/hooks

* phpcs sniff fixes for notes data store

* standardize woocommerce_note_ hook prefix

* one of filter renames

* update contributing readme, onboarding unit test

* missed _notes_ -> _note_ filter

* update ext example hooks
2019-12-06 12:06:11 +13:00
Paul Sealock 8205112732 Add currency extension (https://github.com/woocommerce/woocommerce-admin/pull/3328)
* Add currency extension

* use wcSettings

* save

* get revenue working

* all reports

* remove error log

* better rename

* add column

* persist queries

* go back to individual hooks

* comments

* address feedback
2019-12-06 11:38:26 +13:00
Ron Rennick 0c5c0f1571 add filter to allow WC Admin to be disabled (https://github.com/woocommerce/woocommerce-admin/pull/3350) 2019-12-04 19:44:49 -04:00
Ron Rennick cd6c81ae22 account for time change when calculating next day start (https://github.com/woocommerce/woocommerce-admin/pull/3333) 2019-12-04 19:44:20 -04:00
Justin Shreve 4e4d6b265a Remove extra debug information (https://github.com/woocommerce/woocommerce-admin/pull/3336) 2019-12-04 08:16:20 -05:00
Joshua T Flowers 81599c5178 Check if extended_info is set for order report items (https://github.com/woocommerce/woocommerce-admin/pull/3315) 2019-11-29 09:22:18 +08:00
Paul Sealock 3f13793e66 DB Updates: invalidate cache after update (https://github.com/woocommerce/woocommerce-admin/pull/3299) 2019-11-29 09:55:23 +13:00
Ron Rennick d6c77de3cd make customer order count consistent between customer and stats (https://github.com/woocommerce/woocommerce-admin/pull/3290)
* make customer order count consistent between customer and stats

* add phpcs ignore for date()

* move reused SQL logic to variables
2019-11-28 12:58:46 -04:00
Joshua T Flowers deeeacd3a5 Include out of stock products in low_in_stock product filter (https://github.com/woocommerce/woocommerce-admin/pull/3310) 2019-11-28 13:41:58 +08:00
Justin Shreve 50cc3edaed Update onboarding filters with a consistent prefix (https://github.com/woocommerce/woocommerce-admin/pull/3295)
* Update onboarding filters with a consistent prefix

* Rename woocommerce_onboarding_payments to match the other task list options
2019-11-25 11:15:22 -05:00
Justin Shreve c8f9d7673c Fix notices and display issues that can occur when a WCCOM product api request fails (https://github.com/woocommerce/woocommerce-admin/pull/3291) 2019-11-25 10:35:35 -05:00
David Levin 52cb35f4de Correcting and clarifying analytics terms and calculations (https://github.com/woocommerce/woocommerce-admin/pull/3104)
* Relabel Net Revenue to Net Sales, revert previous refund work on Gross revenue and rename to total sales. Update the orer of all the things

* Add gross sales calculation to revenue stats endpoint.

* Restore coupon_total when updating order stats.

* Wire up gross sales to revenue report.

* Fix revenue report refunds calculation when there are no refunds.

* update net sales labels and cases in order, product and category tables

* Subtract refunded shipping and taxes from gross sales.

* pluses to minuses to fix the gross revenue and refund totals when refunding

* Add gross_sales to revenue stats orderby enum.

* Change refund labels to Returns

* Remove usage of defunct coupon_total column.

* Store refunded amount in stats table.

* Rename "gross_total" column to "total_sales".

* Net total for refund orders can be used instead of a new column.

* Rename gross_revenue to total_sales.

* Coalesce coupons total in order stats query.

SUM()ing all nulls gives null, not zero.

* Use segmentation selections to backfill missing data.

Fo when report columns and segmentation columns don't match.

* Remove errant gross_sales from expected interval test data.

* Fix gross sales tests for revenue/stats.

* Move missing segment fills back to their original locations.

* Fix remaining tests failing because of gross sales.

* Fix db upgrade function rename of gross_total column.

* Fix linter errors.
2019-11-22 10:06:14 -05:00
Justin Shreve 631ffe240f Onboarding - Add extra plugin debug to plugin installation (https://github.com/woocommerce/woocommerce-admin/pull/3272)
* Add extra plugin debug to plugin installation

* Add additional debug
2019-11-21 10:22:49 -05:00
Paul Sealock 1f4e2fcdfe Use same wp-components version in bundle (https://github.com/woocommerce/woocommerce-admin/pull/3253)
* Use same wp-components version in bundle

* turn off short array rule
2019-11-21 09:36:44 +13:00
Joshua T Flowers 6bb8015cf2 Filter invalid statuses from saved statuses (https://github.com/woocommerce/woocommerce-admin/pull/3268) 2019-11-20 22:52:24 +08:00
Paul Sealock 790e5f59d3 Allow core inclusion via Package.php (https://github.com/woocommerce/woocommerce-admin/pull/3196)
* Create GH tag release process

Add core to the release

no need to re-run docs

simplify build command

add gh release script

fix errant comment

fix errant comment

force add feature-config.php

gitattributes

moar attributes

add language files

* Make sure initalization via Core is working
2019-11-20 12:23:27 +13:00
Jeff Stieler f8fa7b6bc7 Fetch autocomplete countries from the API rather than wcSettings object. (https://github.com/woocommerce/woocommerce-admin/pull/3262) 2019-11-19 14:17:15 -05:00