Commit Graph

1675 Commits

Author SHA1 Message Date
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