Jeff Stieler
0711ed85f8
Merge pull request woocommerce/woocommerce-admin#1426 from woocommerce/update/1323-handle-report-regeneration-fail
...
Use Action Scheduler for lookup table updates & schedule retries.
2019-02-04 17:12:35 -07:00
Jeff Stieler
7664612b57
Fix order stats report status filtering test case (returning customer value incorrect).
2019-02-04 16:59:08 -07:00
Albert Juhé Lluveras
16ea4f60fc
Fix hourly labels in bar charts X-axis ( https://github.com/woocommerce/woocommerce-admin/pull/1468 )
...
* Fix hourly labels in bar charts X-axis
* Add CHANGELOG comment
* Remove unnecessary date object call
2019-02-04 22:15:06 +01:00
Jeff Stieler
f938dd5708
Invoke queue test helper in new Order Stats and Products Report tests.
2019-02-04 11:46:46 -07:00
Claudio Sanches
58cdf6a7f9
Fixed hook names
2019-02-04 16:02:49 -02:00
Claudio Sanches
a1976bc1bc
Improve action/hook naming
2019-02-04 15:58:37 -02:00
Albert Juhé Lluveras
7916100009
Fix CSS Lint warning ( https://github.com/woocommerce/woocommerce-admin/pull/1469 )
2019-02-04 18:32:27 +01:00
Jeff Stieler
bebe1bdead
Add test for scheduling a retry job when order syncing fails.
2019-02-04 09:18:51 -07:00
Jeff Stieler
21572698d8
Fix unit tests that rely on queued data updates.
2019-02-04 09:18:50 -07:00
Jeff Stieler
11d18a8b5b
Queue individual order syncing instead of handling immediately.
2019-02-04 09:18:49 -07:00
Jeff Stieler
9f3c95ae63
Rework lookup table data store sync methods to return a meaningful status.
2019-02-04 09:09:44 -07:00
Jeff Stieler
9b1f6999aa
Add action argument support when scheduling dependent actions.
2019-02-04 09:06:44 -07:00
Joshua T Flowers
0d4e42def0
Add segments to expected response in order stats ( https://github.com/woocommerce/woocommerce-admin/pull/1466 )
2019-02-04 18:39:33 +08:00
Albert Juhé Lluveras
9dd4c10d7d
Fix autocompleters in customers and taxes report ( https://github.com/woocommerce/woocommerce-admin/pull/1458 )
2019-02-04 09:51:29 +01:00
Joshua T Flowers
fb0d71f117
Update page query to 1 when base query is changed ( https://github.com/woocommerce/woocommerce-admin/pull/1444 )
...
* Update page query to 1 when base query is changed
* Use history replace instead of updating query
2019-02-04 10:55:06 +08:00
Joshua T Flowers
17179d41ff
Add order status tests and refund tests ( https://github.com/woocommerce/woocommerce-admin/pull/1443 )
...
* Add default order status tests
* Test querying an excluded status
* Add tests for product line item refunds
* Update status test method comment
* Drop @since versioning from doc blocks
2019-02-04 10:52:29 +08:00
Joshua T Flowers
2c1f8c17c7
Fix incorrect label async request paths ( https://github.com/woocommerce/woocommerce-admin/pull/1447 )
2019-02-04 10:50:22 +08:00
Joshua T Flowers
a4f7fcdfe3
Fix variation search autocompleter invalid route ( https://github.com/woocommerce/woocommerce-admin/pull/1448 )
2019-02-04 10:49:58 +08:00
Claudio Sanches
c1bb5802d1
Fixed coding standards
2019-02-01 18:48:54 -02:00
Claudio Sanches
464ec09d38
Merge branch 'feature/754' of github.com:woocommerce/wc-admin into feature/754
2019-02-01 18:32:41 -02:00
Claudio Sanches
48ef33636f
Removed extra function from conflicts
2019-02-01 18:31:10 -02:00
Claudio Sanches
8c0c01a3da
Merge branch 'master' into feature/754
2019-02-01 18:27:23 -02:00
Claudio Sanches
31e8dc9332
Merge branch 'master' into fix/1307
2019-02-01 18:24:26 -02:00
Peter Fabian
32f851be5b
Merge pull request woocommerce/woocommerce-admin#1286 from woocommerce/fix/1035
...
Added segmenting support to REST API
2019-02-01 20:50:38 +01:00
Claudio Sanches
4c71e78222
Fixed database prefixes
...
Moved from woocommerce_ to wc_
2019-02-01 17:23:07 -02:00
Claudio Sanches
93f9ec8ae8
Docblocks
2019-02-01 17:10:31 -02:00
Claudio Sanches
e41a81f8b9
Updated woocommerce_trash_note to woocommerce_delete_note
...
Admin notes doesn't handle statuses, so it's not possible to move to
trash and restore admin notes, all admin notes are permanently deleted.
2019-02-01 17:08:43 -02:00
Claudio Sanches
707067e255
Docblocks
2019-02-01 17:02:15 -02:00
Claudio Sanches
cd55051da3
New actions for when deleting objects from database
2019-02-01 16:29:14 -02:00
Claudio Sanches
68e0c98828
New action name: woocommerce_delete_reports_order_stats
2019-02-01 16:10:00 -02:00
Claudio Sanches
07f3f33566
Introduced new hooks for jetpack sync
2019-02-01 15:43:24 -02:00
Peter Fabian
663e454b8f
Fixed schema: type and enum for segment_id.
2019-02-01 18:30:39 +01:00
Peter Fabian
2bc99cdb31
Added basic tests for zero filling when sorting intervals by non-date property.
2019-02-01 18:16:39 +01:00
Peter Fabian
9c52155d40
Merge pull request woocommerce/woocommerce-admin#1446 from woocommerce/fix/1445
...
Added primary key to tax lookup table to prevent duplicate entries.
2019-02-01 17:52:59 +01:00
Justin Shreve
3fa704f7f4
Add GPL License ( https://github.com/woocommerce/woocommerce-admin/pull/1440 )
...
* Add GPL License file
* Match Gutenberg license / add extra sections
2019-02-01 10:22:05 -05:00
Peter Fabian
c2bcad2e50
Merge branch 'master' into fix/1012-2
2019-02-01 13:32:35 +01:00
Albert Juhé Lluveras
6d8634a753
Add 'Clear' button to Search input ( https://github.com/woocommerce/woocommerce-admin/pull/1410 )
...
* Move labels loading logic into a lib
* Move lib/labels into lib/async-requests
* Implement tabular data filtering
* Allow searching for string in report tables
* Add table filtering to customers table
* Get ids from searched string to populate the table
* Fix autocompleter keyboard interactions
* Improve props naming
* Cleanup report customers data store
* Prevent an edge case issue that might not update the selectedOptions when directily modifying the URL
* Add 'Clear' button to Search input
* Cleanup
2019-02-01 11:49:46 +01:00
Albert Juhé Lluveras
666d8e4a3b
Merge getOrders and getItems ( https://github.com/woocommerce/woocommerce-admin/pull/1438 )
...
* Move labels loading logic into a lib
* Move lib/labels into lib/async-requests
* Implement tabular data filtering
* Allow searching for string in report tables
* Add table filtering to customers table
* Get ids from searched string to populate the table
* Fix autocompleter keyboard interactions
* Improve props naming
* Cleanup report customers data store
* Prevent an edge case issue that might not update the selectedOptions when directily modifying the URL
* Fix wrong selected autocompleter option
* Add missing translation domain
* Move searchItemsByString to wc-api/items/utils.js
* Avoid autocompleter results appearing when there was no search string
* Alphabetically order 'allowFreeTextSearch' prop
* Reset selected table rows when directly modifying the URL
* Simplify props destructuring
* Undo customers data store change
* Simplify isProductDetailsView expression
* Improve order
* Merge getOrders and getItems
2019-02-01 11:01:42 +01:00
Albert Juhé Lluveras
d8ed3b6614
Implement tabular data filtering ( https://github.com/woocommerce/woocommerce-admin/pull/1381 )
...
* Move labels loading logic into a lib
* Move lib/labels into lib/async-requests
* Implement tabular data filtering
* Allow searching for string in report tables
* Add table filtering to customers table
* Get ids from searched string to populate the table
* Fix autocompleter keyboard interactions
* Improve props naming
* Cleanup report customers data store
* Prevent an edge case issue that might not update the selectedOptions when directily modifying the URL
* Fix wrong selected autocompleter option
* Add missing translation domain
* Move searchItemsByString to wc-api/items/utils.js
* Avoid autocompleter results appearing when there was no search string
* Alphabetically order 'allowFreeTextSearch' prop
* Reset selected table rows when directly modifying the URL
* Simplify props destructuring
* Undo customers data store change
* Simplify isProductDetailsView expression
* Improve order
* Filter tax code parts before modifying them
2019-02-01 10:55:19 +01:00
Albert Juhé Lluveras
1069034ca2
Trim search box input ( https://github.com/woocommerce/woocommerce-admin/pull/1439 )
...
* Trim search box input
* Add tests
2019-02-01 10:43:56 +01:00
Peter Fabian
907fcdb863
Merge pull request woocommerce/woocommerce-admin#1435 from woocommerce/fix/1372
...
Added indices for faster joins with customer table and filtering by order status.
2019-02-01 10:27:06 +01:00
Peter Fabian
8bc4c70cae
Added primary key to tax lookup table to prevent duplicate entries.
2019-02-01 10:23:59 +01:00
Kelly Dwan
ca34ad0274
Bump version ( https://github.com/woocommerce/woocommerce-admin/pull/1442 )
2019-01-31 17:47:50 -05:00
Peter Fabian
40b9458f8d
Added indices for faster joins with customer table and filtering by order status.
2019-01-31 10:54:55 +01:00
Joshua T Flowers
e65247c54e
Add SKU to product variations table ( https://github.com/woocommerce/woocommerce-admin/pull/1422 )
...
* Add SKU to product variations data store extended info
* Show SKU in product variations table
* Add sku tests for product variation reports
2019-01-31 09:27:15 +08:00
Joshua T Flowers
49e78b90cf
Add settings page with excluded order statuses ( https://github.com/woocommerce/woocommerce-admin/pull/1364 )
...
* Add settings page routes
* Add control options for excluded statuses
* Add control options for excluded statuses
* Add excluded order statuses to rest api
* Add wc settings to wc-api
* Add wc settings to wc-api
* Split and validate multiselect values in settings controller
* Add wcAdminSettings to wcSettings global
* Set initial excluded statuses from serverside wcSettings data
* Add extensible filter for wcSettings global
* Split arrays into comma separated strings in wc-api
* Extract setting as separate component
* Extra settings to config file
* Add checkboxGroup option as input type
* Separate status types into default and custom groups
* Add setting option styling
* Add responsive styling for settings
* Fix wpClosedMenu and wpOpenMenu for settings page
* Add support for resetting to default values
* Only show checkbox group if options are available
* Add proptypes to Setting component
* Add extensible filter to analytics settings
* Add readme for settings config and extensibility
* Hook up excluded status settings to reports
* Pass object to settings API instead of comma delimited string
* Fix inpuType -> inputType typo
* Remove hasError from constructor
* Bump settings API to v4
* Use interpolateComponents instead of dangerously setting html
* Use empty array in initial excldued statuses setting value if none is retrieved
* Remove double check for refunded status in default order statuses
* Update settings wc-api to use namespace
* Add aria=labelledby to checkbox group
2019-01-31 09:04:11 +08:00
renovate[bot]
713d64c97a
Lock file maintenance ( https://github.com/woocommerce/woocommerce-admin/pull/1362 )
2019-01-30 16:15:54 -05:00
renovate[bot]
85a46252df
Update dependency core-js to v2.6.3 ( https://github.com/woocommerce/woocommerce-admin/pull/1375 )
2019-01-30 15:59:19 -05:00
renovate[bot]
f128716d28
Update babel monorepo ( https://github.com/woocommerce/woocommerce-admin/pull/1373 )
2019-01-30 15:46:29 -05:00
renovate[bot]
e18837e255
Update dependency autoprefixer to v9.4.7 ( https://github.com/woocommerce/woocommerce-admin/pull/1374 )
2019-01-30 15:25:19 -05:00
renovate[bot]
ead7ca0523
Pin dependency locutus to 2.0.10 ( https://github.com/woocommerce/woocommerce-admin/pull/1408 )
2019-01-30 15:13:31 -05:00
renovate[bot]
099e8a60af
Update dependency eslint-plugin-jsx-a11y to v6.2.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1416 )
2019-01-30 14:20:36 -05:00
renovate[bot]
40cd3545fe
Update dependency eslint-plugin-react to v7.12.4 ( https://github.com/woocommerce/woocommerce-admin/pull/1418 )
2019-01-30 13:59:32 -05:00
renovate[bot]
43c753011a
Update dependency eslint to v5.12.1 ( https://github.com/woocommerce/woocommerce-admin/pull/1376 )
2019-01-30 13:53:25 -05:00
Timmy Crawford
974d263f69
Release/v0.6.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1417 )
...
* Bump versions to 0.6.0
* Update docs
* Updates after running build.
2019-01-30 10:51:03 -08:00
renovate[bot]
e2da828d1f
Update dependency lerna to v3.10.7 ( https://github.com/woocommerce/woocommerce-admin/pull/1419 )
2019-01-30 13:14:58 -05:00
renovate[bot]
d4a7cec89a
Update dependency eslint-plugin-jest to v22.2.1 ( https://github.com/woocommerce/woocommerce-admin/pull/1415 )
2019-01-30 13:10:27 -05:00
Peter Fabian
e433609d9d
Updated test of schema for taxes/stats.
2019-01-30 18:46:06 +01:00
Peter Fabian
0ddc6d5e41
Added segmenting code for taxes/stats.
2019-01-30 18:36:20 +01:00
Peter Fabian
0d95552157
Added segmentby to schema, query arguments and allows parameters in the controller for taxes/stats.
2019-01-30 12:16:37 +01:00
Albert Juhé Lluveras
08dfea7cff
Add Taxes REST controller override ( https://github.com/woocommerce/woocommerce-admin/pull/1407 )
2019-01-30 10:43:30 +01:00
Justin Shreve
53a6e49874
Finish cleaning up client/store. ( https://github.com/woocommerce/woocommerce-admin/pull/1403 )
2019-01-30 02:22:10 -05:00
Timmy Crawford
88ea613627
Build: Updates from latest npm publish ( https://github.com/woocommerce/woocommerce-admin/pull/1409 )
...
* remove unreleased tags from changelogs
* chore(release): publish
- @woocommerce/components@1.4.1
- @woocommerce/csv-export@1.0.3
- @woocommerce/currency@1.1.0
- @woocommerce/date@1.0.6
- @woocommerce/navigation@1.1.1
- @woocommerce/number@1.0.1
2019-01-29 15:37:25 -08:00
Claudio Sanches
d1fef77ed0
Added unit tests for order deletation
2019-01-29 20:21:09 -02:00
Paul Sealock
4854933485
Merge pull request woocommerce/woocommerce-admin#1404 from woocommerce/fix/customers-date-between-args
...
Customers Report: REST API: Fix between argument handling
2019-01-30 10:32:54 +13:00
Paul Sealock
f71bfa95f4
Merge pull request woocommerce/woocommerce-admin#1406 from woocommerce/fix/customers-order-count-filter
...
Customers Report: fix order count filter
2019-01-30 10:32:29 +13:00
Kelly Dwan
dfd15f959a
Components package: Add emoji-flags dependency ( https://github.com/woocommerce/woocommerce-admin/pull/1411 )
...
* Add emoji-flags to the components package.json
* Update the changelog
2019-01-29 16:19:00 -05:00
Claudio Sanches
b0b506b397
Introduced new methods to clean up data when an order is deleted
2019-01-29 19:13:06 -02:00
Claudio Sanches
766fdeeada
Remove extra validation
2019-01-29 18:50:44 -02:00
Claudio Sanches
272203b879
Introduced new woocommerce_reports_orders_stats_data_deleted hook
2019-01-29 18:50:15 -02:00
Peter Fabian
6efef57cba
Factored out order-related product-level calculations to WC_Admin_Order and plugged it into the WC framework.
2019-01-29 19:57:04 +01:00
Timmy Crawford
10c6016d4c
Update usage of lib/number to @woocommerce/number ( https://github.com/woocommerce/woocommerce-admin/pull/1400 )
...
* Remove usage of lib/number
* Remove formatNumber usage when currency is used.
* Add wc-number as a dependency of wc-currency.
* Add locutus as a dev dependency.
* Add number to test helper.
2019-01-29 08:48:46 -08:00
Peter Fabian
e56009cfdc
Updated todo format to be in line with the rest of WooCommerce.
2019-01-29 13:29:50 +01:00
Peter Fabian
a3ae15d58e
Removed obsolete comment.
2019-01-29 12:52:20 +01:00
Peter Fabian
bee26375f9
Validate limit clause and set empty default if there is no limit.
2019-01-29 12:18:30 +01:00
Peter Fabian
c2eaf6d71c
Replaced REST exception with a custom exception and handle it in REST controllers.
2019-01-29 12:13:52 +01:00
Peter Fabian
e4e09b4c39
Merge branch 'master' into fix/1035
2019-01-29 10:01:41 +01:00
Paul Sealock
3379491c91
Customers Report: fix order count filter
2019-01-29 13:35:27 +13:00
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
05aedb2a63
Added tests for ASC ordering.
2019-01-25 17:40:33 +01: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
Peter Fabian
d75c963bb1
Merge branch 'master' into fix/1012-2
2019-01-24 11:18:23 +01: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
c96b291a6c
Added a bit of test for interval=hour order_by=date desc.
2019-01-23 22:13:00 +01:00
Peter Fabian
64f1418f22
Merge branch 'master' into fix/1012-2
2019-01-23 21:40:09 +01: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
33f1240987
Fix to remove extra intervals correctly.
2019-01-23 17:18:39 +01:00
Peter Fabian
eff341d832
Made the interval sorting stable (second level sort by time_interval).
...
This is required so that intervals are sorted in the same way each time when going through pages of results.
2019-01-23 16:58:03 +01: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
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
Joshua T Flowers
e68f751298
Change category gross stats to net ( https://github.com/woocommerce/woocommerce-admin/pull/1283 )
2019-01-11 17:56:58 +08:00
Jeff Stieler
3efebb37e1
Merge pull request woocommerce/woocommerce-admin#1267 from woocommerce/update/numeric-filter-array-value
...
Numeric filter: generate a true array value for “between” rule
2019-01-10 19:31:15 -07:00
Jeff Stieler
adf8bbeb23
Merge pull request woocommerce/woocommerce-admin#1260 from woocommerce/fix/1239-handle-between-rest-api-param
...
Handle *_between params in Reports controllers
2019-01-10 10:52:08 -07:00
Justin Shreve
350e296d2c
Allow sorting by title and SKU to report tables ( https://github.com/woocommerce/woocommerce-admin/pull/1266 )
2019-01-10 12:10:31 -05:00
Jeff Stieler
571ee1fee0
Merge pull request woocommerce/woocommerce-admin#1271 from woocommerce/update/customer-report-real-endpoint
...
Hook up customers report table to real data.
2019-01-10 08:16:13 -07:00
Albert Juhé Lluveras
279bc142bb
Fix chart blocks not being responsive ( https://github.com/woocommerce/woocommerce-admin/pull/1265 )
2019-01-10 10:55:15 +01:00
Jeff Stieler
c223977dbd
Hook up customers report table to real data.
2019-01-09 17:45:24 -07:00
Jeff Stieler
c565b9cb40
Numeric filter: generate a true array value for “between” rule instead of a comma-delimited string.
2019-01-09 14:23:49 -07:00
Jeff Stieler
2246a1e075
Expect array value for _between params.
...
Add param validation method and normalize to min/max based by comparing values.
2019-01-09 14:19:37 -07:00
Justin Shreve
d46ce1df7a
Add store performance indicator endpoint ( https://github.com/woocommerce/woocommerce-admin/pull/1255 )
...
* Add store performance REST API endpoint
* Clean up validation, add list of allowed stats to OPTIONS endpoint, and rename endpoint to performance-indicators
* Add tests
* Add additional filters to make extending the performance indiciators area easier.
* Add docblocks for filters
2019-01-09 16:08:39 -05:00
Jeff Stieler
43517940fb
Merge pull request woocommerce/woocommerce-admin#1144 from woocommerce/add/916-customers-report-endpoint
...
Add `/reports/customers` endpoint
2019-01-08 19:04:17 -07:00
Jeff Stieler
06763cc3a5
Don’t cast date values to strings in customers report data store since they’re allowed to be null.
...
NULL column values resulted in NOW() in the response.
2019-01-08 18:49:49 -07:00
Jeff Stieler
6e369bd145
Handle *_between parameters in Customers Report endpoint controller.
2019-01-08 17:41:48 -07:00
Jeff Stieler
b15a4bc804
Add utility method to normalize numeric “between” parameters in REST API requests.
2019-01-08 17:41:24 -07:00
Joshua T Flowers
80fe765657
Use a date instead of hour for single dates in report tables ( https://github.com/woocommerce/woocommerce-admin/pull/1208 )
...
* Use a date instead of hour for single dates in report tables
* Add hour to allowed list when day difference is less than 1
* Prioritize hour format over day and set day as default for tables
* Add default intervals for report tables
* Use explicit date format in report tables
* Add constant for default table format
* Restore allowed intervals for >1 && <7 days
2019-01-09 08:24:49 +08:00
Joshua T Flowers
bdb9525afe
Add dashboard chart interval preferences ( https://github.com/woocommerce/woocommerce-admin/pull/1230 )
...
* Add user interval preferences for dashboard charts
* Add interval selector styling
2019-01-09 08:12:39 +08:00
Jeff Stieler
d9fd8568df
Customers report: perform a LEFT JOIN on the order stats table to include customers that have not yet placed an order.
2019-01-08 10:47:19 -07:00
Jeff Stieler
46b503dd54
Update customers report lookup table when customers/users are updated.
2019-01-08 10:33:17 -07:00
Jeff Stieler
154482acc9
Derive orders_count, total_spend, avg_order_value, and date_late_order for customer reports from the order stats report table.
2019-01-08 10:33:17 -07:00
Jeff Stieler
8105ddb38a
Add new guest customers to lookup when syncing the order stats report table.
2019-01-08 10:33:16 -07:00
Jeff Stieler
1a90840e97
Add customer_id to order stats report table to reference with customer lookup.
2019-01-08 10:30:16 -07:00
Jeff Stieler
d42e04cd59
Short circuit registered customer data update when the given ID is bad.
2019-01-08 10:29:44 -07:00
Jeff Stieler
a1317f2152
Customer lookup table: allow registration date to be null (for guests).
2019-01-08 10:29:43 -07:00
Jeff Stieler
c337944cf6
Backfill guests into customer report lookup table using order data and billing email.
2019-01-08 10:29:43 -07:00
Jeff Stieler
d000d3e42a
Add cases using ‘name’ and a date parameter to customers report endpoint tests.
2019-01-08 10:29:42 -07:00
Jeff Stieler
fa3379e62f
Customer report data store: fix handling of ‘name’ parameter in WHERE clause.
2019-01-08 10:29:42 -07:00
Jeff Stieler
714c1ee030
Customer report data store: fix comparison operator for date param “after” where clause.
2019-01-08 10:29:42 -07:00
Jeff Stieler
737331dd3b
Add missing _gmt date fields to customers report response items.
2019-01-08 10:29:41 -07:00
Jeff Stieler
1a4b890660
Add unit tests for customers report endpoint.
2019-01-08 10:29:41 -07:00
Jeff Stieler
04a30e668b
Customer report data store: fix SQL when where clauses are empty.
2019-01-08 10:29:40 -07:00
Jeff Stieler
1832450fd1
Update customer lookup table when orders (with registered customers) are created, updated, or refunded.
2019-01-08 10:29:40 -07:00
Jeff Stieler
2ea61e9a86
Move registered customer lookup update logic into data store class.
2019-01-08 10:29:40 -07:00
Jeff Stieler
d0e2c5162f
Place a UNIQUE constraint on the user_id key for the customer report lookup table.
2019-01-08 10:29:39 -07:00
Jeff Stieler
dd87522a5e
Customers report endpoint: only include customer link if they’re a registered user.
2019-01-08 10:29:39 -07:00
Jeff Stieler
fc20d2bb1b
Remove unnecessary subquery from customer reports data store records count query.
2019-01-08 10:29:38 -07:00
Jeff Stieler
a75a33c32f
Handle match parameter in customers report data store.
...
Note: before/after and min/max ranges are always ‘AND’.
2019-01-08 10:29:38 -07:00
Jeff Stieler
97e6f795e9
Fix copy-pasta in customers report REST controller.
2019-01-08 10:29:38 -07:00
Jeff Stieler
a180566c2f
Set default parameters for customers report query.
2019-01-08 10:29:37 -07:00
Jeff Stieler
0c919add5d
Fix query params in customers report controller.
2019-01-08 10:29:37 -07:00
Jeff Stieler
6e5fef2f7b
Include customers report files.
2019-01-08 10:29:37 -07:00
Jeff Stieler
746120e254
Change customer report lookup table columns to match API parameters.
2019-01-08 10:29:36 -07:00
Jeff Stieler
9670719fc6
Add customers report query endpoint implementation.
2019-01-08 10:29:36 -07:00
Jeff Stieler
b9f0d9fe5f
Update customers report endpoint item schema to match (visual) table designs.
2019-01-08 10:29:35 -07:00
Jeff Stieler
56beada220
Update customers report endpoint parameters to match new lookup table filters.
2019-01-08 10:29:35 -07:00
Jeff Stieler
a2154daa4c
Register customer report lookup table with core WC.
2019-01-08 10:29:35 -07:00
Jeff Stieler
281c06a5d4
Add username column to customer report lookup table.
2019-01-08 10:29:34 -07:00
Jeff Stieler
9131932910
First pass at initializing the customer lookup table with existing registered customer data.
2019-01-08 10:29:34 -07:00
Jeff Stieler
a5cf136037
Add customer report lookup table creation to initialization query.
2019-01-08 10:29:33 -07:00
Albert Juhé Lluveras
41b933e714
Add link to file in Downloads table ( https://github.com/woocommerce/woocommerce-admin/pull/1253 )
...
* Add link to file in Downloads table
* Fix wrong param name for 'ip_address'
2019-01-08 17:51:19 +01:00
Jeff Stieler
d2ca354bd5
Merge pull request woocommerce/woocommerce-admin#1099 from woocommerce/fix/advanced-filters-legend-text
...
Rework advanced filters screen reader text generation
2019-01-08 08:45:13 -07:00
Justin Shreve
f37b9319e1
Download Report API: Add path to response, fix ordering, and fix schema typo ( https://github.com/woocommerce/woocommerce-admin/pull/1248 )
...
* Add download_path to download report endpoint and fix schema typo
* Fix ordering and add tests
2019-01-08 09:51:28 -05:00
Albert Juhé Lluveras
03e17d372b
Add new props to chart component ( https://github.com/woocommerce/woocommerce-admin/pull/1247 )
...
* Add different props to chart component that were inferred from 'mode'
* Add new chart props to packages CHANGELOG
2019-01-08 10:21:47 +01:00
Joshua T Flowers
ef6d7ec4cb
Add leaderboard section ( https://github.com/woocommerce/woocommerce-admin/pull/1234 )
...
* Add leaderboard section to dashboard
* Add rows per table user preference
* Pass in rowsPerTable to leaderboards to adjust total rows
* Add styling for rows select dropdown
* Set default for total rows if tableQuery is undefined
* Remove double localization on leaderboard labels
* Simplify toggle logic for hidden leaderboards
* Move updateCurrentUserData outside of setState callback
2019-01-08 15:20:01 +08:00
Joshua T Flowers
9fef5d4f5d
Add dashboard chart links to reports ( https://github.com/woocommerce/woocommerce-admin/pull/1236 )
...
* Add dashboard chart links to reports
* Remove extra css background property from screen reader text
* Remove elements from previous click handler attempt
* Concat translation strings with sprintf
* Change chart hover interactions
* Move i18n to external dependencies
* Make legend buttons match background on hover
2019-01-08 14:48:39 +08:00
Joshua T Flowers
82200895dd
Defer chart drawing until chart component has rendered ( https://github.com/woocommerce/woocommerce-admin/pull/1244 )
2019-01-08 10:10:29 +08:00
Joshua T Flowers
d9e7e1b952
Remove unused show_product_categories_in_rest function ( https://github.com/woocommerce/woocommerce-admin/pull/1235 )
2019-01-08 09:53:02 +08:00
Joshua T Flowers
e067da06be
Add dashboard chart user preferences ( https://github.com/woocommerce/woocommerce-admin/pull/1225 )
...
* Add user preferences for shown dashboard charts
* Add user preferences for dashboard chart type
* Check if user preferences are set before assigning to state
* Move API update methods out of callbacks and use xor
2019-01-08 09:49:11 +08:00
Joshua T Flowers
f3346e9298
Add the order status column to lookup table ( https://github.com/woocommerce/woocommerce-admin/pull/1211 )
...
* Add the order status column to lookup table
* Fix order status filter for order stats
* Fix normalize order status and make static function
2019-01-08 09:16:10 +08:00
Albert Juhé Lluveras
6ca0c628b2
Connect Downloads report to REST API ( https://github.com/woocommerce/woocommerce-admin/pull/1238 )
...
* Connect downloads chart and table to REST API
* Display date picker in Downloads report
* Fix missing value for 'days' in Downloads table summary
* Fix download_count being a string instead of a number
* Minor date packages comment fixes
* Fix filters in Downloads report
* Add back empty line
* JSDoc comments style fixes
* Fix username filter not working
* Fix days counter off by 1
* Fix alignment issue
2019-01-07 12:54:42 +01:00
Albert Juhé Lluveras
3a90c07e76
Fix date issues introduced in woocommerce/woocommerce-admin#1203 ( https://github.com/woocommerce/woocommerce-admin/pull/1229 )
...
* Revert "Show today charts up to the current hour (https://github.com/woocommerce/woocommerce-admin/pull/1203 )"
This reverts commit 029ff9cc9c
.
* Add current hour to timestamp of queries ending in today
* Fix getCurrentDates not returning moment objects as specified in the docs but returning string dates
* Set appendTimestamp( ..., 'now') seconds to 00
* Add test for appendTimestamp( ..., 'now' )
* Don't accept string dates in 'appendTimestamp'
* Fix 'moment' dependency deprecation warning
2019-01-07 11:41:46 +01:00
Albert Juhé Lluveras
b08e604047
Fix bar chart in narrow viewports ( https://github.com/woocommerce/woocommerce-admin/pull/1226 )
...
* Fix bar chart in narrow viewports
* Make date width depend on the number of columns
* Return early in 'shouldBeCompact' and 'getWidth' functions
* Hide tooltip when scrolling
2019-01-07 11:41:01 +01:00
Albert Juhé Lluveras
b91cfd2cc6
Split `d3chart/utils.js` into several files ( https://github.com/woocommerce/woocommerce-admin/pull/1231 )
...
* Split d3chart/utils.js
* Add format comment to breakpoints.js
2019-01-04 11:21:42 +01:00
Paul Sealock
3cd27ed631
Merge pull request woocommerce/woocommerce-admin#1127 from woocommerce/renovate/major-wordpress-monorepo
...
Update wordpress monorepo (major)
2019-01-04 14:34:30 +13:00
Paul Sealock
d6c5f47ee1
jest update
2019-01-04 14:26:55 +13:00
Paul Sealock
c75777cd11
add variable now used in button's scss
2019-01-04 14:00:28 +13:00
Paul Sealock
5a4f6185d6
Merge pull request woocommerce/woocommerce-admin#1216 from woocommerce/fix/date-range-dow
...
DateRange: use DayOfWeek from moment locale
2019-01-04 13:30:59 +13:00
Paul Sealock
17a21e00db
DateRange: use DayOfWeek from moment locale{
2019-01-04 11:50:05 +13:00
Paul Sealock
8867166556
Merge pull request woocommerce/woocommerce-admin#1221 from woocommerce/renovate/lerna-3.x
...
Update dependency lerna to v3.8.4
2019-01-04 11:45:25 +13:00
Jeff Stieler
a8e81b709f
Fix type in textContent() test case label.
2019-01-03 13:13:23 -07:00
Jeff Stieler
f2df49ce24
Add tests for textContent().
2019-01-03 13:13:22 -07:00
Jeff Stieler
1935e75f5c
Render descriptive screen reader text for SearchFilter and SelectFilter components.
2019-01-03 13:13:22 -07:00
Jeff Stieler
850a738289
NumberFilter: don’t hide anything from accessibility tree, render descriptive span for screen reader instead of using speak().
2019-01-03 13:13:22 -07:00
Jeff Stieler
7663cb2881
NumberFilter: a11y speak a description of the filter once all inputs are populated.
2019-01-03 13:13:21 -07:00
Jeff Stieler
cbc5bc36fd
NumberFilter: remove dynamic legend text, just use “add” label.
2019-01-03 13:13:21 -07:00
Jeff Stieler
3528957923
NumberFilter: automatically hide non-interpolated strings in title label from accessibility tree.
2019-01-03 13:13:20 -07:00
Jeff Stieler
ed81b35d0a
Rework NumberFilter screen reader text.
...
Only describe full filter if all values are set. Describe each input more precisely. Based on conversation here: https://github.com/woocommerce/wc-admin/pull/1089#discussion_r241843856
2019-01-03 13:13:20 -07:00
Justin Shreve
e3e9ccb6a4
Add `reports/downloads/stats` REST API Endpoint ( https://github.com/woocommerce/woocommerce-admin/pull/1142 )
...
* First pass at downloads REST API
* Add reports/downloads/stats endpoint.
* Add tests
* Update cache key
2019-01-03 13:00:48 -05:00
Peter Fabian
13022fee4f
WIP on orders/stats segmenting.
2019-01-03 18:59:07 +01:00
Albert Juhé Lluveras
f5e2c8c5f9
Fix chart legend checkboxes not reacting to clicks ( https://github.com/woocommerce/woocommerce-admin/pull/1213 )
2019-01-03 13:00:37 +01:00
Renovate Bot
1e74730baf
Update wordpress monorepo
2019-01-03 10:45:22 +00:00
Albert Juhé Lluveras
4419faea45
Add margin to inline search tags ( https://github.com/woocommerce/woocommerce-admin/pull/1227 )
2019-01-03 09:36:31 +01:00
Joshua T Flowers
28c0d292a8
Update dashboard charts on query change ( https://github.com/woocommerce/woocommerce-admin/pull/1209 )
...
* Update dashboard charts on query change
* Remove state derived props
2019-01-03 10:51:45 +08:00
Joshua T Flowers
06ed650954
Add chart loading spinner while data is being requested ( https://github.com/woocommerce/woocommerce-admin/pull/1212 )
2019-01-03 10:51:21 +08:00
Renovate Bot
6d45a38907
Update dependency lerna to v3.8.4
2019-01-03 02:02:12 +00:00
Paul Sealock
b097cd3316
Merge pull request woocommerce/woocommerce-admin#1224 from woocommerce/renovate/webpack-4.x
...
Update dependency webpack to v4.28.3
2019-01-03 14:55:22 +13:00
Paul Sealock
b97eb434d2
Merge pull request woocommerce/woocommerce-admin#1220 from woocommerce/renovate/husky-1.x
...
Update dependency husky to v1.3.1
2019-01-03 14:54:12 +13:00
Renovate Bot
49baee6319
Update dependency webpack to v4.28.3
2019-01-03 01:06:47 +00:00
Renovate Bot
7521b3770d
Update wordpress monorepo
2019-01-03 14:03:56 +13:00
Renovate Bot
f33444601e
Update dependency husky to v1.3.1
2019-01-03 01:02:24 +00:00
Paul Sealock
d2476d650c
Merge pull request woocommerce/woocommerce-admin#1206 from woocommerce/release/0.4.0
...
Release/0.4.0
2019-01-03 13:59:24 +13:00
Paul Sealock
f8df315c27
Merge pull request woocommerce/woocommerce-admin#1222 from woocommerce/renovate/marked-0.x
...
Update dependency marked to v0.6.0
2019-01-03 12:49:44 +13:00
Timmy Crawford
a1887eb4d7
Prepping for 0.4.0
2019-01-03 12:32:00 +13:00
Paul Sealock
812cb17bd5
Merge pull request woocommerce/woocommerce-admin#1215 from woocommerce/fix/date-range-focus-endDate
...
DateRange: change focusInput prop on input focus
2019-01-03 10:48:51 +13:00
Peter Fabian
6bceabe095
Fixed extra parameters after refactoring.
2019-01-02 15:40:47 +01:00
Peter Fabian
52e1ed920f
Added placeholders for new db columns.
2019-01-02 15:29:43 +01:00
Peter Fabian
4cc042ebd8
Added back updates to product lookup update routine after wc-admin-order-functions.php was removed and code moved to individual data stores.
2019-01-02 15:26:33 +01:00
Peter Fabian
1e39bc0756
Merge branch 'master' into fix/1035
...
# Conflicts:
# includes/wc-admin-order-functions.php
2019-01-02 14:08:23 +01:00
Peter Fabian
4eaa5d911f
WIP on segmenting for orders/stats.
2019-01-02 13:35:40 +01:00
Peter Fabian
a9a0ccd185
Added refund_amount to products lookup as it needs to be reported on product level.
2019-01-02 11:33:05 +01:00
Peter Fabian
1931f3bf48
Added table name to time limit clauses.
2019-01-02 11:31:48 +01:00
Paul Sealock
37fe2eda00
Merge pull request woocommerce/woocommerce-admin#1219 from woocommerce/renovate/eslint-plugin-react-7.x
...
Update dependency eslint-plugin-react to v7.12.1
2019-01-02 16:02:08 +13:00
Renovate Bot
f112ddfbaa
Update dependency eslint-plugin-react to v7.12.1
2019-01-02 02:51:54 +00:00
Paul Sealock
c6b466694c
DateRange: change focusInput prop on input focus
2019-01-02 15:46:40 +13:00
Paul Sealock
1401bc1bd1
Search: make certain styles just for inlineTags
2019-01-02 15:44:53 +13:00
Renovate Bot
9ae31a6d60
Update dependency marked to v0.6.0
2019-01-02 01:47:50 +00:00
Paul Sealock
49fe2c1f93
CSS lint: fix errors
2019-01-02 12:38:11 +13:00
Albert Juhé Lluveras
da8c49c90f
Update chart interval thresholds ( https://github.com/woocommerce/woocommerce-admin/pull/1214 )
2019-01-01 23:30:28 +01:00
Renovate Bot
2e0468083d
Lock file maintenance
2018-12-31 06:55:16 +00:00
Timmy Crawford
78ca63a72d
Dashboard: Add Leaderboard Component ( https://github.com/woocommerce/woocommerce-admin/pull/1198 )
...
* Create Leaderboard component. Update Top Selling Products to use it.
* Use date picker values in Top Selling Products.
* Convert top selling products tests into leaderboard tests
* Updates per feedback.
* Skipping failing test for now.
2018-12-31 14:42:46 +08:00
Joshua T Flowers
7bbdd78bde
Add missing intervals to product reports ( https://github.com/woocommerce/woocommerce-admin/pull/1200 )
...
* Add missing intervals to product reports
* Fix failing tests for product stats API
Before and after query should be within today's date since missing intervals for other days will be filled in with remaining dates.
2018-12-31 13:20:22 +08:00
Albert Juhé Lluveras
029ff9cc9c
Show today charts up to the current hour ( https://github.com/woocommerce/woocommerce-admin/pull/1203 )
...
* Show today charts up to the current hour
* Fix tests
* Fix doc comment
2018-12-28 10:10:40 -08:00
Joshua T Flowers
2d5e592a10
Update chart button active state for dashboard charts ( https://github.com/woocommerce/woocommerce-admin/pull/1202 )
...
* Update chart button active state for dashboard charts
* Add default active state when no query is present
2018-12-28 09:59:05 -08:00
Joshua T Flowers
8dc3398636
Extract IE11 specific styles to IE stylesheet ( https://github.com/woocommerce/woocommerce-admin/pull/1199 )
...
* Extract IE11 specific styles to IE stylesheet
* Enqueue IE stylesheet conditionally
* Use server-side http user agent to detect IE11
IE11 and up does not detect conditional comments for stylesheets so match user agent string and conditionally load stylesheet.
2018-12-28 09:58:03 -08:00
Albert Juhé Lluveras
21ab4da93e
Enable Autoprefixer 'grid' in packages ( https://github.com/woocommerce/woocommerce-admin/pull/1204 )
2018-12-28 09:57:18 -08:00
Joshua T Flowers
3f388028ac
Sort default category response by category ID ( https://github.com/woocommerce/woocommerce-admin/pull/1201 )
2018-12-28 09:50:58 -08:00
Joshua T Flowers
268182e75f
Add invalid note ID test ( https://github.com/woocommerce/woocommerce-admin/pull/1197 )
2018-12-28 09:44:53 -08:00
Joshua T Flowers
e0596ea249
Add 404 response to REST response for invalid note ID ( https://github.com/woocommerce/woocommerce-admin/pull/1194 )
2018-12-28 09:51:22 +08:00
Albert Juhé Lluveras
a0f23c93c9
Improve Charts X-axis when displaying a single date ( https://github.com/woocommerce/woocommerce-admin/pull/1195 )
...
* Improve Charts X-axis when displaying a single date
* Add tests for getXTicks
* Fix typo in tests
* Add assertion in compareStrings test for dates with commas
* Update interval options
* Fix secondaryDate always showing 12AM
* Don't convert dates to UTC when checking if they belong to the same date
2018-12-27 19:51:58 +01:00
Albert Juhé Lluveras
7287fa3b22
Allow Search box to break into several lines ( https://github.com/woocommerce/woocommerce-admin/pull/1196 )
2018-12-27 18:53:20 +01:00
renovate[bot]
bca949feb6
Update dependency eslint to v5.11.1 ( https://github.com/woocommerce/woocommerce-admin/pull/1172 )
2018-12-27 11:52:40 +08:00
Joshua T Flowers
b3979ff984
Fix order status product sync ( https://github.com/woocommerce/woocommerce-admin/pull/1151 )
...
* Move order product sync to product data store
* Move order taxes sync to taxes data store
* Move order coupons sync to coupons data store
* Use table_name constant in data syncs
* Remove order data for incomplete order statuses
* Fix report rebuild tool
* Update comments to describe create/update entry reference
* Fix data_store_init function name change
2018-12-27 11:49:00 +08:00
Joshua T Flowers
987929da83
Filter by categories query param in categories data store ( https://github.com/woocommerce/woocommerce-admin/pull/1179 )
2018-12-27 11:31:08 +08:00
Joshua T Flowers
017db0b339
Sync order status on refund delete ( https://github.com/woocommerce/woocommerce-admin/pull/1074 )
2018-12-27 11:11:33 +08:00
Peter Fabian
48dfb54a48
Switched average order value from gross to net revenue ( https://github.com/woocommerce/woocommerce-admin/pull/1158 )
...
* Switched Average order value calculation from gross to net revenue.
* Updated tests to reflect switch of average order value from gross to net revenue.
2018-12-26 15:49:46 -08:00
Timmy Crawford
1ed9813e3b
Chart: Fix/current of undefined ( https://github.com/woocommerce/woocommerce-admin/pull/1153 )
...
* Add undefined check for this.listRef
* Update changelog
2018-12-26 09:27:24 -08:00
renovate[bot]
a4434e3e67
Pin dependency babel-plugin-transform-es2015-template-literals to 6.22.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1178 )
2018-12-26 15:21:54 +08:00
renovate[bot]
ce3d895c27
Update dependency grunt-wp-i18n to v1.0.3 ( https://github.com/woocommerce/woocommerce-admin/pull/1173 )
2018-12-26 15:21:04 +08:00
renovate[bot]
fc6057184b
Update dependency lerna to v3.8.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1175 )
2018-12-26 15:19:54 +08:00
renovate[bot]
b22c2f6c83
Update dependency webpack to v4.28.2 ( https://github.com/woocommerce/woocommerce-admin/pull/1177 )
2018-12-26 13:55:29 +08:00
renovate[bot]
48c90fc5b9
Update dependency husky to v1.2.1 ( https://github.com/woocommerce/woocommerce-admin/pull/1174 )
2018-12-26 13:49:42 +08:00
renovate[bot]
eea6ef7314
Update dependency css-loader to v2.1.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1171 )
2018-12-26 13:46:24 +08:00
Joshua T Flowers
ab310320dd
Fix ie11 blank screen by babel transforms ( https://github.com/woocommerce/woocommerce-admin/pull/1170 )
...
* Add specific vendor packages to babel loader to fix ie11 transforms
* Remove unused buble
2018-12-26 10:46:32 +08:00
Joshua T Flowers
c747d3399e
Use unbounded per_page limit in apiFetch for categories ( https://github.com/woocommerce/woocommerce-admin/pull/1149 )
2018-12-26 10:37:02 +08:00
Joshua T Flowers
f88311b372
Check for product categories before loading value ( https://github.com/woocommerce/woocommerce-admin/pull/1164 )
...
* Check for product categories before loading value
* Filter product category list for undefined values
* Remove unnecessary double check of productCategories
2018-12-25 18:28:37 +08:00
Albert Juhé Lluveras
f51dba44a0
Charts: fix weird Y-axis ticks when max Y value is a small number ( https://github.com/woocommerce/woocommerce-admin/pull/1168 )
2018-12-25 11:16:52 +01:00
Albert Juhé Lluveras
1ca1dba3e7
Add Categories report filters ( https://github.com/woocommerce/woocommerce-admin/pull/1167 )
...
* Add Categories report filters
* Remove the option to sort categories by name, given that it's not supported by the endpoint
2018-12-25 10:28:20 +01:00
Joshua T Flowers
024d267ae6
Set minimum content height to prevent cutoff of absolute content ( https://github.com/woocommerce/woocommerce-admin/pull/1166 )
...
* Set minimum content height to prevent cutoff of absolute content
* Add admin bar height vars for SCSS and apply them
2018-12-25 12:34:24 +08:00
Joshua T Flowers
7cf9e293e1
Fix margin on dashboard block charts ( https://github.com/woocommerce/woocommerce-admin/pull/1165 )
2018-12-25 11:02:23 +08:00
Joshua T Flowers
dcaa35c7bf
Add product SKU to products report ( https://github.com/woocommerce/woocommerce-admin/pull/1161 )
...
* Add product SKU to products report
* Add tests for SKU data
2018-12-25 11:02:06 +08:00
Joshua T Flowers
bdcebd7ea3
Clear filter query on removing all items ( https://github.com/woocommerce/woocommerce-admin/pull/1162 )
2018-12-25 11:01:39 +08:00
Albert Juhé Lluveras
5c8cfbc03f
Report components docs ( https://github.com/woocommerce/woocommerce-admin/pull/1140 )
...
* Extend docs to report components
* Improve inline documentation in some files
* Update doc files
* Undo unnecessary doc changes
* Remove unnecessary line breaks in sidebar
* Rename 'Client components' to 'Analytics components'
* Minor docs fixes
* Rename toc contents to toc sections
* Update endpoint props doc to add an example and more information
* Fix outdated comment
* Fix merge error
2018-12-22 12:46:10 +01:00
Joshua T Flowers
9a4e613a2e
Make user column preferences refer to hidden columns ( https://github.com/woocommerce/woocommerce-admin/pull/1150 )
...
* Make user column preferences refer to hidden columns
* Destructure props in onColumnsChange
2018-12-22 10:27:30 +08:00
renovate[bot]
dfc7d8ae1b
Update dependency core-js to v2.6.1 ( https://github.com/woocommerce/woocommerce-admin/pull/1128 )
2018-12-21 20:03:41 -06:00
Justin Shreve
579113910d
Add remaining filters to the downloads report ( https://github.com/woocommerce/woocommerce-admin/pull/1141 )
...
* Add order number, username, and IP address filters to the downloads report.
* Adds tests
2018-12-21 16:40:41 -08:00
Robert Elliott
ebd857cefa
Add/chart dashboard block ( https://github.com/woocommerce/woocommerce-admin/pull/1002 )
...
* added new block and dashboard charts
section title and filters... lots of duplicate keys
toggle chart types in block heading
* Updates per feedback.
* Add some documentaiton about new interactive prop on chart/legend
* Revert a few files that only had whitespace changes.
2018-12-21 16:24:26 -08:00
Justin Shreve
49a0f0f6d2
Add `reports/downloads` REST API endpoint. ( https://github.com/woocommerce/woocommerce-admin/pull/1122 )
...
* First pass at downloads REST API
* Handle PR feedback
2018-12-21 14:57:46 -08:00
Joshua T Flowers
56577101c4
Add customer numeric filters ( https://github.com/woocommerce/woocommerce-admin/pull/1116 )
...
* Add customer numeric filters
* Add between params to customers controller
* Escape strings for translation and change inputs to currency
* Add Currency shorthand filter
2018-12-21 12:07:54 +08:00
Joshua T Flowers
f83b0e0615
Add product categories wc-api and breadcrumbs ( https://github.com/woocommerce/woocommerce-admin/pull/1131 )
...
* Add support for product cats in wp rest api
* Add categories to WC API
* Add category breadcrumbs component
* Increase per_page limit size for product cat API
* Use wc/v3 API to pull product categories
* Return category IDs in API
* Add categories to product reports
* Add category IDs test for REST API
* Switch to getResource instead of require for total count selector
2018-12-21 10:44:27 +08:00
Paul Sealock
47b674ace2
Merge pull request woocommerce/woocommerce-admin#1069 from woocommerce/update/calendar-component-inline-picker
...
Add Single Date Picker
2018-12-21 15:25:54 +13:00
renovate[bot]
69a11b50e4
Update dependency autoprefixer to v9.4.3 ( https://github.com/woocommerce/woocommerce-admin/pull/1125 )
2018-12-20 20:20:05 -06:00
Paul Sealock
c76ceb2591
DatePicker: cleanup example, propTypes
2018-12-21 15:19:10 +13:00
Joshua T Flowers
716ebc0658
Hook up coupons to REST API ( https://github.com/woocommerce/woocommerce-admin/pull/1112 )
2018-12-21 10:13:57 +08:00
Paul Sealock
524bb0c96f
DateRangeFilterPicker
2018-12-21 11:58:01 +13:00
Paul Sealock
46c313cdc7
REST API: Categories: optimize query by removing get_the_terms
2018-12-21 11:08:08 +13:00
renovate[bot]
4e68b56fdc
Update dependency css-loader to v2.0.1 ( https://github.com/woocommerce/woocommerce-admin/pull/1129 )
...
* Update dependency css-loader to v2.0.1
* http -> https
2018-12-20 13:25:36 -06:00
Joshua T Flowers
5bab0767b6
Fix item refunds report data ( https://github.com/woocommerce/woocommerce-admin/pull/1059 )
...
* Fix product report data issue when issuing item refund
* Modify product order lookup stats when refund is given
* Remove products where orders are refunded
* Remove unused var and add comment about early return
* Reduce product revenue if quantity still remains after refund
* Fix subtotal array key and abs value for float
* Change product_gross_revenue to product_net_revenue
2018-12-21 02:40:44 +08:00
renovate[bot]
3718692ad6
Update babel monorepo ( https://github.com/woocommerce/woocommerce-admin/pull/1124 )
2018-12-20 09:56:02 -06:00
Peter Fabian
999c7fe8ca
Updated REST API controller for segmenting, added schema changes missed before.
2018-12-20 12:35:45 +01:00
Peter Fabian
4d6ea24e9e
Db update for product lookup table to enable segmenting.
2018-12-20 12:28:29 +01:00
Albert Juhé Lluveras
1cb7378f76
Fix Tag misalignment inside Search in Firefox ( https://github.com/woocommerce/woocommerce-admin/pull/1132 )
2018-12-20 10:06:52 +01:00
Paul Sealock
280e78cf01
Merge pull request woocommerce/woocommerce-admin#1134 from woocommerce/fix/variations-query-params
...
Variations Table: add product, variations query params
2018-12-20 14:19:06 +13:00
renovate[bot]
01a8fe9741
Pin dependency replace to 1.0.1 ( https://github.com/woocommerce/woocommerce-admin/pull/1118 )
2018-12-19 17:54:33 -06:00
Kelly Dwan
867b51a18e
Add Accessibility section to the PR template ( https://github.com/woocommerce/woocommerce-admin/pull/1133 )
2018-12-19 17:33:02 -05:00
Paul Sealock
eebc20e293
Variations Table: add product, variations query params
2018-12-20 08:43:35 +13:00
Peter Fabian
dff8b63271
Merge pull request woocommerce/woocommerce-admin#1010 from woocommerce/fix/845
...
Added /reports/coupons and /reports/coupons/stats endpoints
2018-12-19 13:55:28 +01:00
Peter Fabian
4802736a0e
Switched from using coupon code filter to coupon id filter by query parameter.
2018-12-19 13:37:54 +01:00
Albert Juhé Lluveras
5f593d663e
Downloads Report: add summary number, chart and table ( https://github.com/woocommerce/woocommerce-admin/pull/1113 )
...
* Downloads Report: add summary number, chart and table
* Use template literal for Downlodas table link
* Add columnPrefsKey to Downloads report table
2018-12-19 12:18:43 +01:00
Albert Juhé Lluveras
776e8d31fe
Merge pull request woocommerce/woocommerce-admin#1085 from woocommerce/add/name-filter-autocompleter
...
Customers report: Name Advanced Filter
2018-12-19 10:39:22 +01:00
Timmy Crawford
eab3592d67
Update npm versions and build script ( https://github.com/woocommerce/woocommerce-admin/pull/1120 )
...
* Use publish from-package.
* chore(release): publish
- @woocommerce/components@1.3.0
- @woocommerce/csv-export@1.0.1
- @woocommerce/date@1.0.3
2018-12-18 17:25:26 -08:00
Joshua T Flowers
08d3e2c38d
Change product_gross_revenue to product_net_revenue ( https://github.com/woocommerce/woocommerce-admin/pull/1105 )
...
* Change product_gross_revenue to product_net_revenue
* Change product_gross_revenue to product_net_revenue in category data store
* Change to net_revenue in frontend category report
2018-12-19 08:56:27 +08:00
Jeff Stieler
a96272a5fe
Merge pull request woocommerce/woocommerce-admin#1119 from woocommerce/fix/1115-number-filter-uncontrolled-warning
...
Fix “uncontrolled input” warning in NumberFilter component.
2018-12-18 16:34:39 -07:00
Jeff Stieler
6f773e7537
Merge pull request woocommerce/woocommerce-admin#1039 from woocommerce/fix/807-getsettings-deprecated
...
Remove use of deprecated @wordpress/date getSettings()
2018-12-18 16:24:41 -07:00
Kevin Killingsworth
0a1542c1cc
Add section on "Dev Docs" ( https://github.com/woocommerce/woocommerce-admin/pull/1123 )
...
* Add section on "Dev Docs"
This adds information on what the devdocs are and how to view them.
* Fix components link
* Add docsify serve docs option
* Remove npx serve bit
2018-12-18 16:49:30 -06:00
Jeff Stieler
8ee2267209
Update @woocommerce/date package changelog and version number.
2018-12-18 15:46:48 -07:00
Jeff Stieler
26b6255ca3
Remove defunct `getSettings()` from devdocs example.
2018-12-18 15:46:47 -07:00
Jeff Stieler
7bc46d2c8c
Fix loadLocaleData() tests, remove superfluous moment-js tests.
2018-12-18 15:46:47 -07:00
Jeff Stieler
9581a658f5
Add expected locale settings to JS test setup.
2018-12-18 15:46:46 -07:00
Jeff Stieler
3285ac4980
Include Date component required settings in app-wide settings object instead of using experimental retrieval from @wordpress/date.
2018-12-18 15:46:46 -07:00
Jeff Stieler
4d37bdc67c
@wordpress/date getSettings() is deprecated, use __experimentalGetSettings() instead.
2018-12-18 15:45:41 -07:00
renovate[bot]
c706b8e133
Lock file maintenance ( https://github.com/woocommerce/woocommerce-admin/pull/1104 )
...
* Lock file maintenance
* package-lock.json: http -> https
2018-12-18 16:26:48 -06:00
Kevin Killingsworth
e72a696429
Add nvmrc for newest lts release ( https://github.com/woocommerce/woocommerce-admin/pull/1108 )
...
This adds an .nvmrc file which points to the latest lts release of node.
For those people who use nvm, this will keep them current on the latest
stable version.
2018-12-18 16:06:27 -06:00
Justin Shreve
f18dbe373c
Fix dataEndpoints notice ( https://github.com/woocommerce/woocommerce-admin/pull/1095 )
2018-12-18 16:08:32 -05:00
Paul Sealock
15bbbe739d
Hook up Categories table to endpoint
2018-12-19 08:36:42 +13:00
Timmy Crawford
3c2cdc4322
Fix error on dashboard. ( https://github.com/woocommerce/woocommerce-admin/pull/1121 )
...
* Fix error on dashboard.
* Revert changes from woocommerce/woocommerce-admin#1101
2018-12-18 11:32:25 -08:00
Jeff Stieler
92c96b834e
Fix “uncontrolled input” warning in NumberFilter component.
2018-12-18 09:01:30 -07:00
Kevin Killingsworth
600cfd899a
Add fix for npm install https issue ( https://github.com/woocommerce/woocommerce-admin/pull/1109 )
...
We've been running afoul of a known npm issue that has existed for over
6 months, where our package-lock.json file switches between http: and
https: on several dependencies:
https://npm.community/t/some-packages-have-dist-tarball-as-http-and-not-https/285/17
Since npm itself always uses https as noted in the ticket above, this
change forces all dependencies in the package-lock.json file to be
https, therefore eliminating the churn on our package-lock.json files
each time we run `npm install`.
2018-12-18 09:00:41 -06:00
Albert Juhé Lluveras
9adf2c6c86
Merge pull request woocommerce/woocommerce-admin#1117 from woocommerce/add/1030-customer-username-filter
...
Add customer username filter to Customers page
2018-12-18 15:55:53 +01:00
Albert Juhé Lluveras
3a1890c22c
Remove unnecessary variable assignment
2018-12-18 15:06:06 +01:00
Albert Juhé Lluveras
c4290f757e
Merge branch 'master' into add/name-filter-autocompleter
2018-12-18 13:52:48 +01:00
Albert Juhé Lluveras
3c876fedf1
Filter missing parts of the name before displaying it
2018-12-18 13:46:24 +01:00
Albert Juhé Lluveras
741a0098fd
Add placeholder to customers table searchbox
2018-12-18 13:35:58 +01:00
Albert Juhé Lluveras
a836d1a89b
Add customer username filter to Customers page
2018-12-18 12:11:45 +01:00
Albert Juhé Lluveras
03adb993c9
Use <Link> instead of <a> for Orders table link
2018-12-18 10:44:43 +01:00
Albert Juhé Lluveras
9ef07a41b6
Merge pull request woocommerce/woocommerce-admin#1075 from woocommerce/add/extend-customers-data-from-endpoint
...
Extend customers table data with data from WC endpoint
2018-12-18 09:30:03 +01:00
Peter Fabian
85e6e8df8d
Added correct cache handling.
2018-12-18 12:01:42 +08:00
Peter Fabian
6c456657e8
Changed coupon_gross_discount to amount.
2018-12-18 12:01:42 +08:00
Peter Fabian
f0b97a42b0
Changed data type in schema for dates to date-time.
2018-12-18 12:01:41 +08:00
Peter Fabian
db8004aaf7
PHPCS fixes.
2018-12-18 12:01:41 +08:00
Peter Fabian
28f6f7ece5
PHPCS changes so that I will be able to merge master into this branch.
...
Otherwise I get errors during merge commit.
2018-12-18 12:01:41 +08:00
Peter Fabian
46bf4bedc8
Added basic tests for coupons and coupons/stats.
2018-12-18 12:01:40 +08:00
Peter Fabian
21ac75d21e
Made extended_info always appear in coupons endpoint.
2018-12-18 12:01:40 +08:00
Peter Fabian
3e45c6a82c
Fixed invalid sort criterion for coupons endpoint.
2018-12-18 12:01:39 +08:00
Peter Fabian
3535f52d78
Removed interval parameter for coupons endpoint.
2018-12-18 12:01:39 +08:00
Peter Fabian
6950522f91
Removed timezone info that was added incorrectly
2018-12-18 12:01:39 +08:00
Peter Fabian
a346f13beb
Added extended info.
2018-12-18 12:01:38 +08:00
Peter Fabian
5eee869a74
Added small fixes to set up coupon endpoints.
2018-12-18 12:01:38 +08:00
Peter Fabian
1630cb9c6f
Removed unsupported parameter from coupons endpoint.
2018-12-18 12:01:18 +08:00
Peter Fabian
357b8f914a
Added query classes and data stores for coupons and coupons/stats.
2018-12-18 12:01:17 +08:00
Peter Fabian
e273d055ef
Moved functions from orders data store to allow code reuse.
2018-12-18 12:00:33 +08:00
Joshua T Flowers
9486ab7896
Update/taxes endpoint hookup/941 ( https://github.com/woocommerce/woocommerce-admin/pull/1008 )
...
* Hook up taxes to endpoint
* Hook up tax stats endpoint
* Add default tax stat totals for empty results
* Create subtotals from intervals in API
* Change orders to orders_count to keep consistent naming
2018-12-18 10:26:46 +08:00
Justin Shreve
5924be5fa2
Add base downloads report page ( https://github.com/woocommerce/woocommerce-admin/pull/1106 )
2018-12-17 15:50:45 -05:00
Justin Shreve
e42ad6956b
Add customer email filter ( https://github.com/woocommerce/woocommerce-admin/pull/1092 )
...
* Add customer email filter
* Handle PR feedback: Fix up if statement and add extra info to validation comment
2018-12-17 11:20:11 -05:00
Albert Juhé Lluveras
f819f762c4
Update docs
2018-12-17 12:22:58 +01:00
Albert Juhé Lluveras
c341137a1b
Store shouldRenderTags in a variable
2018-12-17 12:21:17 +01:00
Albert Juhé Lluveras
d8bf42fc4d
Typo
2018-12-17 12:20:23 +01:00
Albert Juhé Lluveras
501842a421
Rename 'isError' methods to 'getError' when they return an object instead of a boolean
2018-12-15 13:38:54 +01:00
Albert Juhé Lluveras
77381c0e20
Rename isError to getError in report table props
2018-12-15 13:15:13 +01:00
Albert Juhé Lluveras
41c48126bf
Rename isGetCustomersError to getCustomersError
2018-12-15 13:09:47 +01:00
Jeff Stieler
08c31151b4
Merge pull request woocommerce/woocommerce-admin#1089 from woocommerce/add/1028-advanced-numerical-value-filter
...
Add Advanced Numerical Value Filter
2018-12-14 18:02:16 -07:00
Albert Juhé Lluveras
e4fb53b8f8
Stock report ( https://github.com/woocommerce/woocommerce-admin/pull/977 )
...
* Create Stock report
* Create Stock report page
* Display product name in Stock table
* Hide 'Parent' column in Stock table
* Add stock to endpoints map
* Remove dateRangeFilter.show from ReportFilters
* Fix stock status link
* Set the default order to 'stock_quanity'
* Add correct name to StockReport
2018-12-14 15:58:08 -08:00
Albert Juhé Lluveras
f9533afdda
Rename 'totalCount' to 'totalResults' ( https://github.com/woocommerce/woocommerce-admin/pull/1093 )
2018-12-14 15:56:52 -08:00
Jeff Stieler
6eadf9c875
NumberFilter: rename “more than” and “less than” to represent a non-positional input range for “between” rules, simplify rule change logic.
2018-12-14 16:53:13 -07:00
Timmy Crawford
88b81beac0
Updating changelogs for npm release. ( https://github.com/woocommerce/woocommerce-admin/pull/1088 )
...
* Updating changelogs for npm release.
* Adding in a few more changelog items.
2018-12-14 10:44:24 -08:00
Jeff Stieler
fea292125d
Fix import path for formatCurrency().
2018-12-14 11:26:11 -07:00
Albert Juhé Lluveras
346ed578ae
Update comment to specify extendItemsMethodNames must be available in 'wc-api'
2018-12-14 18:12:56 +01:00
Albert Juhé Lluveras
3e9f141eca
Fixes
2018-12-14 18:06:02 +01:00
Jeff Stieler
93b05bba94
Square off the corners of TextControlWithAffixes.
2018-12-14 09:59:37 -07:00
Jeff Stieler
2b8526bbfb
Stope NumberFilter inputs from overflowing their container in “between” mode.
2018-12-14 09:59:23 -07:00
Albert Juhé Lluveras
d972ebf672
Only update search filters based on query if the query changed
2018-12-14 17:38:31 +01:00
Albert Juhé Lluveras
302ff934d1
Make sure 'filter:advanced' is set in the URL when setting a search filter
2018-12-14 17:30:07 +01:00
Albert Juhé Lluveras
07227271fd
Avoid duplicated ids when searching customers from the table search box
2018-12-14 17:19:30 +01:00
Albert Juhé Lluveras
bc5073ecd4
Make sure filters are updated when using the table search box
2018-12-14 17:14:24 +01:00
Claudio Sanches
80f1b2f256
[REST API] Stock endpoint ( https://github.com/woocommerce/woocommerce-admin/pull/974 )
...
* New reports stock endpoint
* Register new endpoint
* Unit tests
* Included "name" into stock results
* Fixed sku type
* Improve stock _links returning properly links for variations and parent products
* Fixed docblock
* Sort stock by stock_quantity by default
* Fixed orderby
* Ignore sticky posts
* Fixed variable names
2018-12-14 07:43:39 -08:00
Albert Juhé Lluveras
4656f459a7
Remove old comment
2018-12-14 16:35:32 +01:00
Justin Shreve
43055d25a5
Add a country filter to the customers report ( https://github.com/woocommerce/woocommerce-admin/pull/1080 )
...
* Add an advanced country filter to the customers report
* Handle PR feedback: Fix PropType warnings, move filter/label logic to config getLabels() function, fix typo.
* Add flag thumbnail to the country filter
* Update README and CHANGELOG
2018-12-14 10:13:34 -05:00
Albert Juhé Lluveras
578e01b12f
Hide selected items in filters from table search box autocompleter
2018-12-14 14:31:57 +01:00
Albert Juhé Lluveras
bb16ba07c8
Use search box for searches instead of comparisons in Customers table
2018-12-14 14:31:41 +01:00
Albert Juhé Lluveras
ce080f4fe0
Use WC regular endpoint instead of reports endpoint to load customers autocompleter suggestions
2018-12-14 11:27:59 +01:00
renovate[bot]
5e1437b8ea
Pin dependency docsify-cli to 4.3.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1086 )
2018-12-14 13:34:47 +08:00
renovate[bot]
39ed6de5d4
chore(deps): update dependency raw-loader to v1 ( https://github.com/woocommerce/woocommerce-admin/pull/1051 )
2018-12-14 13:30:45 +08:00
renovate[bot]
0c22ec990e
Update dependency html-to-react to v1.3.4 ( https://github.com/woocommerce/woocommerce-admin/pull/1011 )
2018-12-14 13:28:44 +08:00
Andrew Dixon
c343ebb81b
Adding npm test to "helper scripts" section. ( https://github.com/woocommerce/woocommerce-admin/pull/1087 )
2018-12-13 16:47:13 -08:00
Timmy Crawford
dec2bf07b2
Add alert when wc-admin build does not exist. ( https://github.com/woocommerce/woocommerce-admin/pull/1077 )
...
* Add alert when wc-admin build does not exist.
* Updates per feedback.
* Typo and fix for ci ( i hope )
2018-12-13 16:44:58 -08:00
Jeff Stieler
aef873b386
Add examples of NumberFilter to the docs.
2018-12-13 17:30:29 -07:00
Jeff Stieler
89b4ab4d10
Format currency values for NumberFilter legend text.
2018-12-13 17:30:29 -07:00
Jeff Stieler
8e8e6d6d97
Use store’s currency symbol position setting to select prefix/suffix when rendering an advanced number filter input.
2018-12-13 17:30:29 -07:00
Jeff Stieler
de53c50514
Handle NumberFilter value when changing rule type.
2018-12-13 17:30:29 -07:00
Jeff Stieler
38bb06d39b
Render “currency” input type for NumberFilter component.
2018-12-13 17:30:29 -07:00
Jeff Stieler
cb09c195c8
Render a currency-prefixed input for advanced number filters of type “currency”.
2018-12-13 17:30:27 -07:00
Jeff Stieler
e620f8ef92
Generate screen reader text for number filter value .
2018-12-13 17:30:14 -07:00
Jeff Stieler
39a2da70b6
Display advanced number filters inline.
2018-12-13 17:30:01 -07:00
Jeff Stieler
477c83bac2
Use external config for NumberFilter rules. Fixes filter query parsing.
2018-12-13 17:29:59 -07:00
Jeff Stieler
3f2ea6bfb6
Add WIP NumberFilter advanced filter component.
2018-12-13 17:29:39 -07: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
Kelly Dwan
846d3b7f43
Add documentation for how to write documentation ( https://github.com/woocommerce/woocommerce-admin/pull/1083 )
...
* Add documentation for how to write documentation
* Update docsify & add prismjs dependency
2018-12-13 16:15:52 -05: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
Kelly Dwan
1adf421137
Change renovate to a once-weekly schedule ( https://github.com/woocommerce/woocommerce-admin/pull/1076 )
2018-12-13 12:20:36 -05:00
Timmy Crawford
19b209fca4
Add util to packages to fix build. ( https://github.com/woocommerce/woocommerce-admin/pull/1079 )
2018-12-13 09:06:26 -08:00
Kelly Dwan
87daca2723
Add IDs to affixes, use these in the input’s describedby
2018-12-13 12:04:57 -05:00
Kelly Dwan
8f5861f8b5
Update the examples
2018-12-13 12:04:28 -05:00
Jeff Stieler
b8ba4ed16d
Fix linting issues with TextControlWithAffixes.
2018-12-13 09:34:46 -07:00
Jeff Stieler
32018506dc
Generate TextControlWithAffixes documentation from the component itself.
2018-12-13 09:21:47 -07:00
Jeff Stieler
700f3ad20f
Make affix background white and remove wrapping behavior from TextControlWithAffixes.
2018-12-13 09:05:03 -07:00
renovate[bot]
2dbbc39071
chore(deps): update dependency node-sass to v4.11.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1043 )
2018-12-13 15:48:59 +08:00
renovate[bot]
2583818a0b
chore(deps): update dependency eslint to v5.10.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1041 )
2018-12-13 15:34:44 +08:00
Jeff Stieler
e3be069601
Hook up TextControlWithAffixes to state for interactivity.
2018-12-12 23:15:39 -07:00
Jeff Stieler
44f025f308
Remove Calypso transform focus hack from TextControlWithAffixes (it’s broken here).
2018-12-12 23:11:27 -07:00
renovate[bot]
711d05c763
chore(deps): update dependency eslint-plugin-jest to v22.1.2 ( https://github.com/woocommerce/woocommerce-admin/pull/986 )
2018-12-13 12:57:14 +08:00
renovate[bot]
25ed79669e
chore(deps): update babel monorepo to v7.2.0 ( https://github.com/woocommerce/woocommerce-admin/pull/981 )
2018-12-13 12:55:20 +08:00
renovate[bot]
ea8ac0117b
chore(deps): update dependency lerna to v3.6.0 ( https://github.com/woocommerce/woocommerce-admin/pull/945 )
2018-12-13 12:32:01 +08:00
renovate[bot]
1afd824729
Update dependency webpack to v4.27.1 ( https://github.com/woocommerce/woocommerce-admin/pull/1007 )
2018-12-13 12:24:01 +08:00
Joshua T Flowers
ee5b282957
Fix screen reader label IDs ( https://github.com/woocommerce/woocommerce-admin/pull/1071 )
2018-12-13 09:59:16 +08:00
Timmy Crawford
88b899f7cb
Remove trailing slash on base_dir variable. ( https://github.com/woocommerce/woocommerce-admin/pull/1078 )
2018-12-12 13:13:49 -08:00
Jeff Stieler
0f7d8a753a
Add documentation page for TextControlWithAffixes.
...
Just a combination of the TextControl docs from Gutenberg and the FormTextInputWithAffixes doc from Calypso. :)
2018-12-12 13:51:25 -07:00
Jeff Stieler
28a57f2a1d
Rework border radius logic for all affix combinations including wrapping cases.
2018-12-12 13:51:25 -07:00
Jeff Stieler
4bfe767ad7
Add TextControlWithAffixes to devdocs listing.
2018-12-12 13:51:25 -07:00
Jeff Stieler
aab376a731
Rework TextControlWithAffixes to keep BaseControl at the top of the component tree.
2018-12-12 13:51:25 -07:00
Jeff Stieler
704ee79359
Port over Calypso’s FormTextInputWithAffixes component as TextControlWithAffixes.
2018-12-12 13:51:25 -07:00
Peter Fabian
43b60489ff
Merge pull request woocommerce/woocommerce-admin#1060 from woocommerce/fix/remove-force-update-in-tests
...
Removed force update in tests
2018-12-12 19:47:16 +01: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
40b00ec7b2
Merge pull request woocommerce/woocommerce-admin#1052 from woocommerce/add/table-header-screenreader-label
...
Add screen reader labels to table headers which are not buttons
2018-12-12 11:33:44 +01:00
renovate[bot]
9601cd64dd
Update dependency core-js to v2.6.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1001 )
2018-12-12 16:00:36 +08:00
renovate[bot]
0249dc758c
Update dependency css-loader to v2 ( https://github.com/woocommerce/woocommerce-admin/pull/1020 )
2018-12-12 15:50:39 +08:00
Kevin Killingsworth
92d79bf605
Update CONTRIBUTING.md with PR instructions ( https://github.com/woocommerce/woocommerce-admin/pull/1066 )
...
When I was trying to commit on a fresh clone, I discovered we have to `composer install` before we can commit. So I updated our documentation to reflect that and gave it a home in some other instructions.
2018-12-11 21:02:08 -06: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
Kevin Killingsworth
62c9a952a1
Table: Add onColumnsChange ( https://github.com/woocommerce/woocommerce-admin/pull/1056 )
...
This adds an `onColumnsChange` property which is called when the column
visiblity is toggled on the table. It also cleans up a bit of the
showCols code and fixes an incorrect update in the component update.
2018-12-11 13:34:16 -06:00
Timmy Crawford
f0b832bf24
Release v0.3.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1065 )
...
* Update versions to 0.3.0
* Release 0.3.0
2018-12-11 11:03:30 -08:00
Paul Sealock
c7546865b9
Merge pull request woocommerce/woocommerce-admin#1058 from woocommerce/update/docs-and-script
...
Update docs and remove reference to internal components
2018-12-12 07:36:25 +13: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
Kelly Dwan
3763ec5f16
Add the auto labeler config ( https://github.com/woocommerce/woocommerce-admin/pull/1064 )
2018-12-11 10:40:12 -06:00
Peter Fabian
256a7fd708
Test should run without explicitly calling update for lookups.
...
Same as code in general, tests should also check whether the lookups are updated correctly without explicitly needing to call update on data stores.
2018-12-11 12:41:47 +01:00
Peter Fabian
deba4a354a
PHPCS updates.
2018-12-11 12:41:35 +01:00
Peter Fabian
c612f85c6c
PHPCS updates.
2018-12-11 12:39:44 +01: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
Joshua T Flowers
04d3ce6eb1
Add taxes endpoint and data store ( https://github.com/woocommerce/woocommerce-admin/pull/1000 )
...
* Add taxes endpoint and data store
* Add sorting options and normalize orderby param
* Add report taxes unit tests
* Add tax rate to response
* Add country, state, priority, and name to response
* Fix tax codes query param
* Add class comment
* Add missing to record query
* Add comment about ambiguous column
2018-12-11 08:58:05 +08:00
Joshua T Flowers
557cec57cb
Add tax stats endpoint ( https://github.com/woocommerce/woocommerce-admin/pull/1019 )
2018-12-11 08:55:05 +08:00
Paul Sealock
30289cd240
Update docs and remove reference to internal components
2018-12-11 11:27:32 +13: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
Justin Shreve
569947fb0e
Remove lodash noConflict ( https://github.com/woocommerce/woocommerce-admin/pull/1053 )
2018-12-10 11:48:19 -05: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
e8e67e8a76
Add screen reader labels to table headers which are not buttons
2018-12-10 16:45:15 +01:00
Jeff Stieler
4cd01a3b3b
Merge pull request woocommerce/woocommerce-admin#1006 from woocommerce/fix/856-typeerror-interval-over-100-days
...
Use `wc-api` for Reports.
2018-12-10 08:26:42 -07:00
Albert Juhé Lluveras
51bc679fd0
Fix customers autocompleter not working
2018-12-10 16:23:34 +01: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
25f63b0404
Merge pull request woocommerce/woocommerce-admin#1040 from woocommerce/fix/979-devdocs-console-errors
...
Fix console errors in DevDocs
2018-12-10 08:15:44 -07:00
Jeff Stieler
7291a880eb
Update filter component examples with real usage from Orders report.
...
Also resolves JS errors that were occurring.
2018-12-07 17:07:15 -07:00
Jeff Stieler
71e210d1f8
Fix missing key warning on TableCard devdocs example.
2018-12-07 16:47:30 -07: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
44e97caeab
Hide date range filter if dateRangeFilter.show is false
2018-12-07 14:19:20 -06:00
Albert Juhé Lluveras
3a9beb238e
Add missing comma to chart tooltip label ( https://github.com/woocommerce/woocommerce-admin/pull/1021 )
2018-12-07 11:47:30 -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
Timmy Crawford
7f35fe7ed1
Update/php sniffs ( https://github.com/woocommerce/woocommerce-admin/pull/1016 )
...
* Use WooCommerce Sniffs 0.0.5
* Updated phpcs.xml.dist to use the correct PHPCS rules
2018-12-06 09:31:02 -08:00
Kevin Killingsworth
8bb3175172
Table Component: Update showcols to use keys ( https://github.com/woocommerce/woocommerce-admin/pull/971 )
...
* component/table: Update showcols to use keys
This updates the table component to use keys to keep track of which
columns should be visible instead of column indices. This will be
necessary for keeping track of which columns were selected after a
component has been unmounted and re-mounted again later. (e.g. for
persistence or saving of user preferences)
* components/table: Add changelog entry
2018-12-05 16:30:01 -06: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
Jeff Stieler
c170e289f5
Merge pull request woocommerce/woocommerce-admin#853 from woocommerce/add/711-bump-notes
...
Activity Panel: Inbox: Bump notes for expiring subs at certain days-remaining thresholds
2018-12-05 13:40:04 -07:00
Kevin Killingsworth
a6993f4709
Update @fresh-data/framework to 0.5.1 ( https://github.com/woocommerce/woocommerce-admin/pull/997 )
2018-12-05 10:52:49 -06:00
Robert Elliott
ca28c42ead
separate legend styling out
2018-12-05 12:50:07 +02:00
Robert Elliott
c9ccc015ca
move chart and d3chart components into @woocommerce/components package
2018-12-05 12:50:04 +02:00
Joshua T Flowers
5d3c771d45
Trigger sync_order on order stats table when refunding ( https://github.com/woocommerce/woocommerce-admin/pull/990 )
2018-12-05 10:10:22 +08: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
Justin Shreve
cf8d2bd6b0
Ignore PHPUnit updates in renovate ( https://github.com/woocommerce/woocommerce-admin/pull/993 )
2018-12-04 14:05:29 -05: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
renovate[bot]
0e92e03027
chore(deps): update dependency webpack to v4.27.0 ( https://github.com/woocommerce/woocommerce-admin/pull/992 )
2018-12-04 10:28:47 -05:00
renovate[bot]
19aad73f03
Update dependency autoprefixer to v9.4.2 ( https://github.com/woocommerce/woocommerce-admin/pull/976 )
2018-12-04 10:05:09 -05: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
Peter Fabian
670801cee8
Merge pull request woocommerce/woocommerce-admin#978 from woocommerce/fix/PHP52-compat
...
Fixed PHP 5.2 compatibility
2018-12-04 12:00:37 +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
Peter Fabian
15b4681d30
Updated refactored function call from variations data store.
2018-12-03 20:14:05 +01:00
Peter Fabian
ef0f11182a
Added missing function parameter.
2018-12-03 20:07:44 +01: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
5e6ccfdbe4
Merge pull request woocommerce/woocommerce-admin#969 from woocommerce/add/935-hook-up-order-panel
...
Activity Panel: Orders: Hook up to orders data.
2018-12-03 11:28:32 -07:00
Jeff Stieler
a7b30d9779
Orders panel: use fresh-data instead of @wordpress/data.
2018-12-03 11:05:14 -07:00
renovate[bot]
7d427d7cb0
chore(deps): update dependency stylelint to v9.9.0 ( https://github.com/woocommerce/woocommerce-admin/pull/948 )
2018-12-03 12:30:28 -05:00
renovate[bot]
caa705688c
Update dependency webpack to v4.26.1 ( https://github.com/woocommerce/woocommerce-admin/pull/929 )
2018-12-03 12:27:01 -05:00
renovate[bot]
b86356e065
Update dependency eslint-plugin-jest to v22.1.0 ( https://github.com/woocommerce/woocommerce-admin/pull/927 )
2018-12-03 12:04:24 -05:00
Peter Fabian
e297e5ba7f
Fixed TABLE_NAME references.
...
To be compatible with PHP 5.2.
2018-12-03 18:01:50 +01:00
renovate[bot]
0d24d8a9ac
Update dependency ast-types to v0.11.7 ( https://github.com/woocommerce/woocommerce-admin/pull/925 )
2018-12-03 12:00:53 -05:00
renovate[bot]
2e62f23534
Update dependency husky to v1.2.0 ( https://github.com/woocommerce/woocommerce-admin/pull/899 )
2018-12-03 11:53:51 -05:00
renovate[bot]
54639586a7
Update dependency marked to v0.5.2 ( https://github.com/woocommerce/woocommerce-admin/pull/894 )
2018-12-03 11:50:12 -05: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
Kelly Dwan
0045f2b7a4
Bump @woocommerce/components to version 1.2.0 ( https://github.com/woocommerce/woocommerce-admin/pull/967 )
...
* Version bump & changelog update
* Roll version back so that lerna updates it
* chore(release): publish
- @woocommerce/components@1.2.0
* Update packages documentation after trying to follow it
2018-12-03 10:09:16 -05:00
Peter Fabian
b8dff97e00
Fixed PHP 5.2 compatibility.
2018-12-03 14:44:43 +01:00
Peter Fabian
6e68247701
Merge pull request woocommerce/woocommerce-admin#953 from woocommerce/fix/740
...
Added support for ordering by product name in products endpoint.
2018-12-03 11:56:28 +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
Paul Sealock
516062975b
try/variations-endpoint
2018-12-03 12:02:58 +13:00
Paul Sealock
164a67144b
try/variations-endpoint
2018-12-03 11:49:37 +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
Kelly Dwan
6e3242c421
Packages – Components: Move proptype-validator utility into src ( https://github.com/woocommerce/woocommerce-admin/pull/962 )
...
* Move proptype-validator utility into src
Only src files are transpiled for external use, so requiring this file was breaking my jest tests
* Bump the package version + changelog
2018-11-30 13:19:17 -05: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
Albert Juhé Lluveras
109592ebc9
Don't encode search text in autocompleters before stringifying it ( https://github.com/woocommerce/woocommerce-admin/pull/959 )
2018-11-29 19:00:51 -06:00
David Levin
3d4ca67f89
Merge pull request woocommerce/woocommerce-admin#958 from woocommerce/update/summary-number-focus
...
Update/summary number focus
2018-11-29 13:55:45 -08:00
David Levin
f2f8ebebe1
Update styles to remove hheight calc and negative margin h4x
2018-11-29 13:49:45 -08:00
Kelly Dwan
062b3fd529
Packages: Add changelogs and documentation ( https://github.com/woocommerce/woocommerce-admin/pull/949 )
...
* Add changelogs for latest package releases
* Add lerna instructions
* Add placeholder changelogs for other packages
* Add “working with existing packages"
2018-11-29 16:34:01 -05: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
Allen Snook
b27aa9b0aa
Merge pull request woocommerce/woocommerce-admin#946 from woocommerce/update/0.2.0
...
Roll version to 0.2.0
2018-11-28 18:53:18 -08:00
Paul Sealock
2a4b9bada9
Merge pull request woocommerce/woocommerce-admin#951 from woocommerce/fix/order-statuses-prefix
...
Remove order statuses "wc-" prefix
2018-11-29 15:01:06 +13:00
Albert Juhé Lluveras
d59e5803d3
Hide selected items from autocomplete dropdown ( https://github.com/woocommerce/woocommerce-admin/pull/932 )
2018-11-28 16:55:11 -06:00
David Levin
4bfea20e56
Ensure all edges of focus use core-grey-dark-300
2018-11-28 13:31:49 -08:00
David Levin
f938afe946
Update Summary Focus Styles
2018-11-28 13:14:15 -08:00
Paul Sealock
47291b3873
Filters: code -> coupon in config
2018-11-29 09:29:12 +13:00
Paul Sealock
41efde0b23
Merge branch 'fix/749' of github.com:woocommerce/wc-admin into fix/749
2018-11-29 09:05:52 +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
Peter Fabian
8b80de9bc2
Added support for ordering by product name in products endpoint.
2018-11-28 15:14:34 +01:00
Peter Fabian
99e2c463c7
Added parameter mapping for products/stats endpoint.
2018-11-28 11:04:18 +01:00
Peter Fabian
e6cca3c083
Replaced code_includes/_excludes with coupon_* as agreed.
2018-11-28 10:53:11 +01:00
Paul Sealock
0ab5c735be
Remove order statuses wc- prefix
2018-11-28 15:58:17 +13:00
Allen Snook
c9857b9c88
Call wp_set_script_translations when possible
2018-11-28 10:36:08 +13:00
Allen Snook
d223eb25fd
Roll to 0.2.0
2018-11-27 13:12:16 -08:00
Kelly Dwan
4b8969acc7
chore(release): publish
...
- @woocommerce/components@1.1.0
- @woocommerce/date@1.0.2
- @woocommerce/navigation@1.1.0
2018-11-27 15:57:27 -05:00
Peter Fabian
eff3a97573
Added time clause to WHERE subquery and fixed product selection.
2018-11-27 21:41:52 +01:00
Peter Fabian
bc29615454
Removed unnecessary SQL conditions.
2018-11-27 21:40:13 +01:00
Peter Fabian
a765a6df97
Added tests for advanced filters of orders report.
2018-11-27 21:39:14 +01:00
Jonathan Belcher
e2faa2fee2
Tag component snapshots ( https://github.com/woocommerce/woocommerce-admin/pull/877 )
...
* Tag component snapshots
* Make snapshots better
* Update snapshots
2018-11-27 13:57:52 -05:00
Kelly Dwan
8828345f86
Remove import from local files ( https://github.com/woocommerce/woocommerce-admin/pull/939 )
...
These are exported packages, they can’t rely on any local files.
2018-11-27 10:46:22 -08: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
Allen Snook
dbb386c6e5
Merge pull request woocommerce/woocommerce-admin#938 from woocommerce/fix/937-js-translations
...
Call wp_set_script_translations when possible
2018-11-27 09:50:51 -08:00
Peter Fabian
688b47aa7c
Added tests for advanced filters of orders report.
2018-11-27 17:04:16 +01:00
Peter Fabian
f9a46423e0
Added get_order_statuses to REST controllers where it's required.
2018-11-27 16:39:11 +01:00
Peter Fabian
c1af1da752
Updated structure of SQL queries for coupons and products.
...
As there can be multiple couopns and products assigned to one order, it requires different handling to what was initially implemented.
2018-11-27 16:34:12 +01:00
Peter Fabian
8e5709ce26
Updated get_unique_products to be more versatile and support running in other contexts.
...
In some cases of advanced filters, it produced incorrect SQL code.
Additionally, split of where clause to time clause and rest needed to be reflected here, too.
2018-11-27 16:32:42 +01:00
Peter Fabian
32e30ac274
Made sync of order stats table run also on clean_post_cache.
...
Otherwise, some changes in master data for orders would not be reflected, as save_post action is skipped if order is updated while the save_post action is running.
2018-11-27 16:29:21 +01:00
Peter Fabian
216b7c94ca
Updated structure for includes/excludes coupons and products subqueries.
...
As there can be multiple coupons and products assigned to one order, it needs to ba handled differently when constructing SQL query.
2018-11-27 16:26:50 +01:00
Peter Fabian
7dd611f4d4
Added table name to time period sql params.
...
Without this, the subquery could not be used in some contexts, as the column name was ambiguous.
2018-11-27 16:23:40 +01:00
Peter Fabian
8dbcbfc6cb
Store coupon id, not coupon item id in the stat table.
2018-11-27 16:18:42 +01:00
Peter Fabian
942db641e8
Added extra trigger for updating stats tables.
...
If order is updated while save_post action is in progress, then the update does not trigger stats table update, thus stats table gets out of sync with master data.
2018-11-27 16:17:30 +01: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
Allen Snook
a7667c2aff
Call wp_set_script_translations when possible
2018-11-26 16:18:36 -08:00
Jonathan Belcher
eddf8bc609
Remove duplicate config
...
https://github.com/woocommerce/wc-admin/pull/618#issuecomment-441742419
2018-11-26 15:54:50 -05:00
Jonathan Belcher
a308fcc830
Adds snapshots for the Split Button component ( https://github.com/woocommerce/woocommerce-admin/pull/891 )
...
* Adds snapshots for the Split Button component
* Update snapshots
* Remove duplicate test
2018-11-26 13:44:05 -05: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
Peter Fabian
a86560498e
Added primary key to coupon lookup.
...
Otherwise REPLACE query adds a multiple identical rows.
2018-11-23 22:29:47 +01: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
222a70608a
Update package-lock.json
2018-11-21 20:59:11 -07: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
Paul Sealock
f4c2140258
Update uses of Gutenberg popover for content sizing
2018-11-21 12:00:40 +13: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
Kelly Dwan
38ef25a272
Add missing dependency from components package ( https://github.com/woocommerce/woocommerce-admin/pull/890 )
2018-11-20 14:23:42 -05:00
Paul Sealock
1a9ce46cdb
Merge pull request woocommerce/woocommerce-admin#764 from woocommerce/add/variations-table
...
Product Detail: Add Variations Table
2018-11-20 13:48:37 +13:00
Paul Sealock
67c7dabc29
Add Variations table
2018-11-20 13:42:55 +13:00
Paul Sealock
762cc3d9dd
Merge pull request woocommerce/woocommerce-admin#840 from woocommerce/add/release-notes-note-pr-template
...
Add a note about using SwaggerHub in PR template
2018-11-20 13:26:59 +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
renovate[bot]
982e2ccc76
chore(deps): update dependency webpack to v4.26.0 ( https://github.com/woocommerce/woocommerce-admin/pull/888 )
2018-11-19 09:55:29 -05:00
renovate[bot]
e3e0af6427
chore(deps): update dependency concurrently to v4.1.0 ( https://github.com/woocommerce/woocommerce-admin/pull/886 )
2018-11-19 09:38:32 -05:00
renovate[bot]
0f5bee1dd8
chore(deps): update dependency recast to v0.16.1 ( https://github.com/woocommerce/woocommerce-admin/pull/885 )
2018-11-19 09:34:51 -05:00
renovate[bot]
126aaf3e89
chore(deps): lock file maintenance ( https://github.com/woocommerce/woocommerce-admin/pull/887 )
2018-11-19 09:31:10 -05:00
Albert Juhé Lluveras
2acdd04d7a
Remove duplicated 'Coupons' menu entry and reorder them ( https://github.com/woocommerce/woocommerce-admin/pull/878 )
2018-11-16 14:34:40 -06:00
Kelly Dwan
741f5cc6c6
chore(release): publish
...
- @woocommerce/components@1.0.1
- @woocommerce/date@1.0.1
2018-11-16 15:31:11 -05:00
Kelly Dwan
87cf118878
Remove imports from file that doesn’t exist in packages ( https://github.com/woocommerce/woocommerce-admin/pull/876 )
2018-11-16 14:31:20 -05:00
Peter Fabian
db9d6e03e7
Added spaces around operator.
2018-11-16 18:22:40 +01:00
Peter Fabian
c1cf221773
Fixed typos.
2018-11-16 18:02:19 +01:00
Peter Fabian
26debd77c3
WIP on advanced filters.
...
Plus fixing bugs:
- fixed tests
- fixed schema definition to reflect response data
- split WHERE SQL clause into time constraints and rest
2018-11-16 17:51:33 +01:00
renovate[bot]
098b24e99e
fix(deps): update dependency @babel/runtime-corejs2 to v7.1.5 ( https://github.com/woocommerce/woocommerce-admin/pull/865 )
2018-11-16 09:14:34 -05:00
renovate[bot]
97faa52909
fix(deps): update dependency d3-array to v2 ( https://github.com/woocommerce/woocommerce-admin/pull/872 )
2018-11-16 09:13:50 -05: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
Peter Fabian
46923de3d2
Removed superfluous unsets.
2018-11-16 12:37:15 +01:00
Peter Fabian
7c6d0dc314
Handled case where match parameter is missing.
2018-11-16 12:32:13 +01:00