Commit Graph

762 Commits

Author SHA1 Message Date
Ron Rennick 833cc7a1c2 convert zero last active date to null in customer query 2019-08-07 16:12:47 -03:00
Justin Shreve ea6da8858d Update the WP.com connection parameter to match the parameter in the API (https://github.com/woocommerce/woocommerce-admin/pull/2761) 2019-08-07 14:49:21 -04:00
Jeff Stieler 58209c4cde Merge pull request woocommerce/woocommerce-admin#2733 from woocommerce/fix/2732
add version string to _doing_it_wrong
2019-08-05 13:15:23 -06:00
Jeff Stieler b2707d3e23 Bail out of our `admin_title` filter if it's invoked before `current_screen`.
See: https://github.com/xwp/pwa-wp/issues/206
2019-08-02 08:32:52 -06:00
Justin Shreve dca1b07377 Onboarding - Task List: Add store connection task (https://github.com/woocommerce/woocommerce-admin/pull/2718)
* Adds store connection task

* PR Feedback
2019-08-01 14:09:08 -04:00
Justin Shreve 1410e7ed29 Add a "this store is being setup for a client" store detail field (https://github.com/woocommerce/woocommerce-admin/pull/2727) 2019-08-01 13:29:35 -04:00
Ron Rennick 050eabba4f use 0.16.0, fix typo in warning message 2019-08-01 11:19:56 -03:00
Ron Rennick 9b9105ec01 add version string to _doing_it_wrong 2019-08-01 10:25:52 -03:00
Jeff Stieler 06deec11f8 Fix groupby for category segmentation in reports. 2019-07-25 15:30:10 -06:00
Joshua Flowers b0aa7bdb42 Prevent onboarding from running on non-admin pages 2019-07-25 16:20:43 +08:00
Timmy Crawford 646235ac7b Notice: Update feedback notice verbiage and action. (https://github.com/woocommerce/woocommerce-admin/pull/2677) 2019-07-22 14:26:28 -07:00
Jeff Stieler f2c1837478 Hook in for onboarding reset a little later.
Page detection needs to wait until `current_screen`.
2019-07-22 08:33:58 -06:00
Jeff Stieler ecf2e34103 Add "doing it wrong" to avoid calculating the current page too early. 2019-07-22 08:33:58 -06:00
Joshua T Flowers f1f3a6e20d Fix flash of unstyled content for onboarding pages (https://github.com/woocommerce/woocommerce-admin/pull/2673) 2019-07-22 12:53:13 +08:00
Joshua T Flowers b42a8b34cd Onboarding: Add products task (https://github.com/woocommerce/woocommerce-admin/pull/2667)
* Add product subtask list component

* Add has-action class to list component

* Redirect after active task completion

* Refactor task completion check

* Add task completion statuses to component settings

* Fix missing className prop for list items

* Add task completion styling
2019-07-19 10:54:38 +08:00
Jeff Stieler 64d44bd905 Merge pull request woocommerce/woocommerce-admin#2659 from woocommerce/fix/2592-orders-linger
Reduce order status change delay in Orders Panel.
2019-07-18 08:20:39 -06:00
Joshua T Flowers 2d21db45ce Onboarding: Add the task list dashboard (https://github.com/woocommerce/woocommerce-admin/pull/2654)
* Add task list dashboard page

* Add actual site URL to header

* Fix typos

* Remove app bar

* Use material icons

* Update material icons to use Google hosted font

* Localize description strings
2019-07-18 18:11:21 +08:00
Timmy Crawford d62e3baed5 Nav: Hide nav on block editor. (https://github.com/woocommerce/woocommerce-admin/pull/2661) 2019-07-17 08:07:57 -07:00
Joshua T Flowers 8784ac9728 Onboarding: Update help tab with reset onboarding link (https://github.com/woocommerce/woocommerce-admin/pull/2658)
* Update help tab reset link for onboarding profiler

* Update wc_admin_url to allow dashboard URL

* Add function to reset onboarding profiler params
2019-07-17 09:49:01 +08:00
Jeff Stieler 69149ab83a Remove default date range for Orders report query. 2019-07-16 15:17:37 -06:00
Jeff Stieler f3fb79adaf Add parameters for specifying order IDs for reporting. 2019-07-16 15:17:36 -06:00
Joshua T Flowers 929f42e22d Add WC support check for child themes (https://github.com/woocommerce/woocommerce-admin/pull/2628)
* Add WC support check for child themes

* Fix installed themes loop double call
2019-07-11 16:39:32 +08:00
Ron Rennick 5e757d2f70 exclude old WC auto-draft orders from import 2019-07-08 15:36:12 -03:00
Ron Rennick 2260e60453 Merge pull request woocommerce/woocommerce-admin#2484 from woocommerce/fix/2400
use summary query to total coupons per order
2019-07-08 13:49:17 -03:00
Timmy Crawford dde788631c Notes: Type cast is_snoozeable on insert. (https://github.com/woocommerce/woocommerce-admin/pull/2573) 2019-07-08 09:48:38 -07:00
Ron Rennick 6da2728f99 Merge pull request woocommerce/woocommerce-admin#2593 from woocommerce/issue_2591
Notes: Only check for scheduled snooze action hourly
2019-07-08 08:39:50 -03:00
Joshua T Flowers 19870c18c0 Onboarding: Add theme uploader component (https://github.com/woocommerce/woocommerce-admin/pull/2580)
* Add theme uploader component

* Add theme to theme browser on upload complete

* Add a minimum height to dropzone area

* Use Muriel style Spinner during upload

* Add file field uploader to dropzone for accessibility

* Delete transient on theme install or theme switch
2019-07-08 10:54:26 +08:00
Brent Shepherd cd87294f70 Only check for scheduled snooze action hourly
Using a transient to take advantage of object caching.

Fixes woocommerce/woocommerce-admin#2591.
2019-07-08 11:55:03 +10:00
Timmy Crawford 995f26250e Settings: Fix wsod when no actionable statuses are set. (https://github.com/woocommerce/woocommerce-admin/pull/2577)
* Fix wsod when no actionable statuses are set.

* Updates per feedback.
2019-07-05 07:12:03 -07:00
Joshua T Flowers d640b15d09 Add a theme REST API to allow uploading themes (https://github.com/woocommerce/woocommerce-admin/pull/2568)
* Add theme upload REST api controller

* Add theme data to theme controller response

* Add tests for themes api

* Change user cap check to upload_themes

* Add test for users without theme capabilities
2019-07-05 16:01:35 +08:00
Justin Shreve 5a2f0c9da0 Onboarding - Add business extension recommendations (https://github.com/woocommerce/woocommerce-admin/pull/2551)
* Add business extension recommendations

* Fix failing test. Set max height and width for toggle

* Fix toggle display and fix when the extensions show (so they dont hide and disapear as "currently" selling is selected).
2019-07-04 11:56:28 -04:00
Joshua T Flowers 6c98e1d5cf Onboarding: Update theme order and sorting (https://github.com/woocommerce/woocommerce-admin/pull/2556)
* Only show installed themes with WC support and currently active theme

* Center tab panel buttons

* Fix installed param check typo

* Show installed themes in wc theme fetch fails
2019-07-04 14:12:33 +08:00
Jeff Stieler 5b905025fc Merge pull request woocommerce/woocommerce-admin#2526 from woocommerce/add/311-report-csv-exporter-endpoint
Add Report CSV Export Endpoint
2019-07-03 08:43:18 -06:00
Paul Sealock b3bde09814 Merge pull request woocommerce/woocommerce-admin#2444 from woocommerce/update/route-handling
Route handling: Remove hash in favor of path parameter
2019-07-03 13:16:04 +12:00
Paul Sealock dbd8793c05 leading slash in leaderboards 2019-07-03 10:40:41 +12:00
Jeff Stieler c7d94cc929 Use the default "read reports" permission for the export endpoint. 2019-07-02 13:53:42 -06:00
Jeff Stieler 3350605ef2 Merge pull request woocommerce/woocommerce-admin#2559 from woocommerce/add/2474-inbox-action-click
Add tracks event to Store Alert and Inbox Notification action clicks
2019-07-02 13:25:20 -06:00
Jeff Stieler 1270f5204b Send tracks events for triggered note actions. 2019-07-02 08:29:20 -06:00
Jeff Stieler cc4ca8b965 Move tracks helper function into core functions file. 2019-07-02 08:27:31 -06:00
Ron Rennick ca40be6676 Merge pull request woocommerce/woocommerce-admin#2543 from woocommerce/2503-followup
Add error checking for failed remote gets added in woocommerce/woocommerce-admin#2503
2019-07-02 10:54:15 -03:00
Paul Sealock 563e94b7a2 add leading slash in path for Leaderboards 2019-07-02 12:19:55 +12:00
Jeff Stieler e6c445e1d4 Verify that user can view reports before allowing export download. 2019-07-01 12:06:25 -06:00
Daniel Rey López eef988239e Change all remaining URLs from #/style to ?path=style 2019-07-01 09:15:46 +01:00
Paul Sealock f6854c377d Stock notifs: fix low_stock_amount for variations 2019-07-01 15:50:31 +12:00
Justin Shreve aed4ea63b4 Server side route handling 2019-07-01 12:22:34 +12:00
Ron Rennick ac28e781c7 Small fixes for PR woocommerce/woocommerce-admin#2503
- Use get_instance function instead of constructor
- Update URL to be HTTPS
- Add error checking for failed remote gets
2019-06-28 15:58:51 -03:00
Jeff Stieler 35d763fa8c Merge pull request woocommerce/woocommerce-admin#2463 from KZeni/patch-2
Add State alongside City (and other customer info).
2019-06-28 12:24:25 -06:00
Jeff Stieler 74ab15aebf Add report CSV downloading. 2019-06-28 11:09:41 -06:00
Jeff Stieler c68010f184 Remove user ID from export files.
We currently can’t filter Inbox items by user.
2019-06-28 11:09:41 -06:00
Jeff Stieler bc095bd746 Batch the creation of report export jobs. 2019-06-28 11:09:40 -06:00
Jeff Stieler 916ea55ae9 Respond with an error if there are no items to export. 2019-06-28 11:09:40 -06:00
Jeff Stieler 1650794f2b Include user ID in report export status key. 2019-06-28 11:09:39 -06:00
Jeff Stieler b76d7b61fc Add endpoint for report export status. 2019-06-28 11:09:39 -06:00
Jeff Stieler 73e0c455d7 Add endpoint to initiate report CSV export generation. 2019-06-28 11:09:39 -06:00
Jeff Stieler b6190e7fb0 Add class to process report exports using action scheduler. 2019-06-28 11:09:38 -06:00
Jeff Stieler 7332b07874 Small tweaks to report CSV exporter to support batching.
Use default limit, add public total_rows accessor, auto-load controllers.
2019-06-28 11:09:38 -06:00
Kurt Zenisek cd743141b1 Renamed "State" label to "Region" 2019-06-28 11:42:28 -05:00
Jeff Stieler c787c8c50a Always return columns in ‘posts_fields’ filters. 2019-06-28 10:40:17 -06:00
Jeff Stieler 8c40000ec2 Merge pull request woocommerce/woocommerce-admin#2496 from woocommerce/fix/rest-controller-default-params
Test that REST controllers work with their default parameters.
2019-06-28 08:52:16 -06:00
Joshua T Flowers 0bc8c96ace Add installed themes and WooCommerce support to theme browser (https://github.com/woocommerce/woocommerce-admin/pull/2503)
* Add theme step to onboarding profiler

* Add installed themes to onboarding theme data

* Add theme status for install themes in frontend

* Add regex test to check for WooCommerce theme support

* Add woocommerce not supported icon and tooltips

* Cache installed themes for performance

* Update themes endpoint to use real wccom endpoint

* Update error icon to use info gridicon
2019-06-28 15:42:20 +08:00
Albert Juhé Lluveras 808143d7c9 Remove updated stock products from Activity Panel (https://github.com/woocommerce/woocommerce-admin/pull/2442)
* Remove updated stock products from Activity Panel

* Use prefers-reduced-motion preference

* Update comparison to check if stock quantity is 'lower or equal to' lowStockAmount

* Focus quantityInput on 'beginEdit' instead of 'componentDidUpdate'

* Add comment explaining why we hide cards

* Refactor updateProductStock action

* Add type and parent_id properties to update
2019-06-27 11:21:43 +02:00
Jeff Stieler b8abe63d15 Don’t create a batch job that exceeds the range end. 2019-06-26 14:23:56 -06:00
Ron Rennick 207fc6e9e0 simplify interval array entry check 2019-06-26 16:14:25 -03:00
Jeff Stieler 356f1ada77 Merge pull request woocommerce/woocommerce-admin#2502 from woocommerce/add/311-reports-csv-exporter-class
Add Reports CSV Exporter Class
2019-06-26 09:50:06 -06:00
Joshua T Flowers 0de2f70392 Onboarding: Add theme step and theme browser (https://github.com/woocommerce/woocommerce-admin/pull/2493)
* Add theme data to wcSettings onboarding data

* Add theme step to onboarding profiler

* Use free in place of price if theme is <= 0

* Add theme paid/free filter tabs
2019-06-26 10:22:44 +08:00
Jeff Stieler 2b61484246 Load the Report CSV Exporter class. 2019-06-24 19:26:12 -06:00
Jeff Stieler de793076da Filter out image column when defining report columns. 2019-06-24 15:40:41 -06:00
Jeff Stieler bff5416df2 Fix Products Report extended info schema. 2019-06-24 15:40:12 -06:00
Jeff Stieler 2c5d3991b5 Fix Orders Report extended info schema. 2019-06-24 13:30:15 -06:00
Ron Rennick 259a2616b1 add get_unique_coupon_count() to count unique coupons for a dataset 2019-06-24 16:19:07 -03:00
Jeff Stieler 83c8f756d8 Apply report controller default parameters for CSV export. 2019-06-24 12:57:07 -06:00
Jeff Stieler 3a1501df29 Add default stats param for performance indicators.
Also, use the allowed stats for the value enum.
2019-06-24 10:55:43 -06:00
Jeff Stieler 6738d6c8cf Fix default status value on Orders controller. 2019-06-24 10:55:43 -06:00
Joshua T Flowers cf0e4ff1f7 Onboarding: Pull dynamic prices for product types (https://github.com/woocommerce/woocommerce-admin/pull/2467)
* Get dynamic price data from wccom and append to product types

* Remove redundant data from product types

* Only add product types if profiler is not skipped or completed

* Cache product data fetch from wccom
2019-06-22 12:02:11 +08:00
Jeff Stieler c13d35c68a JSON encode non-scalar values for CSV. 2019-06-21 10:40:06 -06:00
Jeff Stieler f0a01b09c0 Remove columns with CSV-unfriendly values, like HTML. 2019-06-21 10:38:36 -06:00
Jeff Stieler 0c9ef05103 Include export type with column value callback. 2019-06-21 10:38:01 -06:00
Ron Rennick 5038c672ee use summary query to total coupons per order 2019-06-21 12:47:02 -03:00
Jeff Stieler 2cb63e79d2 Add CSV exporter class for reports. 2019-06-20 19:01:38 -06:00
Jeff Stieler f75e3c7820 Check for good WC_Orders before using instance methods. 2019-06-20 08:31:10 -06:00
Albert Juhé Lluveras 88eb5b0bc5 Add wp-api-fetch script to dependencies (https://github.com/woocommerce/woocommerce-admin/pull/2460) 2019-06-20 10:53:02 +02:00
Joshua T Flowers ee81663f99 Prevent duplicate customer imports (https://github.com/woocommerce/woocommerce-admin/pull/2428)
* Get customer ID from existing order ID if present

* Use get_report_customer_id method in order for both orders and refunds
2019-06-20 12:03:55 +08:00
Joshua T Flowers 57416a2bdb Refactor customer name retrieval (https://github.com/woocommerce/woocommerce-admin/pull/2418)
* Return early from creating customer if order is false

* Refactor customer first and last name methods

* Separate customer name tests to create guest orders

* Check for parent_id before retrieving customer ID in refund

* Use registered customer ID in import report tests

* Compare absolute integer when checking for valid customer ID

* Check for order before getting customer ID when retrieving existing customer ID
2019-06-20 11:22:47 +08:00
Kurt Zenisek 7e7583710a Added state alongside city & other info 2019-06-19 17:13:43 -05:00
Kurt Zenisek fccbd105f1 Added state alongside city & other info 2019-06-19 17:13:05 -05:00
Kurt Zenisek 25be322d29 Added state alongside city & other info 2019-06-19 17:12:17 -05:00
Paul Sealock 8aaa18c339 Merge pull request woocommerce/woocommerce-admin#2425 from woocommerce/fix/potential-endless-syncs
Action Scheduler: fix potential endless sync
2019-06-18 10:50:38 +12:00
Paul Sealock 18d535d65a Action Scheduler: fix potential endless sync 2019-06-18 10:39:16 +12:00
Ron Rennick 18d3486618 Merge pull request woocommerce/woocommerce-admin#2228 from woocommerce/fix/2188
add match=any support for advanced orders table filter
2019-06-17 11:47:58 -03:00
Jeff Stieler 4b536ec1e0 Remove unnecessary WP style dependencies.
Use WP component styles instead of full edit-blocks styles.
2019-06-14 11:13:59 -06:00
Jeff Stieler 4c62701b86 Merge pull request woocommerce/woocommerce-admin#2423 from woocommerce/fix/2288-unhandled-rest-requests-wp-error
Performance indicators - bail whenever an internal API request fails.
2019-06-14 09:20:02 -06:00
Jeff Stieler 489f740741 Handle no data / error case for preloaded endpoint data. 2019-06-13 14:54:10 -06:00
Ron Rennick 241ebb63ff Merge pull request woocommerce/woocommerce-admin#2407 from woocommerce/fix/2354
Update Amount of {Item} to Number of {Item} when it's a count throughout
2019-06-13 13:41:15 -03:00
Ron Rennick cfa913a4b8 update status query to OR when there is a status filter 2019-06-13 13:10:46 -03:00
Joshua T Flowers 2f49a0a5a7 Prevent multiple imports from running simultaneously (https://github.com/woocommerce/woocommerce-admin/pull/2414)
* Prevent multiple imports from running simultaneously

* Cancel previous imports before importing again in tests
2019-06-13 23:32:58 +08:00
Ron Rennick 234d53975e change 2 other Amount strings to Number 2019-06-13 11:27:44 -03:00
Paul Sealock b76b259d82 Merge pull request woocommerce/woocommerce-admin#2385 from woocommerce/fix/2343-skip_existing-not-importing-all-data
Fix some data not to being imported when 'skip_existing' option is enabled
2019-06-13 10:19:56 +12:00
Albert Juhé Lluveras db169972d2 Fix comment 2019-06-12 23:58:20 +02:00
Albert Juhé Lluveras 4a5be15057 Merge branch 'master' into fix/2343-skip_existing-not-importing-all-data 2019-06-12 23:56:35 +02:00
Albert Juhé Lluveras b1bd53cb4e Adds comments to explain why page is fixed when skip_existing is set to true 2019-06-12 23:51:56 +02:00