Paul Sealock
836cccafb8
Merge pull request woocommerce/woocommerce-admin#1327 from woocommerce/fix/filter-width-wide-screens
...
Filters: make 1/4 width for wiiiiiiide screens
2019-01-18 07:01:17 +13:00
Paul Sealock
3ba676ac57
Merge pull request woocommerce/woocommerce-admin#1305 from woocommerce/fix/date-query-formats
...
Advanced Filters: append time stamp to dates for API query
2019-01-18 07:00:40 +13:00
Timmy Crawford
508c48042c
chore(release): publish ( https://github.com/woocommerce/woocommerce-admin/pull/1326 )
...
- @woocommerce/components@1.4.0
- @woocommerce/csv-export@1.0.2
- @woocommerce/date@1.0.5
2019-01-17 09:11:49 -08:00
Jeff Stieler
7a0243e6d7
Use store currency settings to initialize D3 format.
2019-01-17 10:08:15 -07:00
Albert Juhé Lluveras
0cda85b997
Add missing thousands separator in charts Y-axis ( https://github.com/woocommerce/woocommerce-admin/pull/1312 )
2019-01-17 10:18:28 +01:00
Jeff Stieler
6ed8ea117a
Refactor formatCurrency() to use store settings for formatting rather than store locale.
2019-01-17 00:04:57 -07:00
Paul Sealock
41c30c7506
Filters: make 1/4 width for wiiiiiiide screens
2019-01-17 12:21:45 +13:00
Paul Sealock
4cd803466a
updateFilter
2019-01-17 08:57:41 +13:00
Timmy Crawford
d45f31c389
Update packages docs ( https://github.com/woocommerce/woocommerce-admin/pull/1324 )
2019-01-16 08:39:37 -08:00
renovate[bot]
78cfaec287
Update dependency core-js to v2.6.2 ( https://github.com/woocommerce/woocommerce-admin/pull/1314 )
2019-01-16 12:57:08 +01:00
Albert Juhé Lluveras
de4309d61e
Remove `barfocus` elements from charts ( https://github.com/woocommerce/woocommerce-admin/pull/1311 )
...
* Remove barfocus elements from charts
* Render background color behind bars
* Rename barmouse to barfocus
2019-01-15 19:40:02 +01:00
Joshua T Flowers
4b3df7732b
Add showMenu prop to TableCard to hide ellipsis menu ( https://github.com/woocommerce/woocommerce-admin/pull/1296 )
...
* Add showMenu prop to TableCard to hide ellipsis menu
* Fix proptype description
2019-01-15 10:13:15 +08:00
Paul Sealock
01cf0eba2f
specify before on construct
2019-01-15 15:01:38 +13:00
Paul Sealock
66b76f5b8f
replaceFilter
2019-01-15 13:47:07 +13:00
Paul Sealock
7556b45eab
Advanced Filters: Dates, fix query formats
2019-01-15 13:02:24 +13:00
Paul Sealock
1fa45e4364
Merge pull request woocommerce/woocommerce-admin#1146 from woocommerce/add/date-filter-calendar
...
Advanced Filters: Add DatePicker
2019-01-15 09:43:10 +13:00
Justin Shreve
a3ccfd300e
Fix date formatting in safari by switching to moment ( https://github.com/woocommerce/woocommerce-admin/pull/1290 )
2019-01-14 11:29:46 -05:00
Albert Juhé Lluveras
f009506a45
Makes table dates accessible ( https://github.com/woocommerce/woocommerce-admin/pull/1274 )
...
* Create 'Date' component to render accessible dates
* Add tests
2019-01-14 10:54:44 +01:00
Paul Sealock
7525e2347a
Add calendar to date advanced filter
2019-01-14 13:22:39 +13:00
Albert Juhé Lluveras
328a49127a
Remove decimals from Y-axis ( https://github.com/woocommerce/woocommerce-admin/pull/1288 )
...
* Remove decimals from Y-axis
* Add CHANGELOG message
2019-01-11 19:18:31 +01:00
Albert Juhé Lluveras
ad457cc123
Avoid duplicated Y-axis values ( https://github.com/woocommerce/woocommerce-admin/pull/1289 )
...
* Avoid duplicated yGrids
* Add tests
* Rename 'roundedValue' to 'value' to better reflect its contents
* Add CHANGELOG message
2019-01-11 19:16:29 +01:00
Timmy Crawford
7d89799194
Remove hour from default clause in getAllowedIntervalsForQuery when period is empty ( https://github.com/woocommerce/woocommerce-admin/pull/1279 )
2019-01-11 07:51:24 -08:00
Albert Juhé Lluveras
9d1edd6a56
Make d3chart component stateless ( https://github.com/woocommerce/woocommerce-admin/pull/1273 )
...
* Make d3chart component stateless
* Move back 'drawChart' to d3chart/chart.js
* Add getColor method changelog comment
* Reorder chart constructor methods binding
2019-01-11 12:24:10 +01:00
Jeff Stieler
c565b9cb40
Numeric filter: generate a true array value for “between” rule instead of a comma-delimited string.
2019-01-09 14:23:49 -07:00
Joshua T Flowers
80fe765657
Use a date instead of hour for single dates in report tables ( https://github.com/woocommerce/woocommerce-admin/pull/1208 )
...
* Use a date instead of hour for single dates in report tables
* Add hour to allowed list when day difference is less than 1
* Prioritize hour format over day and set day as default for tables
* Add default intervals for report tables
* Use explicit date format in report tables
* Add constant for default table format
* Restore allowed intervals for >1 && <7 days
2019-01-09 08:24:49 +08:00
Joshua T Flowers
bdb9525afe
Add dashboard chart interval preferences ( https://github.com/woocommerce/woocommerce-admin/pull/1230 )
...
* Add user interval preferences for dashboard charts
* Add interval selector styling
2019-01-09 08:12:39 +08:00
Jeff Stieler
d2ca354bd5
Merge pull request woocommerce/woocommerce-admin#1099 from woocommerce/fix/advanced-filters-legend-text
...
Rework advanced filters screen reader text generation
2019-01-08 08:45:13 -07:00
Albert Juhé Lluveras
03e17d372b
Add new props to chart component ( https://github.com/woocommerce/woocommerce-admin/pull/1247 )
...
* Add different props to chart component that were inferred from 'mode'
* Add new chart props to packages CHANGELOG
2019-01-08 10:21:47 +01:00
Joshua T Flowers
82200895dd
Defer chart drawing until chart component has rendered ( https://github.com/woocommerce/woocommerce-admin/pull/1244 )
2019-01-08 10:10:29 +08:00
Albert Juhé Lluveras
6ca0c628b2
Connect Downloads report to REST API ( https://github.com/woocommerce/woocommerce-admin/pull/1238 )
...
* Connect downloads chart and table to REST API
* Display date picker in Downloads report
* Fix missing value for 'days' in Downloads table summary
* Fix download_count being a string instead of a number
* Minor date packages comment fixes
* Fix filters in Downloads report
* Add back empty line
* JSDoc comments style fixes
* Fix username filter not working
* Fix days counter off by 1
* Fix alignment issue
2019-01-07 12:54:42 +01:00
Albert Juhé Lluveras
3a90c07e76
Fix date issues introduced in woocommerce/woocommerce-admin#1203 ( https://github.com/woocommerce/woocommerce-admin/pull/1229 )
...
* Revert "Show today charts up to the current hour (https://github.com/woocommerce/woocommerce-admin/pull/1203 )"
This reverts commit 029ff9cc9c
.
* Add current hour to timestamp of queries ending in today
* Fix getCurrentDates not returning moment objects as specified in the docs but returning string dates
* Set appendTimestamp( ..., 'now') seconds to 00
* Add test for appendTimestamp( ..., 'now' )
* Don't accept string dates in 'appendTimestamp'
* Fix 'moment' dependency deprecation warning
2019-01-07 11:41:46 +01:00
Albert Juhé Lluveras
b08e604047
Fix bar chart in narrow viewports ( https://github.com/woocommerce/woocommerce-admin/pull/1226 )
...
* Fix bar chart in narrow viewports
* Make date width depend on the number of columns
* Return early in 'shouldBeCompact' and 'getWidth' functions
* Hide tooltip when scrolling
2019-01-07 11:41:01 +01:00
Albert Juhé Lluveras
b91cfd2cc6
Split `d3chart/utils.js` into several files ( https://github.com/woocommerce/woocommerce-admin/pull/1231 )
...
* Split d3chart/utils.js
* Add format comment to breakpoints.js
2019-01-04 11:21:42 +01:00
Paul Sealock
3cd27ed631
Merge pull request woocommerce/woocommerce-admin#1127 from woocommerce/renovate/major-wordpress-monorepo
...
Update wordpress monorepo (major)
2019-01-04 14:34:30 +13:00
Paul Sealock
d6c5f47ee1
jest update
2019-01-04 14:26:55 +13:00
Paul Sealock
17a21e00db
DateRange: use DayOfWeek from moment locale{
2019-01-04 11:50:05 +13:00
Jeff Stieler
a8e81b709f
Fix type in textContent() test case label.
2019-01-03 13:13:23 -07:00
Jeff Stieler
f2df49ce24
Add tests for textContent().
2019-01-03 13:13:22 -07:00
Jeff Stieler
1935e75f5c
Render descriptive screen reader text for SearchFilter and SelectFilter components.
2019-01-03 13:13:22 -07:00
Jeff Stieler
850a738289
NumberFilter: don’t hide anything from accessibility tree, render descriptive span for screen reader instead of using speak().
2019-01-03 13:13:22 -07:00
Jeff Stieler
7663cb2881
NumberFilter: a11y speak a description of the filter once all inputs are populated.
2019-01-03 13:13:21 -07:00
Jeff Stieler
cbc5bc36fd
NumberFilter: remove dynamic legend text, just use “add” label.
2019-01-03 13:13:21 -07:00
Jeff Stieler
3528957923
NumberFilter: automatically hide non-interpolated strings in title label from accessibility tree.
2019-01-03 13:13:20 -07:00
Jeff Stieler
ed81b35d0a
Rework NumberFilter screen reader text.
...
Only describe full filter if all values are set. Describe each input more precisely. Based on conversation here: https://github.com/woocommerce/wc-admin/pull/1089#discussion_r241843856
2019-01-03 13:13:20 -07:00
Albert Juhé Lluveras
f5e2c8c5f9
Fix chart legend checkboxes not reacting to clicks ( https://github.com/woocommerce/woocommerce-admin/pull/1213 )
2019-01-03 13:00:37 +01:00
Renovate Bot
1e74730baf
Update wordpress monorepo
2019-01-03 10:45:22 +00:00
Albert Juhé Lluveras
4419faea45
Add margin to inline search tags ( https://github.com/woocommerce/woocommerce-admin/pull/1227 )
2019-01-03 09:36:31 +01:00
Joshua T Flowers
06ed650954
Add chart loading spinner while data is being requested ( https://github.com/woocommerce/woocommerce-admin/pull/1212 )
2019-01-03 10:51:21 +08:00
Renovate Bot
7521b3770d
Update wordpress monorepo
2019-01-03 14:03:56 +13:00
Paul Sealock
812cb17bd5
Merge pull request woocommerce/woocommerce-admin#1215 from woocommerce/fix/date-range-focus-endDate
...
DateRange: change focusInput prop on input focus
2019-01-03 10:48:51 +13:00
Paul Sealock
c6b466694c
DateRange: change focusInput prop on input focus
2019-01-02 15:46:40 +13:00
Paul Sealock
1401bc1bd1
Search: make certain styles just for inlineTags
2019-01-02 15:44:53 +13:00
Paul Sealock
49fe2c1f93
CSS lint: fix errors
2019-01-02 12:38:11 +13:00
Albert Juhé Lluveras
da8c49c90f
Update chart interval thresholds ( https://github.com/woocommerce/woocommerce-admin/pull/1214 )
2019-01-01 23:30:28 +01:00
Albert Juhé Lluveras
029ff9cc9c
Show today charts up to the current hour ( https://github.com/woocommerce/woocommerce-admin/pull/1203 )
...
* Show today charts up to the current hour
* Fix tests
* Fix doc comment
2018-12-28 10:10:40 -08:00
Joshua T Flowers
2d5e592a10
Update chart button active state for dashboard charts ( https://github.com/woocommerce/woocommerce-admin/pull/1202 )
...
* Update chart button active state for dashboard charts
* Add default active state when no query is present
2018-12-28 09:59:05 -08:00
Joshua T Flowers
8dc3398636
Extract IE11 specific styles to IE stylesheet ( https://github.com/woocommerce/woocommerce-admin/pull/1199 )
...
* Extract IE11 specific styles to IE stylesheet
* Enqueue IE stylesheet conditionally
* Use server-side http user agent to detect IE11
IE11 and up does not detect conditional comments for stylesheets so match user agent string and conditionally load stylesheet.
2018-12-28 09:58:03 -08:00
Albert Juhé Lluveras
a0f23c93c9
Improve Charts X-axis when displaying a single date ( https://github.com/woocommerce/woocommerce-admin/pull/1195 )
...
* Improve Charts X-axis when displaying a single date
* Add tests for getXTicks
* Fix typo in tests
* Add assertion in compareStrings test for dates with commas
* Update interval options
* Fix secondaryDate always showing 12AM
* Don't convert dates to UTC when checking if they belong to the same date
2018-12-27 19:51:58 +01:00
Albert Juhé Lluveras
7287fa3b22
Allow Search box to break into several lines ( https://github.com/woocommerce/woocommerce-admin/pull/1196 )
2018-12-27 18:53:20 +01:00
Timmy Crawford
1ed9813e3b
Chart: Fix/current of undefined ( https://github.com/woocommerce/woocommerce-admin/pull/1153 )
...
* Add undefined check for this.listRef
* Update changelog
2018-12-26 09:27:24 -08:00
Albert Juhé Lluveras
f51dba44a0
Charts: fix weird Y-axis ticks when max Y value is a small number ( https://github.com/woocommerce/woocommerce-admin/pull/1168 )
2018-12-25 11:16:52 +01:00
Albert Juhé Lluveras
1ca1dba3e7
Add Categories report filters ( https://github.com/woocommerce/woocommerce-admin/pull/1167 )
...
* Add Categories report filters
* Remove the option to sort categories by name, given that it's not supported by the endpoint
2018-12-25 10:28:20 +01:00
Joshua T Flowers
bdcebd7ea3
Clear filter query on removing all items ( https://github.com/woocommerce/woocommerce-admin/pull/1162 )
2018-12-25 11:01:39 +08:00
Albert Juhé Lluveras
5c8cfbc03f
Report components docs ( https://github.com/woocommerce/woocommerce-admin/pull/1140 )
...
* Extend docs to report components
* Improve inline documentation in some files
* Update doc files
* Undo unnecessary doc changes
* Remove unnecessary line breaks in sidebar
* Rename 'Client components' to 'Analytics components'
* Minor docs fixes
* Rename toc contents to toc sections
* Update endpoint props doc to add an example and more information
* Fix outdated comment
* Fix merge error
2018-12-22 12:46:10 +01:00
renovate[bot]
dfc7d8ae1b
Update dependency core-js to v2.6.1 ( https://github.com/woocommerce/woocommerce-admin/pull/1128 )
2018-12-21 20:03:41 -06:00
Justin Shreve
579113910d
Add remaining filters to the downloads report ( https://github.com/woocommerce/woocommerce-admin/pull/1141 )
...
* Add order number, username, and IP address filters to the downloads report.
* Adds tests
2018-12-21 16:40:41 -08:00
Robert Elliott
ebd857cefa
Add/chart dashboard block ( https://github.com/woocommerce/woocommerce-admin/pull/1002 )
...
* added new block and dashboard charts
section title and filters... lots of duplicate keys
toggle chart types in block heading
* Updates per feedback.
* Add some documentaiton about new interactive prop on chart/legend
* Revert a few files that only had whitespace changes.
2018-12-21 16:24:26 -08:00
Joshua T Flowers
56577101c4
Add customer numeric filters ( https://github.com/woocommerce/woocommerce-admin/pull/1116 )
...
* Add customer numeric filters
* Add between params to customers controller
* Escape strings for translation and change inputs to currency
* Add Currency shorthand filter
2018-12-21 12:07:54 +08:00
Paul Sealock
c76ceb2591
DatePicker: cleanup example, propTypes
2018-12-21 15:19:10 +13:00
Paul Sealock
524bb0c96f
DateRangeFilterPicker
2018-12-21 11:58:01 +13:00
Albert Juhé Lluveras
1cb7378f76
Fix Tag misalignment inside Search in Firefox ( https://github.com/woocommerce/woocommerce-admin/pull/1132 )
2018-12-20 10:06:52 +01:00
Albert Juhé Lluveras
776e8d31fe
Merge pull request woocommerce/woocommerce-admin#1085 from woocommerce/add/name-filter-autocompleter
...
Customers report: Name Advanced Filter
2018-12-19 10:39:22 +01:00
Timmy Crawford
eab3592d67
Update npm versions and build script ( https://github.com/woocommerce/woocommerce-admin/pull/1120 )
...
* Use publish from-package.
* chore(release): publish
- @woocommerce/components@1.3.0
- @woocommerce/csv-export@1.0.1
- @woocommerce/date@1.0.3
2018-12-18 17:25:26 -08:00
Jeff Stieler
a96272a5fe
Merge pull request woocommerce/woocommerce-admin#1119 from woocommerce/fix/1115-number-filter-uncontrolled-warning
...
Fix “uncontrolled input” warning in NumberFilter component.
2018-12-18 16:34:39 -07:00
Jeff Stieler
8ee2267209
Update @woocommerce/date package changelog and version number.
2018-12-18 15:46:48 -07:00
Jeff Stieler
7bc46d2c8c
Fix loadLocaleData() tests, remove superfluous moment-js tests.
2018-12-18 15:46:47 -07:00
Jeff Stieler
3285ac4980
Include Date component required settings in app-wide settings object instead of using experimental retrieval from @wordpress/date.
2018-12-18 15:46:46 -07:00
Jeff Stieler
4d37bdc67c
@wordpress/date getSettings() is deprecated, use __experimentalGetSettings() instead.
2018-12-18 15:45:41 -07:00
Jeff Stieler
92c96b834e
Fix “uncontrolled input” warning in NumberFilter component.
2018-12-18 09:01:30 -07:00
Albert Juhé Lluveras
3a1890c22c
Remove unnecessary variable assignment
2018-12-18 15:06:06 +01:00
Albert Juhé Lluveras
c4290f757e
Merge branch 'master' into add/name-filter-autocompleter
2018-12-18 13:52:48 +01:00
Albert Juhé Lluveras
3c876fedf1
Filter missing parts of the name before displaying it
2018-12-18 13:46:24 +01:00
Albert Juhé Lluveras
a836d1a89b
Add customer username filter to Customers page
2018-12-18 12:11:45 +01:00
Justin Shreve
e42ad6956b
Add customer email filter ( https://github.com/woocommerce/woocommerce-admin/pull/1092 )
...
* Add customer email filter
* Handle PR feedback: Fix up if statement and add extra info to validation comment
2018-12-17 11:20:11 -05:00
Albert Juhé Lluveras
c341137a1b
Store shouldRenderTags in a variable
2018-12-17 12:21:17 +01:00
Albert Juhé Lluveras
d8bf42fc4d
Typo
2018-12-17 12:20:23 +01:00
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
Albert Juhé Lluveras
3e9f141eca
Fixes
2018-12-14 18:06:02 +01: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
Albert Juhé Lluveras
d972ebf672
Only update search filters based on query if the query changed
2018-12-14 17:38:31 +01:00
Albert Juhé Lluveras
302ff934d1
Make sure 'filter:advanced' is set in the URL when setting a search filter
2018-12-14 17:30:07 +01:00
Albert Juhé Lluveras
07227271fd
Avoid duplicated ids when searching customers from the table search box
2018-12-14 17:19:30 +01:00
Albert Juhé Lluveras
bc5073ecd4
Make sure filters are updated when using the table search box
2018-12-14 17:14:24 +01: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
Albert Juhé Lluveras
578e01b12f
Hide selected items in filters from table search box autocompleter
2018-12-14 14:31:57 +01:00
Albert Juhé Lluveras
bb16ba07c8
Use search box for searches instead of comparisons in Customers table
2018-12-14 14:31:41 +01:00