Commit Graph

1209 Commits

Author SHA1 Message Date
Peter Fabian 48dfb54a48 Switched average order value from gross to net revenue (https://github.com/woocommerce/woocommerce-admin/pull/1158)
* Switched Average order value calculation from gross to net revenue.

* Updated tests to reflect switch of average order value from gross to net revenue.
2018-12-26 15:49:46 -08:00
Timmy Crawford 1ed9813e3b Chart: Fix/current of undefined (https://github.com/woocommerce/woocommerce-admin/pull/1153)
* Add undefined check for this.listRef

* Update changelog
2018-12-26 09:27:24 -08:00
renovate[bot] a4434e3e67 Pin dependency babel-plugin-transform-es2015-template-literals to 6.22.0 (https://github.com/woocommerce/woocommerce-admin/pull/1178) 2018-12-26 15:21:54 +08:00
renovate[bot] ce3d895c27 Update dependency grunt-wp-i18n to v1.0.3 (https://github.com/woocommerce/woocommerce-admin/pull/1173) 2018-12-26 15:21:04 +08:00
renovate[bot] fc6057184b Update dependency lerna to v3.8.0 (https://github.com/woocommerce/woocommerce-admin/pull/1175) 2018-12-26 15:19:54 +08:00
renovate[bot] b22c2f6c83 Update dependency webpack to v4.28.2 (https://github.com/woocommerce/woocommerce-admin/pull/1177) 2018-12-26 13:55:29 +08:00
renovate[bot] 48c90fc5b9 Update dependency husky to v1.2.1 (https://github.com/woocommerce/woocommerce-admin/pull/1174) 2018-12-26 13:49:42 +08:00
renovate[bot] eea6ef7314 Update dependency css-loader to v2.1.0 (https://github.com/woocommerce/woocommerce-admin/pull/1171) 2018-12-26 13:46:24 +08:00
Joshua T Flowers ab310320dd Fix ie11 blank screen by babel transforms (https://github.com/woocommerce/woocommerce-admin/pull/1170)
* Add specific vendor packages to babel loader to fix ie11 transforms

* Remove unused buble
2018-12-26 10:46:32 +08:00
Joshua T Flowers c747d3399e Use unbounded per_page limit in apiFetch for categories (https://github.com/woocommerce/woocommerce-admin/pull/1149) 2018-12-26 10:37:02 +08:00
Joshua T Flowers f88311b372 Check for product categories before loading value (https://github.com/woocommerce/woocommerce-admin/pull/1164)
* Check for product categories before loading value

* Filter product category list for undefined values

* Remove unnecessary double check of productCategories
2018-12-25 18:28:37 +08:00
Albert Juhé Lluveras f51dba44a0 Charts: fix weird Y-axis ticks when max Y value is a small number (https://github.com/woocommerce/woocommerce-admin/pull/1168) 2018-12-25 11:16:52 +01:00
Albert Juhé Lluveras 1ca1dba3e7 Add Categories report filters (https://github.com/woocommerce/woocommerce-admin/pull/1167)
* Add Categories report filters

* Remove the option to sort categories by name, given that it's not supported by the endpoint
2018-12-25 10:28:20 +01:00
Joshua T Flowers 024d267ae6 Set minimum content height to prevent cutoff of absolute content (https://github.com/woocommerce/woocommerce-admin/pull/1166)
* Set minimum content height to prevent cutoff of absolute content

* Add admin bar height vars for SCSS and apply them
2018-12-25 12:34:24 +08:00
Joshua T Flowers 7cf9e293e1 Fix margin on dashboard block charts (https://github.com/woocommerce/woocommerce-admin/pull/1165) 2018-12-25 11:02:23 +08:00
Joshua T Flowers dcaa35c7bf Add product SKU to products report (https://github.com/woocommerce/woocommerce-admin/pull/1161)
* Add product SKU to products report

* Add tests for SKU data
2018-12-25 11:02:06 +08:00
Joshua T Flowers bdcebd7ea3 Clear filter query on removing all items (https://github.com/woocommerce/woocommerce-admin/pull/1162) 2018-12-25 11:01:39 +08:00
Albert Juhé Lluveras 5c8cfbc03f Report components docs (https://github.com/woocommerce/woocommerce-admin/pull/1140)
* Extend docs to report components

* Improve inline documentation in some files

* Update doc files

* Undo unnecessary doc changes

* Remove unnecessary line breaks in sidebar

* Rename 'Client components' to 'Analytics components'

* Minor docs fixes

* Rename toc contents to toc sections

* Update endpoint props doc to add an example and more information

* Fix outdated comment

* Fix merge error
2018-12-22 12:46:10 +01:00
Joshua T Flowers 9a4e613a2e Make user column preferences refer to hidden columns (https://github.com/woocommerce/woocommerce-admin/pull/1150)
* Make user column preferences refer to hidden columns

* Destructure props in onColumnsChange
2018-12-22 10:27:30 +08:00
renovate[bot] dfc7d8ae1b Update dependency core-js to v2.6.1 (https://github.com/woocommerce/woocommerce-admin/pull/1128) 2018-12-21 20:03:41 -06:00
Justin Shreve 579113910d Add remaining filters to the downloads report (https://github.com/woocommerce/woocommerce-admin/pull/1141)
* Add order number, username, and IP address filters to the downloads report.

* Adds tests
2018-12-21 16:40:41 -08:00
Robert Elliott ebd857cefa Add/chart dashboard block (https://github.com/woocommerce/woocommerce-admin/pull/1002)
* added new block and dashboard charts

section title and filters... lots of duplicate keys

toggle chart types in block heading

* Updates per feedback.

* Add some documentaiton about new interactive prop on chart/legend

* Revert a few files that only had whitespace changes.
2018-12-21 16:24:26 -08:00
Justin Shreve 49a0f0f6d2 Add `reports/downloads` REST API endpoint. (https://github.com/woocommerce/woocommerce-admin/pull/1122)
* First pass at downloads REST API

* Handle PR feedback
2018-12-21 14:57:46 -08:00
Joshua T Flowers 56577101c4 Add customer numeric filters (https://github.com/woocommerce/woocommerce-admin/pull/1116)
* Add customer numeric filters

* Add between params to customers controller

* Escape strings for translation and change inputs to currency

* Add Currency shorthand filter
2018-12-21 12:07:54 +08:00
Joshua T Flowers f83b0e0615 Add product categories wc-api and breadcrumbs (https://github.com/woocommerce/woocommerce-admin/pull/1131)
* Add support for product cats in wp rest api

* Add categories to WC API

* Add category breadcrumbs component

* Increase per_page limit size for product cat API

* Use wc/v3 API to pull product categories

* Return category IDs in API

* Add categories to product reports

* Add category IDs test for REST API

* Switch to getResource instead of require for total count selector
2018-12-21 10:44:27 +08:00
Paul Sealock 47b674ace2 Merge pull request woocommerce/woocommerce-admin#1069 from woocommerce/update/calendar-component-inline-picker
Add Single Date Picker
2018-12-21 15:25:54 +13:00
renovate[bot] 69a11b50e4 Update dependency autoprefixer to v9.4.3 (https://github.com/woocommerce/woocommerce-admin/pull/1125) 2018-12-20 20:20:05 -06:00
Paul Sealock c76ceb2591 DatePicker: cleanup example, propTypes 2018-12-21 15:19:10 +13:00
Joshua T Flowers 716ebc0658 Hook up coupons to REST API (https://github.com/woocommerce/woocommerce-admin/pull/1112) 2018-12-21 10:13:57 +08:00
Paul Sealock 524bb0c96f DateRangeFilterPicker 2018-12-21 11:58:01 +13:00
Paul Sealock 46c313cdc7 REST API: Categories: optimize query by removing get_the_terms 2018-12-21 11:08:08 +13:00
renovate[bot] 4e68b56fdc Update dependency css-loader to v2.0.1 (https://github.com/woocommerce/woocommerce-admin/pull/1129)
* Update dependency css-loader to v2.0.1

* http -> https
2018-12-20 13:25:36 -06:00
Joshua T Flowers 5bab0767b6 Fix item refunds report data (https://github.com/woocommerce/woocommerce-admin/pull/1059)
* Fix product report data issue when issuing item refund

* Modify product order lookup stats when refund is given

* Remove products where orders are refunded

* Remove unused  var and add comment about early return

* Reduce product revenue if quantity still remains after refund

* Fix subtotal array key and abs value for float

* Change product_gross_revenue to product_net_revenue
2018-12-21 02:40:44 +08:00
renovate[bot] 3718692ad6 Update babel monorepo (https://github.com/woocommerce/woocommerce-admin/pull/1124) 2018-12-20 09:56:02 -06:00
Albert Juhé Lluveras 1cb7378f76 Fix Tag misalignment inside Search in Firefox (https://github.com/woocommerce/woocommerce-admin/pull/1132) 2018-12-20 10:06:52 +01:00
Paul Sealock 280e78cf01 Merge pull request woocommerce/woocommerce-admin#1134 from woocommerce/fix/variations-query-params
Variations Table: add product, variations query params
2018-12-20 14:19:06 +13:00
renovate[bot] 01a8fe9741 Pin dependency replace to 1.0.1 (https://github.com/woocommerce/woocommerce-admin/pull/1118) 2018-12-19 17:54:33 -06:00
Kelly Dwan 867b51a18e Add Accessibility section to the PR template (https://github.com/woocommerce/woocommerce-admin/pull/1133) 2018-12-19 17:33:02 -05:00
Paul Sealock eebc20e293 Variations Table: add product, variations query params 2018-12-20 08:43:35 +13:00
Peter Fabian dff8b63271 Merge pull request woocommerce/woocommerce-admin#1010 from woocommerce/fix/845
Added /reports/coupons and /reports/coupons/stats endpoints
2018-12-19 13:55:28 +01:00
Peter Fabian 4802736a0e Switched from using coupon code filter to coupon id filter by query parameter. 2018-12-19 13:37:54 +01:00
Albert Juhé Lluveras 5f593d663e Downloads Report: add summary number, chart and table (https://github.com/woocommerce/woocommerce-admin/pull/1113)
* Downloads Report: add summary number, chart and table

* Use template literal for Downlodas table link

* Add columnPrefsKey to Downloads report table
2018-12-19 12:18:43 +01:00
Albert Juhé Lluveras 776e8d31fe Merge pull request woocommerce/woocommerce-admin#1085 from woocommerce/add/name-filter-autocompleter
Customers report: Name Advanced Filter
2018-12-19 10:39:22 +01:00
Timmy Crawford eab3592d67 Update npm versions and build script (https://github.com/woocommerce/woocommerce-admin/pull/1120)
* Use publish from-package.

* chore(release): publish

 - @woocommerce/components@1.3.0
 - @woocommerce/csv-export@1.0.1
 - @woocommerce/date@1.0.3
2018-12-18 17:25:26 -08:00
Joshua T Flowers 08d3e2c38d Change product_gross_revenue to product_net_revenue (https://github.com/woocommerce/woocommerce-admin/pull/1105)
* Change product_gross_revenue to product_net_revenue

* Change product_gross_revenue to product_net_revenue in category data store

* Change to net_revenue in frontend category report
2018-12-19 08:56:27 +08:00
Jeff Stieler a96272a5fe Merge pull request woocommerce/woocommerce-admin#1119 from woocommerce/fix/1115-number-filter-uncontrolled-warning
Fix “uncontrolled input” warning in NumberFilter component.
2018-12-18 16:34:39 -07:00
Jeff Stieler 6f773e7537 Merge pull request woocommerce/woocommerce-admin#1039 from woocommerce/fix/807-getsettings-deprecated
Remove use of deprecated @wordpress/date getSettings()
2018-12-18 16:24:41 -07:00
Kevin Killingsworth 0a1542c1cc Add section on "Dev Docs" (https://github.com/woocommerce/woocommerce-admin/pull/1123)
* Add section on "Dev Docs"

This adds information on what the devdocs are and how to view them.

* Fix components link

* Add docsify serve docs option

* Remove npx serve bit
2018-12-18 16:49:30 -06:00
Jeff Stieler 8ee2267209 Update @woocommerce/date package changelog and version number. 2018-12-18 15:46:48 -07:00
Jeff Stieler 26b6255ca3 Remove defunct `getSettings()` from devdocs example. 2018-12-18 15:46:47 -07:00
Jeff Stieler 7bc46d2c8c Fix loadLocaleData() tests, remove superfluous moment-js tests. 2018-12-18 15:46:47 -07:00
Jeff Stieler 9581a658f5 Add expected locale settings to JS test setup. 2018-12-18 15:46:46 -07:00
Jeff Stieler 3285ac4980 Include Date component required settings in app-wide settings object instead of using experimental retrieval from @wordpress/date. 2018-12-18 15:46:46 -07:00
Jeff Stieler 4d37bdc67c @wordpress/date getSettings() is deprecated, use __experimentalGetSettings() instead. 2018-12-18 15:45:41 -07:00
renovate[bot] c706b8e133 Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/1104)
* Lock file maintenance

* package-lock.json: http -> https
2018-12-18 16:26:48 -06:00
Kevin Killingsworth e72a696429 Add nvmrc for newest lts release (https://github.com/woocommerce/woocommerce-admin/pull/1108)
This adds an .nvmrc file which points to the latest lts release of node.
For those people who use nvm, this will keep them current on the latest
stable version.
2018-12-18 16:06:27 -06:00
Justin Shreve f18dbe373c Fix dataEndpoints notice (https://github.com/woocommerce/woocommerce-admin/pull/1095) 2018-12-18 16:08:32 -05:00
Paul Sealock 15bbbe739d Hook up Categories table to endpoint 2018-12-19 08:36:42 +13:00
Timmy Crawford 3c2cdc4322 Fix error on dashboard. (https://github.com/woocommerce/woocommerce-admin/pull/1121)
* Fix error on dashboard.

* Revert changes from woocommerce/woocommerce-admin#1101
2018-12-18 11:32:25 -08:00
Jeff Stieler 92c96b834e Fix “uncontrolled input” warning in NumberFilter component. 2018-12-18 09:01:30 -07:00
Kevin Killingsworth 600cfd899a Add fix for npm install https issue (https://github.com/woocommerce/woocommerce-admin/pull/1109)
We've been running afoul of a known npm issue that has existed for over
6 months, where our package-lock.json file switches between http: and
https: on several dependencies:

https://npm.community/t/some-packages-have-dist-tarball-as-http-and-not-https/285/17

Since npm itself always uses https as noted in the ticket above, this
change forces all dependencies in the package-lock.json file to be
https, therefore eliminating the churn on our package-lock.json files
each time we run `npm install`.
2018-12-18 09:00:41 -06:00
Albert Juhé Lluveras 9adf2c6c86 Merge pull request woocommerce/woocommerce-admin#1117 from woocommerce/add/1030-customer-username-filter
Add customer username filter to Customers page
2018-12-18 15:55:53 +01:00
Albert Juhé Lluveras 3a1890c22c Remove unnecessary variable assignment 2018-12-18 15:06:06 +01:00
Albert Juhé Lluveras c4290f757e Merge branch 'master' into add/name-filter-autocompleter 2018-12-18 13:52:48 +01:00
Albert Juhé Lluveras 3c876fedf1 Filter missing parts of the name before displaying it 2018-12-18 13:46:24 +01:00
Albert Juhé Lluveras 741a0098fd Add placeholder to customers table searchbox 2018-12-18 13:35:58 +01:00
Albert Juhé Lluveras a836d1a89b Add customer username filter to Customers page 2018-12-18 12:11:45 +01:00
Albert Juhé Lluveras 03adb993c9 Use <Link> instead of <a> for Orders table link 2018-12-18 10:44:43 +01:00
Albert Juhé Lluveras 9ef07a41b6 Merge pull request woocommerce/woocommerce-admin#1075 from woocommerce/add/extend-customers-data-from-endpoint
Extend customers table data with data from WC endpoint
2018-12-18 09:30:03 +01:00
Peter Fabian 85e6e8df8d Added correct cache handling. 2018-12-18 12:01:42 +08:00
Peter Fabian 6c456657e8 Changed coupon_gross_discount to amount. 2018-12-18 12:01:42 +08:00
Peter Fabian f0b97a42b0 Changed data type in schema for dates to date-time. 2018-12-18 12:01:41 +08:00
Peter Fabian db8004aaf7 PHPCS fixes. 2018-12-18 12:01:41 +08:00
Peter Fabian 28f6f7ece5 PHPCS changes so that I will be able to merge master into this branch.
Otherwise I get errors during merge commit.
2018-12-18 12:01:41 +08:00
Peter Fabian 46bf4bedc8 Added basic tests for coupons and coupons/stats. 2018-12-18 12:01:40 +08:00
Peter Fabian 21ac75d21e Made extended_info always appear in coupons endpoint. 2018-12-18 12:01:40 +08:00
Peter Fabian 3e45c6a82c Fixed invalid sort criterion for coupons endpoint. 2018-12-18 12:01:39 +08:00
Peter Fabian 3535f52d78 Removed interval parameter for coupons endpoint. 2018-12-18 12:01:39 +08:00
Peter Fabian 6950522f91 Removed timezone info that was added incorrectly 2018-12-18 12:01:39 +08:00
Peter Fabian a346f13beb Added extended info. 2018-12-18 12:01:38 +08:00
Peter Fabian 5eee869a74 Added small fixes to set up coupon endpoints. 2018-12-18 12:01:38 +08:00
Peter Fabian 1630cb9c6f Removed unsupported parameter from coupons endpoint. 2018-12-18 12:01:18 +08:00
Peter Fabian 357b8f914a Added query classes and data stores for coupons and coupons/stats. 2018-12-18 12:01:17 +08:00
Peter Fabian e273d055ef Moved functions from orders data store to allow code reuse. 2018-12-18 12:00:33 +08:00
Joshua T Flowers 9486ab7896 Update/taxes endpoint hookup/941 (https://github.com/woocommerce/woocommerce-admin/pull/1008)
* Hook up taxes to endpoint

* Hook up tax stats endpoint

* Add default tax stat totals for empty results

* Create subtotals from intervals in API

* Change orders to orders_count to keep consistent naming
2018-12-18 10:26:46 +08:00
Justin Shreve 5924be5fa2 Add base downloads report page (https://github.com/woocommerce/woocommerce-admin/pull/1106) 2018-12-17 15:50:45 -05:00
Justin Shreve e42ad6956b Add customer email filter (https://github.com/woocommerce/woocommerce-admin/pull/1092)
* Add customer email filter

* Handle PR feedback: Fix up if statement and add extra info to validation comment
2018-12-17 11:20:11 -05:00
Albert Juhé Lluveras f819f762c4 Update docs 2018-12-17 12:22:58 +01:00
Albert Juhé Lluveras c341137a1b Store shouldRenderTags in a variable 2018-12-17 12:21:17 +01:00
Albert Juhé Lluveras d8bf42fc4d Typo 2018-12-17 12:20:23 +01:00
Albert Juhé Lluveras 501842a421 Rename 'isError' methods to 'getError' when they return an object instead of a boolean 2018-12-15 13:38:54 +01:00
Albert Juhé Lluveras 77381c0e20 Rename isError to getError in report table props 2018-12-15 13:15:13 +01:00
Albert Juhé Lluveras 41c48126bf Rename isGetCustomersError to getCustomersError 2018-12-15 13:09:47 +01:00
Jeff Stieler 08c31151b4 Merge pull request woocommerce/woocommerce-admin#1089 from woocommerce/add/1028-advanced-numerical-value-filter
Add Advanced Numerical Value Filter
2018-12-14 18:02:16 -07:00
Albert Juhé Lluveras e4fb53b8f8 Stock report (https://github.com/woocommerce/woocommerce-admin/pull/977)
* Create Stock report

* Create Stock report page

* Display product name in Stock table

* Hide 'Parent' column in Stock table

* Add stock to endpoints map

* Remove dateRangeFilter.show from ReportFilters

* Fix stock status link

* Set the default order to 'stock_quanity'

* Add correct name to StockReport
2018-12-14 15:58:08 -08:00
Albert Juhé Lluveras f9533afdda Rename 'totalCount' to 'totalResults' (https://github.com/woocommerce/woocommerce-admin/pull/1093) 2018-12-14 15:56:52 -08:00
Jeff Stieler 6eadf9c875 NumberFilter: rename “more than” and “less than” to represent a non-positional input range for “between” rules, simplify rule change logic. 2018-12-14 16:53:13 -07:00
Timmy Crawford 88b81beac0 Updating changelogs for npm release. (https://github.com/woocommerce/woocommerce-admin/pull/1088)
* Updating changelogs for npm release.

* Adding in a few more changelog items.
2018-12-14 10:44:24 -08:00
Jeff Stieler fea292125d Fix import path for formatCurrency(). 2018-12-14 11:26:11 -07:00
Albert Juhé Lluveras 346ed578ae Update comment to specify extendItemsMethodNames must be available in 'wc-api' 2018-12-14 18:12:56 +01:00