Commit Graph

691 Commits

Author SHA1 Message Date
Robert Elliott 54ffd1bd0a Merge pull request woocommerce/woocommerce-admin#638 from woocommerce/add/charts-full-year
Chart: updated intervals to use the full year
2018-10-25 12:23:32 +02:00
Albert Juhé Lluveras 1c819740f4 Persist date params in Products table link (https://github.com/woocommerce/woocommerce-admin/pull/671) 2018-10-25 12:07:30 +02:00
Robert Elliott e21a6022e7 updated lib/date iintervals to use the full year incl. centruy, 2018-10-25 11:12:27 +02:00
Robert Elliott 97a819a44d Merge pull request woocommerce/woocommerce-admin#635 from woocommerce/add/chart-uneven-ticks
Chart: remove last x-axis tick in an uneven series
2018-10-25 11:10:31 +02:00
Allen Snook e7ba47e958 Go ahead and 1) handle the variety of queries that can be used
as action button links and 2) enable the button (tracking will
come next). Also had to tweak CSS for activity panel item buttons
a little
2018-10-24 18:13:44 -07:00
Paul Sealock 02383f0ce7 Dashboard: Add DatePicker 2018-10-25 11:40:59 +13:00
Jonathan Belcher dec6022638 Updates wc-admin menu order and entries woocommerce/woocommerce-admin#624 (https://github.com/woocommerce/woocommerce-admin/pull/656)
* Updates wc-admin menu order and entries woocommerce/woocommerce-admin#624

