Commit Graph

2362 Commits

Author SHA1 Message Date
Joshua Flowers 61492c5f10 Add import cancel tests 2019-04-30 10:17:09 -06:00
Joshua Flowers cad94415c5 Add endpoint route to cancel all pending import actions 2019-04-30 10:17:08 -06:00
Jeff Stieler a3fdd72ba5 Merge pull request woocommerce/woocommerce-admin#1907 from woocommerce/fix/1615-order-number-filter
Support Sequential Order Numbers in Downloads Report order number filter
2019-04-30 10:10:39 -06:00
Jeff Stieler 4a85b012b5 Add tests for customer import using new parameters. 2019-04-30 09:46:14 -06:00
Jeff Stieler 3bfc53c9cf Reintroduce the customer lookup init to report regeneration.
With the new date range and “skip existing” logic.
2019-04-30 09:17:12 -06:00
Jeff Stieler e350cfc898 Remove strict comparison from “is valid customer” logic.
Needed for the function to work in scheduled actions.
2019-04-30 09:09:35 -06:00
Ron Rennick e9a3c2bdc0 Merge pull request woocommerce/woocommerce-admin#2129 from woocommerce/fix/2126
add check for woocommerce submenu item array
2019-04-30 08:06:29 -03:00
Albert Juhé Lluveras 1c67b40d76 Scroll to top of the table when navigating table pages (https://github.com/woocommerce/woocommerce-admin/pull/2051)
* Scroll to top of the table when navigating table pages

* Cleanup

* Avoid using scroll-padding-top

* Add space between the table top and the scroll point

* Only call  if the page is different

* Move focus to the top of the table when switching pages

* Use CSS variables in the Activity Panel and breadcrumbs CSS (https://github.com/woocommerce/woocommerce-admin/pull/2096)

* Use CSS variables in the Activity Panel and breadcrumbs CSS

* Cleanup

* Focus on table element when navigating pages
2019-04-30 11:43:55 +02:00
Albert Juhé Lluveras 40b47c3a18 Add empty state for the Reviews panels (https://github.com/woocommerce/woocommerce-admin/pull/2124)
* Add message to empty Reviews panel in the Activity Panel

* Add other reviews unread messages

* Cleanup

* Open external links in new tabs

* Avoid doing unnecessary API calls

* Remove 'activity_panel_reviews_last_read'
2019-04-30 11:40:10 +02:00
Paul Sealock e6cc2ba3f4 Merge pull request woocommerce/woocommerce-admin#2125 from woocommerce/fix/components-readme-url
Components: fix README url
2019-04-30 08:03:17 +12:00
renovate[bot] 7b9f6e72f3 Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/2127) 2019-04-29 13:00:03 -07:00
Paul Sealock f739ba57c7 Components: fix README url 2019-04-30 07:55:32 +12:00
Ron Rennick e409ef943a update analytics report readme 2019-04-29 08:58:33 -03:00
Ron Rennick 4ceb3f3c2d add check for woocommerce submenu item array 2019-04-29 06:57:33 -03:00
Paul Sealock c1adc83676 apple table 2019-04-29 15:47:46 +12:00
Paul Sealock 88e6626d6a Extension Examples: fix issues 2019-04-29 15:31:21 +12:00
Timmy Crawford 2aaf0ee4b5 Add check for wp_set_script_translations. (https://github.com/woocommerce/woocommerce-admin/pull/2117)
* Add check for wp_set_script_translations.

* Update admin alert to show correct required WooCommerce version.

* Few more 3.6 text changes.
2019-04-26 11:39:37 -07:00
Mike Jolley 867e236c28 Ensure the feature-config.php file is built with `npm run build` (https://github.com/woocommerce/woocommerce-admin/pull/2115)
* Ensure the feature-config file is built

* Missing doc for `dev` build

* Call feature flag build once

* Inline docs with updated default
2019-04-26 11:37:39 -07:00
Joshua T Flowers 53a4098de1 Fix missing leaderboard schema options (https://github.com/woocommerce/woocommerce-admin/pull/2059)
* Add missing schema properties

* Add missing leaderboard schema tests
2019-04-26 10:43:52 -07:00
Ron Rennick c0171f952e Merge pull request woocommerce/woocommerce-admin#2060 from woocommerce/fix/2053
update path to feature-config-core.php
2019-04-25 12:25:22 -03:00
Kelly Dwan 18bb29e35d Fix warnings in travis: CSS lint error & phpunit warning (https://github.com/woocommerce/woocommerce-admin/pull/2109)
* Fix stylelint issue

* Use WC_Helper_Order to create the order, which will correctly populate customer info
2019-04-25 10:22:57 -04:00
Ron Rennick 58056bdd89 fix merge conflicts 2019-04-25 09:37:29 -03:00
Ron Rennick cb0cd08207 add admin phase to feature config build 2019-04-25 09:32:03 -03:00
Paul Sealock 5a2cd43314 Merge pull request woocommerce/woocommerce-admin#2076 from woocommerce/release/0.11.0-take-2
Release/0.11.0 take 2
2019-04-25 11:22:19 +12:00
Ron Rennick ddac47e4ce add line breaks to end of message to increase visibility 2019-04-24 16:56:57 -03:00
renovate[bot] b6c114340a Update dependency webpack-cli to v3.3.1 (https://github.com/woocommerce/woocommerce-admin/pull/2107) 2019-04-24 15:44:25 -04:00
renovate[bot] d53b48ceff Update dependency woocommerce/woocommerce-sniffs to v0.0.6 (https://github.com/woocommerce/woocommerce-admin/pull/2108) 2019-04-24 15:41:54 -04:00
renovate[bot] 212e030e92 Update dependency recast to v0.17.5 (https://github.com/woocommerce/woocommerce-admin/pull/2105)
* Update dependency recast to v0.17.5

* Run `npm run docs`
2019-04-24 15:40:41 -04:00
renovate[bot] 9e93ef3e9b Update dependency webpack to v4.30.0 (https://github.com/woocommerce/woocommerce-admin/pull/2106) 2019-04-24 15:35:00 -04:00
renovate[bot] 1d8c5c1e0c Update dependency node-watch to v0.6.2 (https://github.com/woocommerce/woocommerce-admin/pull/2104) 2019-04-24 15:28:57 -04:00
Ron Rennick 998cd60744 use mkdir(), add message 2019-04-24 13:50:30 -03:00
Paul Sealock d7757404d8 release 0.11.0 2019-04-24 13:33:33 +12:00
Joshua T Flowers c17baa02cd Encode and decode persited query as JSON string in the leaderboards controller (https://github.com/woocommerce/woocommerce-admin/pull/2100)
* Encode and decode persited query as JSON string in leaderboards controller

* Update peristed query tests to use JSON string
2019-04-24 04:38:49 +08:00
Joshua T Flowers 8bc3d8622e Add order date filter to customers data store (https://github.com/woocommerce/woocommerce-admin/pull/2094)
* Add before and after params to customers controller

* Map before and after order params to order creation date filter

* Hook up customer date filter params in leaderboards controller
2019-04-23 10:01:36 +08:00
Justin Shreve bdc94320f4 Add customizable dashboard feature flag, and base page. (https://github.com/woocommerce/woocommerce-admin/pull/2052) 2019-04-22 09:23:37 -04:00
Albert Juhé Lluveras 238c3270e6 Allow free input in the table pagination input field (https://github.com/woocommerce/woocommerce-admin/pull/2091)
* Allow free input in the table pagination input field

* Update pagination page on blur instead of on change

* Fix wrong changelog message
2019-04-22 12:24:32 +02:00
Albert Juhé Lluveras 6b43af2035 Make SummaryListPlaceholder height match SummaryNumber height (https://github.com/woocommerce/woocommerce-admin/pull/2088)
* Make SummaryListPlaceholder height match SummaryNumber height

* Add CHANGELOG message

* Fix mobile
2019-04-22 09:56:54 +02:00
renovate[bot] 68f97d214c Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/2093) 2019-04-22 12:17:04 +08:00
Hardip Parmar e39a8e6e35 Remove CSV Download button when no data is available (https://github.com/woocommerce/woocommerce-admin/pull/2084) 2019-04-22 11:15:01 +08:00
Jeff Stieler ba69a634f5 Document why the order number field should be a string. 2019-04-19 11:41:39 +02:00
Albert Juhé Lluveras 19500daad9 Add wcAdminAssetUrl property back (https://github.com/woocommerce/woocommerce-admin/pull/2075) 2019-04-18 10:38:42 +02:00
Paul Sealock e799d38dca Release build, make sure features are included 2019-04-18 07:04:56 +12:00
Ron Rennick 9ec06baeb3 ensure the /dist/ folder exists before writing feature-config-core
- change the default target environment to development
2019-04-17 10:29:31 -03:00
Ron Rennick c00a7e277f Merge pull request woocommerce/woocommerce-admin#2065 from woocommerce/remove-dup-build
remove unneeded build:feature-config from zip build
2019-04-17 09:25:14 -03:00
Albert Juhé Lluveras 3c433a24b3 Transpile acorn-jsx package (https://github.com/woocommerce/woocommerce-admin/pull/2064) 2019-04-17 10:34:45 +02:00
Joshua Flowers eecedfdba8 Set orders date to midnight before if days is set 2019-04-17 15:57:51 +08:00
Joshua Flowers 44e8c56d88 Run count query early to maybe skip order id query 2019-04-17 15:50:46 +08:00
renovate[bot] 6ad5ee6dfc Update dependency mini-css-extract-plugin to v0.6.0 (https://github.com/woocommerce/woocommerce-admin/pull/2069) 2019-04-17 15:29:22 +08:00
renovate[bot] c7a8bf5df5 Update dependency lerna to v3.13.3 (https://github.com/woocommerce/woocommerce-admin/pull/2068) 2019-04-17 15:21:41 +08:00
Paul Sealock 91967ea0dd Merge pull request woocommerce/woocommerce-admin#2070 from woocommerce/fix/bad-merge-2033
Merge pull request woocommerce/woocommerce-admin#2018 from woocommerce/try/extension-build-env
2019-04-17 15:41:43 +12:00
renovate[bot] 339f870e4b Update dependency memoize-one to v5.0.4 (https://github.com/woocommerce/woocommerce-admin/pull/2067) 2019-04-17 11:20:12 +08:00
renovate[bot] 36d19b3e77 Update dependency gridicons to v3.2.0 (https://github.com/woocommerce/woocommerce-admin/pull/2066) 2019-04-17 11:13:54 +08:00
Paul Sealock 9c8e0ff666 Merge pull request woocommerce/woocommerce-admin#2018 from woocommerce/try/extension-build-env
Try: Extension Examples
2019-04-17 15:12:42 +12:00
Paul Sealock 8ff24a9a7e Example Extensions: create build environment 2019-04-17 14:01:56 +12:00
Kelly Dwan 7ace7b108a Update docs to remove confusing step (https://github.com/woocommerce/woocommerce-admin/pull/2045)
Since we’re using `from-package`, lerna does not ask for a version in the release process.
2019-04-16 19:00:36 -04:00
Kelly Dwan 8fc2c6fb0e Clean up package.json & add a script (https://github.com/woocommerce/woocommerce-admin/pull/2046) 2019-04-16 19:00:19 -04:00
Ron Rennick 259e138df1 remove unneeded build:festure-config from zip build 2019-04-16 15:12:05 -03:00
renovate[bot] 1eedb88c04 Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/2056) 2019-04-16 17:09:24 +08:00
renovate[bot] ea096a1f94 Pin dependencies (https://github.com/woocommerce/woocommerce-admin/pull/2044) 2019-04-16 16:43:08 +08:00
Ajay Ghaghretiya 4dddb62195 Fix-woocommerce/woocommerce-admin#1982 (https://github.com/woocommerce/woocommerce-admin/pull/2019)
* Fix-woocommerce/woocommerce-admin#1982

* Fix-woocommerce/woocommerce-admin#1982 #Tabs replaced with spaces

* woocommerce/woocommerce-admin#1982

* Fix-woocommerce/woocommerce-admin#1982 Resolved Inline comments must end in full-stops, exclamation marks, or question marks.

* update with tabs 

fixes formatting

* update woocommerce-admin.php

tab formatting fixes.

* Update woocommerce-admin.php

Update

Co-Authored-By: Mr-AjayM <32254909+Mr-AjayM@users.noreply.github.com>

* Update woocommerce-admin.php

remove leading /

Co-Authored-By: Mr-AjayM <32254909+Mr-AjayM@users.noreply.github.com>
2019-04-16 10:11:34 +02:00
Albert Juhé Lluveras d38b888a2e Check if welcome message notice exists before creating it (https://github.com/woocommerce/woocommerce-admin/pull/2063) 2019-04-16 09:31:50 +02:00
Paul Sealock 2e3b3467a5 Remove lodash from bundle 2019-04-16 10:44:32 +12:00
Albert Juhé Lluveras dab7cf7dff Respect manual offsets in default before/after params (https://github.com/woocommerce/woocommerce-admin/pull/2042) 2019-04-15 19:28:19 +02:00
Albert Juhé Lluveras b134853e83 Add empty state in Stock panel (https://github.com/woocommerce/woocommerce-admin/pull/2049)
* Add empty state in Stock panel

* Add isRequesting in the title check
2019-04-15 09:35:22 +02:00
ronakganatra9 efb6bba9bd woocommerce/woocommerce-admin#1981 Fix/1981 welcome note added (https://github.com/woocommerce/woocommerce-admin/pull/2005)
* Added new admin note on plugin install. Fix-1981

* fix phpcs errors

* cbf change

* changes in phpcs error.

* Update includes/notes/class-wc-admin-notes-welcome-message.php

Co-Authored-By: ronakganatra9 <ronakganatra9@gmail.com>

* Changes implemented as per suggestion.

* suggestions apply of condition check and note name change.

* phpcs changes.

* mistake solved.
2019-04-15 09:34:27 +02:00
Albert Juhé Lluveras b4c3998e7e Add empty states for the Inbox and Orders panels (https://github.com/woocommerce/woocommerce-admin/pull/2037)
* Add empty states for the Inbox and Orders panels

* Typos

* Apply PR feedback
2019-04-15 09:06:34 +02:00
Jeff Stieler 72da1d4c57 Merge pull request woocommerce/woocommerce-admin#2032 from woocommerce/renovate/postcss-color-function-4.x
Update dependency postcss-color-function to v4.1.0
2019-04-12 15:44:48 -06:00
Ron Rennick 46fe413a5e Merge pull request woocommerce/woocommerce-admin#1990 from woocommerce/fix/1931
center mobile icon vertically
2019-04-12 16:32:12 -03:00
Jeff Stieler bf1d1323b3 Merge pull request woocommerce/woocommerce-admin#2043 from woocommerce/fix/activity-panel-readme
Update admin notes readme.
2019-04-12 13:30:49 -06:00
Jeff Stieler 8c382773c2 Fix grammar. 2019-04-12 13:08:05 -06:00
Jeff Stieler ef0fd73f2c Merge pull request woocommerce/woocommerce-admin#1998 from woocommerce/add/247-stock-panel
Hook up Stock panel
2019-04-12 09:19:21 -06:00
Albert Juhé Lluveras 164bae3075 Fix product link in stock panel.
Thanks @Aljullu

Co-Authored-By: jeffstieler <jeff.m.stieler@gmail.com>
2019-04-12 08:15:58 -06:00
Joshua Flowers 7a41da3058 Bust cache for orders query in import tests 2019-04-12 16:50:43 +08:00
Joshua Flowers fcf0994276 Fix missing batch action arguments 2019-04-12 16:50:43 +08:00
Joshua Flowers f213f5cb66 Make customer name empty string by default instead of null 2019-04-12 16:50:43 +08:00
Joshua Flowers 5838e2ab48 Add import controller tests 2019-04-12 16:50:42 +08:00
Joshua Flowers 0a42757628 Process customer during order update instead of pre-processing all 2019-04-12 16:50:42 +08:00
Joshua Flowers 780c9da3d2 Hook up regenerate UI setting to new import endpoint 2019-04-12 16:50:42 +08:00
Joshua Flowers 1f016b5418 Add days and skip options to regenerate reports function 2019-04-12 16:50:42 +08:00
Joshua Flowers 4180b48346 Add reports import controller and endpoint 2019-04-12 16:50:42 +08:00
Kelly Dwan 754c2a07eb Update changelogs with latest versions, bump package versions where outdated (https://github.com/woocommerce/woocommerce-admin/pull/2039) 2019-04-11 14:43:45 -04:00
Justin Shreve 7fc70157c9 WC_Admin_Loader/PHP Refactor + Method to publish core ready features (https://github.com/woocommerce/woocommerce-admin/pull/1863)
* Try: Setup plugin to publish core library on npm

* Documentation clean up.

* Handle PR Feedback: Fix notices from happening in WC Core from API usage, fix sidebar dashboard ordering in menu, remove preload function check since we are supporting WP 5+, add a filter for preloading data and move usage to respective feature code, move features to a specific folder for bundiling, fix script translations.

* Fix code comment on analytics preload

* Continue refactoring code, and make it possible to launch 'embedded' features via the process as well.

* Fix note hook

* Fix note load order

* Address PR feedback: Fix class name, load leaderboard endpoint

* Remove example code prior to merge
2019-04-11 14:31:31 -04:00
Jeff Stieler 9265943bdf Update admin notes readme.
Resize large image, add syntax highlighting to PHP snippets, fix example file link paths.
2019-04-11 11:32:45 -06:00
Jeff Stieler 1ed5a559bc Fix stock card input styling in Firefox. 2019-04-11 09:42:14 -06:00
Albert Juhé Lluveras f80880b80c Add PHP autofix to pre-commit hook (https://github.com/woocommerce/woocommerce-admin/pull/2022)
* Add PHP autofix to pre-commit hook

* Remove unnecesary 'dev/null' output path

* Add error message if PHP_CodeSniffer is not installed

* Add periods to comments

* Fix comment
2019-04-11 09:05:59 +02:00
Joshua T Flowers eb0b137020 Hook up leaderboards endpoint to dashboard (https://github.com/woocommerce/woocommerce-admin/pull/2004)
* Add allowed leaderboards endpoint to prefetch list

* Hook up leadboards endpoint to dashboard

* Skip data fetch for leaderboard if per page is less than 1

* Add tests to check for rendered html display
2019-04-11 10:53:05 +08:00
Renovate Bot fe32dbb041 Update dependency postcss-color-function to v4.1.0 2019-04-11 00:49:42 +00:00
Jeff Stieler e190d513c2 Merge pull request woocommerce/woocommerce-admin#2031 from woocommerce/renovate/node-watch-0.x
Update dependency node-watch to v0.6.1
2019-04-10 17:39:02 -06:00
Jeff Stieler 2d12f866c8 Merge pull request woocommerce/woocommerce-admin#2030 from woocommerce/renovate/marked-0.x
Update dependency marked to v0.6.2
2019-04-10 17:33:44 -06:00
Jeff Stieler b5fa378f92 Merge pull request woocommerce/woocommerce-admin#2029 from woocommerce/renovate/lerna-monorepo
Update dependency lerna to v3.13.2
2019-04-10 17:17:45 -06:00
Jeff Stieler 2614fca209 Merge pull request woocommerce/woocommerce-admin#2028 from woocommerce/renovate/eslint-5.x
Update dependency eslint to v5.16.0
2019-04-10 15:13:36 -06:00
Renovate Bot 1e01735900 Update dependency autoprefixer to v9.5.1 2019-04-10 20:29:28 +00:00
Renovate Bot bc447af1f8 Lock file maintenance 2019-04-10 18:49:23 +00:00
Jeff Stieler 4b2ac14994 Merge pull request woocommerce/woocommerce-admin#2015 from woocommerce/notes-queue-group
add WCA queue group to the unsnooze notes scheduled action
2019-04-10 10:21:39 -06:00
Justin Shreve 4727417746 Add a mobile app note (https://github.com/woocommerce/woocommerce-admin/pull/2008) 2019-04-10 11:49:02 -04:00
Albert Juhé Lluveras 5ae9ee65b0 PHP Lint fixes (https://github.com/woocommerce/woocommerce-admin/pull/2023) 2019-04-10 10:49:00 +02:00
Renovate Bot cd2e942628 Update dependency node-watch to v0.6.1 2019-04-10 02:41:47 +00:00
Renovate Bot 333179449b Update dependency marked to v0.6.2 2019-04-10 01:49:23 +00:00
Renovate Bot f76d9b1a30 Update dependency lerna to v3.13.2 2019-04-10 01:41:56 +00:00
Renovate Bot 10fdb21aea Update dependency eslint to v5.16.0 2019-04-10 00:44:29 +00:00
Paul Sealock 888eb9a0f6 Calendar: update to Gutenberg's isInvalidDate 2019-04-10 07:59:27 +12:00
Kelly Dwan 6cab171d59 SearchListControl: Add an onSearch callback to allow dynamic updating of the list (https://github.com/woocommerce/woocommerce-admin/pull/1992)
* SearchListControl: Add an onSearch callback to allow dynamic updating the list

* Update changelog
2019-04-09 11:42:21 -04:00
Kevin Killingsworth 007ff933ce Fix withSelect to release resources on unmount (https://github.com/woocommerce/woocommerce-admin/pull/1999)
* Add fresh-data dev info support for dev builds.

This adds support for dev info to be accessed from the JavaScript
console for more information about resources handled by fresh-data.

* Update fresh-data to 0.6.0

* Fix withSelect to release resources on unmount

Previously, withSelect wasn't releasing resources from fresh-data when
it was unmounting. This fixes that behavior and now clears a component's
requirements correctly when unmounting.
2019-04-09 09:56:25 -05:00
Kevin Killingsworth 85fda4d61f Add fresh-data dev info support for dev builds. (https://github.com/woocommerce/woocommerce-admin/pull/1978)
* Add fresh-data dev info support for dev builds.

This adds support for dev info to be accessed from the JavaScript
console for more information about resources handled by fresh-data.

* Update fresh-data to 0.6.0
2019-04-09 09:55:01 -05:00
Timmy Crawford 1ce257587a Update Link in readme to Proper Location (https://github.com/woocommerce/woocommerce-admin/pull/2026)
Quick change of some copy/paste that was pointing the release notes at an old blocks post.
2019-04-09 07:47:14 -07:00
Albert Juhé Lluveras f4c487dcd5 Fix wrong dates in Reviews and Orders panels of the Activity Panel (https://github.com/woocommerce/woocommerce-admin/pull/2013)
* Fix wrong dates in Reviews and Orders panels of the Activity Panel

* Avoid using long boolean checks in unread-indicators
2019-04-09 09:50:00 +02:00
Joshua T Flowers e31be343e2 Make customer name extendable (https://github.com/woocommerce/woocommerce-admin/pull/1976)
* Make customer name extendable

* Update get_customer_name to favor user profile information

* Update customer name on profile update

* Add tests around customer name getting and setting

* Prefix customer name filter with woocommerce_reports_
2019-04-09 11:39:39 +08:00
Joshua T Flowers f682fe76be Add leaderboard controller and endpoint (https://github.com/woocommerce/woocommerce-admin/pull/1995)
* Add leaderboard controller and endpoint

* Add existing leaderboard stats to leaderboard endpoint

* Add persisted query to leaderboard params

* Add leaderboard endpoint tests

* Check if extended_info params are set before assigning

* Change number param input format to mixed inside wc_admin_number_format
2019-04-09 11:34:56 +08:00
Jeff Stieler 2ec3e9843a Merge pull request woocommerce/woocommerce-admin#1872 from woocommerce/add/1831-order-milestone-notifications
Add order milestone notifications.
2019-04-08 16:04:07 -06:00
Paul Sealock 1efdbf6256 Merge pull request woocommerce/woocommerce-admin#1994 from woocommerce/fix/search-filter-focus
Fix/search filter focus
2019-04-09 08:06:40 +12:00
Paul Sealock 6c079012e6 Search filter: focus input box instead of back button 2019-04-09 07:22:14 +12:00
Jeff Stieler f734f01598 Clear recurring order milestones event on plugin deactivation. 2019-04-08 13:10:39 -06:00
Ron Rennick 870f7ddfcf add WCA queue group to the unsnooze notes scheduled action 2019-04-08 16:04:56 -03:00
Albert Juhé Lluveras baf3bc3e28 Scroll to top only when URL changes (https://github.com/woocommerce/woocommerce-admin/pull/1989) 2019-04-08 19:53:28 +02:00
Albert Juhé Lluveras f47f1097bb Fix date filter layout on Android (https://github.com/woocommerce/woocommerce-admin/pull/1996)
* Make filter date content position static

* Make date picker scrollable
2019-04-08 11:54:27 +02:00
Jeff Stieler e2f163c2f2 Fix stock quantity input on change. 2019-04-05 14:31:20 -06:00
Albert Juhé Lluveras dbf0a8d169 Split D3Chart utils axis file (https://github.com/woocommerce/woocommerce-admin/pull/2000) 2019-04-05 11:01:12 +02:00
Joshua T Flowers 753780bf7b Onboarding: Add levels REST API (https://github.com/woocommerce/woocommerce-admin/pull/1938)
* Add levels rest controller

* Add default levels

* Add onboarding level API tests

* Drop all since tags

* Make pre-response levels array associative for easier formatting

* Fix level tests for associative array
2019-04-05 10:35:30 +08:00
Jeff Stieler a36788dfb4 Fix stock panel product link for variations. 2019-04-04 11:11:48 -06:00
Jeff Stieler c3ef41fc12 Focus quantity input when entering edit mode.
Makes the keyboard-first and screen reader experience much better.
2019-04-03 18:05:19 -06:00
Ron Rennick 14d0d24762 phpcs lint fixes for /data-stores/ folder 2019-04-03 16:19:43 -03:00
Jeff Stieler 9bcbda0f98 Add expected (missing) properties to product variation API response.
Parent product ID, name, and product type.
2019-04-03 12:35:18 -06:00
Albert Juhé Lluveras 7d8df3ecfc Allow negative values in charts (https://github.com/woocommerce/woocommerce-admin/pull/1979)
* Add support for negative charts

* Always display main axis at 0

* Improve tests

* Make sure positive and negative grid steps are the same

* Code style improvements

* Fix missing lines when all values are 0

* Make sure empty note always appear on top

* Add CHANGELOG entry
2019-04-03 18:19:38 +02:00
dinhtungdu 7916ec6ca2 Fixed: Order Status filter: <select> is not vertically aligned when Gutenberg is installed 2019-04-03 18:11:12 +02:00
Ron Rennick 3fc8a7bfab Merge pull request woocommerce/woocommerce-admin#1983 from woocommerce/fix/1932
add filter length condition to enable filter check
2019-04-03 11:22:31 -03:00
Ron Rennick 15fc357723 center mobile icon vertically 2019-04-03 11:15:22 -03:00
Ron Rennick b384571afe Merge pull request woocommerce/woocommerce-admin#1984 from woocommerce/phpcs/tests
phpcs fixes class-wc-tests-reports-orders-stats.php
2019-04-03 10:21:38 -03:00
renovate[bot] 297d35b686 Update dependency ast-types to v0.12.3 (https://github.com/woocommerce/woocommerce-admin/pull/1988) 2019-04-03 08:54:21 -04:00
renovate[bot] 4c018efc7a Update babel monorepo to v7.4.3 (https://github.com/woocommerce/woocommerce-admin/pull/1987) 2019-04-03 08:48:52 -04:00
Joshua T Flowers 0c5c1c3db4 Remove coupon_total from order stats table (https://github.com/woocommerce/woocommerce-admin/pull/1975)
* Remove coupons_total from order stats table

* Replace discount amount with coupon objects in stat tests
2019-04-03 09:37:17 +08:00
Joshua T Flowers b885ae4157 Update default hidden dashboard items (https://github.com/woocommerce/woocommerce-admin/pull/1973) 2019-04-03 09:36:20 +08:00
Paul Sealock b79cacb797 npm start to update versions 2019-04-03 12:10:43 +13:00
Timmy Crawford fa1ec47cae update changelog for v0.10.0 2019-04-02 16:01:02 -07:00
Ron Rennick 26b5ba2b89 phpcs fixes class-wc-tests-reports-orders-stats.php 2019-04-02 16:22:55 -03:00
Ron Rennick c061bfd925 Merge pull request woocommerce/woocommerce-admin#1977 from woocommerce/fix/1783
lookup product title in order meta if product has been deleted
2019-04-02 16:13:47 -03:00
Ron Rennick fc356b86b2 add filter length condition to enable filter check 2019-04-02 15:55:17 -03:00
Ron Rennick 1d0e78e626 code alignment for linter 2019-04-02 15:20:23 -03:00
Jeff Stieler 6c5f8e5e38 Show variation attribute options in stock panel. 2019-04-02 11:37:50 -06:00
Jeff Stieler 18a2dd01cb Add variations to low stock query. 2019-04-02 11:37:24 -06:00
Jeff Stieler 6f2c11270b Clear cache when checking order count for the first two milestones. 2019-04-02 08:35:28 -06:00
Jeff Stieler e6e905919d Fix conditional for hooking the first two milestones action. 2019-04-02 08:34:22 -06:00
Ron Rennick 3a8ddbe3aa lookup product title in order meta if product has been deleted 2019-04-02 09:24:52 -03:00
Joshua T Flowers b03362da68 Cast order totals as floats when calculating net total (https://github.com/woocommerce/woocommerce-admin/pull/1945) 2019-04-02 13:43:12 +08:00
Jeff Stieler f4691827b1 Include item ID in product update resource name.
Keep state in sync when updating product stock quantity.
2019-04-01 17:38:36 -06:00
Jeff Stieler 5d09ceb272 Hook stock panel up to real data. 2019-04-01 17:38:34 -06:00
Jeff Stieler 632e4fd09d Add filter for order milestone statuses. 2019-04-01 16:37:55 -06:00
Jeff Stieler b9e02d0b61 Change 100+ order milestone message and CTA. 2019-04-01 16:37:54 -06:00
Jeff Stieler f610223708 Check for new order milestones every hour.
Only show one notification at a time.
2019-04-01 16:37:54 -06:00
Jeff Stieler 0893198f37 Add more orders count milestone notifications.
Also avoid notifications for thresholds passed before the plugin was activated.
2019-04-01 16:37:53 -06:00
Jeff Stieler e5a4a45ae5 Add milestone note for the store’s first 10 orders. 2019-04-01 16:37:53 -06:00
Jeff Stieler a31d0114cb Add first order milestone notification. 2019-04-01 16:37:53 -06:00
Jeff Stieler 244536e350 Fix inbox panel item timestamps.
Account for UTC offset.
2019-04-01 16:32:39 -06:00
Jeff Stieler 57957633f4 Fix WC_Admin_Note default content data.
Arrays get serialized differently and object is required for successful retrieval.
2019-04-01 16:32:38 -06:00
Paul Sealock 17ef1fc9c6 Merge pull request woocommerce/woocommerce-admin#1954 from woocommerce/fix/page-page-not-working
getItems: modify parse flag by isUnboundedRequest
2019-04-02 10:15:33 +13:00
Albert Juhé Lluveras 4c58363347 Activity Panel: Reviews tab fixes (https://github.com/woocommerce/woocommerce-admin/pull/1947)
* Make sure unreadReviews is a boolean so it doesn't render any character (II)

* Set unread indicator in the Reviews tab when there are on hold reviews
2019-04-01 20:43:48 +02:00
renovate[bot] 05a85d8e7c Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/1955) 2019-04-01 14:25:35 -04:00
Jeff Stieler ad7cc4226a Handle updating product variation stock quantity. 2019-04-01 11:28:10 -06:00
Jeff Stieler 42be3afebf Hook up product stock card inventory update. 2019-04-01 11:28:10 -06:00
Jeff Stieler 68e49a9574 Add update method for products to wc-api. 2019-04-01 11:28:10 -06:00
Jeff Stieler 150088d312 Style stock quantity edit form. 2019-04-01 11:28:09 -06:00
Jeff Stieler f32f85e58e Hook up edit stock quantity form state, with cancel action. 2019-04-01 11:28:09 -06:00
Jeff Stieler a48a038f25 Create ProductStockCard component, add loading placeholder to stock panel. 2019-04-01 11:28:09 -06:00
Jeff Stieler 212882e272 Reorganize stock panel files. 2019-04-01 11:28:08 -06:00
Jeff Stieler ab980305c7 Add hardcoded low stock activity card. 2019-04-01 11:28:08 -06:00
Jeff Stieler d315f6a6f4 Merge pull request woocommerce/woocommerce-admin#1960 from woocommerce/fix/1946
Only check for unsnooze note scheduled action in admin_init
2019-04-01 10:13:35 -07:00
Ron Rennick 8830455385 Merge pull request woocommerce/woocommerce-admin#1962 from woocommerce/add-requirements
update plugin requirements in GH readme, plugin header
2019-04-01 14:10:08 -03:00
Albert Juhé Lluveras 7efd81815f Scroll to top when navigating pages (https://github.com/woocommerce/woocommerce-admin/pull/1958) 2019-04-01 19:02:39 +02:00
Ron Rennick 59d310c4f9 update requirements in GH readme, plugin header 2019-04-01 13:16:13 -03:00
Timmy Crawford c717851b46 Update readme per feedback (https://github.com/woocommerce/woocommerce-admin/pull/1941)
* Update readme per feedback

* Blank Spaces.
2019-04-01 09:15:09 -07:00
Ron Rennick f730a8ec5d Only check for unsnooze note scheduled action in admin_init 2019-04-01 11:31:28 -03:00
Albert Juhé Lluveras 17141cd4d8 Update Variations controller filter names (https://github.com/woocommerce/woocommerce-admin/pull/1949) 2019-04-01 10:09:53 +02:00
Albert Juhé Lluveras 458f3ed065 Fix SKU sorting in the Variations report when a comparison is active (https://github.com/woocommerce/woocommerce-admin/pull/1952)
* make is sortable true.

* Variations endpoint: Fix sorting by SKU when there is an active comparison

* Cleanup

* Extract FROM parameter logic to 'get_from_sql_params'

* Remove unnecessary 'get_order_by_sql_params' from Products and Variations data stores
2019-04-01 10:09:45 +02:00
Joshua T Flowers 9c3faea12f Refactor notes controller and add ordering params (https://github.com/woocommerce/woocommerce-admin/pull/1878)
* Separate notes controller request args and add collection params

* Fix page param var

* Fix collection params sanitization

* Allow array of note types to be queried

* Add order and orderby collection params to notes controller

* Allow sorting by order and orderby params in notes data store

* Make sure notes are ordered by date and unread matches inbox note types

* Allow status or type params to use an array of items

* Add tests for notes ordering

* Remove unnecessary query arg assignment in the notes data store

* Update get_notes_count to use array for status and type
2019-04-01 10:53:34 +08:00
Joshua T Flowers 5324f223b6 Check for existence of orders before adding historical data note (https://github.com/woocommerce/woocommerce-admin/pull/1943)
* Check for existence of orders before adding historical data note

* Don't add historical data note on version upgrade
2019-04-01 10:25:53 +08:00
Joshua T Flowers 42ddfc0108 Add coupons count to data store and hook up to summary numbers in orders report (https://github.com/woocommerce/woocommerce-admin/pull/1912)
* Change coupons sum to distinct coupon count in REST API

* Hook up unique coupon count to orders summary numbers

* Add coupons count to order segmenting

* Add coupons count to expected stats in order test and revenue tests
2019-04-01 10:16:57 +08:00
Paul Sealock 36e0831ac8 getItems: modify parse flag by isUnboundedRequest 2019-04-01 13:47:52 +13:00
ronakganatra9 3cddc714c6 issue fix woocommerce/woocommerce-admin#1801 SKU filter issue fixed. (https://github.com/woocommerce/woocommerce-admin/pull/1837)
* issue fix woocommerce/woocommerce-admin#1801 SKU filter issue fixed.

* make is sortable true.

* phpcs error fix.

* Fix PHPCS errors and warnings.

* Fix PHPCS errors and warnings.

* Update client/analytics/report/products/table-variations.js

Co-Authored-By: ronakganatra9 <ronakganatra9@gmail.com>

* Update includes/data-stores/class-wc-admin-reports-variations-data-store.php

Co-Authored-By: ronakganatra9 <ronakganatra9@gmail.com>

* changed postmeta.meta_value to meta_value
2019-03-31 20:53:48 +02:00
Joshua T Flowers 6ff9d0673a Add low product stock indicator (https://github.com/woocommerce/woocommerce-admin/pull/1866)
* Move product low stock count to controller param instead of data store

* Add totalCount to items API

* Extract unread indicators to separate file and add unread stock

* Trim initial search variable in wp_query

* Parse low stock option as an absolute integer

* Fix low stock meta comparison with product specific low stock amount

* Make group by query function static

* Check for empty strings and null values for product low_stock_amount
2019-03-29 10:45:19 +08:00
Paul Sealock 3dd99108fa Customers API: fix exact match params 2019-03-29 11:40:37 +13:00
Albert Juhé Lluveras b737087d35 Load on hold reviews in the Activity Panel (https://github.com/woocommerce/woocommerce-admin/pull/1871)
* Load on hold reviews in the Activity Panel

* Consider reviews on hold as unread
2019-03-28 23:20:17 +01:00
Paul Sealock 0c4e4717d9 Merge pull request woocommerce/woocommerce-admin#1936 from woocommerce/fix/rebuild-inifinite-loop
Sync: Avoid infinite loop when REPLACE-ing SQL rows
2019-03-29 09:36:39 +13:00
Timmy Crawford 2165e5eeb4 Release/0.9.0 (https://github.com/woocommerce/woocommerce-admin/pull/1921)
* Docs and version updates.

* lockfile updates.
2019-03-28 11:30:57 -07:00
Albert Juhé Lluveras 71d929f47b Make sure unreadReviews is a boolean so it doesn't render any character (https://github.com/woocommerce/woocommerce-admin/pull/1930) 2019-03-28 09:48:17 +01:00
Joshua T Flowers 04e35bf197 Add onboarding task list to dashboard (https://github.com/woocommerce/woocommerce-admin/pull/1929)
* Conditionally show task list on dashbaord page

* Move task list items into TaskList component

* Set onboarding flags to false in core and plugin environments

* Hide dashboard onboarding by default temporarily
2019-03-28 14:09:44 +08:00
Paul Sealock f9ab21e745 Sync: Avoid infinite loop when REPLACE-ing SQL rows 2019-03-28 16:19:11 +13:00
Joshua T Flowers 929ad8bf63 Remove unused categories in orders data store (https://github.com/woocommerce/woocommerce-admin/pull/1928) 2019-03-28 10:25:00 +08:00
renovate[bot] 2a60f03b6f Update dependency recast to v0.17.4 (https://github.com/woocommerce/woocommerce-admin/pull/1924) 2019-03-27 10:08:10 +01:00
renovate[bot] 57faf7ad47 Update dependency history to v4.9.0 (https://github.com/woocommerce/woocommerce-admin/pull/1923) 2019-03-27 09:46:33 +01:00
renovate[bot] 702156b6de Update dependency @babel/runtime-corejs2 to v7.4.2 (https://github.com/woocommerce/woocommerce-admin/pull/1922) 2019-03-27 09:40:55 +01:00
Joshua T Flowers 896a790d8f Check if customer creation date is not null before formatting (https://github.com/woocommerce/woocommerce-admin/pull/1926) 2019-03-27 11:46:47 +08:00
Timmy Crawford 067ae2170b Config: Enable Activity Panels and Alerts for plugin. (https://github.com/woocommerce/woocommerce-admin/pull/1920) 2019-03-26 16:53:15 -07:00
Timmy Crawford 936369befd Readme updates. (https://github.com/woocommerce/woocommerce-admin/pull/1919)
* Readme updates.

* fix discrepancy in PHP versions.

* update screenshots.
2019-03-26 16:34:32 -07:00
Jeff Stieler 164a55b0d2 Allow strings in downloads report order number filter. 2019-03-26 16:04:36 -06:00
Jeff Stieler 0013495fff Orders endpoint: add LIMIT clause to the order number query. 2019-03-26 11:22:50 -06:00
Albert Juhé Lluveras 6862d05e2f Update packages with vulnerabilities (https://github.com/woocommerce/woocommerce-admin/pull/1913)
* Update packages with vulnerabilities

* Fix tests

* Replace require.requireActual with jest.requireActual
2019-03-26 12:31:57 +01:00
Joshua T Flowers 3dc75aff32 Hide chart name on smaller viewports and move interval select (https://github.com/woocommerce/woocommerce-admin/pull/1910)
* Hide table name on smaller viewports and move interval select

* Only hide chart titles adjacent to summaries

* Make interval selector full width when not adjacent to summary numbers
2019-03-26 18:14:32 +08:00
Joshua T Flowers ebac101b51 Don't query products all products for empty categories (https://github.com/woocommerce/woocommerce-admin/pull/1911) 2019-03-26 13:21:46 +08:00
ronakganatra9 ce6fcdabbe woocommerce/woocommerce-admin#1830 Fix/1830 move all note php files to subfolder (https://github.com/woocommerce/woocommerce-admin/pull/1879)
* added notes/ folder and moved notes file in it..

* Path changes according to new folder.

* typo correct
2019-03-26 00:18:34 +01:00
Albert Juhé Lluveras ecdc9076de Fix JSLint error in leaderboards (https://github.com/woocommerce/woocommerce-admin/pull/1914) 2019-03-25 16:36:34 +01:00
renovate[bot] ad64425948 Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/1909) 2019-03-25 10:23:24 +01:00
Albert Juhé Lluveras 23aa795a40 Activity Panel: add overlay to product placeholder images (https://github.com/woocommerce/woocommerce-admin/pull/1880)
* Activity Panel: add overlay to product placeholder images

* Replace 'background' with 'background-color'
2019-03-25 10:08:25 +01:00
Joshua T Flowers f5568b905b Automatically update versions on build (https://github.com/woocommerce/woocommerce-admin/pull/1877)
* Get plugin file version for version compare

* Add version update script before build

* Replace version getter with a defined version constant
2019-03-25 14:43:26 +08:00
Paul Sealock b32e8afeeb Merge pull request woocommerce/woocommerce-admin#1873 from woocommerce/refactor/config-getQuery
Refactor getFilterQuery by explicitly passing down configs
2019-03-25 13:12:53 +13:00
Paul Sealock b29b232a46 pass in filters 2019-03-25 13:03:53 +13:00
ronakganatra9 31791c9873 Enhancement/top customers (https://github.com/woocommerce/woocommerce-admin/pull/1858)
* Added a New widget on dashboard of Top Customers.

* Remove unused props and clean up.

* Format display value for orders count.
2019-03-22 17:15:32 +08:00
Albert Juhé Lluveras a7af5e4603 Create DEFAULT_ACTIONABLE_STATUSES constant (https://github.com/woocommerce/woocommerce-admin/pull/1867) 2019-03-22 09:48:20 +01:00
David Levin 3b7f630b11 Update order of dashboard components 2019-03-21 15:23:20 -07:00
Paul Sealock 56a60d17dd Merge pull request woocommerce/woocommerce-admin#1864 from woocommerce/fix/remove-last-advanced-filter
Clear advanced filters when last one is removed
2019-03-22 07:29:18 +13:00
Jeff Stieler 2d8f8f9137 Merge pull request woocommerce/woocommerce-admin#1848 from woocommerce/add/1756-snooze-admin-notes
Add "remind me later" functionality to StoreAlert component.
2019-03-21 08:41:44 -06:00
Albert Juhé Lluveras 1cf134d1fa Fix PHP notices on orders data store (https://github.com/woocommerce/woocommerce-admin/pull/1870) 2019-03-21 15:35:25 +01:00
Albert Juhé Lluveras 41e5d00708 Activity Panel: set reviews unread indicator based on real data (https://github.com/woocommerce/woocommerce-admin/pull/1860)
* Activity Panel: set reviews unread indicator based on real data

* Unify date comparisons to GMT

* Add numberOfReviews propType

* Verify date_created_gmt exists before using it
2019-03-21 12:35:46 +01:00
Albert Juhé Lluveras 9038bdfdae Table: update columns visibility on headers change (https://github.com/woocommerce/woocommerce-admin/pull/1846)
* Typos

* Table: update columns visibility on headers change

* Make sure initial user pref columns are loaded in all reports

* Return early filterShownHeaders when hiddenKeys is an empty array

* Undo 'headers', 'prevHeaders' order switch
2019-03-21 11:35:00 +01:00
Joshua T Flowers 3f2dd07a53 Hide stock panel and menu if stock management is disabled (https://github.com/woocommerce/woocommerce-admin/pull/1841)
* Add manage stock setting to global wcSettings

* Hide Stock tab from activity panel if stock management is disabled

* Hide Stock report if stock management is disabled

* Prevent stock page from loading if disabled and visited directly

* Hide stock status and quantity columns when disabled
2019-03-21 13:42:07 +08:00
Joshua T Flowers 3bc0582920 Activity Panel: Persist read status for inbox notes (https://github.com/woocommerce/woocommerce-admin/pull/1823)
* Add last read user data for inbox

* Check last read time against inbox note to determine read status

* Set last read in unmount to make component stateless

* Compare latest note time against last read time in activity panel

* Fix error checking and per_page limit

* Use component mount time for last read time in inbox

* Compare unread against note GMT time

* Add missing trailing comma
2019-03-21 10:54:36 +08:00
Paul Sealock 3474a26cb5 Clear advanced filters when last one is removed 2019-03-21 12:25:07 +13:00
renovate[bot] 7423726786 Update dependency eslint-plugin-jest to v22.4.1 (https://github.com/woocommerce/woocommerce-admin/pull/1856) 2019-03-20 13:05:07 -04:00
renovate[bot] a133e8a13d Update dependency eslint to v5.15.3 (https://github.com/woocommerce/woocommerce-admin/pull/1855) 2019-03-20 13:01:57 -04:00
renovate[bot] 9dc32345df Update dependency autoprefixer to v9.5.0 (https://github.com/woocommerce/woocommerce-admin/pull/1854) 2019-03-20 12:59:48 -04:00
renovate[bot] 8e5b75dd08 Update babel monorepo to v7.4.0 (https://github.com/woocommerce/woocommerce-admin/pull/1853) 2019-03-20 12:51:21 -04:00
Jeff Stieler 7742a7d65e Add test coverage for “unsnoozing” notes. 2019-03-20 08:52:27 -06:00
Jeff Stieler 2a08ba20e8 Add a snoozed note to test data. 2019-03-20 08:52:27 -06:00
Jeff Stieler 6ab3f0b9f9 Style admin note action button and snooze dropdown. 2019-03-20 08:52:27 -06:00
Jeff Stieler 731a131894 Add recurring job to “unsnooze” admin notes. 2019-03-20 08:52:27 -06:00
Jeff Stieler 276a6e6744 Hook up “remind me later” button.
Update the admin note status and date_reminder fields.
2019-03-20 08:52:27 -06:00
Jeff Stieler 738ce59e4d Add “remind me later” dropdown button to snoozable admin notes. 2019-03-20 08:52:27 -06:00
Jeff Stieler 7892ade278 Properly coerce snooze flag to API response. 2019-03-20 08:52:27 -06:00
Jeff Stieler 2eecb6c375 Add “is snoozable” flag to WC_Admin_Note. 2019-03-20 08:52:22 -06:00
Albert Juhé Lluveras 2f20720927 Activity Panel: Hide Reviews Panel when Reviews are Disabled (https://github.com/woocommerce/woocommerce-admin/pull/1852) 2019-03-20 11:24:12 +01:00
Joshua T Flowers b6b00848c0 Update react router to v5 (https://github.com/woocommerce/woocommerce-admin/pull/1839) 2019-03-20 10:56:07 +08:00
Joshua T Flowers 08f6d757ab Minify in safe mode for RTL styles to prevent stripping z-index (https://github.com/woocommerce/woocommerce-admin/pull/1838) 2019-03-20 10:55:43 +08:00
Joshua T Flowers 6c1f4d105f Check if resources are still loading before skipping dispatch (https://github.com/woocommerce/woocommerce-admin/pull/1821)
* Check if resources are still loading before skipping dispatch

* Use some instead of filter to check if newResource requests exist
2019-03-20 10:55:26 +08:00
Albert Juhé Lluveras 641d0b766f CSSLint: Remove whitespace at the end of line (https://github.com/woocommerce/woocommerce-admin/pull/1845) 2019-03-20 00:34:22 +01:00
Paul Sealock 7f0aa7e616 Merge pull request woocommerce/woocommerce-admin#1835 from woocommerce/fix/product-search-multiple-results
Products: Group API search items by id
2019-03-20 07:09:53 +13:00
Albert Juhé Lluveras 2ca746c5d6 Travis: escape hashes (#) from branch names when downloading the ZIP file (https://github.com/woocommerce/woocommerce-admin/pull/1844) 2019-03-19 16:40:18 +01:00
ronakganatra9 7e8f5fa53b Fixwoocommerce/woocommerce-admin#1768 Added a Margin of 40 pixel for better user interface, on mobile devices. (https://github.com/woocommerce/woocommerce-admin/pull/1842)
* Added a Margin of 40 pixel for better user interface, on mobile devices.

* applied suggestion and commited changes for all devices.

* applied suggestion and removed extra tab.
2019-03-19 14:22:40 +01:00
Albert Juhé Lluveras 58154d1d39 Activity Panel: set orders unread indicator based on real data (https://github.com/woocommerce/woocommerce-admin/pull/1824) 2019-03-19 11:57:11 +01:00
Paul Sealock 0aef533d6a Products: Group API search items by id 2019-03-19 16:36:47 +13:00
Paul Sealock 36a60c59d5 Merge pull request woocommerce/woocommerce-admin#1833 from woocommerce/fix/table-links-wc-admnin
Fix table links to internal reports
2019-03-19 16:21:17 +13:00
Joshua T Flowers 2ae142926f Fix date picker tab styling across gutenberg versions (https://github.com/woocommerce/woocommerce-admin/pull/1822) 2019-03-19 09:38:38 +08:00
Paul Sealock 6d5484aa87 Fix table links to internal reports 2019-03-19 14:27:31 +13:00
Albert Juhé Lluveras 3a341c355f Fix missing date picker calendar in RTL locales (https://github.com/woocommerce/woocommerce-admin/pull/1810)
* Fix missing date picker calendar in RTL locales

* Create an  function instead of using 'window.isRtl' to detect if it's a RTL locale
2019-03-18 16:28:25 +01:00
Albert Juhé Lluveras 3d0848bcd6 Show chart hover circles in the correct order (https://github.com/woocommerce/woocommerce-admin/pull/1816)
* Show chart hover circles in the correct order

* Fix tests

* Reverse keys inside getDateSpaces
2019-03-18 11:07:54 +01:00
Albert Juhé Lluveras 884c56700a Fix date range dropdown for RTL locales (https://github.com/woocommerce/woocommerce-admin/pull/1803)
* Fix date range dropdown for RTL locales

* Exclude calendar input error CSS to be rewritten to RTL
2019-03-18 10:47:41 +01:00
renovate[bot] b87e050ea7 Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/1820) 2019-03-18 12:33:04 +08:00
Joshua T Flowers d416f78e9f Update/variations search method (https://github.com/woocommerce/woocommerce-admin/pull/1792)
* Add product search option REST API

* Remove product_name search in favor of sku and name searching

* Search by product search term instead of generic search in autocompleter

* Add product search option REST API

* Override existing search param instead of new param

* Remove product_name search in favor of sku and name searching

* Add product search param to variations controller

* Add group by to prevent duplicate variations in response

* Use product_search in variation autocompleter

* Trim whitespace in product_search query

* Change variation search placeholder

* Override search param instead of using new product_search param

* Add baseSearchQuery to prevent losing single_product filter in variations report

* Unset s param instead of setting to false
2019-03-18 12:23:08 +08:00
Joshua T Flowers 7653859509 Update product searching to search by name or sku (https://github.com/woocommerce/woocommerce-admin/pull/1791)
* Add product search option REST API

* Remove join and where filters for wp_query after rest response

* Remove product_name search in favor of sku and name searching

* Allow searching for products to compare by product sku

* Search by product search term instead of generic search in autocompleter

* Trim whitespace on product_search query

* Override existing search param instead of new param

* Use double quotes to avoid escaping search query

* Unset s param instead of setting to false
2019-03-18 11:31:02 +08:00
Joshua T Flowers 2187f0e1bc Add onChange event to search focus to restore search results (https://github.com/woocommerce/woocommerce-admin/pull/1807) 2019-03-18 10:40:25 +08:00
Joshua T Flowers b1dd517eb6 Add single customer filter and hook up customer link (https://github.com/woocommerce/woocommerce-admin/pull/1798)
* Add a single customer filter to the customers report

* Hook up activity panel orders customer link to customer report

* Use customer name for label instead of username
2019-03-18 10:39:54 +08:00
Jeff Stieler f08fda5271 Merge pull request woocommerce/woocommerce-admin#1813 from woocommerce/add/1699-clear-jobs
Add a custom “cancel all” method to our scheduled action data store.
2019-03-15 15:00:52 -06:00
Albert Juhé Lluveras e6cf40e3f0 Allow sorting by tax_code in Taxes report (https://github.com/woocommerce/woocommerce-admin/pull/1812) 2019-03-15 21:44:03 +01:00
Joshua T Flowers fae447014f Update coupon search to allow searching by code (https://github.com/woocommerce/woocommerce-admin/pull/1800)
* Add coupon code search filtering to REST API

* Use search_code param in coupon search results

* Use search_code param in coupon autocompleter

* Override search param instead of adding search_code param
2019-03-15 12:29:14 +08:00
Joshua T Flowers 53f84e1b5d Check if dependencies are met before running deactivation hook (https://github.com/woocommerce/woocommerce-admin/pull/1797) 2019-03-15 09:26:29 +08:00
Joshua T Flowers 26de74dc30 Show error in activity panel if no actionable order statuses exist (https://github.com/woocommerce/woocommerce-admin/pull/1799)
* Show error in activity panel if no actionable order statuses exist

* Localize empty actionable statuses string

* Add padding around empty content component in activity panels
2019-03-15 09:26:16 +08:00
Joshua T Flowers df5f001140 Update compare button help text (https://github.com/woocommerce/woocommerce-admin/pull/1796) 2019-03-15 09:00:48 +08:00
Paul Sealock 6ad9df9e52 Merge pull request woocommerce/woocommerce-admin#1787 from woocommerce/renovate/replace-1.x
Update dependency replace to v1.1.0
2019-03-15 08:31:13 +13:00
Renovate Bot 78219a891d Update dependency stylelint to v9.10.1 2019-03-15 07:53:59 +13:00
md2017-ronak-ronakganatra1 bc92ff0cd3 Changes in format_order_statuses and wc_admin_embed_page_header. 2019-03-14 09:07:52 -06:00
md2017-ronak-ronakganatra1 c6d82f9c62 Task implemented of Namespace methods in wc-admin.php woocommerce/woocommerce-admin#1734. 2019-03-14 09:06:34 -06:00
Albert Juhé Lluveras 1eb5d51f9c RTL charts (https://github.com/woocommerce/woocommerce-admin/pull/1794)
* Fix wrong tooltip position on RTL languages Dashboard

* Render chart Y axis on the right for RTL languages
2019-03-14 11:57:43 +01:00
Albert Juhé Lluveras c1b6c3d8ce Load RTL CSS files (https://github.com/woocommerce/woocommerce-admin/pull/1781)
* Load RTL CSS files

* Remove RTL specific CSS rules

* Generate RTL files of app style

* Simplify require route
2019-03-14 11:18:54 +01:00
Joshua T Flowers 9d58f8ca58 Fix deleted coupon data sync (https://github.com/woocommerce/woocommerce-admin/pull/1753)
* Delete coupon from lookup table when permanently deleted

* Don't sync null ID coupons on order sync
2019-03-14 12:12:35 +08:00
Renovate Bot 9079c4f7f3 Update dependency replace to v1.1.0 2019-03-14 13:41:02 +13:00
Paul Sealock c8537970b7 Merge pull request woocommerce/woocommerce-admin#1793 from woocommerce/fix/store-alerts-css-lint
Fix CSS Lint issues in store-alerts CSS
2019-03-14 13:13:07 +13:00
Paul Sealock 3063c88bc5 Merge pull request woocommerce/woocommerce-admin#1786 from woocommerce/renovate/recast-0.x
Update dependency recast to v0.17.3
2019-03-14 12:46:02 +13:00
Paul Sealock 8e913087d4 Merge pull request woocommerce/woocommerce-admin#1785 from woocommerce/renovate/eslint-plugin-jest-22.x
Update dependency eslint-plugin-jest to v22.3.2
2019-03-14 12:39:48 +13:00
Paul Sealock 459f971c52 Merge pull request woocommerce/woocommerce-admin#1784 from woocommerce/renovate/css-loader-2.x
Update dependency css-loader to v2.1.1
2019-03-14 12:37:10 +13:00
Paul Sealock f4ec9a7665 products/stats: filter segmented products by category 2019-03-14 07:51:55 +13:00
Jeff Stieler d6fa5b58f6 Update our schedule actions to “trash” status and let Action Scheduler handle cleanup. 2019-03-13 11:48:38 -06:00
Jeff Stieler bfe5a75e98 Update text domain. (https://github.com/woocommerce/woocommerce-admin/pull/1795)
* Translation call text domain change from “wc-admin” to “woocommerce-admin”.

* Fix .pot file generation.

* Fix errantly closed array item in /revenue/stats controller.

* Rename plugin zip, main file, and repo name to "woocommerce-admin".
2019-03-13 11:14:02 -06:00
Albert Juhé Lluveras 1bbf79c105 Avoid useless Chart re-renders and clean-up component state (https://github.com/woocommerce/woocommerce-admin/pull/1780)
* Improve Chart rendering performance

* Avoid reassigning yFormat prop in Chart

* Update focused keys on legend toggle

* Use selectionLimit constant instead of a hardcoded value

* Minor improvements
2019-03-13 11:38:43 +01:00
Albert Juhé Lluveras 8dd179d551 Fix CSS Lint issues in store-alerts CSS 2019-03-13 11:36:03 +01:00
Renovate Bot 38121c187e Update dependency recast to v0.17.3 2019-03-13 01:55:36 +00:00
Renovate Bot ab30026608 Update dependency eslint-plugin-jest to v22.3.2 2019-03-13 00:50:20 +00:00
Renovate Bot d82d4a86ec Update dependency css-loader to v2.1.1 2019-03-13 00:48:54 +00:00
Paul Sealock 00eb04255f Merge pull request woocommerce/woocommerce-admin#1750 from woocommerce/fix/deleted-product-error
Fix deleted product error
2019-03-13 12:06:22 +13:00
Jeff Stieler ec9ea43c9b Merge pull request woocommerce/woocommerce-admin#1778 from woocommerce/fix/1651-rest-api-datetime-offset
Remove timezone from appendTimestamp() output.
2019-03-12 07:35:13 -06:00
Justin Shreve 1348245406 Add store notice around processing historical data. (https://github.com/woocommerce/woocommerce-admin/pull/1763)
* Add store notice around processing historical data.

* Cleanup

* Handle PR feedback.

* Clean up `add` logic and add empty content_data. Also add logic to get_notes_count so that we can hide unactioned statuses.

* Add the ability to update a note, and to also mark a status when an alert is clicked.

* Remove mark_actioned call on sync

* add missing todo
2019-03-12 09:13:20 -04:00
Albert Juhé Lluveras 6c9b96f49a Make variations and coupons endpoints return zero-value items (https://github.com/woocommerce/woocommerce-admin/pull/1765)
* Make categories endpoint return zero-value items

* Rename PHP variable to make it more specific

* Remove uneeded lines

* Make variations and coupons endpoints return zero-value items

* Remove second parameter from get_ids_table
2019-03-12 11:11:28 +01:00
Albert Juhé Lluveras d3230d8dae Make categories endpoint return zero-value items (https://github.com/woocommerce/woocommerce-admin/pull/1755)
* Make categories endpoint return zero-value items

* Rename PHP variable to make it more specific

* Remove uneeded lines

* Remove second parameter from get_ids_table
2019-03-12 10:50:53 +01:00
Albert Juhé Lluveras cf162dda7f Taxes report: sort tax rates numerically instead of alphabetically (https://github.com/woocommerce/woocommerce-admin/pull/1766)
* Taxes report: sort tax rates numerically instead of alphabetically

* Use DECIMAL(7,4) for tax_rate sorting
2019-03-12 10:31:19 +01:00
Paul Sealock fd019c4c35 Chart: don't switch to comparison mode directly 2019-03-12 12:03:58 +13:00
Jeff Stieler 64ccc0b0b2 Remove timezone from appendTimestamp() output. 2019-03-11 16:48:25 -06:00
Renovate Bot 9016d8ae86 Lock file maintenance 2019-03-11 00:45:21 +00:00
Jeff Stieler 04db0e2b8d Add a custom “cancel all” method to our scheduled action data store.
Performs direct database manipulation for performance (with large datasets).
2019-03-08 18:41:59 -07:00
Tiago Noronha 965a4a6cb5 Merge pull request woocommerce/woocommerce-admin#1758 from woocommerce/fix/1736
Add StoreAlerts placeholder
2019-03-08 19:52:57 +00:00
Jeff Stieler a50a9bccb1 Ensure that other scheduled actions are claimed before WC Admin actions. (https://github.com/woocommerce/woocommerce-admin/pull/1759)
* Use menu_order to lower the claim priority of WC Admin scheduled actions.

* Use a ActionScheduler_Store subclass to modify menu_order.

* Check to make sure we’re overriding only AS’s built in WP Post data store.
2019-03-08 11:59:32 -07:00
renovate[bot] 8802de46d5 Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/1726) 2019-03-08 12:27:27 -05:00
renovate[bot] 07d92d1e76 Update dependency prop-types to v15.7.2 (https://github.com/woocommerce/woocommerce-admin/pull/1747) 2019-03-08 12:18:25 -05:00
renovate[bot] 7cee7bb5d4 Update dependency marked to v0.6.1 (https://github.com/woocommerce/woocommerce-admin/pull/1746) 2019-03-08 12:11:58 -05:00
renovate[bot] 2710ec5f7a Update dependency lerna to v3.13.1 (https://github.com/woocommerce/woocommerce-admin/pull/1745) 2019-03-08 12:07:57 -05:00
renovate[bot] 0826916ecf Update dependency eslint to v5.15.1 (https://github.com/woocommerce/woocommerce-admin/pull/1744) 2019-03-08 12:03:46 -05:00
renovate[bot] 74257378c1 Update dependency autoprefixer to v9.4.10 (https://github.com/woocommerce/woocommerce-admin/pull/1743) 2019-03-08 11:49:10 -05:00
Justin Shreve e9be19ee93 Update plugin header to better match the readme (https://github.com/woocommerce/woocommerce-admin/pull/1764) 2019-03-08 11:20:42 -05:00
Tiago Noronha 762b7d0b0c Revert "Stop API requests when we know no alerts exist"
This reverts commit 0cdaf1bee2.
2019-03-08 16:18:02 +00:00
Tiago Noronha c3ff6fca49 Simplify StoreAlerts component logic 2019-03-08 16:17:48 +00:00
Tiago Noronha 2e2fb90cde Add support for notes count by note type 2019-03-08 15:17:24 +00:00
Tiago Noronha 0cdaf1bee2 Stop API requests when we know no alerts exist 2019-03-06 23:04:13 +00:00
Tiago Noronha dd8d1fbb8b Display StoreAlertsPlaceholder while alerts are being loaded 2019-03-06 22:50:47 +00:00
Tiago Noronha 0af40e8214 Add default props and prop types to StoreAlertsPlaceholder component 2019-03-06 22:16:38 +00:00
Tiago Noronha 3493481f01 Add placeholder for StoreAlerts 2019-03-06 21:36:54 +00:00