Commit Graph

1352 Commits

Author SHA1 Message Date
Albert Juhé Lluveras 6ca0c628b2 Connect Downloads report to REST API (https://github.com/woocommerce/woocommerce-admin/pull/1238)
* Connect downloads chart and table to REST API

* Display date picker in Downloads report

* Fix missing value for 'days' in Downloads table summary

* Fix download_count being a string instead of a number

* Minor date packages comment fixes

* Fix filters in Downloads report

* Add back empty line

* JSDoc comments style fixes

* Fix username filter not working

* Fix days counter off by 1

* Fix alignment issue
2019-01-07 12:54:42 +01:00
Albert Juhé Lluveras 3a90c07e76 Fix date issues introduced in woocommerce/woocommerce-admin#1203 (https://github.com/woocommerce/woocommerce-admin/pull/1229)
* Revert "Show today charts up to the current hour (https://github.com/woocommerce/woocommerce-admin/pull/1203)"

This reverts commit 029ff9cc9c.

* Add current hour to timestamp of queries ending in today

* Fix getCurrentDates not returning moment objects as specified in the docs but returning string dates

* Set appendTimestamp( ..., 'now') seconds to 00

* Add test for appendTimestamp( ..., 'now' )

* Don't accept string dates in 'appendTimestamp'

* Fix 'moment' dependency deprecation warning
2019-01-07 11:41:46 +01:00
Albert Juhé Lluveras b08e604047 Fix bar chart in narrow viewports (https://github.com/woocommerce/woocommerce-admin/pull/1226)
* Fix bar chart in narrow viewports

* Make date width depend on the number of columns

* Return early in 'shouldBeCompact' and 'getWidth' functions

* Hide tooltip when scrolling
2019-01-07 11:41:01 +01:00
Albert Juhé Lluveras b91cfd2cc6 Split `d3chart/utils.js` into several files (https://github.com/woocommerce/woocommerce-admin/pull/1231)
* Split d3chart/utils.js

* Add format comment to breakpoints.js
2019-01-04 11:21:42 +01:00
Paul Sealock 3cd27ed631 Merge pull request woocommerce/woocommerce-admin#1127 from woocommerce/renovate/major-wordpress-monorepo
Update wordpress monorepo (major)
2019-01-04 14:34:30 +13:00
Paul Sealock d6c5f47ee1 jest update 2019-01-04 14:26:55 +13:00
Paul Sealock c75777cd11 add variable now used in button's scss 2019-01-04 14:00:28 +13:00
Paul Sealock 5a4f6185d6 Merge pull request woocommerce/woocommerce-admin#1216 from woocommerce/fix/date-range-dow
DateRange: use DayOfWeek from moment locale
2019-01-04 13:30:59 +13:00
Paul Sealock 17a21e00db DateRange: use DayOfWeek from moment locale{ 2019-01-04 11:50:05 +13:00
Paul Sealock 8867166556 Merge pull request woocommerce/woocommerce-admin#1221 from woocommerce/renovate/lerna-3.x
Update dependency lerna to v3.8.4
2019-01-04 11:45:25 +13:00
Jeff Stieler a8e81b709f Fix type in textContent() test case label. 2019-01-03 13:13:23 -07:00
Jeff Stieler f2df49ce24 Add tests for textContent(). 2019-01-03 13:13:22 -07:00
Jeff Stieler 1935e75f5c Render descriptive screen reader text for SearchFilter and SelectFilter components. 2019-01-03 13:13:22 -07:00
Jeff Stieler 850a738289 NumberFilter: don’t hide anything from accessibility tree, render descriptive span for screen reader instead of using speak(). 2019-01-03 13:13:22 -07:00
Jeff Stieler 7663cb2881 NumberFilter: a11y speak a description of the filter once all inputs are populated. 2019-01-03 13:13:21 -07:00
Jeff Stieler cbc5bc36fd NumberFilter: remove dynamic legend text, just use “add” label. 2019-01-03 13:13:21 -07:00
Jeff Stieler 3528957923 NumberFilter: automatically hide non-interpolated strings in title label from accessibility tree. 2019-01-03 13:13:20 -07:00
Jeff Stieler ed81b35d0a Rework NumberFilter screen reader text.
Only describe full filter if all values are set. Describe each input more precisely. Based on conversation here: https://github.com/woocommerce/wc-admin/pull/1089#discussion_r241843856
2019-01-03 13:13:20 -07:00
Justin Shreve e3e9ccb6a4 Add `reports/downloads/stats` REST API Endpoint (https://github.com/woocommerce/woocommerce-admin/pull/1142)
* First pass at downloads REST API

* Add reports/downloads/stats endpoint.

* Add tests

* Update cache key
2019-01-03 13:00:48 -05:00
Albert Juhé Lluveras f5e2c8c5f9 Fix chart legend checkboxes not reacting to clicks (https://github.com/woocommerce/woocommerce-admin/pull/1213) 2019-01-03 13:00:37 +01:00
Renovate Bot 1e74730baf Update wordpress monorepo 2019-01-03 10:45:22 +00:00
Albert Juhé Lluveras 4419faea45 Add margin to inline search tags (https://github.com/woocommerce/woocommerce-admin/pull/1227) 2019-01-03 09:36:31 +01:00
Joshua T Flowers 28c0d292a8 Update dashboard charts on query change (https://github.com/woocommerce/woocommerce-admin/pull/1209)
* Update dashboard charts on query change

* Remove state derived props
2019-01-03 10:51:45 +08:00
Joshua T Flowers 06ed650954 Add chart loading spinner while data is being requested (https://github.com/woocommerce/woocommerce-admin/pull/1212) 2019-01-03 10:51:21 +08:00
Renovate Bot 6d45a38907 Update dependency lerna to v3.8.4 2019-01-03 02:02:12 +00:00
Paul Sealock b097cd3316 Merge pull request woocommerce/woocommerce-admin#1224 from woocommerce/renovate/webpack-4.x
Update dependency webpack to v4.28.3
2019-01-03 14:55:22 +13:00
Paul Sealock b97eb434d2 Merge pull request woocommerce/woocommerce-admin#1220 from woocommerce/renovate/husky-1.x
Update dependency husky to v1.3.1
2019-01-03 14:54:12 +13:00
Paul Sealock b5401ff540 Merge pull request woocommerce/woocommerce-admin#1126 from woocommerce/renovate/wordpress-monorepo
Update wordpress monorepo
2019-01-03 14:50:34 +13:00
Renovate Bot 49baee6319 Update dependency webpack to v4.28.3 2019-01-03 01:06:47 +00:00
Renovate Bot 7521b3770d Update wordpress monorepo 2019-01-03 14:03:56 +13:00
Renovate Bot f33444601e Update dependency husky to v1.3.1 2019-01-03 01:02:24 +00:00
Paul Sealock d2476d650c Merge pull request woocommerce/woocommerce-admin#1206 from woocommerce/release/0.4.0
Release/0.4.0
2019-01-03 13:59:24 +13:00
Paul Sealock f8df315c27 Merge pull request woocommerce/woocommerce-admin#1222 from woocommerce/renovate/marked-0.x
Update dependency marked to v0.6.0
2019-01-03 12:49:44 +13:00
Timmy Crawford a1887eb4d7 Prepping for 0.4.0 2019-01-03 12:32:00 +13:00
Paul Sealock 812cb17bd5 Merge pull request woocommerce/woocommerce-admin#1215 from woocommerce/fix/date-range-focus-endDate
DateRange: change focusInput prop on input focus
2019-01-03 10:48:51 +13:00
Paul Sealock 37fe2eda00 Merge pull request woocommerce/woocommerce-admin#1219 from woocommerce/renovate/eslint-plugin-react-7.x
Update dependency eslint-plugin-react to v7.12.1
2019-01-02 16:02:08 +13:00
Paul Sealock ede9adda32 Merge pull request woocommerce/woocommerce-admin#1223 from woocommerce/fix/search-css-tags
Fix/search css tags
2019-01-02 15:54:06 +13:00
Renovate Bot f112ddfbaa Update dependency eslint-plugin-react to v7.12.1 2019-01-02 02:51:54 +00:00
Paul Sealock c6b466694c DateRange: change focusInput prop on input focus 2019-01-02 15:46:40 +13:00
Paul Sealock 1401bc1bd1 Search: make certain styles just for inlineTags 2019-01-02 15:44:53 +13:00
Paul Sealock 7bb9265383 Merge pull request woocommerce/woocommerce-admin#1217 from woocommerce/fix/css-lint-errors
CSS lint: fix errors
2019-01-02 15:37:35 +13:00
Renovate Bot 9ae31a6d60 Update dependency marked to v0.6.0 2019-01-02 01:47:50 +00:00
Paul Sealock 49fe2c1f93 CSS lint: fix errors 2019-01-02 12:38:11 +13:00
Albert Juhé Lluveras da8c49c90f Update chart interval thresholds (https://github.com/woocommerce/woocommerce-admin/pull/1214) 2019-01-01 23:30:28 +01:00
Paul Sealock 5bf4d95acc Merge pull request woocommerce/woocommerce-admin#1207 from woocommerce/renovate/lock-file-maintenance
Lock file maintenance
2019-01-01 11:30:38 +13:00
Renovate Bot 2e0468083d Lock file maintenance 2018-12-31 06:55:16 +00:00
Timmy Crawford 78ca63a72d Dashboard: Add Leaderboard Component (https://github.com/woocommerce/woocommerce-admin/pull/1198)
* Create Leaderboard component. Update Top Selling Products to use it.

* Use date picker values in Top Selling Products.

* Convert top selling products tests into leaderboard tests

* Updates per feedback.

* Skipping failing test for now.
2018-12-31 14:42:46 +08:00
Joshua T Flowers 7bbdd78bde Add missing intervals to product reports (https://github.com/woocommerce/woocommerce-admin/pull/1200)
* Add missing intervals to product reports

* Fix failing tests for product stats API

Before and after query should be within today's date since missing intervals for other days will be filled in with remaining dates.
2018-12-31 13:20:22 +08:00
Albert Juhé Lluveras 029ff9cc9c Show today charts up to the current hour (https://github.com/woocommerce/woocommerce-admin/pull/1203)
* Show today charts up to the current hour

* Fix tests

* Fix doc comment
2018-12-28 10:10:40 -08:00
Joshua T Flowers 2d5e592a10 Update chart button active state for dashboard charts (https://github.com/woocommerce/woocommerce-admin/pull/1202)
* Update chart button active state for dashboard charts

* Add default active state when no query is present
2018-12-28 09:59:05 -08:00