Timmy Crawford
e136036ef9
Build: Create new number package ( https://github.com/woocommerce/woocommerce-admin/pull/1399 )
...
* Create new number package
* Updates per feedback.
* Update README.
2019-01-28 15:34:56 -08:00
Paul Sealock
765a007491
tweeek
2019-01-29 12:08:44 +13:00
Paul Sealock
e6b42631f3
formatting
2019-01-29 11:48:40 +13:00
Paul Sealock
41bec03880
tweeks
2019-01-29 11:28:58 +13:00
Paul Sealock
370a747c2b
add registered
2019-01-29 11:05:27 +13:00
Paul Sealock
3e16a37be0
add tests
2019-01-29 11:01:25 +13:00
Paul Sealock
483c199fbf
tests working
2019-01-29 10:53:56 +13:00
Paul Sealock
c6d1ce98c0
rest_validate_between_date_arg
2019-01-29 10:45:49 +13:00
Paul Sealock
2f022ffdba
dry interval.php
2019-01-29 10:23:44 +13:00
Paul Sealock
3d0890a704
basic working
2019-01-29 09:21:11 +13:00
Paul Sealock
bca0785e64
Customers Report: support between args for dates
2019-01-29 08:58:07 +13:00
Kevin Killingsworth
833345dfee
Remove 'wc-admin' client/store implementation ( https://github.com/woocommerce/woocommerce-admin/pull/1344 )
...
This has been replaced by the `wc-api` store, under client/wc-api
2019-01-28 14:18:21 -05:00
Jeff Stieler
7592dae4bb
Merge pull request woocommerce/woocommerce-admin#1385 from woocommerce/add/customers-report-table-summary
...
Add table summary to Customers Report
2019-01-28 09:59:52 -07:00
Jeff Stieler
2703a0da4c
Merge pull request woocommerce/woocommerce-admin#1370 from woocommerce/fix/942-phpunit-gutenberg-dependency
...
Conditionally include Gutenberg plugin in test suite
2019-01-28 09:59:13 -07:00
Peter Fabian
71dc581f53
Merge pull request woocommerce/woocommerce-admin#1394 from woocommerce/fix/1393
...
Added zero-filling for intervals for taxes/stats endpoint
2019-01-28 13:09:02 +01:00
Albert Juhé Lluveras
066daa4b6a
Add Top Coupons Block ( https://github.com/woocommerce/woocommerce-admin/pull/1397 )
...
* Add Top Coupons Block
* Order coupons by orders_count by default
* Fix wrong variable name
2019-01-25 18:59:53 +01:00
Joshua T Flowers
9c9ff13c2b
Allow customer date_last_active to be null ( https://github.com/woocommerce/woocommerce-admin/pull/1377 )
...
* Allow customer date_last_active to be null
* Only show last active in customers report table if set
2019-01-25 09:37:50 -08:00
Timmy Crawford
40602efd89
Components; Fix SummaryNumber example ( https://github.com/woocommerce/woocommerce-admin/pull/1392 )
2019-01-25 09:17:09 -08:00
Peter Fabian
b87ca4f6aa
Added filling in zeros for interval not having records in the database.
2019-01-25 14:54:14 +01:00
Peter Fabian
c8c9cd4943
Updated error message to point to the correct report.
2019-01-25 13:30:27 +01:00
Peter Fabian
4c8a95cb89
Added fetching of db intervals for later use in zero-filling.
2019-01-25 13:29:59 +01:00
Peter Fabian
1c09b6836d
Adjusted default return value when page is out of range.
2019-01-25 13:14:41 +01:00
Paul Sealock
050438a11c
Add emoji flags
2019-01-25 13:17:08 +13:00
David Levin
74fcff642c
Merge pull request woocommerce/woocommerce-admin#1382 from woocommerce/update/total-spend-label
...
Customer report: Update lifetime spend label and re-order columns + default sorting
2019-01-24 09:04:40 -08:00
Albert Juhé Lluveras
95c21e0cc3
Move 'getLabels' functions into lib/async-requests ( https://github.com/woocommerce/woocommerce-admin/pull/1379 )
...
* Move labels loading logic into a lib
* Avoid making API calls when displaying Order labels
* Move lib/labels into lib/async-requests
* Rename 'getCustomerLabel' to 'getCustomerLabels'
2019-01-24 10:35:27 +01:00
Joshua T Flowers
81b6f0f61b
Use tableQuery sorting when url query is not present ( https://github.com/woocommerce/woocommerce-admin/pull/1378 )
2019-01-24 09:36:11 +08:00
Joshua T Flowers
23f807c0a4
Add regex expression option to autocompleters ( https://github.com/woocommerce/woocommerce-admin/pull/1380 )
2019-01-24 09:35:47 +08:00
Jeff Stieler
8207bd7649
Add tests for customers report stats endpoint.
2019-01-23 17:48:22 -07:00
Jeff Stieler
6a215ceca9
Exclude customers with no orders from average orders count calculation.
2019-01-23 17:47:44 -07:00
Jeff Stieler
4cfa082d0f
Load gutenberg from test plugins directory if required.
2019-01-23 16:59:10 -07:00
Peter Fabian
5b46862584
Merge pull request woocommerce/woocommerce-admin#1371 from woocommerce/fix/1316-1
...
First attempt to fix tests failing around end of hour
2019-01-23 21:34:16 +01:00
Peter Fabian
d61a4dd5bd
Updated tests to be more stable around hour end.
2019-01-25 00:06:59 +01:00
David Levin
4c18267408
update orderby in index
2019-01-23 10:08:27 -08:00
David Levin
e7a20b4216
update column lifetime spend column label, and re-order columns
2019-01-23 09:51:12 -08:00
Peter Fabian
71a9be299a
Updated tests to pass before implementing the updated new/returning customer definition.
...
Context: https://github.com/woocommerce/wc-admin/issues/558#issuecomment-447782060
2019-01-23 13:29:40 +01:00
Peter Fabian
83a0d96f68
Added segmenting to response for revenue/stats test.
2019-01-23 10:37:09 +01:00
Peter Fabian
e432a17f1e
Added segmenting to response for products/stats test.
2019-01-23 10:36:50 +01:00
Peter Fabian
f190c1bad1
Fixed copy-paste bug for testing subtotals in REST response.
2019-01-23 10:36:27 +01:00
Peter Fabian
bcb7513f34
Added segmenting to response for coupons/stats test.
...
Fixed copy-paste error in test for subtotals.
2019-01-23 10:35:48 +01:00
Peter Fabian
bc42e6d985
Fixed bug introduced during refactoring.
2019-01-23 10:34:55 +01:00
Peter Fabian
fed94cbd0c
Added segmenting to response for coupons/stats test.
...
Changed return type for currency.
2019-01-23 10:34:07 +01:00
Peter Fabian
507ee13825
Merge branch 'master' into fix/1035
...
# Conflicts:
# client/analytics/report/customers/table.js
# includes/api/class-wc-admin-rest-reports-orders-stats-controller.php
# tests/reports/class-wc-tests-reports-orders-stats.php
2019-01-23 10:13:55 +01:00
Paul Sealock
3521e8d485
Merge pull request woocommerce/woocommerce-admin#1329 from woocommerce/fix/reduce-margin-small-views
...
Reports: Reduce Margins on Small Viewports
2019-01-23 14:38:48 +13:00
Peter Fabian
012e14c589
Corrected time-calculation of last interval.
2019-01-22 19:50:35 +01:00
Jeff Stieler
0ef976f964
Increase default wc-api timeout to 1 minute.
...
Large datasets may cause responses to take longer than 5 seconds.
2019-01-22 11:22:28 -07:00
Jeff Stieler
2d4aea1971
Only install/activate Gutenberg plugin if WP version under test is earlier than 5.0.
2019-01-22 10:44:00 -07:00
Peter Fabian
8a9a2c0673
Fixed interval arithmetic for hours and days.
2019-01-22 17:49:02 +01:00
David Levin
e9bb73f23d
Update order of summary numbers on taxes report ( https://github.com/woocommerce/woocommerce-admin/pull/1356 )
2019-01-22 07:49:17 -08:00
Paul Sealock
48f6777ea3
side margins
2019-01-22 13:24:01 +13:00
Paul Sealock
258c298e91
400
2019-01-22 13:11:06 +13:00
Paul Sealock
0e01c98851
Reports: Reduce Margins on Small Viewports
2019-01-22 12:29:32 +13:00
Paul Sealock
a52fab85de
Merge pull request woocommerce/woocommerce-admin#1332 from woocommerce/fix/summary-number-close-on-mobile
...
SummaryNumbers: close on click for mobile
2019-01-22 12:09:07 +13:00
Paul Sealock
35b3579632
Orders Report: Point table links to wc-admin reports with persisted query
2019-01-22 11:32:33 +13:00
Paul Sealock
c7b705fb08
SummaryNumbers: close on click for mobile
2019-01-22 11:31:37 +13:00
Paul Sealock
d09c68660b
Merge pull request woocommerce/woocommerce-admin#1328 from woocommerce/fix/Filters-only-complete-ranges
...
Advanced Filters: Ranges: Allow update only on complete selection
2019-01-22 11:21:10 +13:00
Justin Shreve
fdddca1186
Merge pull request woocommerce/woocommerce-admin#1366 from woocommerce/fix/schema-typo
...
Fix performance-indicators/allowed schema.
2019-01-21 15:54:15 -05:00
Albert Juhé Lluveras
834901bc84
Fill full plot area in bar charts ( https://github.com/woocommerce/woocommerce-admin/pull/1365 )
...
* Fill full plot area in bar charts
* Refactor chart scales tests
2019-01-21 20:58:38 +01:00
Albert Juhé Lluveras
f2ac9f2bb2
Center points in single-date charts ( https://github.com/woocommerce/woocommerce-admin/pull/1360 )
...
* Center single point charts
* Don't render lines if there is only one date
* Remove xOffset from 'params'
* Improve variable naming
2019-01-21 20:30:21 +01:00
Albert Juhé Lluveras
37d6fa0b60
CSS Lint fixes ( https://github.com/woocommerce/woocommerce-admin/pull/1367 )
2019-01-21 19:09:16 +01:00
Justin Shreve
1f8caf106e
Fix performance-indicators/allowed schema.
2019-01-21 12:28:32 -05:00
Joshua T Flowers
3ac97e00c4
Add single category filter to products report ( https://github.com/woocommerce/woocommerce-admin/pull/1350 )
...
* Add namespace v4 for WC product/categories endpoint
* Update categories wc-api to use v4 namespace constant
* Add single product category filter to product categories report
* Add link to filtered product report from category report
* Use persistedQuery for category links
* Check if category is defined before displaying category link
* Remove selectedTags when filter does not match queried filter
2019-01-22 01:12:00 +08:00
Joshua T Flowers
4869401ec4
REST API: Allow sorting by stock_status in stocks endpoint ( https://github.com/woocommerce/woocommerce-admin/pull/1335 )
...
* REST API: Allow sorting by stock_status in stocks endpoint
* Set stock_status as default orderby
* Sort by both stock status and quantity in meta query
* Use stock_status sort order by default in Stock table (https://github.com/woocommerce/woocommerce-admin/pull/1340 )
* Reverse stock quantity order when sorting by stock status
2019-01-22 01:11:20 +08:00
Jeff Stieler
4a6f2652b6
Hook customers report table summary up to stats endpoint.
2019-01-21 08:46:21 -07:00
Paul Sealock
7856a58b49
Advanced Filters: Ranges: Allow update only on complete selection
2019-01-21 09:54:31 +13:00
Albert Juhé Lluveras
c9df5861a8
Remove leading zero from chart dates ( https://github.com/woocommerce/woocommerce-admin/pull/1353 )
2019-01-19 12:38:17 +01:00
Jeff Stieler
07cbaae2a5
Add customers report stats endpoint.
2019-01-18 20:29:50 -07:00
Justin Shreve
2f60837ba5
Add performance indicators to dashboard ( https://github.com/woocommerce/woocommerce-admin/pull/1343 )
...
* Add label and generated report URL to the performance indicator response.
* Hook up performance indicators to the REST API
* Handle PR feedback
* Fix setting default values
2019-01-18 14:22:11 -05:00
Justin Shreve
286f5a7ae1
Update list of allowed stats
2019-01-18 15:11:38 -05:00
Justin Shreve
7c418a4a45
Add v4 of the data/countries filter so that the country autocompleter work and a notice goes away. ( https://github.com/woocommerce/woocommerce-admin/pull/1354 )
2019-01-18 14:17:12 -05:00
Justin Shreve
b8d25c3073
Fix setting default values
2019-01-18 12:11:49 -05:00
Peter Fabian
f2634ca5c8
Added support for segmenting to coupons/stats.
2019-01-18 17:11:46 +01:00
Justin Shreve
bd54541ca0
Handle PR feedback
2019-01-18 08:52:10 -05:00
Justin Shreve
01b96ebea5
Hook up performance indicators to the REST API
2019-01-18 08:19:19 -05:00
Justin Shreve
96fc10747f
Add label and generated report URL to the performance indicator response.
2019-01-18 08:16:52 -05:00
Peter Fabian
e8f264c346
Moved common code to parent class.
2019-01-18 14:08:34 +01:00
Peter Fabian
ea2f5ca5d9
Fixed number of parameters for product lookup update.
2019-01-18 13:07:19 +01:00
Peter Fabian
caea199852
Updated revenue/stats REST controller to include segmentation options/fields.
2019-01-18 13:06:40 +01:00
Peter Fabian
128f52fdc8
Restrict products/stats only to supported segmentby options.
2019-01-18 12:28:12 +01:00
Joshua T Flowers
25e7192ecb
Move search icon inside input wrapper ( https://github.com/woocommerce/woocommerce-admin/pull/1351 )
2019-01-18 18:51:47 +08:00
Peter Fabian
1d79714295
Added segmenting to products/stats.
2019-01-18 11:41:15 +01:00
Joshua T Flowers
fb8c4dd92f
Add single category filter to categories report ( https://github.com/woocommerce/woocommerce-admin/pull/1336 )
...
* Add single category filter to categories report
* Change categories leaderboard link to signle category link
* Remove todo comment regarding the single_category filter
* Update category links to categories report in products table
2019-01-18 15:46:12 +08:00
Joshua T Flowers
e0853b5408
Add country code as keyword for countries search ( https://github.com/woocommerce/woocommerce-admin/pull/1337 )
...
* Add country name to tooltip and screen reader text
* Add country code to autocompleter keywords
2019-01-18 11:13:07 +08:00
Joshua T Flowers
6b29ec01a7
Add autocompleter input type and fix load options ( https://github.com/woocommerce/woocommerce-admin/pull/1334 )
...
* Allow inputType option for autocompleters
* Return early if optionsData is undefined in loadOptions
* Remove number spinners for autocomplete number inputs
2019-01-18 10:53:38 +08:00
Joshua T Flowers
7cdbbf87e8
Update all wc-admin endpoints to v4 ( https://github.com/woocommerce/woocommerce-admin/pull/1298 )
...
* Update all wc-admin endpoints to v4
* Add namespace for products and customers controllers
* Include product quantity in orders data store
* Add coupons to extended data in the orders data store
* Format order statuses response from database
* Hook up orders table to orders endpoint
* Add namespace to data endpoint controller
* Add namespaces to remaining extended controllers
* Use NAMESPACE var in place of wc/v4
* Update product links in orders table to products reports
* Add coupons rest controller override
* Format coupon code in response
Co-Authored-By: joshuatf <joshuatf@gmail.com>
2019-01-18 10:52:58 +08:00
Joshua T Flowers
11ddae699a
Add helpText to coupon compare button ( https://github.com/woocommerce/woocommerce-admin/pull/1333 )
2019-01-18 10:22:51 +08:00
Jeff Stieler
4407e05bc4
Merge pull request woocommerce/woocommerce-admin#1342 from woocommerce/fix/1090-currency-settings-formatting
...
Honor WooCommerce Settings When Formatting Currency/Price
2019-01-17 17:06:13 -07:00
Jeff Stieler
ec2efaf560
Update affected package CHANGELOGs.
2019-01-17 16:38:43 -07:00
Jeff Stieler
560606df17
Update comment about formatCurrency() currency symbol parameter fallback logic.
2019-01-17 16:30:27 -07:00
Jeff Stieler
4fabbee20f
numberFormat(): add test for new non-number precision value logic.
2019-01-17 16:28:00 -07:00
Jeff Stieler
2ad5922f1f
Simplify precision preservation logic in numberFormat().
...
Props @Aljullu.
2019-01-17 16:25:44 -07:00
Albert Juhé Lluveras
059cd0ef0d
Set default order to 'desc' in time tables ( https://github.com/woocommerce/woocommerce-admin/pull/1341 )
2019-01-17 22:14:12 +01:00
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