Commit Graph

324 Commits

Author SHA1 Message Date
renovate[bot] 57faf7ad47 Update dependency history to v4.9.0 (https://github.com/woocommerce/woocommerce-admin/pull/1923) 2019-03-27 09:46:33 +01: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
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
Jeff Stieler ec9ea43c9b Merge pull request woocommerce/woocommerce-admin#1778 from woocommerce/fix/1651-rest-api-datetime-offset
Remove timezone from appendTimestamp() output.
2019-03-12 07:35:13 -06:00
Paul Sealock fd019c4c35 Chart: don't switch to comparison mode directly 2019-03-12 12:03:58 +13:00
Jeff Stieler 64ccc0b0b2 Remove timezone from appendTimestamp() output. 2019-03-11 16:48:25 -06: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