Albert Juhé Lluveras
5dcea1af6f
Remove wc-api customers ( https://github.com/woocommerce/woocommerce-admin/pull/1338 )
2019-01-17 19:07:21 +01:00
Paul Sealock
836cccafb8
Merge pull request woocommerce/woocommerce-admin#1327 from woocommerce/fix/filter-width-wide-screens
...
Filters: make 1/4 width for wiiiiiiide screens
2019-01-18 07:01:17 +13:00
Paul Sealock
3ba676ac57
Merge pull request woocommerce/woocommerce-admin#1305 from woocommerce/fix/date-query-formats
...
Advanced Filters: append time stamp to dates for API query
2019-01-18 07:00:40 +13:00
Timmy Crawford
508c48042c
chore(release): publish ( https://github.com/woocommerce/woocommerce-admin/pull/1326 )
...
- @woocommerce/components@1.4.0
- @woocommerce/csv-export@1.0.2
- @woocommerce/date@1.0.5
2019-01-17 09:11:49 -08:00
Jeff Stieler
7a0243e6d7
Use store currency settings to initialize D3 format.
2019-01-17 10:08:15 -07:00
Jeff Stieler
25e81de952
Decode HTML entities in currency symbol and price format for use on the frontend.
...
The only alternative is to `dangerouslySetInnerHTML` everywhere.
2019-01-17 09:21:03 -07:00
Peter Fabian
25bb5e06df
Factor out the segmentation code so that it's more reusable and clutters orders/stats data store less.
2019-01-17 12:14:24 +01:00
Albert Juhé Lluveras
4d2ee738d0
Set eslint react version to 'detect' ( https://github.com/woocommerce/woocommerce-admin/pull/1300 )
2019-01-17 10:25:08 +01:00
Albert Juhé Lluveras
0cda85b997
Add missing thousands separator in charts Y-axis ( https://github.com/woocommerce/woocommerce-admin/pull/1312 )
2019-01-17 10:18:28 +01:00
Jeff Stieler
6ed8ea117a
Refactor formatCurrency() to use store settings for formatting rather than store locale.
2019-01-17 00:04:57 -07:00
Jeff Stieler
ddae6d3955
Add currency symbol to orders endpoint response.
2019-01-17 00:01:09 -07:00
Joshua T Flowers
da22cbdc9d
Update returning customer data to use customer ID ( https://github.com/woocommerce/woocommerce-admin/pull/1180 )
...
* Change check for returning customers to check customer_id
* Count distinct returning and new customers in totals
* Fix priority action misplacement and order date timestamp
* Change expected num returning/new customers to fix failing tests
Previously these included references to number of returning vs new orders. Update to refer to the newly updated customer count.
* Use new get_customer_id_by_user_id() to get customer ID
* Fix 0 returning customers expectation
* Move returning customer function to order stats data store
* Sync order stats on order delete
* Change date compare for is_returning_customer
* Add test case for returning customer order
* Add references to instead of 2
2019-01-17 10:47:30 +08:00
Jeff Stieler
858ec82e8c
Rework numberFormat() to maintain decimal precision by default.
2019-01-16 18:41:15 -07:00
Paul Sealock
d214e229ae
refactor timeStampFilterDates
2019-01-17 13:57:11 +13:00
Paul Sealock
af98c7dd91
better tests
2019-01-17 13:35:20 +13:00
Jeff Stieler
4bf7a79a84
Add price format, decimal separator, and thousand separator to currency settings object.
2019-01-16 17:32:48 -07:00
Jeff Stieler
78e1be139f
Refactor numberFormat() to use the store settings for precision, decimal separator, and thousand separator.
2019-01-16 17:32:12 -07:00
Paul Sealock
41c30c7506
Filters: make 1/4 width for wiiiiiiide screens
2019-01-17 12:21:45 +13:00
Paul Sealock
c866d1e1e2
Customers Report: remove extended data call
2019-01-17 10:10:23 +13:00
Paul Sealock
aaceb781fd
tests
2019-01-17 09:37:43 +13:00
Paul Sealock
b3d7e96a00
jsDoc
2019-01-17 09:08:04 +13:00
Paul Sealock
4cd803466a
updateFilter
2019-01-17 08:57:41 +13:00
Jeff Stieler
149ee08f4b
Include all users in customer lookup table generation.
2019-01-16 10:20:11 -07:00
Jeff Stieler
c0e6a097fd
Fix orders report test.
2019-01-16 09:45:52 -07:00
Jeff Stieler
11cb74cccd
Fix variable name nitpick.
2019-01-16 09:45:52 -07:00
Jeff Stieler
a2f94c11ba
Add coupons and taxes lookup table generation to reports rebuild.
2019-01-16 09:45:51 -07:00
Jeff Stieler
84732137bc
Bail out of creating batches for customers and orders if there are none.
2019-01-16 09:45:51 -07:00
Jeff Stieler
ffe11650a8
Remove now-defunct order stats background process.
2019-01-16 09:45:50 -07:00
Jeff Stieler
763cc972a7
Regenerate all reports from rebuild stats endpoint.
2019-01-16 09:45:04 -07:00
Jeff Stieler
5c6174066e
Add tests for report regeneration batch queuing methods.
2019-01-16 09:45:04 -07:00
Jeff Stieler
1a5af7094d
Add WC_Action_Queue test helper class.
...
The test helper allows inspection of the action queue.
2019-01-16 09:45:04 -07:00
Jeff Stieler
4786938bdf
Fix customers report tests.
2019-01-16 09:45:03 -07:00
Jeff Stieler
6eca20c5fd
Reports regenerate: add mechanism to queue an action after another completes - use to queue orders lookup init after customers lookup.
2019-01-16 09:45:03 -07:00
Jeff Stieler
4740f93985
Reports regenerate: use queue to update order stats and products lookup table.
2019-01-16 09:45:02 -07:00
Jeff Stieler
3b9a4ef4a1
Report regeneration: allow batch sizes to differ between actions.
2019-01-16 09:45:02 -07:00
Jeff Stieler
fabc1dc70b
Reports regenerate: use queue to update customers lookup table.
2019-01-16 09:45:02 -07:00
Jeff Stieler
c361119a0d
Report table generation: add method for enqueuing a large number of batch jobs with a limited batch size.
2019-01-16 09:45:01 -07:00
Timmy Crawford
d45f31c389
Update packages docs ( https://github.com/woocommerce/woocommerce-admin/pull/1324 )
2019-01-16 08:39:37 -08:00
Timmy Crawford
0cb75629de
Release v0.5.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1319 )
...
* Release 0.5.0
* Updates from release build.
2019-01-16 08:24:45 -08:00
renovate[bot]
e6dd023fc8
Update dependency recast to v0.16.2 ( https://github.com/woocommerce/woocommerce-admin/pull/1318 )
2019-01-16 13:13:44 +01:00
renovate[bot]
f3c61d4121
Update dependency eslint-plugin-jest to v22.1.3 ( https://github.com/woocommerce/woocommerce-admin/pull/1317 )
2019-01-16 13:01:02 +01:00
renovate[bot]
65c2a01213
Update dependency dompurify to v1.0.9 ( https://github.com/woocommerce/woocommerce-admin/pull/1315 )
2019-01-16 12:58:54 +01:00
renovate[bot]
78cfaec287
Update dependency core-js to v2.6.2 ( https://github.com/woocommerce/woocommerce-admin/pull/1314 )
2019-01-16 12:57:08 +01:00
renovate[bot]
f8c6d949e4
Pin dependency node-watch to 0.6.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1313 )
2019-01-16 12:55:13 +01:00
Peter Fabian
05c7670090
Merge branch 'master' into fix/1035
...
# Conflicts:
# includes/class-wc-admin-reports-interval.php
# includes/data-stores/class-wc-admin-reports-data-store.php
# includes/data-stores/class-wc-admin-reports-products-data-store.php
2019-01-16 12:51:23 +01:00
Joshua T Flowers
33a7cfa1b0
Store all order statuses ( https://github.com/woocommerce/woocommerce-admin/pull/1285 )
...
* Store all orders regardless of status in wc_order_stats
* Only query select statuses if status_is or status_is_not is not set
* Fix order stats example query
* Filter category store by default order statuses
* Add table_name to interval functions to avoid ambiguity
* Filter coupon store by default order statuses
* Fix interval stats by adding table_name to interval function
* Filter products store by default order statuses
* Remove unused order_status in coupons data store
* Store products with any order status
* Fix ambiguous order by call in products data store
* Apply status filter after other filters to avoid logical OR matching
* Store all coupon data regardless of order status
* Filter taxes by default order statuses
* Filter customer stats by default order status
* Filter default order statuses in variations data store
* Use excluded statuses to filter reports by default
* DRY up default excluded statuses query
* Fix up new orders data store after rebase
2019-01-16 10:23:00 +08:00
Albert Juhé Lluveras
1001dd0601
Fix watch package files in Linux ( https://github.com/woocommerce/woocommerce-admin/pull/1301 )
2019-01-15 19:40:13 +01:00
Albert Juhé Lluveras
de4309d61e
Remove `barfocus` elements from charts ( https://github.com/woocommerce/woocommerce-admin/pull/1311 )
...
* Remove barfocus elements from charts
* Render background color behind bars
* Rename barmouse to barfocus
2019-01-15 19:40:02 +01:00
renovate[bot]
a5cfc072c2
Pin dependency mini-css-extract-plugin to 0.5.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1309 )
2019-01-15 12:09:07 +01:00
Albert Juhé Lluveras
8b341f0981
Replace 'extract-text-webpack-plugin' with 'mini-css-extract-plugin' ( https://github.com/woocommerce/woocommerce-admin/pull/1299 )
2019-01-15 11:55:54 +01:00
Peter Fabian
29f07f8c57
Re-enable temporarily disabled tests.
2019-01-15 11:51:43 +01:00
Peter Fabian
5ba443fca8
Updated data store used in test to reflect the rename of class.
2019-01-15 11:50:53 +01:00
Peter Fabian
c324157483
Merge branch 'master' into fix/1035
...
# Conflicts:
# includes/data-stores/class-wc-admin-reports-orders-data-store.php
# includes/data-stores/class-wc-admin-reports-orders-stats-data-store.php
2019-01-15 11:39:39 +01:00
Peter Fabian
2fc9de0bb0
Preparation for merge of a moved file.
2019-01-15 11:36:56 +01:00
Peter Fabian
f84efa3a58
Added test for segmenting /orders/stats by product.
2019-01-15 11:16:31 +01:00
Peter Fabian
d067c2148d
Added sorting of segments so that they have predictable order.
2019-01-15 11:13:43 +01:00
Peter Fabian
ea2d5bfe35
Removed double refund subtracting.
2019-01-15 11:11:58 +01:00
Peter Fabian
93b331243b
Corrected JSON response in case no fields are selected in $query_params.
2019-01-15 11:11:14 +01:00
Peter Fabian
b593163dff
Added more general function for sorting array of arrays based on subarray's key.
2019-01-15 11:08:23 +01:00
Paul Sealock
7b11e40981
timeStampFilterDates
2019-01-15 15:40:12 +13:00
Joshua T Flowers
ee19308254
Add initial state hydration for user data ( https://github.com/woocommerce/woocommerce-admin/pull/1297 )
...
* Hydrate initial state through localized script
* Parse user meta for default rows as integer
* Change eslint ignore to undef only
* Add currentUserData to wcSettings
2019-01-15 10:24:06 +08:00
Joshua T Flowers
4b3df7732b
Add showMenu prop to TableCard to hide ellipsis menu ( https://github.com/woocommerce/woocommerce-admin/pull/1296 )
...
* Add showMenu prop to TableCard to hide ellipsis menu
* Fix proptype description
2019-01-15 10:13:15 +08:00
Paul Sealock
01cf0eba2f
specify before on construct
2019-01-15 15:01:38 +13:00
Joshua T Flowers
14f8f08edf
Add v4 orders endpoint ( https://github.com/woocommerce/woocommerce-admin/pull/1246 )
...
* Rename orders controllers and data store to order stats
* Add orders data store and controller
* Add coupon, product, and status filters
* Add customer type query filter
* Add extended info for products and categories
* Bump API namespace to v4
* Add missing schema properties
* Set default customer_type and extended_info params
* Add orders endpoint tests
* Only use one JOIN if both excluded and included queries are used
* Optimize query calls to get product and category data
* Split product and category fetch and limit to product_cat taxonomy
2019-01-15 09:53:02 +08:00
Paul Sealock
66b76f5b8f
replaceFilter
2019-01-15 13:47:07 +13:00
Paul Sealock
7556b45eab
Advanced Filters: Dates, fix query formats
2019-01-15 13:02:24 +13:00
Paul Sealock
1fa45e4364
Merge pull request woocommerce/woocommerce-admin#1146 from woocommerce/add/date-filter-calendar
...
Advanced Filters: Add DatePicker
2019-01-15 09:43:10 +13:00
Paul Sealock
64d52b0d2f
Merge pull request woocommerce/woocommerce-admin#1233 from woocommerce/fix/devDocs-filePath
...
Fix/dev docs file path
2019-01-15 09:42:24 +13:00
Justin Shreve
a3ccfd300e
Fix date formatting in safari by switching to moment ( https://github.com/woocommerce/woocommerce-admin/pull/1290 )
2019-01-14 11:29:46 -05:00
Peter Fabian
13ec8e2851
FOrmula for shipping distribution among line items updated to reflect qty, so that sum of shipping per line item equals total shipping amount.
2019-01-14 16:10:13 +01:00
renovate[bot]
81b28d7b19
Update dependency eslint-plugin-react to v7.12.3 ( https://github.com/woocommerce/woocommerce-admin/pull/1261 )
2019-01-14 12:52:16 +01:00
renovate[bot]
af91eacacb
Lock file maintenance ( https://github.com/woocommerce/woocommerce-admin/pull/1242 )
2019-01-14 12:08:06 +01:00
renovate[bot]
2cd434c676
Update dependency chalk to v2.4.2 ( https://github.com/woocommerce/woocommerce-admin/pull/1258 )
2019-01-14 11:47:28 +01:00
renovate[bot]
0f25d33fcc
Update dependency babel-loader to v8.0.5 ( https://github.com/woocommerce/woocommerce-admin/pull/1257 )
2019-01-14 11:45:23 +01:00
renovate[bot]
0bdbf3b724
Update dependency eslint to v5.12.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1259 )
2019-01-14 11:42:51 +01:00
renovate[bot]
8ff156fb8d
Update dependency autoprefixer to v9.4.5 ( https://github.com/woocommerce/woocommerce-admin/pull/1256 )
2019-01-14 11:31:18 +01:00
renovate[bot]
b19b8b8687
Update dependency lerna to v3.10.5 ( https://github.com/woocommerce/woocommerce-admin/pull/1262 )
2019-01-14 11:26:35 +01:00
Albert Juhé Lluveras
f009506a45
Makes table dates accessible ( https://github.com/woocommerce/woocommerce-admin/pull/1274 )
...
* Create 'Date' component to render accessible dates
* Add tests
2019-01-14 10:54:44 +01:00
Paul Sealock
be76392a0c
devDocs: update path for prop docs
2019-01-14 15:07:28 +13:00
Paul Sealock
7525e2347a
Add calendar to date advanced filter
2019-01-14 13:22:39 +13:00
Albert Juhé Lluveras
328a49127a
Remove decimals from Y-axis ( https://github.com/woocommerce/woocommerce-admin/pull/1288 )
...
* Remove decimals from Y-axis
* Add CHANGELOG message
2019-01-11 19:18:31 +01:00
Albert Juhé Lluveras
ad457cc123
Avoid duplicated Y-axis values ( https://github.com/woocommerce/woocommerce-admin/pull/1289 )
...
* Avoid duplicated yGrids
* Add tests
* Rename 'roundedValue' to 'value' to better reflect its contents
* Add CHANGELOG message
2019-01-11 19:16:29 +01:00
Albert Juhé Lluveras
753ec498ba
Update activity button focus styles ( https://github.com/woocommerce/woocommerce-admin/pull/1287 )
...
* Update activity button focus styles
* Set overflow to 'auto' instead of 'scroll' in activity panels
2019-01-11 18:45:06 +01:00
Peter Fabian
20090a90e4
Added segments property to revenue test.
2019-01-11 18:39:57 +01:00
Peter Fabian
562e21ff54
Replace time interval keys with numeric ones to format REST response correctly.
2019-01-11 18:20:43 +01:00
Timmy Crawford
7d89799194
Remove hour from default clause in getAllowedIntervalsForQuery when period is empty ( https://github.com/woocommerce/woocommerce-admin/pull/1279 )
2019-01-11 07:51:24 -08:00
Justin Shreve
764845a6c0
Add top categories block ( https://github.com/woocommerce/woocommerce-admin/pull/1276 )
...
* Add Top Categories Block
* Update category and product blocks with correct links.
* Handle PR feedback/design cleanup
2019-01-11 10:11:10 -05:00
Peter Fabian
8059251656
Updated type for products field in response.
2019-01-11 15:29:03 +01:00
Peter Fabian
ab4eb674e2
Added segments fields to expected response in tests.
2019-01-11 15:28:28 +01:00
Peter Fabian
bc68976fb7
Updated schema tests to reflect latest changes.
2019-01-11 15:27:24 +01:00
Peter Fabian
26925872ec
Corrected return types so that no segmented queries work fine.
2019-01-11 15:25:17 +01:00
Peter Fabian
ebe76c2d43
Added missing parameter to new data stores.
2019-01-11 15:23:13 +01:00
Peter Fabian
7308aa415b
Schema updates.
2019-01-11 15:22:19 +01:00
Albert Juhé Lluveras
9d1edd6a56
Make d3chart component stateless ( https://github.com/woocommerce/woocommerce-admin/pull/1273 )
...
* Make d3chart component stateless
* Move back 'drawChart' to d3chart/chart.js
* Add getColor method changelog comment
* Reorder chart constructor methods binding
2019-01-11 12:24:10 +01:00
Peter Fabian
5edc60d30b
Added refund_total also to intervals (to be able to calculate net_total correctly).
2019-01-11 11:32:59 +01:00
Peter Fabian
ff6b4ffb26
Added refund_total to unique orders table to be able to calculate net_total correctly.
2019-01-11 11:31:21 +01:00
Peter Fabian
d14426cbc1
Corrected type of parameter in the docblock.
2019-01-11 11:30:43 +01:00
Peter Fabian
69f63f48d2
Ain't Nobody Got Time for That.
2019-01-11 11:25:49 +01:00
Peter Fabian
250c0910a1
Merge branch 'master' into fix/1035
2019-01-11 11:16:01 +01:00
Peter Fabian
411ff59788
WIP on orders/stats segmenting.
2019-01-11 11:11:23 +01:00