Commit Graph

262 Commits

Author SHA1 Message Date
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
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
Tiago Noronha 5d3ce289f9 Merge pull request woocommerce/woocommerce-admin#1563 from woocommerce/fix/1402-legend-transition
Remove margin between chart legends in column direction
2019-02-14 21:23:39 +00:00
Tiago Noronha 75ee8d600b Merge pull request woocommerce/woocommerce-admin#1533 from woocommerce/fix/1511-advanced-filters-ie11
Advanced filters alignment in IE11
2019-02-14 21:23:29 +00:00
Tiago Noronha 86f3da4e9c Merge pull request woocommerce/woocommerce-admin#1530 from woocommerce/fix/1513-legend-text-align
Chart legend alignment in IE11
2019-02-14 21:23:16 +00:00
Tiago Noronha 40dd9b5f91 Remove placeholders from components 2019-02-14 20:58:02 +00:00
Ron Rennick 86c89e741a one more type -> chartType 2019-02-14 16:03:54 -04:00
Tiago Noronha 816e122408 Revert "Conditionally include `{{rule /}}` in select-filter `mixedString`"
This reverts commit e6c811ae21.
2019-02-14 19:57:27 +00:00
Ron Rennick e7c55d7ca5 update query string for chart type tests 2019-02-14 15:34:57 -04:00
Ron Rennick 41251c3e9c fix scss whitespace 2019-02-14 15:31:20 -04:00
Tiago Noronha e6c811ae21 Conditionally include `{{rule /}}` in select-filter `mixedString` 2019-02-14 19:27:13 +00:00
Tiago Noronha 8e6913a6c6 Add margin to advanced filters Add button 2019-02-14 18:21:33 +00:00
Ron Rennick f5efd10638 fix merge conflicts 2019-02-14 14:11:15 -04:00
Ron Rennick 1422865efd remove stray debugging code 2019-02-14 13:40:25 -04:00
Ron Rennick 7f4bb8df63 update chart type query string key to chartType 2019-02-14 13:35:08 -04:00
Tiago Noronha ed8c587545 Remove margin between chart legends in column direction 2019-02-14 16:31:20 +00:00
Albert Juhé Lluveras 71bae4cdec Refactor D3Chart (https://github.com/woocommerce/woocommerce-admin/pull/1532)
* Refactor d3chart

* Add check that tooltip exists before trying to hide it
2019-02-14 11:29:56 +01:00
Joshua T Flowers 25ed8a5b60 Only update search labels when IDs are mismatched (https://github.com/woocommerce/woocommerce-admin/pull/1539) 2019-02-14 11:15:10 +08:00
Paul Sealock a60d977d5c Merge pull request woocommerce/woocommerce-admin#1550 from woocommerce/fix/autocompleter-debounce
Autocompleter: increase debounce
2019-02-14 14:47:02 +13:00
Tiago Noronha 2b12f2ceba IE11: Vertically center advanced filters title span 2019-02-14 01:38:23 +00:00
Tiago Noronha 9d8ed29ea3 IE11: Move placeholders from config files to components and add span around title 2019-02-14 01:35:47 +00:00
Paul Sealock 45b6708a43 Autocompleter: increase debounce 2019-02-14 14:23:08 +13:00
Tiago Noronha 3495ec74dd IE11: Add custom CSS class to advanced filters controls 2019-02-13 23:56:50 +00:00
Paul Sealock 13335d342d Segmented Selection: re-apply borders for all browsers 2019-02-14 12:41:35 +13:00
Jeff Stieler c862de29d3 Merge pull request woocommerce/woocommerce-admin#1534 from woocommerce/fix/1455-customers-report-name-search
Hook up customers report table search box
2019-02-13 13:55:47 -08:00
Tiago Noronha 5724aed4cb IE11: Fix grid layout for advanced filters line items 2019-02-13 20:31:11 +00:00
Albert Juhé Lluveras 4962ee5e4e Empty chart message (https://github.com/woocommerce/woocommerce-admin/pull/1499)
* Show empty chart and summary numbers when search returns no results

* Preserve chart mode in empty searches

* Show message in empty charts

* Improve code order

* Add CHANGELOG message

* Rename emptySearch to emptySearchResults

* Improve emptyMessage propTypes comment

* Remove duplicated code

* Improve CHANGELOG message

* Create util function to check if chart is empty

* Update CHANGELOG message

* Add baseValue prop to Chart
2019-02-12 22:42:02 +01:00
Jeff Stieler 926fdcfb97 Hook `v4/customers` endpoint up to customers report/lookup table and change name search to be fuzzy. 2019-02-12 11:06:22 -08:00
Tiago Noronha a2744c9728 Fix chart legend alignment in IE11 2019-02-12 12:51:40 +00:00
Albert Juhé Lluveras b3e028bc81 Show empty chart and summary numbers when search returns no results (https://github.com/woocommerce/woocommerce-admin/pull/1491)
* Show empty chart and summary numbers when search returns no results

* Add changelog message

* Preserve chart mode in empty searches

* Add tests

* Fix CSS Lint error

* Make sure the legend updates when there is no data and it's not requesting

* Rename 'emptySearch' to 'emptySearchResults'

* Fix tests
2019-02-07 10:57:47 +01:00
Joshua T Flowers 8c3973a445 Add manage_stock to stock controller response (https://github.com/woocommerce/woocommerce-admin/pull/1475)
* Add manage_stock to stock controller response

* Add manage_stock property to stock report tests

* Add changelog entry

* Make stock quantity float instead of int

* Add manage_stock to the products API response

* Check for manage_stock in products table

* Add manage_stock property to product API tests
2019-02-07 16:29:01 +08:00
Kevin Killingsworth 368c6d729b @woocommerce/navigation v2.0.0 (https://github.com/woocommerce/woocommerce-admin/pull/1494)
* @woocommerce/navigation v2.0.0

* Bump `@wordpress/components` to use navigation v2.0.0
2019-02-06 19:26:22 -06:00
Kevin Killingsworth 8b7e309e6f navigation: Lazy-create history (https://github.com/woocommerce/woocommerce-admin/pull/1472)
history.createHashHistory() is being called whenever this package is
imported, which causes the URL to redirect to a hash. This is
unnecessary in cases where elements of wc-admin are used outside of a
completely controlled/routed page.

This lazy-creates the history object only when it's needed and therefore
avoids the URL redirection unless history features are in use.
2019-02-06 13:28:29 -06:00
Justin Shreve 81fcab5709 Fix product comparison + color scale on charts with lots of options (https://github.com/woocommerce/woocommerce-admin/pull/1481)
* Fix color scale on charts with lots of options

* Fix product comparison
2019-02-06 10:46:37 -05:00
Joshua T Flowers b7379def1b Format todo comments to match WC Core format (https://github.com/woocommerce/woocommerce-admin/pull/1474)
* Format todo comments to match WC Core format

* Remove variations todo comment
2019-02-06 14:41:53 +08:00
Justin Shreve 949afce248 Add Product Detail Report & Finish Comparison Chart Mode Functionality (https://github.com/woocommerce/woocommerce-admin/pull/1391)
Product detail report and comparison

Code cleanup

Fix 404 on product variations endpoint after rebase

Fix up tests

Fix loading indicators and add some checks around malformed variation response

Add date filtering SQL bits to the variations query

Handle PR feedback: Fix viewport, fix duplicate product issue, fix legend display reset, fix bargraph overflow, fix some coding standards/whitespace, add extra variation santiziation.

Fix scroll on wide charts, and fix undefined prop getting passed into report chart render
2019-02-05 13:12:58 -05:00
Albert Juhé Lluveras df97ac4d49 Improve display of 0-value charts (https://github.com/woocommerce/woocommerce-admin/pull/1470)
* Improve display of 0-value charts

* Add Changelog comment
2019-02-05 10:56:26 +01: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
Albert Juhé Lluveras 7916100009 Fix CSS Lint warning (https://github.com/woocommerce/woocommerce-admin/pull/1469) 2019-02-04 18:32:27 +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 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
Kelly Dwan ca34ad0274 Bump version (https://github.com/woocommerce/woocommerce-admin/pull/1442) 2019-01-31 17:47:50 -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