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
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
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
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
Robert Elliott
c9ccc015ca
move chart and d3chart components into @woocommerce/components package
2018-12-05 12:50:04 +02: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
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
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
Peter Fabian
1acb9827e7
Merge branch 'master' into fix/749
...
# Conflicts:
# includes/data-stores/class-wc-admin-reports-products-data-store.php
2018-12-03 16:21:04 +01:00
Albert Juhé Lluveras
bda7d0a6ee
Use ReportTable in Orders report ( https://github.com/woocommerce/woocommerce-admin/pull/968 )
...
* Use ReportTable in Orders report
* Get totalCount from hte X-WP-Total header
* Order props alphabetically
* Cleanup report table 'tableData' prop
* Use short-circuit evaluation
2018-12-02 21:40:57 -06:00
Paul Sealock
da4dea57be
Variations: Add endopoint repsonse to table data
2018-12-03 12:16:43 +13:00
Albert Juhé Lluveras
293d58615d
Add screen reader labels to table headers ( https://github.com/woocommerce/woocommerce-admin/pull/964 )
...
* Add screen reader labels to tables
* Add missing propType
2018-11-30 14:44:02 -06:00
Kevin Killingsworth
847131c6c9
Add wc-api and "Fresh Data" ( https://github.com/woocommerce/woocommerce-admin/pull/833 )
...
* data: Add @fresh-data/framework to package.json
* data: Add fresh-data and replace orders in table
This PR adds fresh-data with a WooCommerce API spec to fulfill order
information. It then replaces the existing selectors for the orders
table with the new selectors as a proof-of-concept.
* wc-api: Add temporary code for `withSelect`
This adds temporary code for a `withSelect` function outside of
`@wordpress/data` until the context PR is merged:
https://github.com/WordPress/gutenberg/pull/11460
* wc-api: Update fresh-data to 0.5.0
2018-11-29 09:57:49 -06:00
Albert Juhé Lluveras
540a191b57
Use X-WP-Total header to set the total number of items in tables ( https://github.com/woocommerce/woocommerce-admin/pull/952 )
...
* Use X-WP-Total header to set the total number of items in tables
* Improve naming
* Improve tests
* Make getReportItems() return a 'data' property by default
* Make getSummary prop behavior more clear
2018-11-29 08:03:04 -06:00
Paul Sealock
47291b3873
Filters: code -> coupon in config
2018-11-29 09:29:12 +13:00
Albert Juhé Lluveras
5fe5dbe5cd
Categories table ( https://github.com/woocommerce/woocommerce-admin/pull/903 )
...
* Merge table stores
* Add Categories table
* Add numberFormat to non-currency numbers displayed to the user in the Categories Table
* Rename 'Coupons' to 'Categories' in Categories table title
* Update Categories table to use the ReportTable
2018-11-27 10:44:03 -08:00
Albert Juhé Lluveras
0cbe3034d8
Merge report tables ( https://github.com/woocommerce/woocommerce-admin/pull/928 )
...
* Merge report tables
* Remove unnecessary semicolon
* Improve sorting of variables
* Rename props to tableProps in ReportTable
2018-11-26 08:01:20 -06:00
Albert Juhé Lluveras
b84fce8580
Add Summary to Products table ( https://github.com/woocommerce/woocommerce-admin/pull/904 )
...
* Add Summary to Products table
* Use numberFormat() in tables summary
2018-11-25 21:41:56 -06:00
Albert Juhé Lluveras
0acc43a551
Use numberFormat() to format all non-currency numbers in tables ( https://github.com/woocommerce/woocommerce-admin/pull/913 )
2018-11-25 21:31:38 -06:00
Albert Juhé Lluveras
2057741853
Merge table stores ( https://github.com/woocommerce/woocommerce-admin/pull/896 )
2018-11-22 17:12:12 -06:00
Paul Sealock
77589bae6f
Merge pull request woocommerce/woocommerce-admin#902 from woocommerce/fix/chart-placeholder
...
Chart: persist orderedKeys when requesting data
2018-11-23 09:57:45 +13:00
Paul Sealock
7d65df783c
Chart: Persist orderedKeys between state changes
2018-11-23 09:49:28 +13:00
Albert Juhé Lluveras
56d3a69d13
Default charts to 'time-comparison' ( https://github.com/woocommerce/woocommerce-admin/pull/905 )
...
* Default charts to 'time-comparison'
* Fix broken test in ReportChart
2018-11-22 07:03:35 -06:00
David Levin
c3275fd4c9
Update order of summary numbers and remove product count
2018-11-21 20:52:24 -07:00
Robert Elliott
fe66aa9623
updated tests remove layout
2018-11-21 16:41:09 +02:00
Robert Elliott
24758bc80d
squashed commits for chart packaging
...
expand formatting function to xFormats
adding getTooltipValueFormat
remove old chart examples
remove magic numbers and use variables
refactor getTooltipRowValue
update package-lock
allow function formatters and use @wordpress/elements
2018-11-21 16:10:56 +02:00
Albert Juhé Lluveras
2a95345bb9
Add chartMode property to filters configuration ( https://github.com/woocommerce/woocommerce-admin/pull/884 )
...
* Add chartMode property to filters configuration
* Add tests
* Cleanup
* Add chartMode propType to filters
2018-11-20 16:21:47 -06:00
Paul Sealock
67c7dabc29
Add Variations table
2018-11-20 13:42:55 +13:00
Paul Sealock
38264239fc
Merge pull request woocommerce/woocommerce-admin#824 from woocommerce/add/product-detail-link
...
Add/product detail link
2018-11-20 13:14:34 +13:00
Paul Sealock
b7acbd9b2f
Add Product Detail link in table
2018-11-20 12:57:36 +13:00
Paul Sealock
0d59998625
Persist chart settings
2018-11-20 12:55:30 +13:00
Albert Juhé Lluveras
9938707970
Add Taxes report table ( https://github.com/woocommerce/woocommerce-admin/pull/881 )
...
* Add Taxes report table
* Add taxes autocompleter to Search
* Minor fixes
* Improve @TODO comment explanation
2018-11-19 09:55:15 -06:00
Jonathan Belcher
f167c27b5e
Adds UI wiring for Coupons chart and summary ( https://github.com/woocommerce/woocommerce-admin/pull/724 )
...
* Adds UI wiring for Coupons chart and summary
* Update for changes in master
* Update to use current method
* Remove accidental paste
* Fix typo
* Seperate WooCommerce deps
2018-11-16 08:39:29 -05:00
Jonathan Belcher
8ddcb7ce4a
Adds UI wiring for Catgories chart and summary ( https://github.com/woocommerce/woocommerce-admin/pull/725 )
...
* Adds UI wiring for Catgories chart and summary
* Use new format for charts
* Use swagger api
* Get rid of store references
* Final touch ups
* Seperate out WooCommerce dep
2018-11-16 08:33:58 -05:00
Albert Juhé Lluveras
cc86233e0f
Add Coupons report table ( https://github.com/woocommerce/woocommerce-admin/pull/867 )
...
* Add Coupons report table
* Fix propTypes warning in CouponsReportTable
* Remove unnecessary constructors from tables
2018-11-15 21:35:10 -06:00
Kelly Dwan
2a9cb6509b
Build: Move components to packages dir ( https://github.com/woocommerce/woocommerce-admin/pull/804 )
...
* Move components to packages folder
* Update documentation generator to handle packages/components and client/components
* Update component locations
* Update CSS build process
* Remove react-dates css, this is already included by gutenberg
* Fix CSS style - single quotes
* Fix incorrect imports
* Update package-lock with new dependencies
* Update component locations for devdocs
* Fix location of tests
2018-11-15 13:16:23 -05:00
Jonathan Belcher
2dbe3e8cc7
Adds UI wiring for Taxes chart and summary ( https://github.com/woocommerce/woocommerce-admin/pull/779 )
...
* Adds UI wiring for Taxes chart and summary
* Update to latest method for creating summary/chart
* Switch out API for swagger
* Fix copy pasta
* Implement swagger api
* Update config to match swagger API
* Code review fixes
* Remove store code as it isnt used
2018-11-14 16:04:59 -05:00
Paul Sealock
c809fa6cb9
Apply onQueryChange to more than just 'filter'
2018-11-14 09:56:39 +13:00
Albert Juhé Lluveras
5033a1ba5c
Update comparison chart design and show it on the Product report ( https://github.com/woocommerce/woocommerce-admin/pull/816 )
...
* Display comparison chart in Product detail report
* Make legend to overflow in comparison charts
* Show comparison chart also when comparing products
* Update comparison chart legend design
* Send itemsLabel and comparisonChart as props to the ReportChart component
* Update styles and create a legend.scss file
* Minor cleanup
* Fix legend test
* Sort props alphabetically
2018-11-12 15:41:33 -06:00
Jonathan Belcher
bccae052ae
Refactor to remove products chart.js ( https://github.com/woocommerce/woocommerce-admin/pull/799 )
...
* Refactor to remove products chartjs
* Delete chartjs
* Fix copy pasta error
2018-11-12 11:28:03 -05:00
Jonathan Belcher
e49997381b
Refactor to remove revenue chartjs ( https://github.com/woocommerce/woocommerce-admin/pull/800 )
...
* Refactor to remove revenue chartjs
* Update index.js
* Remove extra line
2018-11-12 11:27:19 -05:00
Jonathan Belcher
c102e78523
Creates a helper function to get selected chart ( https://github.com/woocommerce/woocommerce-admin/pull/794 )
...
* Creates a helper function to get selected chart
* remove console log
* Make sure charts is never empty
* Clarify docs
2018-11-07 12:19:59 -05:00
Jonathan Belcher
ffee7cc841
Moves charts to config to delete chart.js ( https://github.com/woocommerce/woocommerce-admin/pull/793 )
2018-11-07 11:38:34 -05:00
Paul Sealock
50e635e716
Add Variations autocompleter
2018-11-05 17:43:59 -05:00