Commit Graph

16 Commits

Author SHA1 Message Date
Timmy Crawford 652fdd8be1 Add support for different report components, and create revenue report component. 2018-06-14 13:15:11 -07:00
Kelly Dwan aabd74b15d Check user permissions before manipulating submenu (https://github.com/woocommerce/woocommerce-admin/pull/106) 2018-06-08 13:11:24 -04:00
Kelly Dwan 29136ce44c Show real orders in the sidebar orders tab (https://github.com/woocommerce/woocommerce-admin/pull/105)
* Add an activity list component which will fetch and display the respective tabs’ content

* Add currency and order calculation helpers from Calypso

* Add date support to ActivityCard

* Fix the product label when there’s only 1 product

* Only display the orders on the orders tab

* Remove demo component

* PR feedback

- Switch to function components
- Check isLoading for showing loading state
- use v3 of WC API
- Remove getOrderShippingMethod (it’s not a tax-related function)
- Switch to array.reduce
- Add `|| 0` protect to all possible API-based calculations
2018-06-07 12:05:22 -04:00
Justin Shreve 59cb071aa2 Expand WP notices with header toggle (https://github.com/woocommerce/woocommerce-admin/pull/101)
* Display WP notices behind a button

* Expand WP notices inline when the WP toggle is clicked

* Update setState calls

* Fix string display when only 1 notice is present

* Remove display:none that snuck in during rebase
2018-06-04 10:25:41 -04:00
Kelly Dwan b0bcce86d8 Add CSS naming conventions following Gutenberg’s standards (https://github.com/woocommerce/woocommerce-admin/pull/99)
* Add CSS naming conventions following Gutenberg’s standards

* Update `woo-dashboard` to `woocommerce-layout`

* Update admin notice container to new classname standard
2018-06-01 10:35:18 -04:00
Justin Shreve e110283997 Set document title (https://github.com/woocommerce/woocommerce-admin/pull/79)
* Set the document title based on header sections

* Set dashboard default title via PHP to avoid a title switch
2018-05-24 12:03:03 -04:00
Justin Shreve ab4b0b16ed Fix notifications JS error & masterbar menu CSS (https://github.com/woocommerce/woocommerce-admin/pull/74) 2018-05-23 12:40:10 -04:00
Justin Shreve 7b0d0b1fed Update wp-admin navigation structure (https://github.com/woocommerce/woocommerce-admin/pull/70)
* Updates wp-admin navigation structure: Dashboard is now under WooCommerce, and Analytics is moved visually under WooCommerce

* Fix focus padding issue and make sure arrow displays for the current submenu
2018-05-22 15:59:32 -04:00
Justin Shreve e5bb7e556b Add routing capabilities with basic analytics page (https://github.com/woocommerce/woocommerce-admin/pull/44)
* Add routing capabilities with basic analytics page

* Pass query string to child component
2018-05-15 11:06:15 -04:00
Justin Shreve 1dbf44ef55 Hide notices on woo-dash pages (https://github.com/woocommerce/woocommerce-admin/pull/36) 2018-05-11 13:07:53 -04:00
Justin Shreve 41d9f7c524 Implement header component (https://github.com/woocommerce/woocommerce-admin/pull/26)
* Implements a header component with breadcrumbs

* Handle PR Feedback. Also moves admin URL to an object, and adds a README

* README: Card --> Header typo
2018-05-10 14:35:55 -04:00
Kelly Dwan 19733a3049 Fix dependencies of scripts & styles 2018-05-08 10:40:39 -04:00
Kelly Dwan ea2d3e8d5c Update build destinations for JS and CSS, including global library namespace 2018-05-07 11:10:42 -04:00
Justin Shreve 17f9db1a96 Add optional file parameter to woo_dash_dir_path (https://github.com/woocommerce/woocommerce-admin/pull/11) 2018-05-07 09:38:13 -04:00
Justin Shreve 5ab120c910 Add the ability to use withAPIData (https://github.com/woocommerce/woocommerce-admin/pull/2) 2018-05-03 10:15:36 -04:00
Kelly Dwan 05dacbe212 Add an admin page, build a simple component + filters 2018-04-19 16:40:32 -04:00