Commit Graph

1049 Commits

Author SHA1 Message Date
Paul Sealock 500f161798 Merge pull request woocommerce/woocommerce-admin#987 from woocommerce/add/stock-info-products-variations
Add stock info to Products Report
2018-12-11 07:37:00 +13:00
Paul Sealock 93a7472e54 REST API: Add stock info to products and variations 2018-12-11 07:19:46 +13:00
Justin Shreve 569947fb0e Remove lodash noConflict (https://github.com/woocommerce/woocommerce-admin/pull/1053) 2018-12-10 11:48:19 -05:00
Albert Juhé Lluveras bb3e66ef32 Fix wrong default data structure in 'getReportTableData' (https://github.com/woocommerce/woocommerce-admin/pull/1042)
* Fix wrong default data structure in 'getReportTableData'

* Update tests

* Change default prop for tableData from null to an empty object in ReportTable
2018-12-10 09:51:11 -06:00
Jeff Stieler 4cd01a3b3b Merge pull request woocommerce/woocommerce-admin#1006 from woocommerce/fix/856-typeerror-interval-over-100-days
Use `wc-api` for Reports.
2018-12-10 08:26:42 -07:00
Jeff Stieler a8247e8e7e Remove defunct todo comment about swagger hub endpoint pagination headers. 2018-12-10 08:19:28 -07:00
Jeff Stieler 25f63b0404 Merge pull request woocommerce/woocommerce-admin#1040 from woocommerce/fix/979-devdocs-console-errors
Fix console errors in DevDocs
2018-12-10 08:15:44 -07:00
Jeff Stieler 7291a880eb Update filter component examples with real usage from Orders report.
Also resolves JS errors that were occurring.
2018-12-07 17:07:15 -07:00
Jeff Stieler 71e210d1f8 Fix missing key warning on TableCard devdocs example. 2018-12-07 16:47:30 -07:00
Jeff Stieler d0066f0a60 Add support for “variations” Report Items type. 2018-12-07 16:39:44 -07:00
Jeff Stieler be74e22a01 Remove unnecessary variable and rename Report Items selectors for consistency. 2018-12-07 16:39:44 -07:00
Jeff Stieler e3362ddcde Update report utils tests to use wc-api. 2018-12-07 16:39:44 -07:00
Jeff Stieler 7aeb69916a Fix swagger hub requests from wc-api (url vs. path). 2018-12-07 16:39:43 -07:00
Jeff Stieler d28eb0bcc9 Consider pre-flight wc-api requests to be “requesting”. 2018-12-07 16:39:43 -07:00
Jeff Stieler 16f24a31ba Hook up ReportTable to wc-api. 2018-12-07 16:39:42 -07:00
Jeff Stieler 47703fa9b9 Remove debug logging, restore RevenueReportTable component. 2018-12-07 16:39:42 -07:00
Jeff Stieler 98478653e4 Attempt to include report stats type in resource name prefix rather than identifier. 2018-12-07 16:39:42 -07:00
Jeff Stieler de1da53aaa Use wc-api for Report Chart data. 2018-12-07 16:39:41 -07:00
Jeff Stieler c8a76d6dc0 Use fresh-data/wc-api for revenue report table. 2018-12-07 16:39:41 -07:00
Jeff Stieler 0d6cd1a776 Add report stats to the `wc-api` spec. 2018-12-07 16:39:40 -07:00
Jeff Stieler cfd4462941 Allow nested objects in the `getResourceName()` identifier. 2018-12-07 16:39:40 -07:00
Jeff Stieler 736d927ead Add fresh-data backed report stats operations and selectors. 2018-12-07 16:39:40 -07:00
Kevin Killingsworth acfe2d28ae withSelect: fix for multiple select() calls (https://github.com/woocommerce/woocommerce-admin/pull/1037)
* withSelect: fix for multiple select() calls

This fixes a problem with a fresh-data store implementation that was
cancelling out previous requirements when mapSelectToProps
select( 'wc-api' ) was called more than once.

* wc-api: Only clear if no requirements selected.

Small update to only clear out a component's requirements if withSelect
returns without any requirements.
2018-12-07 17:04:52 -06:00
Albert Juhé Lluveras a393ba543b Fix ReportNumber sometimes receiving NaN values (https://github.com/woocommerce/woocommerce-admin/pull/1026)
* Fix ReportNumber sometimes receiving NaN values

* Remove unnecessary utils function

* Destructure summaryData
2018-12-07 15:13:02 -06:00
Albert Juhé Lluveras 3a9beb238e Add missing comma to chart tooltip label (https://github.com/woocommerce/woocommerce-admin/pull/1021) 2018-12-07 11:47:30 -06:00
Timmy Crawford 46c8518fe1 Add/tax report filters/924 (https://github.com/woocommerce/woocommerce-admin/pull/1017)
* Add comparison filter to tax reports

* Extract tax code function to utils

* Filter tax code strings and add priority
2018-12-06 17:18:46 -05:00
Justin Shreve 8d4b0fcc07 Fix Activity Panel on existing WooCommerce pages (https://github.com/woocommerce/woocommerce-admin/pull/1004)
* Fix Activity Panel on embedded pages

* Fix comment typo
2018-12-06 17:08:40 -05:00
Timmy Crawford 7f35fe7ed1 Update/php sniffs (https://github.com/woocommerce/woocommerce-admin/pull/1016)
* Use WooCommerce Sniffs 0.0.5

* Updated phpcs.xml.dist to use the correct PHPCS rules
2018-12-06 09:31:02 -08:00
Kevin Killingsworth 8bb3175172 Table Component: Update showcols to use keys (https://github.com/woocommerce/woocommerce-admin/pull/971)
* component/table: Update showcols to use keys

This updates the table component to use keys to keep track of which
columns should be visible instead of column indices. This will be
necessary for keeping track of which columns were selected after a
component has been unmounted and re-mounted again later. (e.g. for
persistence or saving of user preferences)

* components/table: Add changelog entry
2018-12-05 16:30:01 -06:00
Albert Juhé Lluveras 96d930b119 Fix Orders table summary display 'order' in singular when it should be plural (https://github.com/woocommerce/woocommerce-admin/pull/1003) 2018-12-05 15:54:52 -06:00
Jeff Stieler c170e289f5 Merge pull request woocommerce/woocommerce-admin#853 from woocommerce/add/711-bump-notes
Activity Panel: Inbox: Bump notes for expiring subs at certain days-remaining thresholds
2018-12-05 13:40:04 -07:00
Kevin Killingsworth a6993f4709 Update @fresh-data/framework to 0.5.1 (https://github.com/woocommerce/woocommerce-admin/pull/997) 2018-12-05 10:52:49 -06:00
Robert Elliott ed32544c06 Merge pull request woocommerce/woocommerce-admin#944 from woocommerce/try/chart-package-part-2
Component: add external d3chart package
2018-12-05 12:57:16 +02:00
Robert Elliott ca28c42ead separate legend styling out 2018-12-05 12:50:07 +02:00
Robert Elliott c9ccc015ca move chart and d3chart components into @woocommerce/components package 2018-12-05 12:50:04 +02:00
Joshua T Flowers 5d3c771d45 Trigger sync_order on order stats table when refunding (https://github.com/woocommerce/woocommerce-admin/pull/990) 2018-12-05 10:10:22 +08:00
Joshua T Flowers 755b9c94f7 Reduce order table net revenue by refund total (https://github.com/woocommerce/woocommerce-admin/pull/988)
* Reduce order table net revenue by refund total

* Use order utils to get refund total
2018-12-05 10:06:00 +08:00
Joshua T Flowers 9e1cb88dfa Add filters for order tables column headers/rows (https://github.com/woocommerce/woocommerce-admin/pull/781)
* Add filters for order tables column headers/rows

* Move filters inside rows

* Rename filter constants

* Apply filters directly to rows

* Rename Orders table filter to be more consistent with core

* Filter entire reports table
2018-12-05 09:44:32 +08:00
Albert Juhé Lluveras e1fd72d06b Fix 'categories' value in Categories report table summary (https://github.com/woocommerce/woocommerce-admin/pull/995)
* Add table summary to Revenue report

* Fix 'categories' value in Categories report table summary
2018-12-04 13:29:58 -06:00
Albert Juhé Lluveras 98289b32c9 Add table summary to Revenue report (https://github.com/woocommerce/woocommerce-admin/pull/994) 2018-12-04 13:28:18 -06:00
Justin Shreve cf8d2bd6b0 Ignore PHPUnit updates in renovate (https://github.com/woocommerce/woocommerce-admin/pull/993) 2018-12-04 14:05:29 -05:00
Albert Juhé Lluveras 2387908ab6 Move activity-card CSS inside the activity-card directory (https://github.com/woocommerce/woocommerce-admin/pull/984) 2018-12-04 10:01:43 -06:00
renovate[bot] 0e92e03027 chore(deps): update dependency webpack to v4.27.0 (https://github.com/woocommerce/woocommerce-admin/pull/992) 2018-12-04 10:28:47 -05:00
renovate[bot] 19aad73f03 Update dependency autoprefixer to v9.4.2 (https://github.com/woocommerce/woocommerce-admin/pull/976) 2018-12-04 10:05:09 -05:00
Peter Fabian 22fa3f5b05 Merge pull request woocommerce/woocommerce-admin#943 from woocommerce/fix/749
Adding support for advanced filters in orders reports.
2018-12-04 12:19:51 +01:00
Peter Fabian 1c8459244a Merge branch 'master' into fix/749
# Conflicts:
#	includes/data-stores/class-wc-admin-reports-products-data-store.php
2018-12-04 12:07:43 +01:00
Peter Fabian 670801cee8 Merge pull request woocommerce/woocommerce-admin#978 from woocommerce/fix/PHP52-compat
Fixed PHP 5.2 compatibility
2018-12-04 12:00:37 +01:00
Paul Sealock 74f3f6b027 Merge pull request woocommerce/woocommerce-admin#975 from woocommerce/fix/products-extended-info
REST API: Group extended_info for /reports/products
2018-12-04 13:14:43 +13:00
Paul Sealock bf0e025b05 REST API: isolate extened info in /reports/products 2018-12-04 13:01:36 +13:00
Albert Juhé Lluveras 093b6d9ec0 Use ReportTable in Revenue report (https://github.com/woocommerce/woocommerce-admin/pull/982)
* Use ReportTable in RevenueTable component

* Convert 'query.per_page' to an integer before using it as a prop
2018-12-03 18:00:13 -06:00