Albert Juhé Lluveras
bb16ba07c8
Use search box for searches instead of comparisons in Customers table
2018-12-14 14:31:41 +01:00
Jeff Stieler
7cf157077a
Merge pull request woocommerce/woocommerce-admin#1081 from woocommerce/add/currency-input-component
...
Add `TextControlWithAffixes` component
2018-12-13 15:58:42 -07:00
Kevin Killingsworth
a7aed85244
Add column visibility prefs to all tables ( https://github.com/woocommerce/woocommerce-admin/pull/1082 )
...
* Add column prefs to the other tables
This adds column prefs to the other remaining report tables.
* Table columns: Override defaults with user prefs.
* table columns: Add remaining analytics tables
* user read/update operation: Combine responses
This combines the response handling for the read and update operations.
2018-12-13 14:34:23 -06:00
Kevin Killingsworth
11176f7b0e
wc-api: Add user meta for UI preferences ( https://github.com/woocommerce/woocommerce-admin/pull/1057 )
...
* wc-api: Add user meta for UI preferences
This adds wc-api code to store UI preferences and provides one example
of updating the revenue table to save column preferences.
* wc-api user: fix returns of operations to arrays
Before, a function was returning undefined when the resourceNames didn't
include what we wanted for the user operations. This was causing some
console errors.
* ReportTable: use columnPrefsKey
This uses `columnPrefsKey` for the user preferences key instead of some
erroneously hard-coded values.
* Fix formatting/comments
These are a couple of small formatting and comment fixes.
* Replace woocommerce_meta_ prefix with wc_admin_
This changes the prefix for the meta fields for the `woocommerce_meta`
user meta array to be `wc_admin_` which better hints at the purpose of
these settings.
2018-12-13 13:24:54 -06:00
Albert Juhé Lluveras
d9fe77de24
Add autocompleter for customer name
2018-12-13 18:51:48 +01:00
Jeff Stieler
4bfe767ad7
Add TextControlWithAffixes to devdocs listing.
2018-12-12 13:51:25 -07:00
Albert Juhé Lluveras
c0ee524d6b
Remove unnecessary query parameters
2018-12-12 15:51:24 +01:00
Albert Juhé Lluveras
110c4f0f73
Fix missing AOV value
2018-12-12 15:46:40 +01:00
Albert Juhé Lluveras
9b4e7ad963
Extract extendTableData to a utils file
2018-12-12 15:25:36 +01:00
Albert Juhé Lluveras
c679c8bad7
Extend customers data with data from WC endpoint
2018-12-12 15:22:25 +01:00
Justin Shreve
20e202080a
Add Live Data to Reviews Panel ( https://github.com/woocommerce/woocommerce-admin/pull/1055 )
...
* Add Live Data to Reviews Panel
Adds the ability to embed the product in a product review response
* Clean up code needed to embed some product fields.
* Add API response tests
2018-12-12 08:35:56 -05:00
Albert Juhé Lluveras
8ad6ce9f06
Add customers endpoint to wc-api operations ( https://github.com/woocommerce/woocommerce-admin/pull/1061 )
2018-12-12 09:52:50 +08:00
Paul Sealock
fdd60a35ee
Merge pull request woocommerce/woocommerce-admin#1054 from woocommerce/add/customers-advanced-filters
...
Customers: add one advanced filter
2018-12-12 07:33:58 +13:00
Allen Snook
de105648be
Activity Panel: Inbox: Filter update and error notes out of the inbox ( https://github.com/woocommerce/woocommerce-admin/pull/893 )
...
* Filter update and error notes out of the inbox
* Remove redundant trim().
* Fix test for admin notes API type parameter.
2018-12-11 09:00:57 +08:00
Joshua T Flowers
76f3f8605f
Add z-index to admin menu wrap to fix menu overlapping ( https://github.com/woocommerce/woocommerce-admin/pull/1049 )
2018-12-11 08:59:35 +08:00
Paul Sealock
7f00329889
update comments
2018-12-11 11:18:45 +13:00
Paul Sealock
2240d3d713
Customers: add one advanced filter
2018-12-11 09:01:22 +13:00
Albert Juhé Lluveras
d79b490dda
Add Customers Report page ( https://github.com/woocommerce/woocommerce-admin/pull/1018 )
...
* Create Customers Report page
* Hide date range filter if dateRangeFilter.show is false
* Rename dateRangeFilter.show to showDatePicker in filters config
* Add correct key 'average_order_value'
* Fix customers autocompleter not working
2018-12-10 13:26:43 -06:00
Paul Sealock
93a7472e54
REST API: Add stock info to products and variations
2018-12-11 07:19:46 +13: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
Albert Juhé Lluveras
6208fb9f34
Add correct key 'average_order_value'
2018-12-10 16:23:02 +01:00
Jeff Stieler
a8247e8e7e
Remove defunct todo comment about swagger hub endpoint pagination headers.
2018-12-10 08:19:28 -07:00
Albert Juhé Lluveras
93a18be2f0
Rename dateRangeFilter.show to showDatePicker in filters config
2018-12-10 16:18:17 +01: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
d161732c0a
Create Customers Report page
2018-12-06 16:25:31 -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
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
Paul Sealock
ab70ef4099
Chart: Persist orderedKeys between state changes
2018-11-22 13:12:03 +13: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
209a200e78
Fix wrong variable name in Legend tests ( https://github.com/woocommerce/woocommerce-admin/pull/889 )
2018-11-19 14:27:06 -06: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
Albert Juhé Lluveras
ba7d6ef29f
Minor fixes to stores ( https://github.com/woocommerce/woocommerce-admin/pull/868 )
...
* Minor fixes to stores
* Fix 'parameters' typo
2018-11-15 21:32:11 -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
Albert Juhé Lluveras
8997d4ca26
Update chart breakpoints ( https://github.com/woocommerce/woocommerce-admin/pull/838 )
...
* Update chart breakpoints to match the other parts or wc-admin
* Make chart have always the specified height so it matches the legend total label
* Remove obsolete test
* Remove exports no longer needed
* Remove @wordpress/viewport dependency from chart.js
* Update chart docs
* Make tooltipPosition PropType more strict
2018-11-15 09:27:55 -06:00