Commit Graph

107 Commits

Author SHA1 Message Date
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
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
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
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
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