Commit Graph

353 Commits

Author SHA1 Message Date
Kelly Dwan 6cab171d59 SearchListControl: Add an onSearch callback to allow dynamic updating of the list (https://github.com/woocommerce/woocommerce-admin/pull/1992)
* SearchListControl: Add an onSearch callback to allow dynamic updating the list

* Update changelog
2019-04-09 11:42:21 -04:00
Paul Sealock 1efdbf6256 Merge pull request woocommerce/woocommerce-admin#1994 from woocommerce/fix/search-filter-focus
Fix/search filter focus
2019-04-09 08:06:40 +12:00
Paul Sealock 6c079012e6 Search filter: focus input box instead of back button 2019-04-09 07:22:14 +12:00
Albert Juhé Lluveras f47f1097bb Fix date filter layout on Android (https://github.com/woocommerce/woocommerce-admin/pull/1996)
* Make filter date content position static

* Make date picker scrollable
2019-04-08 11:54:27 +02:00
Albert Juhé Lluveras dbf0a8d169 Split D3Chart utils axis file (https://github.com/woocommerce/woocommerce-admin/pull/2000) 2019-04-05 11:01:12 +02:00
Albert Juhé Lluveras 7d8df3ecfc Allow negative values in charts (https://github.com/woocommerce/woocommerce-admin/pull/1979)
* Add support for negative charts

* Always display main axis at 0

* Improve tests

* Make sure positive and negative grid steps are the same

* Code style improvements

* Fix missing lines when all values are 0

* Make sure empty note always appear on top

* Add CHANGELOG entry
2019-04-03 18:19:38 +02:00
dinhtungdu 7916ec6ca2 Fixed: Order Status filter: <select> is not vertically aligned when Gutenberg is installed 2019-04-03 18:11:12 +02:00
Ron Rennick 3fc8a7bfab Merge pull request woocommerce/woocommerce-admin#1983 from woocommerce/fix/1932
add filter length condition to enable filter check
2019-04-03 11:22:31 -03:00
renovate[bot] 4c018efc7a Update babel monorepo to v7.4.3 (https://github.com/woocommerce/woocommerce-admin/pull/1987) 2019-04-03 08:48:52 -04:00
Ron Rennick fc356b86b2 add filter length condition to enable filter check 2019-04-02 15:55:17 -03:00
renovate[bot] 702156b6de Update dependency @babel/runtime-corejs2 to v7.4.2 (https://github.com/woocommerce/woocommerce-admin/pull/1922) 2019-03-27 09:40:55 +01:00
Jeff Stieler 164a55b0d2 Allow strings in downloads report order number filter. 2019-03-26 16:04:36 -06:00
Albert Juhé Lluveras 6862d05e2f Update packages with vulnerabilities (https://github.com/woocommerce/woocommerce-admin/pull/1913)
* Update packages with vulnerabilities

* Fix tests

* Replace require.requireActual with jest.requireActual
2019-03-26 12:31:57 +01:00
Joshua T Flowers 3dc75aff32 Hide chart name on smaller viewports and move interval select (https://github.com/woocommerce/woocommerce-admin/pull/1910)
* Hide table name on smaller viewports and move interval select

* Only hide chart titles adjacent to summaries

* Make interval selector full width when not adjacent to summary numbers
2019-03-26 18:14:32 +08:00
Paul Sealock 56a60d17dd Merge pull request woocommerce/woocommerce-admin#1864 from woocommerce/fix/remove-last-advanced-filter
Clear advanced filters when last one is removed
2019-03-22 07:29:18 +13:00
Albert Juhé Lluveras 9038bdfdae Table: update columns visibility on headers change (https://github.com/woocommerce/woocommerce-admin/pull/1846)
* Typos

* Table: update columns visibility on headers change

* Make sure initial user pref columns are loaded in all reports

* Return early filterShownHeaders when hiddenKeys is an empty array

* Undo 'headers', 'prevHeaders' order switch
2019-03-21 11:35:00 +01:00
Paul Sealock 3474a26cb5 Clear advanced filters when last one is removed 2019-03-21 12:25:07 +13:00
renovate[bot] 8e5b75dd08 Update babel monorepo to v7.4.0 (https://github.com/woocommerce/woocommerce-admin/pull/1853) 2019-03-20 12:51:21 -04:00
Joshua T Flowers 2ae142926f Fix date picker tab styling across gutenberg versions (https://github.com/woocommerce/woocommerce-admin/pull/1822) 2019-03-19 09:38:38 +08:00
Albert Juhé Lluveras 3a341c355f Fix missing date picker calendar in RTL locales (https://github.com/woocommerce/woocommerce-admin/pull/1810)
* Fix missing date picker calendar in RTL locales

* Create an  function instead of using 'window.isRtl' to detect if it's a RTL locale
2019-03-18 16:28:25 +01:00
Albert Juhé Lluveras 3d0848bcd6 Show chart hover circles in the correct order (https://github.com/woocommerce/woocommerce-admin/pull/1816)
* Show chart hover circles in the correct order

* Fix tests

* Reverse keys inside getDateSpaces
2019-03-18 11:07:54 +01:00
Albert Juhé Lluveras 884c56700a Fix date range dropdown for RTL locales (https://github.com/woocommerce/woocommerce-admin/pull/1803)
* Fix date range dropdown for RTL locales

* Exclude calendar input error CSS to be rewritten to RTL
2019-03-18 10:47:41 +01:00
Joshua T Flowers d416f78e9f Update/variations search method (https://github.com/woocommerce/woocommerce-admin/pull/1792)
* Add product search option REST API

* Remove product_name search in favor of sku and name searching

* Search by product search term instead of generic search in autocompleter

* Add product search option REST API

* Override existing search param instead of new param

* Remove product_name search in favor of sku and name searching

* Add product search param to variations controller

* Add group by to prevent duplicate variations in response

* Use product_search in variation autocompleter

* Trim whitespace in product_search query

* Change variation search placeholder

* Override search param instead of using new product_search param

* Add baseSearchQuery to prevent losing single_product filter in variations report

* Unset s param instead of setting to false
2019-03-18 12:23:08 +08:00
Joshua T Flowers 7653859509 Update product searching to search by name or sku (https://github.com/woocommerce/woocommerce-admin/pull/1791)
* Add product search option REST API

* Remove join and where filters for wp_query after rest response

* Remove product_name search in favor of sku and name searching

* Allow searching for products to compare by product sku

* Search by product search term instead of generic search in autocompleter

* Trim whitespace on product_search query

* Override existing search param instead of new param

* Use double quotes to avoid escaping search query

* Unset s param instead of setting to false
2019-03-18 11:31:02 +08:00
Joshua T Flowers 2187f0e1bc Add onChange event to search focus to restore search results (https://github.com/woocommerce/woocommerce-admin/pull/1807) 2019-03-18 10:40:25 +08:00
Joshua T Flowers df5f001140 Update compare button help text (https://github.com/woocommerce/woocommerce-admin/pull/1796) 2019-03-15 09:00:48 +08:00
Albert Juhé Lluveras 1eb5d51f9c RTL charts (https://github.com/woocommerce/woocommerce-admin/pull/1794)
* Fix wrong tooltip position on RTL languages Dashboard

* Render chart Y axis on the right for RTL languages
2019-03-14 11:57:43 +01:00
Albert Juhé Lluveras c1b6c3d8ce Load RTL CSS files (https://github.com/woocommerce/woocommerce-admin/pull/1781)
* Load RTL CSS files

* Remove RTL specific CSS rules

* Generate RTL files of app style

* Simplify require route
2019-03-14 11:18:54 +01:00
Jeff Stieler bfe5a75e98 Update text domain. (https://github.com/woocommerce/woocommerce-admin/pull/1795)
* Translation call text domain change from “wc-admin” to “woocommerce-admin”.

* Fix .pot file generation.

* Fix errantly closed array item in /revenue/stats controller.

* Rename plugin zip, main file, and repo name to "woocommerce-admin".
2019-03-13 11:14:02 -06:00
Albert Juhé Lluveras 1bbf79c105 Avoid useless Chart re-renders and clean-up component state (https://github.com/woocommerce/woocommerce-admin/pull/1780)
* Improve Chart rendering performance

* Avoid reassigning yFormat prop in Chart

* Update focused keys on legend toggle

* Use selectionLimit constant instead of a hardcoded value

* Minor improvements
2019-03-13 11:38:43 +01:00
Paul Sealock fd019c4c35 Chart: don't switch to comparison mode directly 2019-03-12 12:03:58 +13:00
renovate[bot] 07d92d1e76 Update dependency prop-types to v15.7.2 (https://github.com/woocommerce/woocommerce-admin/pull/1747) 2019-03-08 12:18:25 -05:00
Albert Juhé Lluveras a7e3cf78a0 Show compared keys in chart legends even if their values are 0 (https://github.com/woocommerce/woocommerce-admin/pull/1754)
* Show compared keys in chart legends

* Fix JS error if filters is missing

* Add docs
2019-03-06 21:12:28 +01:00
Jeff Stieler b92ef54610 Merge pull request woocommerce/woocommerce-admin#1740 from woocommerce/fix/1609-chart-interval-highlight
Add button focus style to report chart interval selection.
2019-03-06 07:56:28 -07:00
Joshua T Flowers 3d15392ecd Update CSV filenames and remove item IDs (https://github.com/woocommerce/woocommerce-admin/pull/1738)
* Separate params by underscores

* Replace spaces and underscores in params with hyphens

* Delete extended info from filename

* Delete found search IDs when search query exists

* Adjust tests to fix new filename format

* Clone params instead of modifying query

* Decode params and only allow alphanumeric characters
2019-03-06 13:16:38 +08:00
Paul Sealock a558bfc5d9 Merge pull request woocommerce/woocommerce-admin#1702 from ratnakardubey/fix/1650-status-indicator-on-hold-gets-squished
Retain size of order status indicator in smaller screen
2019-03-06 12:47:18 +13:00
Jeff Stieler f1fe300953 Add button focus style to report chart interval selection. 2019-03-05 12:10:26 -07:00
Albert Juhé Lluveras 5d3aa58a5d Use IDs instead of labels to identify chart legend items (https://github.com/woocommerce/woocommerce-admin/pull/1730)
* Use instanceId to generate unique ids for chart legend items

* Decouple item key and label in Chart components

* Remove more duplicate IDs in the chart legend

* Use double underscores in element IDs following BEM rules

* Move 'withInstanceId' inside D3Legend component

* Simplify screen reader labels logic

* Add CHANGELOG message

* Use 'primary' and 'secondary' as items keys in time-comparison charts
2019-03-05 19:27:20 +01:00
Albert Juhé Lluveras 3de2bd1953 Update table columns visibility on finish loading (https://github.com/woocommerce/woocommerce-admin/pull/1729) 2019-03-05 18:26:29 +01:00
Albert Juhé Lluveras 584f0f26f0 Update chart colors to match spec (https://github.com/woocommerce/woocommerce-admin/pull/1731)
* Update chart color scale to match woocommerce/woocommerce-admin#375

* Avoid useless calls to 'getColor'
2019-03-05 10:44:29 +01:00
Paul Sealock 9cf8e564ff Date picker: fix tab CSS 2019-03-01 16:29:31 +13:00
Tiago Noronha 36a9e78ea9 Merge pull request woocommerce/woocommerce-admin#1519 from woocommerce/fix/1352-backspace-remove-item
Remove items from search input with backspace key
2019-02-28 12:04:18 +00:00
Albert Juhé Lluveras ba2fb3c22b Make EmptyContent component fit narrow viewports (https://github.com/woocommerce/woocommerce-admin/pull/1703) 2019-02-28 09:42:11 +01:00
renovate[bot] 89138520e1 Update babel monorepo to v7.3.4 (https://github.com/woocommerce/woocommerce-admin/pull/1700) 2019-02-27 14:42:32 -05:00
Albert Juhé Lluveras 4e4f04b8d8 Display chart and summary numbers placeholder when loading search terms (https://github.com/woocommerce/woocommerce-admin/pull/1694) 2019-02-27 15:43:34 +01:00
Joshua T Flowers 241be1f547 Add product name filtering (https://github.com/woocommerce/woocommerce-admin/pull/1670)
* Add post_title__like param to wp query

* Add product_name filter option to products rest controller

* Change autocomplete search to use product_name param

* Change add_wp_query_post_title_filter to static method

* Only add wp_query filter in the products rest controller
2019-02-27 16:49:21 +08:00
Ratnakar Dubey c95ce1b9bd Status Indicator: On Hold Gets Squished and Looks Like an egg 2019-02-27 11:11:00 +05:30
Albert Juhé Lluveras 53bac8700e Screen readers: read date instead of data keys in 'time-comparison' bar charts (https://github.com/woocommerce/woocommerce-admin/pull/1586)
* Screen readers: read date instead of data keys in 'time-comparison' bar charts

* Make previous period labels more verbose

* Revert "Make previous period labels more verbose"

This reverts commit 34d13deaa982425ca2cba76dacfd2c89c96f06c0.

* Improve isSameDay check

* Add date to hour tooltip and improve screen reader label

* Add CHANGELOG message
2019-02-26 11:56:49 +01:00
Albert Juhé Lluveras b18819489b Don't store searchWords in the query prop (https://github.com/woocommerce/woocommerce-admin/pull/1689) 2019-02-26 11:06:37 +01:00
Joshua T Flowers 13b72f2fde Add tax code filter to tax REST API (https://github.com/woocommerce/woocommerce-admin/pull/1671)
* Add in hook to rest tax controller modify tax items query

* Modify query string for getting tax code items

* Add code to collection params to allow searching

* Change filter to use entire tax code without null values

* Hook up tax code filter to autocomplete search

* Overwrite get_items instead of using hooks for code filtering
2019-02-26 14:19:38 +08:00
Kelly Dwan 631ab5b609 Version bump (https://github.com/woocommerce/woocommerce-admin/pull/1663) 2019-02-25 11:44:11 -08:00
Albert Juhé Lluveras 365d493079 Table: reset search on compare and reset comparison on search (https://github.com/woocommerce/woocommerce-admin/pull/1679) 2019-02-25 20:40:30 +01:00
Albert Juhé Lluveras 4a19d27ec1 Add 'isCheckbox' prop to 'MenuItem' (https://github.com/woocommerce/woocommerce-admin/pull/1620)
* Make column filter menu items not focusable

* Check if onInvoke exists before calling it

* Revert "Check if onInvoke exists before calling it"

This reverts commit e3b63edd51395c0f967991e2d20fccf867e37b91.

* Revert "Make column filter menu items not focusable"

This reverts commit 3e0ac949fa057a0c235876731768b6f312ced998.

* Add isCheckbox prop to MenuItem component

* Fix arrow keys navigation in checkbox menu items

* Table: don't update showCols state when the headers prop changes
2019-02-25 20:25:19 +01:00
Justin Shreve 4347e1a9e0 Fix CSS linter errors (https://github.com/woocommerce/woocommerce-admin/pull/1673) 2019-02-22 07:34:04 -05:00
renovate[bot] 3de37c9e9e Update dependency core-js to v2.6.5 (https://github.com/woocommerce/woocommerce-admin/pull/1538) 2019-02-22 07:32:30 -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
Tiago Noronha 84ba0709c1 Ensure state is updated only if new ids exist 2019-02-21 21:16:10 +00:00
Kelly Dwan 4ccc7ddaea Update changelog (https://github.com/woocommerce/woocommerce-admin/pull/1661) 2019-02-21 11:47:28 -05:00
Tiago Noronha f28e74daf9 Merge branch 'master' of github.com:woocommerce/wc-admin into fix/1352-backspace-remove-item 2019-02-21 15:50:21 +00: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
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 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
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
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
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 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