* Remove menu items for pages that are not ready
2018-10-24 17:58:31 -04:00
Kelly Dwan d5c2787520 Build: Update babel config (https://github.com/woocommerce/woocommerce-admin/pull/677)
* Update babel config

* Fix typo in babel config

* Update babel config, fix missing transform
2018-10-24 17:17:23 -04:00
Jonathan Belcher 86b9a31735 Updates Package Lock (https://github.com/woocommerce/woocommerce-admin/pull/676) 2018-10-24 16:20:47 -04:00
renovate[bot] 393a56183b Update dependency webpack to v4.23.0 (https://github.com/woocommerce/woocommerce-admin/pull/673) 2018-10-24 16:16:18 -04:00
renovate[bot] 72ed89a19c Update dependency eslint-plugin-jest to v21.26.1 (https://github.com/woocommerce/woocommerce-admin/pull/672) 2018-10-24 16:11:14 -04:00
Jonathan Belcher fff67b1e4b Fixes PHP 5.2 compatibility issues (https://github.com/woocommerce/woocommerce-admin/pull/653) 2018-10-24 14:49:58 -04:00
Jonathan Belcher 8825c91802 Updates Package Lock (https://github.com/woocommerce/woocommerce-admin/pull/670) 2018-10-24 11:22:29 -04:00
renovate[bot] 8acafde981 Update dependency autoprefixer to v9.3.1 (https://github.com/woocommerce/woocommerce-admin/pull/669) 2018-10-24 11:18:43 -04:00
renovate[bot] cc635d7697 Update react monorepo to v16.6.0 (https://github.com/woocommerce/woocommerce-admin/pull/662) 2018-10-24 11:17:16 -04:00
Job 6e36918db3 Fixes woocommerce/woocommerce-admin#664 (https://github.com/woocommerce/woocommerce-admin/pull/665) 2018-10-24 17:12:45 +02:00
Albert Juhé Lluveras 1a2b28fee8 Don't include hidden columns when downloading a table as CSV (https://github.com/woocommerce/woocommerce-admin/pull/667) 2018-10-24 16:26:19 +02:00
Albert Juhé Lluveras 2cce4e90c5 Use downloadable prop in Products report table (https://github.com/woocommerce/woocommerce-admin/pull/668) 2018-10-24 16:25:53 +02:00
Albert Juhé Lluveras d770e9a7e0 Fix resolvers tests giving false positives (https://github.com/woocommerce/woocommerce-admin/pull/666) 2018-10-24 16:25:42 +02:00
Jonathan Belcher 812d72dd9f Adds php compatibility range for phpcs (https://github.com/woocommerce/woocommerce-admin/pull/618)
* Adds php compatibility range for phpcs

* Change minimun version to 5.2
2018-10-24 09:09:33 -04:00
Robert Elliott 6b2bd1e11d tests and jsdocs 2018-10-24 13:13:17 +02:00
Robert Elliott bc098e58d4 refactor compareStrings 2018-10-24 13:00:29 +02:00
Robert Elliott d152686a65 approach to remove duplicate string characters from prev x-tick 2018-10-24 12:42:43 +02:00
Robert Elliott 133e0a7646 remove 'or last' 2018-10-24 12:39:55 +02:00
Robert Elliott cf3d3eb0f0 remove last tick in an uneven series 2018-10-24 12:39:55 +02:00
Albert Juhé Lluveras 29f68a9ce8 Products table (https://github.com/woocommerce/woocommerce-admin/pull/619)
* Add Products table

* Update tests

* Cleanup

* Make placeholder table have the correct sorted column selected

* Change default sort to items_sold & desc

* Fix wrong CSV filename

* Remove unnecessary constructor in ProductsReportTable

* Add @TODO comment to Products table summary

* Set ProductsReportTable link to wc-admin type

* Make sure categories is an array before using map
2018-10-24 09:50:05 +02:00
Albert Juhé Lluveras 7be34b3f37 Move Download table logic inside the TableCard component (https://github.com/woocommerce/woocommerce-admin/pull/652)
* Move Download table logic inside the TableCard component

* Make title lowercase inside generateCSVFileName

* Update JSDoc comment
2018-10-24 09:48:20 +02:00
Paul Sealock 240599c095 Persist date related parameters on report navigation 2018-10-24 12:16:35 +13:00
Jonathan Belcher a29799eb85 Fixes PHP errors caused by linting fixes (https://github.com/woocommerce/woocommerce-admin/pull/650) 2018-10-23 19:12:49 -04:00
Jonathan Belcher cb69cf1051 Updates Package Lock (https://github.com/woocommerce/woocommerce-admin/pull/657) 2018-10-23 15:13:55 -04:00
Claudio Sanches 1fd5714162 Merge pull request woocommerce/woocommerce-admin#644 from woocommerce/fix/lints-lib-admin
Fixes lints in lib/admin.php
2018-10-23 15:08:34 -03:00
renovate[bot] bb48e0bc2b Update dependency phpunit/phpunit to v7.4.3 (https://github.com/woocommerce/woocommerce-admin/pull/651) 2018-10-23 14:08:12 -04:00
renovate[bot] 2a68549e30 Update dependency @wordpress/api-fetch to v2.1.0 (https://github.com/woocommerce/woocommerce-admin/pull/625) 2018-10-23 14:00:15 -04:00
renovate[bot] a978fa1e5e Update dependency eslint-plugin-jest to v21.26.0 (https://github.com/woocommerce/woocommerce-admin/pull/629) 2018-10-23 13:59:42 -04:00
renovate[bot] d40b0ccc94 Update dependency phpunit/phpunit to v7 (https://github.com/woocommerce/woocommerce-admin/pull/600)
* Update dependency phpunit/phpunit to v7

* Adds composer.lock
2018-10-23 13:56:06 -04:00
Jonathan Belcher 46c369afb1 Fixes lints in class-wc-admin-reports-data-store (https://github.com/woocommerce/woocommerce-admin/pull/643)
* Fixes lints in class-wc-admin-reports-data-store

* Fix documentation
2018-10-23 13:55:03 -04:00
Jonathan Belcher a6243b8dbe Adds proper doc block with proper TODO 2018-10-23 13:54:20 -04:00
Jonathan Belcher 50aed9121a Update admin.php 2018-10-23 13:45:43 -04:00
Allen Snook 51991d1b27 Remove inadvertently added blank line 2018-10-23 10:41:17 -07:00
Allen Snook c45a6cf5de On update, add a note alerting that the store notice setting has moved 2018-10-23 10:30:33 -07:00
Claudio Sanches 645799c1a0 Merge pull request woocommerce/woocommerce-admin#642 from woocommerce/fix/linting-error-in-test-sample
Fix linting errors in tests/test-sample.php
2018-10-23 14:09:04 -03:00
Claudio Sanches 8b67f5f50d Merge pull request woocommerce/woocommerce-admin#646 from woocommerce/fix/lints-class-wc-admin-reports-products-query.php
Fixes PHP 5.2 compatibility issues
2018-10-23 14:04:40 -03:00
Claudio Sanches ebf79b489a Merge pull request woocommerce/woocommerce-admin#647 from woocommerce/fix/lints-class-wc-admin-reports-products-stats-query.php
Fixes PHP 5.2 compatibility issues
2018-10-23 14:04:03 -03:00
Jonathan Belcher 2be2d78306 Fixes PHP 5.2 compatibility issues 2018-10-23 12:50:34 -04:00
Jonathan Belcher b58043380e Fixes PHP 5.2 compatibility issues 2018-10-23 12:47:51 -04:00
Jonathan Belcher 39ee05cc70 Fixes PHP 5.2 compatibility issues 2018-10-23 12:43:55 -04:00
Jonathan Belcher 1766f2ceb1 PHPCS ignore one line 2018-10-23 12:07:55 -04:00
Jonathan Belcher 03c8e42364 Fix errors in lib/common.php (https://github.com/woocommerce/woocommerce-admin/pull/641)
* Fix errors in lib/common.php

* Update package.json
2018-10-23 11:55:37 -04:00
Jonathan Belcher 4f3a102e18 Fixes lints in lib/admin.php 2018-10-23 11:52:18 -04:00
renovate[bot] 76a9300b35 Pin dependency composer/installers to ~1.6 (https://github.com/woocommerce/woocommerce-admin/pull/636) 2018-10-23 11:12:17 -04:00
renovate[bot] 9de04598a9 Update dependency webpack to v4.22.0 (https://github.com/woocommerce/woocommerce-admin/pull/617) 2018-10-23 11:10:49 -04:00
renovate[bot] 19295ebcfb Update dependency autoprefixer to v9.3.0 (https://github.com/woocommerce/woocommerce-admin/pull/637) 2018-10-23 11:09:45 -04:00
Jonathan Belcher daa929b887 Add file doc block to fix linting issue (https://github.com/woocommerce/woocommerce-admin/pull/628) 2018-10-23 11:08:49 -04:00
Jonathan Belcher 521fc2528c Removes phpcs from npm run lint (https://github.com/woocommerce/woocommerce-admin/pull/640) 2018-10-23 11:08:00 -04:00
Jonathan Belcher 8e46a78a2f Fix linting errors in tests/test-sample.php 2018-10-23 09:57:45 -04:00
Albert Juhé Lluveras b757247c52 Move Revenue table to its own component (https://github.com/woocommerce/woocommerce-admin/pull/623)
* Move revenue table to its own component

* Remove unnecessary constructor in RevenueReportTable
2018-10-23 10:07:23 +02:00
Albert Juhé Lluveras 7979dbc474 Make Orders placeholder table have the correct sorted column (https://github.com/woocommerce/woocommerce-admin/pull/620)
* Make Orders placeholder table have the correct sorted column

* Fix wrong CSV filename
2018-10-23 09:49:04 +02:00
Allen Snook 2147b23c4d Correctly define admin notes schema 2018-10-22 13:15:44 -07:00
Jonathan Belcher 24ec81dddd Adds phpcs npm command (https://github.com/woocommerce/woocommerce-admin/pull/609)
* Adds phpcs npm command

* fix naming of commands
2018-10-22 12:34:28 -04:00
Allen Snook bf898e642b Merge pull request woocommerce/woocommerce-admin#566 from woocommerce/add/admin-notices-new-sales-record
Activity Panel: Inbox: New Sales Record Note
2018-10-22 09:26:13 -07:00
Jonathan Belcher e85ad7d410 Updates package lock (https://github.com/woocommerce/woocommerce-admin/pull/607)
* Updates package lock

* Recreate package-lock
2018-10-22 12:23:53 -04:00
Jonathan Belcher 7bc2767301 Updates PHPCS rule names (https://github.com/woocommerce/woocommerce-admin/pull/610) 2018-10-22 12:20:34 -04:00
Jonathan Belcher ecb3013fd3 Uses PHPBCF to autofix warnings and errors (https://github.com/woocommerce/woocommerce-admin/pull/611) 2018-10-22 12:20:14 -04:00
Allen Snook f0495c7071 Rename wc_admin_daily function to do_wc_admin_daily to distinguish it from the hook 2018-10-22 09:09:28 -07:00
Timmy Crawford f8d70506a1 Update/track usage logic (https://github.com/woocommerce/woocommerce-admin/pull/561)
* Tracks: Don't track if Jetpack is not present or in dev env.

* Check for JETPACK__VERSION instead.

* Fix linting errors

* Yoda conditions use you must
2018-10-22 08:56:02 -07:00
Joshua T Flowers 88058b2bf4 Add default report data if empty product data is returned (https://github.com/woocommerce/woocommerce-admin/pull/581)
* Add default report data if empty product data is returned

* Remove unused argument ''

* Remove filter params
2018-10-22 11:51:24 -04:00
Albert Juhé Lluveras bfcc817240 Create EmptyTable component (https://github.com/woocommerce/woocommerce-admin/pull/605)
* Create EmptyTable component

* Update failing test

* Make EmptyTable a functional component

* Add EmptyTable to example.md
2018-10-20 13:16:53 +02:00
renovate[bot] 1dfd3b186b Update wordpress monorepo to v2.1.4 (https://github.com/woocommerce/woocommerce-admin/pull/614) 2018-10-19 20:35:53 -04:00
Allen Snook 6a25fb2249 Remove unneeded set_id in note deletion handler 2018-10-19 16:24:03 -07:00
Allen Snook a46d83aea3 Rewrite the queries a bit to leverage prepare when possible 2018-10-19 15:48:38 -07:00
Allen Snook bb14dcd995 One argument per line in multi argument calls 2018-10-19 15:05:40 -07:00
Allen Snook 0032da31f5 Remove constructor for notes class as not needed 2018-10-19 14:52:53 -07:00
Allen Snook 3d7b92f58f Make it a proper daily scheduled event 2018-10-19 14:47:39 -07:00
Allen Snook 04b33f9e6b Hook up the remainder of the sales record message. There can only be one. 2018-10-19 14:45:03 -07:00
Allen Snook d05a1c63ff Calculate previous days sales, add note if new max 2018-10-19 14:41:37 -07:00
Allen Snook 1a3c3f2c86 Undo whitespace change introduced during rebasing 2018-10-19 14:24:22 -07:00
Allen Snook ffb6ddfafc Remove package lock from this branch 2018-10-19 14:21:54 -07:00
Allen Snook 9638b063a0 Add unit test for sanitize html 2018-10-19 14:21:54 -07:00
Allen Snook 95080bd68b Display an error to the user if inbox fetching fails 2018-10-19 14:21:54 -07:00
Allen Snook b0be112277 Add unit tests for notes store 2018-10-19 14:21:54 -07:00
Allen Snook bd8fd2c9ec No need to sort now - the store is ordering correctly 2018-10-19 14:21:54 -07:00
Allen Snook a7bbb4766d Correct typo in get path 2018-10-19 14:21:54 -07:00
Allen Snook 2dfc410079 Remove console logging 2018-10-19 14:21:54 -07:00
Allen Snook ad06cee25d Update notes store to include queries 2018-10-19 14:21:54 -07:00
Allen Snook 8622ee7fc4 Disable the activity buttons for now (REST API does not update yet) 2018-10-19 14:21:54 -07:00
Allen Snook 8378423077 Newest notes at the top, please 2018-10-19 14:21:54 -07:00
Allen Snook b8a83bf1e1 Allow selected tags through to the note content 2018-10-19 14:21:54 -07:00
Allen Snook 279be9e66e Add notes to redux, connect to inbox 2018-10-19 14:21:53 -07:00
Allen Snook 47575a9895 Begin adding notes store 2018-10-19 14:21:53 -07:00
Allen Snook 3b2791acf4 Accept page and per page params in REST query, return total count of notes in header 2018-10-19 14:21:06 -07:00
renovate[bot] 4f37d1b776 Update dependency wimg/php-compatibility to v9 (https://github.com/woocommerce/woocommerce-admin/pull/601) 2018-10-19 16:42:45 -04:00
Jonathan Belcher 3e92954438 Fixes React Live by pinning buble version (https://github.com/woocommerce/woocommerce-admin/pull/608)
This (sort of) pins buble to the last good version, 0.19.4. react-live uses a ^ version, which picked up the broken release during the renovate update sweep.
2018-10-19 16:36:02 -04:00
renovate[bot] 4728c7c9d6 Update dependency wp-coding-standards/wpcs to v1 (https://github.com/woocommerce/woocommerce-admin/pull/604) 2018-10-19 16:10:13 -04:00
Jonathan Belcher 9d5e0dceb6 Temporary fix for dev docs while react-live is fixed (https://github.com/woocommerce/woocommerce-admin/pull/606)
* Temporary fix for dev docs while react-live is fixed

* Return null instead of th element
2018-10-19 14:06:49 -04:00
renovate[bot] 41536b35cb Update dependency react-live to v1.12.0 (https://github.com/woocommerce/woocommerce-admin/pull/590) 2018-10-19 13:25:39 -04:00
renovate[bot] 0bff5beecf Update dependency husky to v1 (https://github.com/woocommerce/woocommerce-admin/pull/599) 2018-10-19 13:25:11 -04:00
renovate[bot] cc36f993d7 Update dependency babel-eslint to v10 (https://github.com/woocommerce/woocommerce-admin/pull/598) 2018-10-19 13:24:50 -04:00
renovate[bot] f850eb1a40 Update wordpress monorepo (https://github.com/woocommerce/woocommerce-admin/pull/597) 2018-10-19 13:06:42 -04:00
renovate[bot] 0da0cb9b05 Update react monorepo to v16.5.2 (https://github.com/woocommerce/woocommerce-admin/pull/596) 2018-10-19 13:01:49 -04:00
renovate[bot] 097aae16c2 Update dependency webpack-cli to v3.1.2 (https://github.com/woocommerce/woocommerce-admin/pull/595) 2018-10-19 13:00:20 -04:00