Commit Graph

524 Commits

Author SHA1 Message Date
Allen Snook db7456ae55 Add comments for the types and statuses 2018-09-27 09:28:15 -07:00
Allen Snook cb7a5b3607 PHPCS all the things 2018-09-27 09:28:15 -07:00
Allen Snook 677c205ad2 Remove interface for this PR (actions will be hooked up later);
persist actions given during creation through to the db
2018-09-27 09:28:15 -07:00
Allen Snook 9f7ffa08a9 Make types and statuses easier for plugins to access 2018-09-27 09:28:15 -07:00
Allen Snook a930293c43 Improve prop validation, especially date handling 2018-09-27 09:28:15 -07:00
Allen Snook 10c01a6165 Change data store slug to singular to match the rest of WC;
change dismissible note to update type;
remove unwanted version phpdoc
2018-09-27 09:28:15 -07:00
Allen Snook 4cca18bd30 Remove REST file from this commit (it will go in a separate PR) 2018-09-27 09:28:15 -07:00
Allen Snook 4d8dfea84c Break out separate note and notes classes for clarity 2018-09-27 09:28:14 -07:00
Allen Snook 45eeb57b62 Add CRUD and Data Stores for Admin Notes 2018-09-27 09:28:14 -07:00
David Levin 83d871cf6f Merge pull request woocommerce/woocommerce-admin#487 from woocommerce/update/chart-inerval-select-alignment
Update chart interval select alignment
2018-09-27 09:07:49 -07:00
Claudio Sanches c0eadbaabb Merge branch 'master' into feature/438 2018-09-27 12:39:57 -03:00
Claudio Sanches d8503ef720 Merge pull request woocommerce/woocommerce-admin#462 from woocommerce/fix/440
Added PHP tests
2018-09-27 12:31:36 -03:00
Claudio Sanches d672a65e1f Merge pull request woocommerce/woocommerce-admin#461 from woocommerce/fix/453
Casted numeric values to floats before performing arithmetic operations.
2018-09-27 12:29:29 -03:00
David Levin aeac3a2e30 Update chart interval select alignment 2018-09-26 15:15:16 -07:00
Kelly Dwan 468bde5147 Components – Search: Pass through aria label props (https://github.com/woocommerce/woocommerce-admin/pull/484)
* Pass aria label props through to search input

* Update the search example in devdocs
2018-09-26 13:13:28 -04:00
Kelly Dwan 5dc1addbf8 Build: Update i18n generation to combine JS + PHP translations (https://github.com/woocommerce/woocommerce-admin/pull/481)
* Generate the PHP translations file from the POT file after building the project

* Remove unused tasks

* Update i18n task to generate JS pot file, then convert that to PHP, then run grunt php pot generation

* Update docs

* Pipe babel file output to null, not entire output of command

Helps with debugging the babel command itself
2018-09-26 10:23:55 -04:00
Albert Juhé Lluveras 3e3dbad408 Update chart header layout according to design (https://github.com/woocommerce/woocommerce-admin/pull/476)
* Update chart header layout according to design

* Add RTL support
2018-09-26 14:17:45 +02:00
Albert Juhé Lluveras 80449c6c57 Make tooltip position be relative to the hovered elements instead of the mouse (https://github.com/woocommerce/woocommerce-admin/pull/471)
* Make tooltip position be relative to the hovered elements instead of the mouse

* Set tooltip margin to 24px to match CSS 'gap-large'

* When focusing a bar with value 0, set the target node to its parent so the tooltip is displayed next to it

* Make sure 'mouseout' event is not triggered when hover the tooltip box

* Make sure the tooltip is never rendered too much to the left/top of the chart

* Get the size of the tooltip box from the DOM when it's available

* Minor fixes
2018-09-26 14:17:29 +02:00
Albert Juhé Lluveras 5649b6b1e2 Use 'H' component for chart header (https://github.com/woocommerce/woocommerce-admin/pull/480)
* Use 'H' component for chart header

* Set 'Section' component below the 'H'
2018-09-26 09:20:29 +02:00
Kelly Dwan e2aa414f4f Add `cross-env` to allow building on Windows (https://github.com/woocommerce/woocommerce-admin/pull/473) 2018-09-25 16:50:51 -04:00
Albert Juhé Lluveras 29cfde2ddd Fix activity panel tabs misaligned in Chrome and Safari (https://github.com/woocommerce/woocommerce-admin/pull/478) 2018-09-25 22:34:30 +02:00
Albert Juhé Lluveras 0088581fcb Fix: chart legend was not visible at 1340px width (https://github.com/woocommerce/woocommerce-admin/pull/472) 2018-09-25 20:19:32 +02:00
Albert Juhé Lluveras 1900bb0917 Improve charts accessibility (https://github.com/woocommerce/woocommerce-admin/pull/421)
* Add aria roles to chart elements

* Make individual points (in line charts) and individual bar (in bar charts) focusable

* Remove methods which are never used

* Reduce the number of parameters required by functions that display/hide the tooltip

* Use tooltipFormat for accessibility dates

* Rename 'formatVoiceDate' function to 'getTooltipDate'

* Use string literals for aria-label

* Remove table role which was no longer needed

* Add aria-hidden to X-axis in charts

* Remove 'key' from points/bar aria-label in charts

* Set different ARIA properties depending on chart mode (time or item comparison)

* Label should default to an empty string instead of a 0

* Use date format from params instead of hardcoded
2018-09-25 11:42:08 +02:00
Paul Sealock 58195911a7 AdvancedFilters: Add request for orders statuses 2018-09-25 11:39:47 +12:00
Peter Fabian 28c09248df Added remaining test files. 2018-09-24 19:46:37 +02:00
Peter Fabian d997e280b2 Added missing data update triggers. 2018-09-24 19:16:10 +02:00
Peter Fabian e318463dd5 Updated the before_script instructions to correctly install node and print out version. 2018-09-24 18:50:00 +02:00
Peter Fabian ef72b7af2c Use node version 8. 2018-09-24 18:25:06 +02:00
Peter Fabian c368e44ff3 Updated language domain. 2018-09-24 17:56:43 +02:00
Peter Fabian cb50f79131 Plugin installation should not be needed in bootstrap, as it happens in the installation script. 2018-09-24 17:49:21 +02:00
Peter Fabian eed4b424e6 Updated language domain. 2018-09-24 17:46:41 +02:00
Kelly Dwan 62276fb361 Add visual component docs from markdown examples (https://github.com/woocommerce/woocommerce-admin/pull/470)
* Remove content from README, leaving only the example

* Rename edited READMEs

* Add a devdocs page rendering from markdown example files

* Add more components to devdocs

* Add the rest of the component examples

* Add navigation to single components, show generated readme on single component view

* Style devdocs like calypso

* Split devdocs into two columns at “desktop” sizes

* Update segmented selection example

* Update link

* Add header to avoid notices error
2018-09-24 11:36:35 -04:00
Peter Fabian 670436ac13 PHPCS fixes. 2018-09-24 17:24:08 +02:00
Kelly Dwan f5dd2559db Documentation: Move topic READMEs into docs for discoverability (https://github.com/woocommerce/woocommerce-admin/pull/469)
* Move header/row documentation into the component, so it can be rendered in the external docs

* Move project READMEs into docs folder for exposure in docs site

* Regenerate docs, generate component folder sidebar with component list

* Update format of CSS docs
2018-09-24 11:22:14 -04:00
Peter Fabian dc858b522a Update dependencies installation for testing, corrected db prefix. 2018-09-24 16:26:04 +02:00
Albert Juhé Lluveras 31289e8c82 Transpose and update format of chart tooltip dates (https://github.com/woocommerce/woocommerce-admin/pull/467)
* Fix dates transposed in revenue chart

* Update date format in revenue chart tooltip labels

* Load point label date formats from lib/date

* Pass point label format as a prop to the chart component
2018-09-24 13:11:18 +02:00
Peter Fabian 8f1546fdf7 Updated db prefix. 2018-09-21 21:08:10 +02:00
Peter Fabian e956afdeb7 PHPCS updates. 2018-09-21 20:51:41 +02:00
Peter Fabian f2cb1e6a85 Removed duplicate WooCommerce installation. 2018-09-21 19:34:34 +02:00
Peter Fabian 6f40133765 Travis test 13. 2018-09-21 19:23:37 +02:00
Peter Fabian 81db727153 Travis test 12. 2018-09-21 19:16:05 +02:00
Claudio Sanches 0136912a06 Added grunt-checktextdomain 2018-09-21 14:13:28 -03:00
Peter Fabian e51b578024 Travis test 11. 2018-09-21 19:07:46 +02:00
Claudio Sanches f8e62576a0 Inclcude composer dependencies 2018-09-21 14:06:16 -03:00
Claudio Sanches 6a8ecd0d54 Updated PHPCS rules 2018-09-21 13:56:45 -03:00
Kelly Dwan 6d2eec1c12 Update `layout/*` file structure (https://github.com/woocommerce/woocommerce-admin/pull/463)
* Move section, header, and activity panel out of layout folder

* Update file soures

* Move documentation into component, and update generation script to handle the duplicated exports
2018-09-21 11:19:05 -04:00
Peter Fabian 5be0bdad97 Travis test 10. 2018-09-21 17:07:03 +02:00
Albert Juhé Lluveras ccde0effe2 Remove opacity property from chart tooltip title styles (https://github.com/woocommerce/woocommerce-admin/pull/466) 2018-09-21 17:03:06 +02:00
Peter Fabian 6546df1506 Travis test 9. 2018-09-21 17:01:04 +02:00
Peter Fabian cfea428209 Travis test 8. 2018-09-21 16:51:22 +02:00
Peter Fabian 6e6b028554 Travis test 7. 2018-09-21 16:37:02 +02:00
Peter Fabian a5dcd77f4b Travis test 6. 2018-09-21 16:15:43 +02:00
Peter Fabian aa2eec9b19 Travis test 5. 2018-09-21 15:58:17 +02:00
Peter Fabian a2de6b6aa5 Travis test 4. 2018-09-21 15:47:59 +02:00
Peter Fabian 6c76e0f144 Added Gutenberg installation to Travis. 2018-09-21 15:40:45 +02:00
Peter Fabian 55dffc32ae Added /vendor/ to gitignore. 2018-09-21 15:34:26 +02:00
Peter Fabian 283f3dbd9f Travis test 3. 2018-09-21 15:32:42 +02:00
Peter Fabian ec00be9f15 Travis test 2. 2018-09-21 15:16:53 +02:00
Peter Fabian 75b01556ab Travis test 1. 2018-09-21 15:06:16 +02:00
Peter Fabian e0757beafc Included product lookup in reports regeneration tool. 2018-09-21 12:24:15 +02:00
Peter Fabian 5aa3aae58a The installation code should not run on each plugin load, only when activated. 2018-09-21 12:14:08 +02:00
Peter Fabian aa8a09adbe Merge branch 'master' into fix/440 2018-09-21 10:59:47 +02:00
Peter Fabian 8f2af2e6d8 Corrected hour representation in tests. 2018-09-21 10:37:39 +02:00
Peter Fabian 0b68f52832 Merge pull request woocommerce/woocommerce-admin#441 from woocommerce/fix/437
Use WooCommerce's database prefix
2018-09-21 10:01:53 +02:00
Paul Sealock a299aad167 Coupons: add config, autocompleter 2018-09-21 11:54:22 +12:00
Albert Juhé Lluveras a18a9cd89a Update tooltip title and labels in standard graphs (https://github.com/woocommerce/woocommerce-admin/pull/458)
* Allow adding a label for each specific point in a chart

* Update test fixtures

* Update README with new data format

* Simplify getPreviousDate function code

* Update tooltip dates format

* Add new prop to charts 'tooltipTitle' to override the date tooltip title

* Fix totals not being calculated in charts legend

* Fix JS error when hiding lines in chart

* Fix a couple of issues with chart README

* Add quotes around prop names

* Remove unused variable

* Remove colon after tooltip label
2018-09-20 16:28:22 +02:00
Peter Fabian 880d99986f Fixed interval boundary function arguments in case no intervals are being added. 2018-09-20 16:23:19 +02:00
Albert Juhé Lluveras 18be372cad Increase contrast of the tooltip title color (https://github.com/woocommerce/woocommerce-admin/pull/460) 2018-09-20 16:21:21 +02:00
Albert Juhé Lluveras a877f45471 Change default date format for chart tooltips (https://github.com/woocommerce/woocommerce-admin/pull/459) 2018-09-20 16:21:03 +02:00
Peter Fabian 9ccb1e2124 Added revenue stats tests. 2018-09-20 16:20:50 +02:00
Peter Fabian 389a2182a1 Initial setup for unit tests. 2018-09-20 16:20:04 +02:00
Peter Fabian e28f8255c3 Casted numeric values to floats before performing arithmetic operations. 2018-09-20 16:03:27 +02:00
Paul Sealock a27134e1a6 Merge pull request woocommerce/woocommerce-admin#294 from woocommerce/fix/dropdown-resize
Datepicker: resize dropdown on tab switch
2018-09-20 06:38:03 +12:00
Timmy Crawford b13d0bd2ac Tracks: Record page views on route changes. (https://github.com/woocommerce/woocommerce-admin/pull/452)
* Tracks: Record page views on route changes.

* adjust regex.
2018-09-19 11:23:05 -07:00
Timmy Crawford daa3bdcf3c Docs: Remove REST API feature branch requirement. (https://github.com/woocommerce/woocommerce-admin/pull/445)
* Remove REST API feature branch requirement.

* npm run docs
2018-09-19 10:55:44 -07:00
Kelly Dwan 60f7c99753 Update label config to provide more specific labeling to each filter (https://github.com/woocommerce/woocommerce-admin/pull/432) 2018-09-19 13:23:57 -04:00
Kelly Dwan 1c6fe0e970 Compare Filter: Wrap up compare card functionality (https://github.com/woocommerce/woocommerce-admin/pull/431)
* Disable compare button if less than 2 items are selected

* Add a placeholder prop to the Search component

* Pass a placeholder label from filter configs for Search

* Add support for a label in Search

* Add Clear All link to reset comparison card

* Add a label when compare button is disabled

* Abstract the conditional tooltip/disabled button logic to a new component

* Add helpText as a customizable label

* Add icon to the search field

* Remove the parameter from query by passing in undefined
2018-09-19 13:16:52 -04:00
Albert Juhé Lluveras 5e87febf04 Chart Legend: Update checkbox styles to outline when unchecked (https://github.com/woocommerce/woocommerce-admin/pull/426)
Chart Legend: Update checkbox styles to outline when unchecked and add focus state
2018-09-19 16:41:13 +02:00
David Levin b487642a65 Merge pull request woocommerce/woocommerce-admin#435 from woocommerce/update/ellipsis-menu-item-padding
Minor padding tweaks to ellipsis menu items
2018-09-18 17:52:56 -07:00
Paul Sealock 2fbfd64525 check to make sure method exists 2018-09-19 10:19:19 +12:00
Paul Sealock cb85f4878f Merge pull request woocommerce/woocommerce-admin#425 from woocommerce/add/advanced-filters-match-param
Advanced Filters: add match param to url
2018-09-19 10:03:06 +12:00
Kelly Dwan cd58cc78ac Build: Update packages (https://github.com/woocommerce/woocommerce-admin/pull/434)
* Update packages to latest versions

* Update snapshot to match updated jest format

* Add missing packages

* Pin docsify-cli to GitHub commit with security fix

* Update engines settings

* Update packages

Again, some things are already out of date from last week

* Regenerate docs
2018-09-18 17:37:57 -04:00
Claudio Sanches 76d5417e2b Use WooCommerce's database prefi
Fixes woocommerce/woocommerce-admin#437
2018-09-18 17:03:42 -03:00
Claudio Sanches da4a2813b8 Merge pull request woocommerce/woocommerce-admin#420 from woocommerce/fix/402_403
Added reporting REST API extensions to wc-admin.
2018-09-18 16:42:26 -03:00
Claudio Sanches 661b5d6ef7 Included docblocks 2018-09-18 16:41:45 -03:00
David Levin 12398f9028 Minor padding tweaks to ellipsis menu items 2018-09-18 10:52:37 -07:00
Albert Juhé Lluveras d5657c879d Make buttons to switch between bar and line chart accessible (https://github.com/woocommerce/woocommerce-admin/pull/422)
* Make buttons to switch between bar and line chart accessible

* Use better ARIA roles for line/bar chart buttons
2018-09-18 16:53:55 +02:00
Albert Juhé Lluveras 9d5cd880dd Don't allow unselecting all items in chart legends (https://github.com/woocommerce/woocommerce-admin/pull/427)
* Don't allow unselecting all items in chart legends

* Add correct color to chart legend labels

* Add tests for chart legend enable/disable items logic
2018-09-18 16:53:30 +02:00
Kelly Dwan f2e0165d5f Component – Table: Add compare checkboxes (https://github.com/woocommerce/woocommerce-admin/pull/389)
* Switch to withInstanceId higher order component

* Add checkboxes to the rows in a TableCard, if a compareBy prop is set

* Add Compare button to update query param

* Populate the selected rows from the query parameter

* Update compare filter display & selected table rows when the query changes

* Skip displaying tags if the label is null/undefined

* Style table header with compare button, search placeholder

* Prevent setting just an ID list as the state, as this will wipe out already-fetched tag labels

* Update docs

* Shortcut out of fetching tag labels if the query is empty
2018-09-18 10:12:13 -04:00
Peter Fabian 0a669544d6 Added code from feature/20777, pending tests. 2018-09-18 13:32:25 +02:00
Peter Fabian b8732e157e Added code from feature/couponordertable. 2018-09-18 13:29:58 +02:00
Peter Fabian aaef322e00 Added code from feature/20778, tests pending. 2018-09-18 13:27:34 +02:00
Peter Fabian 6cddb51786 Added code from feature/20770. 2018-09-18 13:24:11 +02:00
Peter Fabian a16933143f Added code from feature/20781, tests pending. 2018-09-18 13:20:42 +02:00
Peter Fabian b556d55ca6 - Removed duplicate class.
- Overridden REST API endpoints via filters.
- Updated data store class prefixes.
- Removed debugging echo.
2018-09-18 12:24:43 +02:00
Paul Sealock d0dc5f2f88 Advanced Filters: add match param to url 2018-09-18 14:15:41 +12:00
Peter Fabian 9ac635fd42 Updated prefixes for wc-admin plugin. 2018-09-17 21:13:19 +02:00
Peter Fabian 429803cc25 Updated prefix for stats db table. 2018-09-17 21:01:44 +02:00
Peter Fabian 1614d482cc Postponed class init only after registering post types. 2018-09-17 20:56:04 +02:00
Peter Fabian 7b2111ec05 Added missing return statement. 2018-09-17 20:46:55 +02:00
Peter Fabian 1b71184f23 Updated path to background process class. 2018-09-17 20:36:29 +02:00
Peter Fabian bd714210ea Added required includes. 2018-09-17 20:36:03 +02:00
Peter Fabian 405703c17a Added missing interface. 2018-09-17 20:35:23 +02:00
Peter Fabian aa4035adb9 Added WC_Admin prefix for query classes where it was missing. 2018-09-17 20:20:34 +02:00
Peter Fabian e692c45c87 Added missing path separator. 2018-09-17 20:20:00 +02:00
Peter Fabian a92a78ce9d Fixed order of initialization so that classes are loaded in correct order. 2018-09-17 20:19:36 +02:00
Peter Fabian a39fc58da2 Added missing vars. 2018-09-17 19:53:57 +02:00
Kelly Dwan 7ecd6d160b Add mock product report, helper functions (https://github.com/woocommerce/woocommerce-admin/pull/387)
* Add a mock table to Products report

* Move onQueryChange to a helper function in nav-utils

* Add function to parse out ID lists from a query parameter

* Add a default value

Prevents undefined query params from erroring on the `.split`

* Use numberFormat rather than forcing type conversion, fix table header name

* Fix duplicate export caused by merge conflict
2018-09-17 12:50:20 -04:00
Timmy Crawford e541d4032f Tracks: Add basic util methods for tracks. (https://github.com/woocommerce/woocommerce-admin/pull/397) 2018-09-17 09:42:04 -07:00
Peter Fabian bd295af793 PHPCS (require_once is not a function). 2018-09-17 16:54:31 +02:00
Peter Fabian d2ac6cdbe1 Added reporting REST API extensions to wc-admin. 2018-09-17 16:32:03 +02:00
Robert Elliott e79a4b9025 remove he package and rename uniqueDates to ticks 2018-09-17 11:07:11 +02:00
Robert Elliott ddc2645bef check if second x axis tick required 2018-09-14 10:49:07 -07:00
Robert Elliott ac8952d7ec Component - Chart: factorial spacing of x-axis ticks (https://github.com/woocommerce/woocommerce-admin/pull/398)
* remove circles on more than 50 x points

* x-axis interval spacing

* factorial spacing of x-axis ticks

* limit pipes too

* catch recursion infinity issue and add layout
2018-09-14 10:43:53 -07:00
Timmy Crawford 8eb0906287 Chart: Add styling needed to not be wrapped by card. (https://github.com/woocommerce/woocommerce-admin/pull/408)
* Chart: Add styling needed to not be wrapped by card.

* Add negative top margin back

* Fix placeholder css.
2018-09-14 09:17:39 -07:00
Albert Juhé Lluveras 70bb1d28c8 IE11: fix dates overlapping in Custom filter (https://github.com/woocommerce/woocommerce-admin/pull/411) 2018-09-14 17:35:04 +02:00
Timmy Crawford e4fd525cb4 Top Products: Display Product Name. (https://github.com/woocommerce/woocommerce-admin/pull/406)
* Top Products: Display Product Name.

* Fix tests.
2018-09-14 08:21:21 -07:00
Albert Juhé Lluveras 5669eb4b1a Make it possible to navigate charts with the keyboard (https://github.com/woocommerce/woocommerce-admin/pull/399)
* Hide tooltip when mouse leaves chart bars

* Allow focus on chart lines/bars and show tooltip

* Extract position calculation to a function

* Make columns focusable instead of individual points in line charts
2018-09-14 14:57:09 +02:00
Robert Elliott b5b84fe72c Merge pull request woocommerce/woocommerce-admin#393 from woocommerce/fix/rev-report-chart-date-parser
Revenue Report: align date formats for the chart
2018-09-14 12:37:16 +02:00
Robert Elliott a08cb0dd70 remove d 2018-09-14 11:57:50 +02:00
Robert Elliott 45089c1602 2nd x-axis format 2018-09-14 11:53:54 +02:00
Albert Juhé Lluveras b0c489bab1 IE11: avoid reviews date overlapping product name (https://github.com/woocommerce/woocommerce-admin/pull/400) 2018-09-14 09:19:36 +02:00
Paul Sealock b125c75eef Merge pull request woocommerce/woocommerce-admin#386 from woocommerce/add/advanced-filters-search-getLabels
Advanced Filters: Add api fetch for Search results
2018-09-14 11:17:59 +12:00
Paul Sealock 9629a46da1 update to latest GB changes 2018-09-14 11:16:19 +12:00
Paul Sealock 5a2ba2c9f2 Merge pull request woocommerce/woocommerce-admin#396 from woocommerce/fix/popover-positioning
Dropdown: fix positioning
2018-09-14 10:18:44 +12:00
Paul Sealock 842c23201e AdvancedFilters: Update Search usage to use 'getLabels' from config 2018-09-14 10:17:35 +12:00
Albert Juhé Lluveras 48ed6fa568 Make Top Selling Products table to have the same height in all states (https://github.com/woocommerce/woocommerce-admin/pull/394)
* Make table font-size accessible

* Make TopSellingProducts table load only five products

* Make empty message on TopSellingProducts table the same height than the table

* Update breaking test

* Use font-size mixin in table items/header
2018-09-13 11:05:26 +02:00
Paul Sealock 713dd242c7 Datepicker: resize dropdown on tab switch 2018-09-13 14:47:48 +12:00
Paul Sealock d5546e0858 Dropdown: fix positioning 2018-09-13 11:44:50 +12:00
Paul Sealock 361b6de834 Advanced Filters: Filter button improvements 2018-09-13 11:07:53 +12:00
Robert Elliott abe27333ae remove uncommented style 2018-09-12 15:24:45 +02:00
Albert Juhé Lluveras ac044b8720 Add empty state message to Top Selling Products card (https://github.com/woocommerce/woocommerce-admin/pull/365) 2018-09-12 14:09:53 +02:00
Robert Elliott b276750955 html encoder for currency symbols 2018-09-12 13:16:44 +02:00
Robert Elliott a7ed5f0c85 html encoder for currency symbols 2018-09-12 13:16:36 +02:00
Robert Elliott 29113cffe8 align date formats for the chart 2018-09-12 09:22:08 +02:00
Paul Sealock 925140fc78 Merge pull request woocommerce/woocommerce-admin#349 from woocommerce/add/advanced-filters-url-support
Advanced Filters: Add url support
2018-09-12 14:31:13 +12:00
Justin Shreve baf44d030f Add interval handling to the revenue report. 2018-09-12 12:28:25 +12:00
Kelly Dwan ed1b847067 Fix Gutenberg 3.7 compatibility: Remove APIProvider (https://github.com/woocommerce/woocommerce-admin/pull/390)
* Remove APIProvider

Unused in the project, and deprecated in gutenberg

* Remove wp-api dependency
2018-09-11 15:48:43 -04:00
Robert Elliott 32285df636 package-lock bump 2018-09-11 13:16:14 +02:00
Timmy Crawford b184aa2324 Update gridicons to v3.1.1 2018-09-11 13:10:44 +02:00
Robert Elliott 4d155cd015 line and bar icon buttons 2018-09-11 13:10:36 +02:00
Albert Juhé Lluveras ae8739d63f Add required polyfills so react-dates works in Internet Explorer 11 (https://github.com/woocommerce/woocommerce-admin/pull/356)
react-dates developers recommend using airbnb-browser-shims, but doing some
testing I found loading the required polyfills individually instead of the
entire Airbnb Browser Shims package produces smaller builds.
2018-09-11 09:28:50 +02:00
Albert Juhé Lluveras 8932f99038 Add fallback gutter for browsers that don't support CSS Custom properties (https://github.com/woocommerce/woocommerce-admin/pull/372) 2018-09-11 09:27:13 +02:00
Paul Sealock 3e7bed27cc Search: move selected from state to props 2018-09-11 16:18:10 +12:00
Robert Elliott e38284eb96 Merge pull request woocommerce/woocommerce-admin#381 from woocommerce/add/chart-legend-order
Chart Component: remove chart legend ordering for layout=standard and color scales
2018-09-10 16:04:36 +02:00
Robert Elliott 65f9b7540b Merge pull request woocommerce/woocommerce-admin#380 from woocommerce/add/chart-legend-layout
Chart Component: standard vs comparison legend layout
2018-09-10 16:03:01 +02:00
Robert Elliott 4242a64f30 add smallcolorscale fractions for chromatic scaled colors 2018-09-10 15:59:14 +02:00
Kelly Dwan eee638b12b Component – Filters: Add "comparison" card (https://github.com/woocommerce/woocommerce-admin/pull/368)
* Add a new component with product search for the compare card

* Get product names from API when passed through URL

* Abstract out the products-related code into filter settings

* Update filters to provide multiple comparisons

Alternative to the “Compare [dropdown]” approach

* Update documentation

* Wipe selected items when the compare-type is updated

* Update labels & order of items in filter dropdown

* Add getLabels prop & description
2018-09-10 09:59:14 -04:00
Robert Elliott 3fdd9164c8 only sort on totals for layout=comparison & add dateParser prop for date formatting 2018-09-10 14:57:36 +02:00
Robert Elliott bf6a647c79 standard vs comparison legend layout 2018-09-10 13:32:13 +02:00