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
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
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
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
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
Jeff Stieler
d605ecd74e
Order data: fix isGetOrdersRequesting() for the first request.
...
Ensure a boolean return from isGetOrdersRequesting() and handle cases where requests haven’t taken off or responses haven’t been received yet.
2018-12-03 11:55:04 -07:00
Jeff Stieler
a7b30d9779
Orders panel: use fresh-data instead of @wordpress/data.
2018-12-03 11:05:14 -07:00
Jeff Stieler
251c943b2a
Orders panel: translate fulfillment button text on order card.
2018-12-03 08:53:30 -07:00
Jeff Stieler
44b77c8e06
Orders panel: link fulfillment button to order edit page.
2018-12-03 08:53:29 -07:00
Jeff Stieler
96eddcd1eb
Orders panel: only show “processing” status orders.
2018-12-03 08:53:29 -07:00
Jeff Stieler
77842d8551
Orders panel: display error if order fetching fails.
2018-12-03 08:53:29 -07:00
Jeff Stieler
84be615778
Add loading placeholder to orders panel.
2018-12-03 08:53:28 -07:00
Jeff Stieler
4f6346e068
Order panel card style - weighted title, collapse icon column.
2018-12-03 08:53:28 -07:00
Jeff Stieler
d18de54c35
Update order panel card title line to match latest design.
2018-12-03 08:53:28 -07:00
Jeff Stieler
a055f1a829
Connect orders panel to data store.
...
Modeled after the reviews panel.
2018-12-03 08:53:27 -07: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
Albert Juhé Lluveras
9b0c767749
Make sure D3Base always updates when width changes ( https://github.com/woocommerce/woocommerce-admin/pull/961 )
...
* Make sure D3Base always updates when props change
* Fix JS error when resizing the window
* d3Chart cleanup
* Update tests
* Update d3Base also when drawChart prop changes
* Save height and width without margins in params
* Remove resize listeners inside d3Base
* Remove unused param
2018-11-29 19:01:00 -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
c65709f2db
Fix false positives in Reports stats resolvers ( https://github.com/woocommerce/woocommerce-admin/pull/955 )
2018-11-28 13:08:53 -06: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
Robert Elliott
0a134d2d53
Merge pull request woocommerce/woocommerce-admin#910 from woocommerce/fix/chart-empty-data
...
Bug: noticed a new NaN error caused by attempt to draw chart with empty data
2018-11-27 11:39:40 +02: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
Robert Elliott
2ac101f1c2
fix check on this.props.data
2018-11-26 12:04:37 +02: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
e4f05f31cb
Make ChartPlaceholder have the same height than the resulting Chart ( https://github.com/woocommerce/woocommerce-admin/pull/908 )
...
* Make ChartPlaceholder have the same height than the resulting Chart
* Update Chart docs
2018-11-23 07:54:53 -06:00
Robert Elliott
427d0ac7dd
combine isRequesting and check that there is data
2018-11-23 10:31:50 +02: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
Albert Juhé Lluveras
23d032d675
Remove unnecessary IF in reports/utils.js ( https://github.com/woocommerce/woocommerce-admin/pull/909 )
2018-11-22 14:49:52 -06:00
Paul Sealock
7d65df783c
Chart: Persist orderedKeys between state changes
2018-11-23 09:49:28 +13:00