Commit Graph

91 Commits

Author SHA1 Message Date
Jeff Stieler 08c31151b4 Merge pull request woocommerce/woocommerce-admin#1089 from woocommerce/add/1028-advanced-numerical-value-filter
Add Advanced Numerical Value Filter
2018-12-14 18:02:16 -07:00
Jeff Stieler 6eadf9c875 NumberFilter: rename “more than” and “less than” to represent a non-positional input range for “between” rules, simplify rule change logic. 2018-12-14 16:53:13 -07:00
Timmy Crawford 88b81beac0 Updating changelogs for npm release. (https://github.com/woocommerce/woocommerce-admin/pull/1088)
* Updating changelogs for npm release.

* Adding in a few more changelog items.
2018-12-14 10:44:24 -08:00
Jeff Stieler fea292125d Fix import path for formatCurrency(). 2018-12-14 11:26:11 -07:00
Jeff Stieler 93b05bba94 Square off the corners of TextControlWithAffixes. 2018-12-14 09:59:37 -07:00
Jeff Stieler 2b8526bbfb Stope NumberFilter inputs from overflowing their container in “between” mode. 2018-12-14 09:59:23 -07:00
Justin Shreve 43055d25a5 Add a country filter to the customers report (https://github.com/woocommerce/woocommerce-admin/pull/1080)
* Add an advanced country filter to the customers report

* Handle PR feedback: Fix PropType warnings, move filter/label logic to config getLabels() function, fix typo.

* Add flag thumbnail to the country filter

* Update README and CHANGELOG
2018-12-14 10:13:34 -05:00
Jeff Stieler aef873b386 Add examples of NumberFilter to the docs. 2018-12-13 17:30:29 -07:00
Jeff Stieler 89b4ab4d10 Format currency values for NumberFilter legend text. 2018-12-13 17:30:29 -07:00
Jeff Stieler 8e8e6d6d97 Use store’s currency symbol position setting to select prefix/suffix when rendering an advanced number filter input. 2018-12-13 17:30:29 -07:00
Jeff Stieler de53c50514 Handle NumberFilter value when changing rule type. 2018-12-13 17:30:29 -07:00
Jeff Stieler 38bb06d39b Render “currency” input type for NumberFilter component. 2018-12-13 17:30:29 -07:00
Jeff Stieler cb09c195c8 Render a currency-prefixed input for advanced number filters of type “currency”. 2018-12-13 17:30:27 -07:00
Jeff Stieler e620f8ef92 Generate screen reader text for number filter value . 2018-12-13 17:30:14 -07:00
Jeff Stieler 39a2da70b6 Display advanced number filters inline. 2018-12-13 17:30:01 -07:00
Jeff Stieler 477c83bac2 Use external config for NumberFilter rules. Fixes filter query parsing. 2018-12-13 17:29:59 -07:00
Jeff Stieler 3f2ea6bfb6 Add WIP NumberFilter advanced filter component. 2018-12-13 17:29:39 -07:00
Jeff Stieler 7cf157077a Merge pull request woocommerce/woocommerce-admin#1081 from woocommerce/add/currency-input-component
Add `TextControlWithAffixes` component
2018-12-13 15:58:42 -07:00
Timmy Crawford 19b209fca4 Add util to packages to fix build. (https://github.com/woocommerce/woocommerce-admin/pull/1079) 2018-12-13 09:06:26 -08:00
Kelly Dwan 87daca2723 Add IDs to affixes, use these in the input’s describedby 2018-12-13 12:04:57 -05:00
Kelly Dwan 8f5861f8b5 Update the examples 2018-12-13 12:04:28 -05:00
Jeff Stieler b8ba4ed16d Fix linting issues with TextControlWithAffixes. 2018-12-13 09:34:46 -07:00
Jeff Stieler 32018506dc Generate TextControlWithAffixes documentation from the component itself. 2018-12-13 09:21:47 -07:00
Jeff Stieler 700f3ad20f Make affix background white and remove wrapping behavior from TextControlWithAffixes. 2018-12-13 09:05:03 -07:00
Jeff Stieler e3be069601 Hook up TextControlWithAffixes to state for interactivity. 2018-12-12 23:15:39 -07:00
Jeff Stieler 44f025f308 Remove Calypso transform focus hack from TextControlWithAffixes (it’s broken here). 2018-12-12 23:11:27 -07:00
renovate[bot] 25ed79669e chore(deps): update babel monorepo to v7.2.0 (https://github.com/woocommerce/woocommerce-admin/pull/981) 2018-12-13 12:55:20 +08:00
Joshua T Flowers ee5b282957 Fix screen reader label IDs (https://github.com/woocommerce/woocommerce-admin/pull/1071) 2018-12-13 09:59:16 +08:00
Jeff Stieler 28a57f2a1d Rework border radius logic for all affix combinations including wrapping cases. 2018-12-12 13:51:25 -07:00
Jeff Stieler 4bfe767ad7 Add TextControlWithAffixes to devdocs listing. 2018-12-12 13:51:25 -07:00
Jeff Stieler aab376a731 Rework TextControlWithAffixes to keep BaseControl at the top of the component tree. 2018-12-12 13:51:25 -07:00
Jeff Stieler 704ee79359 Port over Calypso’s FormTextInputWithAffixes component as TextControlWithAffixes. 2018-12-12 13:51:25 -07:00
Albert Juhé Lluveras 40b00ec7b2 Merge pull request woocommerce/woocommerce-admin#1052 from woocommerce/add/table-header-screenreader-label
Add screen reader labels to table headers which are not buttons
2018-12-12 11:33:44 +01:00
renovate[bot] 9601cd64dd Update dependency core-js to v2.6.0 (https://github.com/woocommerce/woocommerce-admin/pull/1001) 2018-12-12 16:00:36 +08:00
Kevin Killingsworth 62c9a952a1 Table: Add onColumnsChange (https://github.com/woocommerce/woocommerce-admin/pull/1056)
This adds an `onColumnsChange` property which is called when the column
visiblity is toggled on the table. It also cleans up a bit of the
showCols code and fixes an incorrect update in the component update.
2018-12-11 13:34:16 -06:00
Paul Sealock 30289cd240 Update docs and remove reference to internal components 2018-12-11 11:27:32 +13:00
Albert Juhé Lluveras d79b490dda Add Customers Report page (https://github.com/woocommerce/woocommerce-admin/pull/1018)
* Create Customers Report page

* Hide date range filter if dateRangeFilter.show is false

* Rename dateRangeFilter.show to showDatePicker in filters config

* Add correct key 'average_order_value'

* Fix customers autocompleter not working
2018-12-10 13:26:43 -06:00
Albert Juhé Lluveras e8e67e8a76 Add screen reader labels to table headers which are not buttons 2018-12-10 16:45:15 +01:00
Albert Juhé Lluveras 51bc679fd0 Fix customers autocompleter not working 2018-12-10 16:23:34 +01:00
Albert Juhé Lluveras 93a18be2f0 Rename dateRangeFilter.show to showDatePicker in filters config 2018-12-10 16:18:17 +01:00
Jeff Stieler 7291a880eb Update filter component examples with real usage from Orders report.
Also resolves JS errors that were occurring.
2018-12-07 17:07:15 -07:00
Jeff Stieler 71e210d1f8 Fix missing key warning on TableCard devdocs example. 2018-12-07 16:47:30 -07:00
Albert Juhé Lluveras a393ba543b Fix ReportNumber sometimes receiving NaN values (https://github.com/woocommerce/woocommerce-admin/pull/1026)
* Fix ReportNumber sometimes receiving NaN values

* Remove unnecessary utils function

* Destructure summaryData
2018-12-07 15:13:02 -06:00
Albert Juhé Lluveras 44e97caeab Hide date range filter if dateRangeFilter.show is false 2018-12-07 14:19:20 -06:00
Albert Juhé Lluveras 3a9beb238e Add missing comma to chart tooltip label (https://github.com/woocommerce/woocommerce-admin/pull/1021) 2018-12-07 11:47:30 -06:00
Albert Juhé Lluveras d161732c0a Create Customers Report page 2018-12-06 16:25:31 -06:00
Timmy Crawford 46c8518fe1 Add/tax report filters/924 (https://github.com/woocommerce/woocommerce-admin/pull/1017)
* Add comparison filter to tax reports

* Extract tax code function to utils

* Filter tax code strings and add priority
2018-12-06 17:18:46 -05:00
Kevin Killingsworth 8bb3175172 Table Component: Update showcols to use keys (https://github.com/woocommerce/woocommerce-admin/pull/971)
* component/table: Update showcols to use keys

This updates the table component to use keys to keep track of which
columns should be visible instead of column indices. This will be
necessary for keeping track of which columns were selected after a
component has been unmounted and re-mounted again later. (e.g. for
persistence or saving of user preferences)

* components/table: Add changelog entry
2018-12-05 16:30:01 -06:00
Robert Elliott ca28c42ead separate legend styling out 2018-12-05 12:50:07 +02:00
Robert Elliott c9ccc015ca move chart and d3chart components into @woocommerce/components package 2018-12-05 12:50:04 +02:00