Commit Graph

1002 Commits

Author SHA1 Message Date
Peter Fabian 6e68247701 Merge pull request woocommerce/woocommerce-admin#953 from woocommerce/fix/740
Added support for ordering by product name in products endpoint.
2018-12-03 11:56:28 +01:00
Albert Juhé Lluveras bda7d0a6ee Use ReportTable in Orders report (https://github.com/woocommerce/woocommerce-admin/pull/968)
* Use ReportTable in Orders report

* Get totalCount from hte X-WP-Total header

* Order props alphabetically

* Cleanup report table 'tableData' prop

* Use short-circuit evaluation
2018-12-02 21:40:57 -06:00
Paul Sealock da4dea57be Variations: Add endopoint repsonse to table data 2018-12-03 12:16:43 +13:00
Paul Sealock 516062975b try/variations-endpoint 2018-12-03 12:02:58 +13:00
Paul Sealock 164a67144b try/variations-endpoint 2018-12-03 11:49:37 +13:00
Albert Juhé Lluveras 293d58615d Add screen reader labels to table headers (https://github.com/woocommerce/woocommerce-admin/pull/964)
* Add screen reader labels to tables

* Add missing propType
2018-11-30 14:44:02 -06:00
Kelly Dwan 6e3242c421 Packages – Components: Move proptype-validator utility into src (https://github.com/woocommerce/woocommerce-admin/pull/962)
* Move proptype-validator utility into src

Only src files are transpiled for external use, so requiring this file was breaking my jest tests

* Bump the package version + changelog
2018-11-30 13:19:17 -05:00
Albert Juhé Lluveras 9b0c767749 Make sure D3Base always updates when width changes (https://github.com/woocommerce/woocommerce-admin/pull/961)
* Make sure D3Base always updates when props change

* Fix JS error when resizing the window

* d3Chart cleanup

* Update tests

* Update d3Base also when drawChart prop changes

* Save height and width without margins in params

* Remove resize listeners inside d3Base

* Remove unused param
2018-11-29 19:01:00 -06:00
Albert Juhé Lluveras 109592ebc9 Don't encode search text in autocompleters before stringifying it (https://github.com/woocommerce/woocommerce-admin/pull/959) 2018-11-29 19:00:51 -06:00
David Levin 3d4ca67f89 Merge pull request woocommerce/woocommerce-admin#958 from woocommerce/update/summary-number-focus
Update/summary number focus
2018-11-29 13:55:45 -08:00
David Levin f2f8ebebe1 Update styles to remove hheight calc and negative margin h4x 2018-11-29 13:49:45 -08:00
Kelly Dwan 062b3fd529 Packages: Add changelogs and documentation (https://github.com/woocommerce/woocommerce-admin/pull/949)
* Add changelogs for latest package releases

* Add lerna instructions

* Add placeholder changelogs for other packages

* Add “working with existing packages"
2018-11-29 16:34:01 -05:00
Kevin Killingsworth 847131c6c9 Add wc-api and "Fresh Data" (https://github.com/woocommerce/woocommerce-admin/pull/833)
* data: Add @fresh-data/framework to package.json

* data: Add fresh-data and replace orders in table

This PR adds fresh-data with a WooCommerce API spec to fulfill order
information. It then replaces the existing selectors for the orders
table with the new selectors as a proof-of-concept.

* wc-api: Add temporary code for `withSelect`

This adds temporary code for a `withSelect` function outside of
`@wordpress/data` until the context PR is merged:

https://github.com/WordPress/gutenberg/pull/11460

* wc-api: Update fresh-data to 0.5.0
2018-11-29 09:57:49 -06:00
Albert Juhé Lluveras 540a191b57 Use X-WP-Total header to set the total number of items in tables (https://github.com/woocommerce/woocommerce-admin/pull/952)
* Use X-WP-Total header to set the total number of items in tables

* Improve naming

* Improve tests

* Make getReportItems() return a 'data' property by default

* Make getSummary prop behavior more clear
2018-11-29 08:03:04 -06:00
Allen Snook b27aa9b0aa Merge pull request woocommerce/woocommerce-admin#946 from woocommerce/update/0.2.0
Roll version to 0.2.0
2018-11-28 18:53:18 -08:00
Paul Sealock 2a4b9bada9 Merge pull request woocommerce/woocommerce-admin#951 from woocommerce/fix/order-statuses-prefix
Remove order statuses "wc-" prefix
2018-11-29 15:01:06 +13:00
Albert Juhé Lluveras d59e5803d3 Hide selected items from autocomplete dropdown (https://github.com/woocommerce/woocommerce-admin/pull/932) 2018-11-28 16:55:11 -06:00
David Levin 4bfea20e56 Ensure all edges of focus use core-grey-dark-300 2018-11-28 13:31:49 -08:00
David Levin f938afe946 Update Summary Focus Styles 2018-11-28 13:14:15 -08:00
Paul Sealock 47291b3873 Filters: code -> coupon in config 2018-11-29 09:29:12 +13:00
Paul Sealock 41efde0b23 Merge branch 'fix/749' of github.com:woocommerce/wc-admin into fix/749 2018-11-29 09:05:52 +13:00
Albert Juhé Lluveras c65709f2db Fix false positives in Reports stats resolvers (https://github.com/woocommerce/woocommerce-admin/pull/955) 2018-11-28 13:08:53 -06:00
Peter Fabian 8b80de9bc2 Added support for ordering by product name in products endpoint. 2018-11-28 15:14:34 +01:00
Peter Fabian 99e2c463c7 Added parameter mapping for products/stats endpoint. 2018-11-28 11:04:18 +01:00
Peter Fabian e6cca3c083 Replaced code_includes/_excludes with coupon_* as agreed. 2018-11-28 10:53:11 +01:00
Paul Sealock 0ab5c735be Remove order statuses wc- prefix 2018-11-28 15:58:17 +13:00
Allen Snook c9857b9c88 Call wp_set_script_translations when possible 2018-11-28 10:36:08 +13:00
Allen Snook d223eb25fd Roll to 0.2.0 2018-11-27 13:12:16 -08:00
Kelly Dwan 4b8969acc7 chore(release): publish
- @woocommerce/components@1.1.0
 - @woocommerce/date@1.0.2
 - @woocommerce/navigation@1.1.0
2018-11-27 15:57:27 -05:00
Peter Fabian eff3a97573 Added time clause to WHERE subquery and fixed product selection. 2018-11-27 21:41:52 +01:00
Peter Fabian bc29615454 Removed unnecessary SQL conditions. 2018-11-27 21:40:13 +01:00
Peter Fabian a765a6df97 Added tests for advanced filters of orders report. 2018-11-27 21:39:14 +01:00
Jonathan Belcher e2faa2fee2 Tag component snapshots (https://github.com/woocommerce/woocommerce-admin/pull/877)
* Tag component snapshots

* Make snapshots better

* Update snapshots
2018-11-27 13:57:52 -05:00
Kelly Dwan 8828345f86 Remove import from local files (https://github.com/woocommerce/woocommerce-admin/pull/939)
These are exported packages, they can’t rely on any local files.
2018-11-27 10:46:22 -08:00
Albert Juhé Lluveras 5fe5dbe5cd Categories table (https://github.com/woocommerce/woocommerce-admin/pull/903)
* Merge table stores

* Add Categories table

* Add numberFormat to non-currency numbers displayed to the user in the Categories Table

* Rename 'Coupons' to 'Categories' in Categories table title

* Update Categories table to use the ReportTable
2018-11-27 10:44:03 -08:00
Allen Snook dbb386c6e5 Merge pull request woocommerce/woocommerce-admin#938 from woocommerce/fix/937-js-translations
Call wp_set_script_translations when possible
2018-11-27 09:50:51 -08:00
Peter Fabian 688b47aa7c Added tests for advanced filters of orders report. 2018-11-27 17:04:16 +01:00
Peter Fabian f9a46423e0 Added get_order_statuses to REST controllers where it's required. 2018-11-27 16:39:11 +01:00
Peter Fabian c1af1da752 Updated structure of SQL queries for coupons and products.
As there can be multiple couopns and products assigned to one order, it requires different handling to what was initially implemented.
2018-11-27 16:34:12 +01:00
Peter Fabian 8e5709ce26 Updated get_unique_products to be more versatile and support running in other contexts.
In some cases of advanced filters, it produced incorrect SQL code.
Additionally, split of where clause to time clause and rest needed to be reflected here, too.
2018-11-27 16:32:42 +01:00
Peter Fabian 32e30ac274 Made sync of order stats table run also on clean_post_cache.
Otherwise, some changes in master data for orders would not be reflected, as save_post action is skipped if order is updated while the save_post action is running.
2018-11-27 16:29:21 +01:00
Peter Fabian 216b7c94ca Updated structure for includes/excludes coupons and products subqueries.
As there can be multiple coupons and products assigned to one order, it needs to ba handled differently when constructing SQL query.
2018-11-27 16:26:50 +01:00
Peter Fabian 7dd611f4d4 Added table name to time period sql params.
Without this, the subquery could not be used in some contexts, as the column name was ambiguous.
2018-11-27 16:23:40 +01:00
Peter Fabian 8dbcbfc6cb Store coupon id, not coupon item id in the stat table. 2018-11-27 16:18:42 +01:00
Peter Fabian 942db641e8 Added extra trigger for updating stats tables.
If order is updated while save_post action is in progress, then the update does not trigger stats table update, thus stats table gets out of sync with master data.
2018-11-27 16:17:30 +01:00
Robert Elliott 0a134d2d53 Merge pull request woocommerce/woocommerce-admin#910 from woocommerce/fix/chart-empty-data
Bug: noticed a new NaN error caused by attempt to draw chart with empty data
2018-11-27 11:39:40 +02:00
Allen Snook a7667c2aff Call wp_set_script_translations when possible 2018-11-26 16:18:36 -08:00
Jonathan Belcher eddf8bc609 Remove duplicate config
https://github.com/woocommerce/wc-admin/pull/618#issuecomment-441742419
2018-11-26 15:54:50 -05:00
Jonathan Belcher a308fcc830 Adds snapshots for the Split Button component (https://github.com/woocommerce/woocommerce-admin/pull/891)
* Adds snapshots for the Split Button component

* Update snapshots

* Remove duplicate test
2018-11-26 13:44:05 -05:00
Albert Juhé Lluveras 0cbe3034d8 Merge report tables (https://github.com/woocommerce/woocommerce-admin/pull/928)
* Merge report tables

* Remove unnecessary semicolon

* Improve sorting of variables

* Rename props to tableProps in ReportTable
2018-11-26 08:01:20 -06:00
Robert Elliott 2ac101f1c2 fix check on this.props.data 2018-11-26 12:04:37 +02:00
Albert Juhé Lluveras b84fce8580 Add Summary to Products table (https://github.com/woocommerce/woocommerce-admin/pull/904)
* Add Summary to Products table

* Use numberFormat() in tables summary
2018-11-25 21:41:56 -06:00
Albert Juhé Lluveras 0acc43a551 Use numberFormat() to format all non-currency numbers in tables (https://github.com/woocommerce/woocommerce-admin/pull/913) 2018-11-25 21:31:38 -06:00
Peter Fabian a86560498e Added primary key to coupon lookup.
Otherwise REPLACE query adds a multiple identical rows.
2018-11-23 22:29:47 +01:00
Albert Juhé Lluveras e4f05f31cb Make ChartPlaceholder have the same height than the resulting Chart (https://github.com/woocommerce/woocommerce-admin/pull/908)
* Make ChartPlaceholder have the same height than the resulting Chart

* Update Chart docs
2018-11-23 07:54:53 -06:00
Robert Elliott 427d0ac7dd combine isRequesting and check that there is data 2018-11-23 10:31:50 +02:00
Albert Juhé Lluveras 2057741853 Merge table stores (https://github.com/woocommerce/woocommerce-admin/pull/896) 2018-11-22 17:12:12 -06:00
Paul Sealock 77589bae6f Merge pull request woocommerce/woocommerce-admin#902 from woocommerce/fix/chart-placeholder
Chart: persist orderedKeys when requesting data
2018-11-23 09:57:45 +13:00
Albert Juhé Lluveras 23d032d675 Remove unnecessary IF in reports/utils.js (https://github.com/woocommerce/woocommerce-admin/pull/909) 2018-11-22 14:49:52 -06:00
Paul Sealock 7d65df783c Chart: Persist orderedKeys between state changes 2018-11-23 09:49:28 +13:00
Albert Juhé Lluveras 56d3a69d13 Default charts to 'time-comparison' (https://github.com/woocommerce/woocommerce-admin/pull/905)
* Default charts to 'time-comparison'

* Fix broken test in ReportChart
2018-11-22 07:03:35 -06:00
David Levin 222a70608a Update package-lock.json 2018-11-21 20:59:11 -07:00
David Levin c3275fd4c9 Update order of summary numbers and remove product count 2018-11-21 20:52:24 -07:00
Paul Sealock ab70ef4099 Chart: Persist orderedKeys between state changes 2018-11-22 13:12:03 +13:00
Robert Elliott fe66aa9623 updated tests remove layout 2018-11-21 16:41:09 +02:00
Robert Elliott 24758bc80d squashed commits for chart packaging
expand formatting function to xFormats

adding getTooltipValueFormat

remove old chart examples

remove magic numbers and use variables

refactor getTooltipRowValue

update package-lock

allow function formatters and use @wordpress/elements
2018-11-21 16:10:56 +02:00
Paul Sealock f4c2140258 Update uses of Gutenberg popover for content sizing 2018-11-21 12:00:40 +13:00
Albert Juhé Lluveras 2a95345bb9 Add chartMode property to filters configuration (https://github.com/woocommerce/woocommerce-admin/pull/884)
* Add chartMode property to filters configuration

* Add tests

* Cleanup

* Add chartMode propType to filters
2018-11-20 16:21:47 -06:00
Kelly Dwan 38ef25a272 Add missing dependency from components package (https://github.com/woocommerce/woocommerce-admin/pull/890) 2018-11-20 14:23:42 -05:00
Paul Sealock 1a9ce46cdb Merge pull request woocommerce/woocommerce-admin#764 from woocommerce/add/variations-table
Product Detail: Add Variations Table
2018-11-20 13:48:37 +13:00
Paul Sealock 67c7dabc29 Add Variations table 2018-11-20 13:42:55 +13:00
Paul Sealock 762cc3d9dd Merge pull request woocommerce/woocommerce-admin#840 from woocommerce/add/release-notes-note-pr-template
Add a note about using SwaggerHub in PR template
2018-11-20 13:26:59 +13:00
Paul Sealock 38264239fc Merge pull request woocommerce/woocommerce-admin#824 from woocommerce/add/product-detail-link
Add/product detail link
2018-11-20 13:14:34 +13:00
Paul Sealock b7acbd9b2f Add Product Detail link in table 2018-11-20 12:57:36 +13:00
Paul Sealock 0d59998625 Persist chart settings 2018-11-20 12:55:30 +13:00
Albert Juhé Lluveras 209a200e78 Fix wrong variable name in Legend tests (https://github.com/woocommerce/woocommerce-admin/pull/889) 2018-11-19 14:27:06 -06:00
Albert Juhé Lluveras 9938707970 Add Taxes report table (https://github.com/woocommerce/woocommerce-admin/pull/881)
* Add Taxes report table

* Add taxes autocompleter to Search

* Minor fixes

* Improve @TODO comment explanation
2018-11-19 09:55:15 -06:00
renovate[bot] 982e2ccc76 chore(deps): update dependency webpack to v4.26.0 (https://github.com/woocommerce/woocommerce-admin/pull/888) 2018-11-19 09:55:29 -05:00
renovate[bot] e3e0af6427 chore(deps): update dependency concurrently to v4.1.0 (https://github.com/woocommerce/woocommerce-admin/pull/886) 2018-11-19 09:38:32 -05:00
renovate[bot] 0f5bee1dd8 chore(deps): update dependency recast to v0.16.1 (https://github.com/woocommerce/woocommerce-admin/pull/885) 2018-11-19 09:34:51 -05:00
renovate[bot] 126aaf3e89 chore(deps): lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/887) 2018-11-19 09:31:10 -05:00
Albert Juhé Lluveras 2acdd04d7a Remove duplicated 'Coupons' menu entry and reorder them (https://github.com/woocommerce/woocommerce-admin/pull/878) 2018-11-16 14:34:40 -06:00
Kelly Dwan 741f5cc6c6 chore(release): publish
- @woocommerce/components@1.0.1
 - @woocommerce/date@1.0.1
2018-11-16 15:31:11 -05:00
Kelly Dwan 87cf118878 Remove imports from file that doesn’t exist in packages (https://github.com/woocommerce/woocommerce-admin/pull/876) 2018-11-16 14:31:20 -05:00
Peter Fabian db9d6e03e7 Added spaces around operator. 2018-11-16 18:22:40 +01:00
Peter Fabian c1cf221773 Fixed typos. 2018-11-16 18:02:19 +01:00
Peter Fabian 26debd77c3 WIP on advanced filters.
Plus fixing bugs:
- fixed tests
- fixed schema definition to reflect response data
- split WHERE SQL clause into time constraints and rest
2018-11-16 17:51:33 +01:00
renovate[bot] 098b24e99e fix(deps): update dependency @babel/runtime-corejs2 to v7.1.5 (https://github.com/woocommerce/woocommerce-admin/pull/865) 2018-11-16 09:14:34 -05:00
renovate[bot] 97faa52909 fix(deps): update dependency d3-array to v2 (https://github.com/woocommerce/woocommerce-admin/pull/872) 2018-11-16 09:13:50 -05:00
Jonathan Belcher f167c27b5e Adds UI wiring for Coupons chart and summary (https://github.com/woocommerce/woocommerce-admin/pull/724)
* Adds UI wiring for Coupons chart and summary

* Update for changes in master

* Update to use current method

* Remove accidental paste

* Fix typo

* Seperate WooCommerce deps
2018-11-16 08:39:29 -05:00
Jonathan Belcher 8ddcb7ce4a Adds UI wiring for Catgories chart and summary (https://github.com/woocommerce/woocommerce-admin/pull/725)
* Adds UI wiring for Catgories chart and summary

* Use new format for charts

* Use swagger api

* Get rid of store references

* Final touch ups

* Seperate out WooCommerce dep
2018-11-16 08:33:58 -05:00
Peter Fabian 46923de3d2 Removed superfluous unsets. 2018-11-16 12:37:15 +01:00
Peter Fabian 7c6d0dc314 Handled case where match parameter is missing. 2018-11-16 12:32:13 +01:00
Peter Fabian ea766b83ca Renamed method to better reflect its purpose.
Plus added conversion of count as string to integer.
2018-11-16 12:30:00 +01:00
Peter Fabian 16d5265aed Merge branch 'master' into fix/749 2018-11-16 12:16:50 +01:00
Peter Fabian ba09fea35d Updated filters subqueries to correctly handle no filter case. 2018-11-16 12:12:47 +01:00
Albert Juhé Lluveras cc86233e0f Add Coupons report table (https://github.com/woocommerce/woocommerce-admin/pull/867)
* Add Coupons report table

* Fix propTypes warning in CouponsReportTable

* Remove unnecessary constructors from tables
2018-11-15 21:35:10 -06:00
Albert Juhé Lluveras ba7d6ef29f Minor fixes to stores (https://github.com/woocommerce/woocommerce-admin/pull/868)
* Minor fixes to stores

* Fix 'parameters' typo
2018-11-15 21:32:11 -06:00
Kelly Dwan 94200cbbc1 chore(release): publish
- @woocommerce/components@1.0.0-alpha.1
 - @woocommerce/csv-export@1.0.0-alpha.1
 - @woocommerce/currency@1.0.0-alpha.1
 - @woocommerce/date@1.0.0-alpha.1
 - @woocommerce/navigation@1.0.0-alpha.1
2018-11-15 18:31:20 -05:00
Allen Snook a60497c9f6 Remove error_log, set note to false to avoid a uninitialized var warning 2018-11-15 13:19:29 -08:00
Allen Snook d8dd2a0083 Update README.md 2018-11-15 13:13:35 -08:00
Allen Snook a65ff9e797 Bump notes for expiring subscriptions at certain days-remaining thresholds 2018-11-15 12:52:58 -08:00
renovate[bot] 9f390ba0da Pin dependencies (https://github.com/woocommerce/woocommerce-admin/pull/863)
* Pin dependencies

* Update Package-lock.json
2018-11-15 14:59:34 -05:00
Kelly Dwan 2a9cb6509b Build: Move components to packages dir (https://github.com/woocommerce/woocommerce-admin/pull/804)
* Move components to packages folder

* Update documentation generator to handle packages/components and client/components

* Update component locations

* Update CSS build process

* Remove react-dates css, this is already included by gutenberg

* Fix CSS style - single quotes

* Fix incorrect imports

* Update package-lock with new dependencies

* Update component locations for devdocs

* Fix location of tests
2018-11-15 13:16:23 -05:00
Peter Fabian 723ac1e506 Added defaults for new params to Data Store. 2018-11-15 19:01:52 +01:00
Peter Fabian 9d86e01f4e Updated REST controller with new parameters. 2018-11-15 19:01:22 +01:00
Allen Snook e150ce4034 Merge pull request woocommerce/woocommerce-admin#851 from woocommerce/add/admin-notices-rest-api-unit-tests-2
Add admin notices REST API unit tests
2018-11-15 09:24:17 -08:00
Albert Juhé Lluveras 8997d4ca26 Update chart breakpoints (https://github.com/woocommerce/woocommerce-admin/pull/838)
* Update chart breakpoints to match the other parts or wc-admin

* Make chart have always the specified height so it matches the legend total label

* Remove obsolete test

* Remove exports no longer needed

* Remove @wordpress/viewport dependency from chart.js

* Update chart docs

* Make tooltipPosition PropType more strict
2018-11-15 09:27:55 -06:00
Peter Fabian d009deb3e1 Added initial implementation of advanced filters. 2018-11-15 15:27:19 +01:00
Peter Fabian 0374119245 Added zero padding to hours in unit tests. (https://github.com/woocommerce/woocommerce-admin/pull/858) 2018-11-15 08:19:13 -05:00
Jonathan Belcher 2dbe3e8cc7 Adds UI wiring for Taxes chart and summary (https://github.com/woocommerce/woocommerce-admin/pull/779)
* Adds UI wiring for Taxes chart and summary

* Update to latest method for creating summary/chart

* Switch out API for swagger

* Fix copy pasta

* Implement swagger api

* Update config to match swagger API

* Code review fixes

* Remove store code as it isnt used
2018-11-14 16:04:59 -05:00
Jonathan Belcher 5132e81b7c Fixes code comments on return value type (https://github.com/woocommerce/woocommerce-admin/pull/850) 2018-11-14 15:33:13 -05:00
Allen Snook aeb7d15c9a Deeply test the structure of a single note for expected values 2018-11-14 11:17:01 -08:00
Allen Snook 40376c23e1 Add unit tests for admin notes REST API 2018-11-14 11:06:53 -08:00
Renovate Bot cf008b9e77 Pin dependency phpunit/phpunit to 6.5.13 2018-11-14 16:56:00 +00:00
renovate[bot] ca0165ff5d Update dependency deasync to v0.1.14 (https://github.com/woocommerce/woocommerce-admin/pull/839) 2018-11-14 11:55:18 -05:00
Jonathan Belcher 60bd7a477f Adds basic snapshot for dropdown button (https://github.com/woocommerce/woocommerce-admin/pull/843) 2018-11-14 11:52:47 -05:00
renovate[bot] 7c640c1c1c Update babel monorepo to v7.1.6 (https://github.com/woocommerce/woocommerce-admin/pull/834) 2018-11-14 10:46:47 -05:00
Peter Fabian f562562055 Merge pull request woocommerce/woocommerce-admin#758 from woocommerce/fix/751
PHPUnit testing improvements
2018-11-14 10:42:10 +01:00
Paul Sealock 4b64fd3a60 Add a note about using SwaggerHub in PR template 2018-11-14 12:06:50 +13:00
Allen Snook 17a997f313 Merge pull request woocommerce/woocommerce-admin#808 from woocommerce/fix/796-polyfill-part-deux
Remove the SCRIPT_DEBUG:true requirement
2018-11-13 14:35:01 -08:00
Paul Sealock c809fa6cb9 Apply onQueryChange to more than just 'filter' 2018-11-14 09:56:39 +13:00
Boro Sitnikovski 83fdaf6cd6 Fix some PHP notices when accessing WC Settings screen (https://github.com/woocommerce/woocommerce-admin/pull/828)
* Fix some PHP notices when accessing WC Settings screen

* Add sanitization
2018-11-13 14:08:01 -05:00
Albert Juhé Lluveras 1d5364f6a6 Add ProductImage to variations autocompleter (https://github.com/woocommerce/woocommerce-admin/pull/832) 2018-11-13 09:40:17 -06:00
Peter Fabian 11d6f2e93a Updated query parameters according to spec. 2018-11-13 16:24:57 +01:00
Jonathan Belcher 2eff88bf4c Adds a test snapshot for count (https://github.com/woocommerce/woocommerce-admin/pull/830) 2018-11-13 09:39:42 -05:00
renovate[bot] a2f0f5c875 Update dependency husky to v1.1.4 (https://github.com/woocommerce/woocommerce-admin/pull/829) 2018-11-13 09:16:01 -05:00
Robert Elliott bd1997b725 Merge pull request woocommerce/woocommerce-admin#785 from woocommerce/add/chart-63day-x1month-x2year
Component - chart: more than 9 weeks of ticks change xFormat to months & x2Format to yrs
2018-11-13 10:16:01 +02:00
Jonathan Belcher 59a3db306e Remove unneeded leading whitespace (https://github.com/woocommerce/woocommerce-admin/pull/820)
This has made it difficult to quick create test instructions since I have to add a leading space before every step.
2018-11-12 16:50:03 -05:00
Jonathan Belcher ffaa80a95e Add snapshotting to Animation Slider (https://github.com/woocommerce/woocommerce-admin/pull/819) 2018-11-12 16:49:40 -05:00
Jonathan Belcher cd00227875 Adds Card Snapshot (https://github.com/woocommerce/woocommerce-admin/pull/821) 2018-11-12 16:49:32 -05:00
Albert Juhé Lluveras 5033a1ba5c Update comparison chart design and show it on the Product report (https://github.com/woocommerce/woocommerce-admin/pull/816)
* Display comparison chart in Product detail report

* Make legend to overflow in comparison charts

* Show comparison chart also when comparing products

* Update comparison chart legend design

* Send itemsLabel and comparisonChart as props to the ReportChart component

* Update styles and create a legend.scss file

* Minor cleanup

* Fix legend test

* Sort props alphabetically
2018-11-12 15:41:33 -06:00
Jonathan Belcher 5c84bd4790 Update composer.lock 2018-11-12 14:53:18 -05:00
Jonathan Belcher 0193e73a87 Merge Commit 2018-11-12 14:50:13 -05:00
Albert Juhé Lluveras 3637ae5054 Update table gradient code to be more similar to chart legend gradient code (https://github.com/woocommerce/woocommerce-admin/pull/817) 2018-11-12 12:04:38 -06:00
renovate[bot] 687a728e64 Update dependency wp-coding-standards/wpcs to v1.2.0 (https://github.com/woocommerce/woocommerce-admin/pull/815) 2018-11-12 12:29:36 -05:00
renovate[bot] c83d1d0779 Update dependency eslint to v5.9.0 (https://github.com/woocommerce/woocommerce-admin/pull/810) 2018-11-12 12:03:48 -05:00
Jonathan Belcher bccae052ae Refactor to remove products chart.js (https://github.com/woocommerce/woocommerce-admin/pull/799)
* Refactor to remove products chartjs

* Delete chartjs

* Fix copy pasta error
2018-11-12 11:28:03 -05:00
Jonathan Belcher e49997381b Refactor to remove revenue chartjs (https://github.com/woocommerce/woocommerce-admin/pull/800)
* Refactor to remove revenue chartjs

* Update index.js

* Remove extra line
2018-11-12 11:27:19 -05:00
Jonathan Belcher f98d0c9720 Adds renovate lock file updates (https://github.com/woocommerce/woocommerce-admin/pull/801) 2018-11-12 11:26:11 -05:00
renovate[bot] 585b234ed7 Update dependency d3-array to v2 (https://github.com/woocommerce/woocommerce-admin/pull/811) 2018-11-12 11:25:54 -05:00
renovate[bot] 004f27223c Update dependency stylelint to v9.8.0 (https://github.com/woocommerce/woocommerce-admin/pull/809) 2018-11-12 11:24:53 -05:00
Kelly Dwan 89cee0df90 Build: Move filter code to the navigation package (https://github.com/woocommerce/woocommerce-admin/pull/803)
* Move filter code to the navigation package

- Moves filter-related code to navigation, so it can be shared between components and the app
- Fixes spelling of “flatten”
- Update README docs with new functions

* Use `get` to prevent errors if options is not an array/is empty

* Update documentation and tests
2018-11-12 11:17:18 -05:00
Allen Snook 45c03845b2 Remove SCRIPT_DEBUG requirement 2018-11-09 09:49:33 -05:00
Jonathan Belcher a490287f0a Updates docs (https://github.com/woocommerce/woocommerce-admin/pull/798) 2018-11-07 17:00:50 -05:00
Allen Snook 6e28d5d3f5 Merge pull request woocommerce/woocommerce-admin#774 from woocommerce/fix/772-wp5-compat
Allow WC-Admin to activate on WP 5 without Gutenberg plugin active
2018-11-07 16:13:15 -05:00
Allen Snook a5b1b617c2 Prompt user to set SCRIPT_DEBUG on WP 5 for now. 2018-11-07 14:53:05 -05:00
Allen Snook e933427d5a Fix leading spaces 2018-11-07 12:53:20 -05:00
renovate[bot] 9ccddf5a19 Pin dependency @wordpress/custom-templated-path-webpack-plugin to 1.1.5 (https://github.com/woocommerce/woocommerce-admin/pull/788) 2018-11-07 12:25:48 -05:00
Jonathan Belcher c102e78523 Creates a helper function to get selected chart (https://github.com/woocommerce/woocommerce-admin/pull/794)
* Creates a helper function to get selected chart

* remove console log

* Make sure charts is never empty

* Clarify docs
2018-11-07 12:19:59 -05:00