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
Renovate Bot
2e0468083d
Lock file maintenance
2018-12-31 06:55:16 +00:00
Timmy Crawford
78ca63a72d
Dashboard: Add Leaderboard Component ( https://github.com/woocommerce/woocommerce-admin/pull/1198 )
...
* Create Leaderboard component. Update Top Selling Products to use it.
* Use date picker values in Top Selling Products.
* Convert top selling products tests into leaderboard tests
* Updates per feedback.
* Skipping failing test for now.
2018-12-31 14:42:46 +08:00
Joshua T Flowers
7bbdd78bde
Add missing intervals to product reports ( https://github.com/woocommerce/woocommerce-admin/pull/1200 )
...
* Add missing intervals to product reports
* Fix failing tests for product stats API
Before and after query should be within today's date since missing intervals for other days will be filled in with remaining dates.
2018-12-31 13:20:22 +08: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
21ab4da93e
Enable Autoprefixer 'grid' in packages ( https://github.com/woocommerce/woocommerce-admin/pull/1204 )
2018-12-28 09:57:18 -08:00
Joshua T Flowers
3f388028ac
Sort default category response by category ID ( https://github.com/woocommerce/woocommerce-admin/pull/1201 )
2018-12-28 09:50:58 -08:00
Joshua T Flowers
268182e75f
Add invalid note ID test ( https://github.com/woocommerce/woocommerce-admin/pull/1197 )
2018-12-28 09:44:53 -08:00
Joshua T Flowers
e0596ea249
Add 404 response to REST response for invalid note ID ( https://github.com/woocommerce/woocommerce-admin/pull/1194 )
2018-12-28 09:51:22 +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
renovate[bot]
bca949feb6
Update dependency eslint to v5.11.1 ( https://github.com/woocommerce/woocommerce-admin/pull/1172 )
2018-12-27 11:52:40 +08:00
Joshua T Flowers
b3979ff984
Fix order status product sync ( https://github.com/woocommerce/woocommerce-admin/pull/1151 )
...
* Move order product sync to product data store
* Move order taxes sync to taxes data store
* Move order coupons sync to coupons data store
* Use table_name constant in data syncs
* Remove order data for incomplete order statuses
* Fix report rebuild tool
* Update comments to describe create/update entry reference
* Fix data_store_init function name change
2018-12-27 11:49:00 +08:00
Joshua T Flowers
987929da83
Filter by categories query param in categories data store ( https://github.com/woocommerce/woocommerce-admin/pull/1179 )
2018-12-27 11:31:08 +08:00
Joshua T Flowers
017db0b339
Sync order status on refund delete ( https://github.com/woocommerce/woocommerce-admin/pull/1074 )
2018-12-27 11:11:33 +08:00
Peter Fabian
48dfb54a48
Switched average order value from gross to net revenue ( https://github.com/woocommerce/woocommerce-admin/pull/1158 )
...
* Switched Average order value calculation from gross to net revenue.
* Updated tests to reflect switch of average order value from gross to net revenue.
2018-12-26 15:49:46 -08: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
renovate[bot]
a4434e3e67
Pin dependency babel-plugin-transform-es2015-template-literals to 6.22.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1178 )
2018-12-26 15:21:54 +08:00
renovate[bot]
ce3d895c27
Update dependency grunt-wp-i18n to v1.0.3 ( https://github.com/woocommerce/woocommerce-admin/pull/1173 )
2018-12-26 15:21:04 +08:00
renovate[bot]
fc6057184b
Update dependency lerna to v3.8.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1175 )
2018-12-26 15:19:54 +08:00
renovate[bot]
b22c2f6c83
Update dependency webpack to v4.28.2 ( https://github.com/woocommerce/woocommerce-admin/pull/1177 )
2018-12-26 13:55:29 +08:00
renovate[bot]
48c90fc5b9
Update dependency husky to v1.2.1 ( https://github.com/woocommerce/woocommerce-admin/pull/1174 )
2018-12-26 13:49:42 +08:00
renovate[bot]
eea6ef7314
Update dependency css-loader to v2.1.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1171 )
2018-12-26 13:46:24 +08:00
Joshua T Flowers
ab310320dd
Fix ie11 blank screen by babel transforms ( https://github.com/woocommerce/woocommerce-admin/pull/1170 )
...
* Add specific vendor packages to babel loader to fix ie11 transforms
* Remove unused buble
2018-12-26 10:46:32 +08:00
Joshua T Flowers
c747d3399e
Use unbounded per_page limit in apiFetch for categories ( https://github.com/woocommerce/woocommerce-admin/pull/1149 )
2018-12-26 10:37:02 +08:00
Joshua T Flowers
f88311b372
Check for product categories before loading value ( https://github.com/woocommerce/woocommerce-admin/pull/1164 )
...
* Check for product categories before loading value
* Filter product category list for undefined values
* Remove unnecessary double check of productCategories
2018-12-25 18:28:37 +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
024d267ae6
Set minimum content height to prevent cutoff of absolute content ( https://github.com/woocommerce/woocommerce-admin/pull/1166 )
...
* Set minimum content height to prevent cutoff of absolute content
* Add admin bar height vars for SCSS and apply them
2018-12-25 12:34:24 +08:00
Joshua T Flowers
7cf9e293e1
Fix margin on dashboard block charts ( https://github.com/woocommerce/woocommerce-admin/pull/1165 )
2018-12-25 11:02:23 +08:00
Joshua T Flowers
dcaa35c7bf
Add product SKU to products report ( https://github.com/woocommerce/woocommerce-admin/pull/1161 )
...
* Add product SKU to products report
* Add tests for SKU data
2018-12-25 11:02:06 +08: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
Joshua T Flowers
9a4e613a2e
Make user column preferences refer to hidden columns ( https://github.com/woocommerce/woocommerce-admin/pull/1150 )
...
* Make user column preferences refer to hidden columns
* Destructure props in onColumnsChange
2018-12-22 10:27:30 +08: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
Justin Shreve
49a0f0f6d2
Add `reports/downloads` REST API endpoint. ( https://github.com/woocommerce/woocommerce-admin/pull/1122 )
...
* First pass at downloads REST API
* Handle PR feedback
2018-12-21 14:57:46 -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
Joshua T Flowers
f83b0e0615
Add product categories wc-api and breadcrumbs ( https://github.com/woocommerce/woocommerce-admin/pull/1131 )
...
* Add support for product cats in wp rest api
* Add categories to WC API
* Add category breadcrumbs component
* Increase per_page limit size for product cat API
* Use wc/v3 API to pull product categories
* Return category IDs in API
* Add categories to product reports
* Add category IDs test for REST API
* Switch to getResource instead of require for total count selector
2018-12-21 10:44:27 +08:00
Paul Sealock
47b674ace2
Merge pull request woocommerce/woocommerce-admin#1069 from woocommerce/update/calendar-component-inline-picker
...
Add Single Date Picker
2018-12-21 15:25:54 +13:00
renovate[bot]
69a11b50e4
Update dependency autoprefixer to v9.4.3 ( https://github.com/woocommerce/woocommerce-admin/pull/1125 )
2018-12-20 20:20:05 -06:00
Paul Sealock
c76ceb2591
DatePicker: cleanup example, propTypes
2018-12-21 15:19:10 +13:00
Joshua T Flowers
716ebc0658
Hook up coupons to REST API ( https://github.com/woocommerce/woocommerce-admin/pull/1112 )
2018-12-21 10:13:57 +08:00
Paul Sealock
524bb0c96f
DateRangeFilterPicker
2018-12-21 11:58:01 +13:00
Paul Sealock
46c313cdc7
REST API: Categories: optimize query by removing get_the_terms
2018-12-21 11:08:08 +13:00
renovate[bot]
4e68b56fdc
Update dependency css-loader to v2.0.1 ( https://github.com/woocommerce/woocommerce-admin/pull/1129 )
...
* Update dependency css-loader to v2.0.1
* http -> https
2018-12-20 13:25:36 -06:00
Joshua T Flowers
5bab0767b6
Fix item refunds report data ( https://github.com/woocommerce/woocommerce-admin/pull/1059 )
...
* Fix product report data issue when issuing item refund
* Modify product order lookup stats when refund is given
* Remove products where orders are refunded
* Remove unused var and add comment about early return
* Reduce product revenue if quantity still remains after refund
* Fix subtotal array key and abs value for float
* Change product_gross_revenue to product_net_revenue
2018-12-21 02:40:44 +08:00
renovate[bot]
3718692ad6
Update babel monorepo ( https://github.com/woocommerce/woocommerce-admin/pull/1124 )
2018-12-20 09:56:02 -06: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
Paul Sealock
280e78cf01
Merge pull request woocommerce/woocommerce-admin#1134 from woocommerce/fix/variations-query-params
...
Variations Table: add product, variations query params
2018-12-20 14:19:06 +13:00
renovate[bot]
01a8fe9741
Pin dependency replace to 1.0.1 ( https://github.com/woocommerce/woocommerce-admin/pull/1118 )
2018-12-19 17:54:33 -06:00
Kelly Dwan
867b51a18e
Add Accessibility section to the PR template ( https://github.com/woocommerce/woocommerce-admin/pull/1133 )
2018-12-19 17:33:02 -05:00
Paul Sealock
eebc20e293
Variations Table: add product, variations query params
2018-12-20 08:43:35 +13:00
Peter Fabian
dff8b63271
Merge pull request woocommerce/woocommerce-admin#1010 from woocommerce/fix/845
...
Added /reports/coupons and /reports/coupons/stats endpoints
2018-12-19 13:55:28 +01:00
Peter Fabian
4802736a0e
Switched from using coupon code filter to coupon id filter by query parameter.
2018-12-19 13:37:54 +01:00
Albert Juhé Lluveras
5f593d663e
Downloads Report: add summary number, chart and table ( https://github.com/woocommerce/woocommerce-admin/pull/1113 )
...
* Downloads Report: add summary number, chart and table
* Use template literal for Downlodas table link
* Add columnPrefsKey to Downloads report table
2018-12-19 12:18:43 +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
Joshua T Flowers
08d3e2c38d
Change product_gross_revenue to product_net_revenue ( https://github.com/woocommerce/woocommerce-admin/pull/1105 )
...
* Change product_gross_revenue to product_net_revenue
* Change product_gross_revenue to product_net_revenue in category data store
* Change to net_revenue in frontend category report
2018-12-19 08:56:27 +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
6f773e7537
Merge pull request woocommerce/woocommerce-admin#1039 from woocommerce/fix/807-getsettings-deprecated
...
Remove use of deprecated @wordpress/date getSettings()
2018-12-18 16:24:41 -07:00
Kevin Killingsworth
0a1542c1cc
Add section on "Dev Docs" ( https://github.com/woocommerce/woocommerce-admin/pull/1123 )
...
* Add section on "Dev Docs"
This adds information on what the devdocs are and how to view them.
* Fix components link
* Add docsify serve docs option
* Remove npx serve bit
2018-12-18 16:49:30 -06:00
Jeff Stieler
8ee2267209
Update @woocommerce/date package changelog and version number.
2018-12-18 15:46:48 -07:00
Jeff Stieler
26b6255ca3
Remove defunct `getSettings()` from devdocs example.
2018-12-18 15:46:47 -07:00
Jeff Stieler
7bc46d2c8c
Fix loadLocaleData() tests, remove superfluous moment-js tests.
2018-12-18 15:46:47 -07:00
Jeff Stieler
9581a658f5
Add expected locale settings to JS test setup.
2018-12-18 15:46:46 -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
renovate[bot]
c706b8e133
Lock file maintenance ( https://github.com/woocommerce/woocommerce-admin/pull/1104 )
...
* Lock file maintenance
* package-lock.json: http -> https
2018-12-18 16:26:48 -06:00
Kevin Killingsworth
e72a696429
Add nvmrc for newest lts release ( https://github.com/woocommerce/woocommerce-admin/pull/1108 )
...
This adds an .nvmrc file which points to the latest lts release of node.
For those people who use nvm, this will keep them current on the latest
stable version.
2018-12-18 16:06:27 -06:00
Justin Shreve
f18dbe373c
Fix dataEndpoints notice ( https://github.com/woocommerce/woocommerce-admin/pull/1095 )
2018-12-18 16:08:32 -05:00
Paul Sealock
15bbbe739d
Hook up Categories table to endpoint
2018-12-19 08:36:42 +13:00
Timmy Crawford
3c2cdc4322
Fix error on dashboard. ( https://github.com/woocommerce/woocommerce-admin/pull/1121 )
...
* Fix error on dashboard.
* Revert changes from woocommerce/woocommerce-admin#1101
2018-12-18 11:32:25 -08:00
Jeff Stieler
92c96b834e
Fix “uncontrolled input” warning in NumberFilter component.
2018-12-18 09:01:30 -07:00
Kevin Killingsworth
600cfd899a
Add fix for npm install https issue ( https://github.com/woocommerce/woocommerce-admin/pull/1109 )
...
We've been running afoul of a known npm issue that has existed for over
6 months, where our package-lock.json file switches between http: and
https: on several dependencies:
https://npm.community/t/some-packages-have-dist-tarball-as-http-and-not-https/285/17
Since npm itself always uses https as noted in the ticket above, this
change forces all dependencies in the package-lock.json file to be
https, therefore eliminating the churn on our package-lock.json files
each time we run `npm install`.
2018-12-18 09:00:41 -06:00
Albert Juhé Lluveras
9adf2c6c86
Merge pull request woocommerce/woocommerce-admin#1117 from woocommerce/add/1030-customer-username-filter
...
Add customer username filter to Customers page
2018-12-18 15:55:53 +01: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
741a0098fd
Add placeholder to customers table searchbox
2018-12-18 13:35:58 +01:00
Albert Juhé Lluveras
a836d1a89b
Add customer username filter to Customers page
2018-12-18 12:11:45 +01:00
Albert Juhé Lluveras
03adb993c9
Use <Link> instead of <a> for Orders table link
2018-12-18 10:44:43 +01:00
Albert Juhé Lluveras
9ef07a41b6
Merge pull request woocommerce/woocommerce-admin#1075 from woocommerce/add/extend-customers-data-from-endpoint
...
Extend customers table data with data from WC endpoint
2018-12-18 09:30:03 +01:00
Peter Fabian
85e6e8df8d
Added correct cache handling.
2018-12-18 12:01:42 +08:00
Peter Fabian
6c456657e8
Changed coupon_gross_discount to amount.
2018-12-18 12:01:42 +08:00
Peter Fabian
f0b97a42b0
Changed data type in schema for dates to date-time.
2018-12-18 12:01:41 +08:00
Peter Fabian
db8004aaf7
PHPCS fixes.
2018-12-18 12:01:41 +08:00
Peter Fabian
28f6f7ece5
PHPCS changes so that I will be able to merge master into this branch.
...
Otherwise I get errors during merge commit.
2018-12-18 12:01:41 +08:00
Peter Fabian
46bf4bedc8
Added basic tests for coupons and coupons/stats.
2018-12-18 12:01:40 +08:00
Peter Fabian
21ac75d21e
Made extended_info always appear in coupons endpoint.
2018-12-18 12:01:40 +08:00
Peter Fabian
3e45c6a82c
Fixed invalid sort criterion for coupons endpoint.
2018-12-18 12:01:39 +08:00
Peter Fabian
3535f52d78
Removed interval parameter for coupons endpoint.
2018-12-18 12:01:39 +08:00
Peter Fabian
6950522f91
Removed timezone info that was added incorrectly
2018-12-18 12:01:39 +08:00
Peter Fabian
a346f13beb
Added extended info.
2018-12-18 12:01:38 +08:00
Peter Fabian
5eee869a74
Added small fixes to set up coupon endpoints.
2018-12-18 12:01:38 +08:00
Peter Fabian
1630cb9c6f
Removed unsupported parameter from coupons endpoint.
2018-12-18 12:01:18 +08:00