Commit Graph

1824 Commits

Author SHA1 Message Date
renovate[bot] 5e42c540da Update dependency eslint-plugin-jest to v22.3.0 (https://github.com/woocommerce/woocommerce-admin/pull/1633) 2019-02-22 07:08:54 -05:00
renovate[bot] bb1a6bfe2e Update dependency eslint to v5.14.1 (https://github.com/woocommerce/woocommerce-admin/pull/1632) 2019-02-22 06:55:10 -05:00
Justin Shreve 063bea4486 Return an error when installing unit tests if WP < 5 (https://github.com/woocommerce/woocommerce-admin/pull/1645) 2019-02-22 06:31:18 -05:00
Joshua T Flowers 88c2973e2a Fix null values in CSV columns export (https://github.com/woocommerce/woocommerce-admin/pull/1652)
* Fix null values in CSV columns export

* Check if value is null or undefined to avoid falsey for 0 values

* Add null value to CSV tests

* Improve changelog message
2019-02-22 10:02:38 +08:00
Joshua T Flowers 9c95a62f3b Hide woo notices button when side menu is open (https://github.com/woocommerce/woocommerce-admin/pull/1658) 2019-02-22 09:42:42 +08:00
Claudio Sanches c94406e0d7 Merge pull request woocommerce/woocommerce-admin#1665 from woocommerce/fix/not-a-number
fix warning in some versions of PHP
2019-02-21 19:44:37 -03:00
Ron Rennick 0a4d98fb9f fix warning in some versions of PHP 2019-02-21 15:59:09 -04:00
Tiago Noronha e6b0f3476c Merge pull request woocommerce/woocommerce-admin#1560 from woocommerce/fix/1429-hello-dolly
Stop Hello Dolly lyrics from displaying in the notices tab
2019-02-21 18:58:51 +00:00
Tiago Noronha 1ae9ffc188 Add new function to remove unwanted notices and remove Hello Dolly 2019-02-21 18:37:45 +00:00
Tiago Noronha 039ca2a1a9 Remove Hello Dolly exception from JS 2019-02-21 18:34:50 +00:00
Kelly Dwan 4ccc7ddaea Update changelog (https://github.com/woocommerce/woocommerce-admin/pull/1661) 2019-02-21 11:47:28 -05:00
Justin Shreve 2af0aedd95 Add comparison support to the coupons report (https://github.com/woocommerce/woocommerce-admin/pull/1647) 2019-02-21 10:16:44 -05:00
Kelly Dwan b98c05c331 Components: Add SearchListControl (https://github.com/woocommerce/woocommerce-admin/pull/1628)
* Add SearchListControl as exported component

* Add entry to changelog (and fix versioning)

* Fix repeating character mixin

* Update textdomain
2019-02-20 15:18:27 -05:00
Albert Juhé Lluveras 00ff9fa8b5 Fix table search position in small viewports (https://github.com/woocommerce/woocommerce-admin/pull/1646) 2019-02-20 20:44:12 +01:00
Albert Juhé Lluveras 1488a55b7c Preserve chart colors when changing visible keys in charts with less keys than 'selectionLimit' (https://github.com/woocommerce/woocommerce-admin/pull/1606)
* Preserve chart colors when changing visible keys in 'time-comparison' charts

* Actually preserve colors in charts that don't have more keys than selectionLimit
2019-02-20 16:53:37 +01:00
Justin Shreve c3b0934ad3 Close the WP menu after navigating between reports (https://github.com/woocommerce/woocommerce-admin/pull/1634) 2019-02-20 10:18:27 -05:00
Ron Rennick 3aa1f6197a Merge pull request woocommerce/woocommerce-admin#1591 from woocommerce/fix/1590
implement WC_ADMIN_ABSPATH in wc-admin.php, class-wc-admin-api-init.php
2019-02-20 09:42:07 -04:00
Albert Juhé Lluveras 0a10291969 Don't show variations table when there is an active search (https://github.com/woocommerce/woocommerce-admin/pull/1601) 2019-02-20 10:21:19 +01:00
Albert Juhé Lluveras 1660484d4c Escape commas in search terms (https://github.com/woocommerce/woocommerce-admin/pull/1605) 2019-02-20 10:21:05 +01:00
Albert Juhé Lluveras 5e4f14a81d Fix style of dashboard summary number placeholder (https://github.com/woocommerce/woocommerce-admin/pull/1623)
* Fix style of dashboard summary number placeholder

* Make store performance block to be a normal <div> instead of a Card

* Fix dashboard summary numbers style

* Simplify code
2019-02-20 10:20:50 +01:00
Joshua T Flowers aef11ef586 Refactor customer ID creation (https://github.com/woocommerce/woocommerce-admin/pull/1619)
* Fix indendtation for table creations

* Refactor how customers are created on order update

* Check if user has a role of customer or previous orders before storing

* Add tests for user creation

* Allow null emails for customers

* Only select customer_id in guest ID query
2019-02-20 10:30:00 +08:00
Joshua T Flowers 08e43c35cf Execute single order pending jobs immediately when wp_debug is enabled (https://github.com/woocommerce/woocommerce-admin/pull/1581)
* Execute all pending jobs when debug mode is enabled

* Only process single order jobs immediately

* Replace wp_debug condition with a filter

* Bypass scheduling and process the order on save_post

* Change hook name to include order
2019-02-20 10:05:11 +08:00
Joshua T Flowers 73ff2d37e8 Update activity panels order endpoint (https://github.com/woocommerce/woocommerce-admin/pull/1578)
* Only show customer name if available

* Map customer data to extended_info in orders API response

* Add gross total and refund total to orders API response

* Hook up report orders endpoint to activity panel orders

* Add on-hold orders to activity panel orders

* Destructure extended_info in case of filtering

* Add customer link to orders panel
2019-02-20 09:51:43 +08:00
Joshua T Flowers 0ef2dc27f4 Fix long search tags (https://github.com/woocommerce/woocommerce-admin/pull/1597)
* Fix long search tags

* Remove spaces from css calc expression

Co-Authored-By: joshuatf <joshuatf@gmail.com>

* Fix overflowing autocomplete search
2019-02-20 09:40:21 +08:00
Joshua T Flowers 44604bcd02 Reduce net order total by refunded amount less tax and shipping refunds (https://github.com/woocommerce/woocommerce-admin/pull/1600)
* Reduce net order total by refunded amount less tax and shipping refunds

* Fix net_totals in tests with refunds
2019-02-20 09:39:42 +08:00
Justin Shreve 4f64358c8e Fix customer filters and download user filtering (https://github.com/woocommerce/woocommerce-admin/pull/1618)
* Add the ability to search name, username, and email fields on the customer endpoint, update autocompletors, add in include parameter.

* Update the username to be returned in the download response, update download filtering based on customer id, and only rename include parameter on main customers endpoint.
2019-02-19 14:35:29 -05:00
Ron Rennick e1af3cdf18 implement WC_ADMIN_ABSPATH in class-wc-admin-api-init.php 2019-02-19 15:27:42 -04:00
Joshua T Flowers 694130d455 Change fixed legend button height to min-height (https://github.com/woocommerce/woocommerce-admin/pull/1602) 2019-02-19 10:29:58 +08:00
Joshua T Flowers ffa7e016d4 Fix double focus on autocomplete search list after options are loaded (https://github.com/woocommerce/woocommerce-admin/pull/1582)
* Add isFocused to state to determine whether options list should be rendered

* Use state query instead of adding isFocused

* Remove search tag styling
2019-02-19 10:28:40 +08:00
Justin Shreve 732a8a4986 Fix variation name format to match core (https://github.com/woocommerce/woocommerce-admin/pull/1583) 2019-02-18 13:24:48 -05:00
Justin Shreve 79dc87b9bb Fix product category report views (https://github.com/woocommerce/woocommerce-admin/pull/1587) 2019-02-18 13:18:21 -05:00
Joshua T Flowers f0ec3c49a1 Add tax refund calculations (https://github.com/woocommerce/woocommerce-admin/pull/1556)
* Add item and shipping refund calucations to taxes on order update

* Sync taxes on refund delete

* Fix up tax stats API testing

* Add refunds to tax stats API tests
2019-02-18 10:20:16 +08:00
Ron Rennick 6a11764397 Merge pull request woocommerce/woocommerce-admin#1589 from woocommerce/fix/or-greater
update missed version `or greater` in update message
2019-02-15 16:13:45 -04:00
Ron Rennick 71660fa997 implement WC_ADMIN_ABSPATH in wc-admin.php 2019-02-15 16:03:32 -04:00
Ron Rennick c377e27411 update missed version `or greater` in update message 2019-02-15 15:41:19 -04:00
Ron Rennick e2b220bb54 Merge pull request woocommerce/woocommerce-admin#1570 from woocommerce/phpcs/tests
Phpcs sniff fixes for unit tests
2019-02-15 14:50:50 -04:00
Tiago Noronha 6d58ed97c4 Add array of notice ids and/or classes and iterate to collapse 2019-02-15 18:01:18 +00:00
Ron Rennick 00b640e2f0 Merge pull request woocommerce/woocommerce-admin#1567 from woocommerce/fix/1450
update chart type query string key to chartType
2019-02-15 12:58:22 -04:00
Peter Fabian 3793400646 Merge pull request woocommerce/woocommerce-admin#1515 from woocommerce/fix/489-date_date_gmt
Added timezone handling
2019-02-15 17:23:12 +01:00
Peter Fabian f42aa073b1 Changed the date_created columns to datetime, in the new location of db create script.
date_created should store local date and time, not UTC timestamp, as the data needs to be sliced and diced by local date/time, not by UTC date/time.
2019-02-15 17:13:12 +01:00
Peter Fabian f7d0d2379f Merge branch 'master' into fix/489-date_date_gmt
# Conflicts:
#	includes/class-wc-admin-api-init.php
2019-02-15 17:07:38 +01:00
Ron Rennick 9f911df053 update changelog, coding style per review 2019-02-15 10:37:56 -04:00
Tiago Noronha 69cdb7996c Merge pull request woocommerce/woocommerce-admin#1569 from woocommerce/fix/1568-filters-button-styling
Add margin to advanced filters Add button
2019-02-15 11:11:11 +00:00
Albert Juhé Lluveras fe11ff475f Chart legend: show pointer in all clickable area (https://github.com/woocommerce/woocommerce-admin/pull/1566) 2019-02-15 11:55:04 +01:00
Albert Juhé Lluveras b61dff32f9 Sort tabular data when selecting a Summary Number (https://github.com/woocommerce/woocommerce-admin/pull/1564)
* Sort tabular data when selecting a Summary Number

* Fix 'orderby' param in orders endpoint
2019-02-15 11:54:41 +01:00
Albert Juhé Lluveras 0cb1aac8b9 Fix logic used to show legend total block (https://github.com/woocommerce/woocommerce-admin/pull/1559) 2019-02-15 11:50:41 +01:00
Albert Juhé Lluveras bce82c7572 Move IE11 specific CSS to ie.scss file (https://github.com/woocommerce/woocommerce-admin/pull/1558) 2019-02-15 11:49:51 +01:00
Justin Shreve a1c60537e5 Fix downloads stats data store sorting (https://github.com/woocommerce/woocommerce-admin/pull/1561) 2019-02-14 23:06:01 -05:00
Joshua T Flowers cba9ab61b2 Update returning customer values to respect excluded statuses (https://github.com/woocommerce/woocommerce-admin/pull/1557)
* Excluded statuses from customers oldest orders

* Fix tests for returning customer where excluded statuses are used

* Remove save_post hook used for testing

* Extract conditions for first order swapping
2019-02-15 10:09:16 +08:00
Ron Rennick 767b047f4b phpcs for admin-notess.php 2019-02-14 19:20:47 -04:00