Commit Graph

2678 Commits

Author SHA1 Message Date
Justin Shreve 752f8c456d Onboarding - Profile Wizard: Add tracks events (https://github.com/woocommerce/woocommerce-admin/pull/2531)
* Onboarding: Add tracks events

* Update naming, fix how already_selling is determined
2019-07-01 14:13:29 -04:00
Jeff Stieler e6c445e1d4 Verify that user can view reports before allowing export download. 2019-07-01 12:06:25 -06:00
Paul Sealock a33bdda62e Customizable dashboard: handle turned off feature flag 2019-07-01 21:40:50 +12:00
Paul Sealock d72a0edc0a Merge branch 'update/route-handling' of github.com:woocommerce/woocommerce-admin into update/route-handling 2019-07-01 20:42:27 +12:00
Paul Sealock c5c52228b6 update changelog for navigation package 2019-07-01 20:41:57 +12: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
Paul Sealock 4032c09e67 update id names 2019-07-01 12:33:52 +12:00
Justin Shreve aed4ea63b4 Server side route handling 2019-07-01 12:22:34 +12:00
Paul Sealock 123af97b1c Merge pull request woocommerce/woocommerce-admin#2525 from woocommerce/add/filters-tracks
Advanced Filters: Add Tracks events
2019-07-01 11:05:59 +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
Kurt Zenisek 29c5098304 Swapped out postal_code for postcode to fix a bug 2019-06-28 13:15:50 -05:00
Job b317e43869 Fixes issue with alerts on mobile (https://github.com/woocommerce/woocommerce-admin/pull/2537) 2019-06-28 10:46:17 -07:00
Jeff Stieler fbd231acf4 Add test for reports export endpoint. 2019-06-28 11:10:13 -06:00
Jeff Stieler 3ab221db55 Add schema modification to Table Column example plugin. 2019-06-28 11:09:41 -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
Kurt Zenisek c2b255360d Renamed "State" label to "Region" 2019-06-28 11:41:22 -05:00
Jeff Stieler c787c8c50a Always return columns in ‘posts_fields’ filters. 2019-06-28 10:40:17 -06:00
Jeff Stieler ab7ceeed23 Merge pull request woocommerce/woocommerce-admin#2487 from benignant/patch-1
Remove style that causes incorrect margins for certain notices
2019-06-28 09:52:42 -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
Ron Rennick 6982c21d3d Merge pull request woocommerce/woocommerce-admin#2519 from woocommerce/fix/2495
remove double slash from image urls, use string for download ID
2019-06-28 09:28:51 -03:00
Justin Shreve 89c56dba21 Remove hover on Card component (https://github.com/woocommerce/woocommerce-admin/pull/2529) 2019-06-28 06:42:09 -04: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
Paul Sealock e32b5560c0 Advanced Filters: Add Tracks events 2019-06-28 12:34:41 +12:00
Timmy Crawford 54ff76e178 Tracks: Fix double wcadmin_ prefix. (https://github.com/woocommerce/woocommerce-admin/pull/2532)
* Tracks: Fix double wcadmin_ prefix.

* Update comment

* underscore dangit
2019-06-27 15:56:39 -07:00
Ron Rennick 9f76b02283 set all the unit test download IDs to strings 2019-06-27 17:46:56 -03:00
Paul Sealock 272fad59fb Merge pull request woocommerce/woocommerce-admin#2507 from woocommerce/release/0.14.0
release 0.14.0
2019-06-28 08:13:58 +12:00
Ron Rennick 41e6f63fa9 Merge pull request woocommerce/woocommerce-admin#2462 from woocommerce/fix/2403
open external note action links in a new tab
2019-06-27 15:40:52 -03:00
Jeff Stieler 7e87732dfb Rework test to rely on the REST server handling route defaults. 2019-06-27 11:38:54 -06:00
Ron Rennick 93bcd60f58 check that url is not an empty string
Co-Authored-By: Albert Juhé Lluveras <aljullu@gmail.com>
2019-06-27 09:33:46 -03: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 2f4b8272e6 Merge pull request woocommerce/woocommerce-admin#2521 from woocommerce/fix/action-batch-range
Fix batch queue range bug.
2019-06-26 19:17:57 -06:00
Daniel Rey López 95c074fbc6 Add a filter to allow other extensions to register new WC-Admin-powered pages (https://github.com/woocommerce/woocommerce-admin/pull/2492) 2019-06-27 00:00:23 +01: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 7dfc3fe240 use current window for any dashboard URL 2019-06-26 17:16:54 -03:00
Jeff Stieler 5b4d671833 Change test queue batch size.
Introduces error condition where range start is beyond the end.
2019-06-26 14:16:33 -06:00
Ron Rennick 57a8fbcb51 remove double slash from image urls, use string for download ID 2019-06-26 16:55:57 -03: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
Paul Sealock 653a35c653 Release: remove Onboarding updates from changelog 2019-06-26 11:36:05 +12:00
Paul Sealock 442d45e55d release 0.14.0 2019-06-26 11:34:06 +12:00
Paul Sealock 22fb9d357b Merge pull request woocommerce/woocommerce-admin#2498 from woocommerce/add/tracks/activity-panel-open
Activity Panels: Add track event when panels are opened.
2019-06-26 11:27:32 +12:00
Paul Sealock 1aeb60697e Update client/header/activity-panel/index.js 2019-06-26 11:20:22 +12:00
Paul Sealock 68c8bfedd9 Table extension: fix page error and jsDoc 2019-06-26 10:28:32 +12:00
Jeff Stieler 466ddda1a6 Add a test of the CSV export to the coupons report. 2019-06-24 19:26:33 -06:00
Jeff Stieler 2b61484246 Load the Report CSV Exporter class. 2019-06-24 19:26:12 -06:00
Timmy Crawford e2cd150071 Activity Panels: Add track event when panels are opened. 2019-06-24 16:49:52 -07: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 d6d3161bff Exclude IP download controller from defaults test. 2019-06-24 12:16:58 -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
Jeff Stieler 4711a4e11d Ensure coupons are enabled for testing. 2019-06-24 10:55:43 -06:00
Jeff Stieler 7e14630b3b Set default params on each test request, and use an admin user. 2019-06-24 10:55:40 -06:00
Jeff Stieler ff8615dac7 Test that all REST controllers can be called with default params. 2019-06-24 10:50:21 -06:00
Daniel Rey López 2ce8c97c48 Remove the "wpClosedMenu" page setting (https://github.com/woocommerce/woocommerce-admin/pull/2441) 2019-06-24 08:43:19 +01:00
benignant a8b69be326 Remove declaration that causes incorrect margins
The declaration in question causes notices that are not collapsed and do not have the 'updated' class to have incorrect margins.
2019-06-23 00:35:51 -04: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
Justin Shreve 592c9d8e15 Save value of the tracking setting on both 'next' and 'skip profiler actions (https://github.com/woocommerce/woocommerce-admin/pull/2468) 2019-06-21 12:51:56 -04:00
Justin Shreve 762a2d6540 Fix mobile stepper positioning on mobile (https://github.com/woocommerce/woocommerce-admin/pull/2472) 2019-06-21 12:49:44 -04: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 fbc28cb265 Merge pull request woocommerce/woocommerce-admin#2464 from woocommerce/fix/1985-fatal-get-customer-id
Check for good WC_Orders before using instance methods.
2019-06-21 08:08:12 -06:00
Ron Rennick 945baebf5e Merge pull request woocommerce/woocommerce-admin#2457 from woocommerce/fix/readme-typo
fix typo in readme changelog for 0.13.0
2019-06-21 08:38:01 -03:00
Jeff Stieler 2cb63e79d2 Add CSV exporter class for reports. 2019-06-20 19:01:38 -06:00
Kurt Zenisek ce8d670420 Increased assertCount to accommodate the added data point 2019-06-20 14:24:14 -05:00
Jeff Stieler f75e3c7820 Check for good WC_Orders before using instance methods. 2019-06-20 08:31:10 -06:00
Ron Rennick a05daef8d7 update URL test to wc-admin#/ 2019-06-20 10:49:25 -03: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
Paul Sealock 01ed625280 Merge pull request woocommerce/woocommerce-admin#2440 from woocommerce/extend/report-tables
Report Tables: Add example extension
2019-06-20 20:26:25 +12:00
Paul Sealock 68a95f8a83 Report Tables: extend columns 2019-06-20 20:03:56 +12: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 228acaf09e Added state alongside city & other info, and made location info sortable for convenient grouping of data at a glance.
I figured there's no reason you couldn't sort by the location data just so you can group them together (ex. quickly see how many are from a specific state at a glance rather than having it spread out & not having a means to group them together from this view.)
2019-06-19 17:15:58 -05: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
Kurt Zenisek a39c885160 Added state alongside city & other info 2019-06-19 17:11:24 -05:00
Ron Rennick 46ef804ae4 open external note action links in a new tab 2019-06-19 16:23:32 -03:00
Ron Rennick 48ca0c71f3 fix typo in readme changelog for 0.13.0 2019-06-19 11:05:21 -03:00
renovate[bot] 4d419f6b1d Update dependency @octokit/rest to v16.28.2 (https://github.com/woocommerce/woocommerce-admin/pull/2459) 2019-06-19 14:00:23 +08:00
renovate[bot] d025d7d42c Update dependency dompurify to v1.0.11 (https://github.com/woocommerce/woocommerce-admin/pull/2458) 2019-06-19 13:57:27 +08:00
renovate[bot] a1e87ed972 Update dependency babel-eslint to v10.0.2 (https://github.com/woocommerce/woocommerce-admin/pull/2456) 2019-06-19 10:56:15 +08:00
renovate[bot] 62af41d457 Pin dependencies (https://github.com/woocommerce/woocommerce-admin/pull/2455) 2019-06-19 10:55:02 +08:00
Albert Juhé Lluveras 4174db4874 Allow keyboard interaction in Stock Activity Panel form (https://github.com/woocommerce/woocommerce-admin/pull/2447) 2019-06-18 17:58:10 +02:00
Ron Rennick 223f8ca550 Merge pull request woocommerce/woocommerce-admin#2443 from woocommerce/update-tested-to-version
update tested to version in plugin repo readme.txt
2019-06-18 09:30:44 -03:00
Paul Sealock 4edc9cdb9e Merge pull request woocommerce/woocommerce-admin#2437 from woocommerce/fix/changelog-note-option
Changelog script: Use PR author note, if supplied
2019-06-18 22:29:10 +12:00
Paul Sealock c207c545e6 Changelog: Use author's note, if supplied 2019-06-18 22:11:58 +12:00
Albert Juhé Lluveras e80530a614 Fix Activity Panel being overlapped by editor toolbar (https://github.com/woocommerce/woocommerce-admin/pull/2446) 2019-06-18 11:33:39 +02: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
Jeff Stieler 3cc57dca6d Merge pull request woocommerce/woocommerce-admin#2424 from woocommerce/add/test-version-bump
Add test to catch missing version updates.
2019-06-17 16:39:24 -06:00
Paul Sealock 18d535d65a Action Scheduler: fix potential endless sync 2019-06-18 10:39:16 +12:00
Ron Rennick 22db75a802 update tested to version in plugin repo readme.txt 2019-06-17 16:22:11 -03: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 d3be24891c Warn against directly updating the plugin version constant. 2019-06-17 08:40:37 -06:00
Albert Juhé Lluveras d65736c5f3 Remove test menu from Orders panel (https://github.com/woocommerce/woocommerce-admin/pull/2438) 2019-06-17 10:09:59 +02:00
renovate[bot] 170b815477 Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/2436) 2019-06-17 15:59:58 +08:00
Paul Sealock 31f805f651 Merge pull request woocommerce/woocommerce-admin#2433 from woocommerce/changelog/omit-unmerged-prs
Changelog: Omit unmerged pull requests
2019-06-17 09:56:23 +12:00
Albert Juhé Lluveras 61fda5af56 Update Dashboard Charts naming and order (https://github.com/woocommerce/woocommerce-admin/pull/2429) 2019-06-15 14:12:19 +02:00
Paul Sealock 77f8d7a108 Changelog: Omit unmerged pull requests 2019-06-15 19:25:04 +12: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 e235dd3f40 Fix version constant update logic. 2019-06-14 10:29:03 -06:00
Albert Juhé Lluveras 15ecc94252 Fix conflicts with WordPress.com toolbar (https://github.com/woocommerce/woocommerce-admin/pull/2431)
* Fix conflicts with WordPress.com toolbar

* Simplify selector

* Decrease z-index of header

* Remove unnecessary important
2019-06-14 17:48:28 +02: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
Albert Juhé Lluveras d6e37124c7 Fix some Dashboard charts using wrong endpoint (https://github.com/woocommerce/woocommerce-admin/pull/2417) 2019-06-14 10:54:12 +02:00
Paul Sealock 8d7299538e Merge pull request woocommerce/woocommerce-admin#2412 from woocommerce/add/changelog-script
Add changelog script
2019-06-14 20:24:29 +12:00
Paul Sealock 2ad2bf84bb Add changelog script 2019-06-14 20:15:04 +12:00
Jeff Stieler d4e242b028 Add test to catch missing version updates. 2019-06-13 15:40:02 -06:00
Jeff Stieler 489f740741 Handle no data / error case for preloaded endpoint data. 2019-06-13 14:54:10 -06:00
Paul Sealock 4aab25b8ba Table queries: remove befor/after from no interval endpoints 2019-06-14 06:21:35 +12: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
Albert Juhé Lluveras 3e0d296646 Fix search bar in Orders page not being tapable on mobile (https://github.com/woocommerce/woocommerce-admin/pull/2384)
* Fix search bar in Orders page not being tapable on mobile

* Cleanup

* Remove unnecessary duplicated media-query

* Cleanup
2019-06-13 18:07:02 +02: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
Jeff Stieler 9170b5a46e Tag 0.13.2
Bump version so database migrations are run.
2019-06-13 08:56:49 -06:00
Ron Rennick 234d53975e change 2 other Amount strings to Number 2019-06-13 11:27:44 -03:00
Jeff Stieler acafd46849 Fix change log formatting.
Remove duplicate section headers and complete version heading formats.
2019-06-13 07:56:22 -06:00
Paul Sealock be61ba331a Merge pull request woocommerce/woocommerce-admin#2410 from woocommerce/fix/woocommerce-disabled-fatal
Fix: Exit deactivate early if WooCommerce not active.
2019-06-13 13:43:37 +12:00
Timmy Crawford c5b24567fc Fix: Exit deactivate early if WooCommerce not active. 2019-06-12 17:16:04 -07:00
Paul Sealock 2ad2c0f420 Release 0.13.0 2019-06-13 10:55:19 +12: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
Albert Juhé Lluveras 2d4b7b9938 Fix Activity Panel layout on mobile (https://github.com/woocommerce/woocommerce-admin/pull/2405) 2019-06-12 23:51:08 +02:00
Jeff Stieler 698c373a67 Merge pull request woocommerce/woocommerce-admin#2353 from woocommerce/renovate/lock-file-maintenance
Lock file maintenance
2019-06-12 23:47:59 +02:00
Renovate Bot 281060acdb Lock file maintenance 2019-06-12 21:26:43 +00:00
Paul Sealock 2e0ef7f93c Notes: update sales record link 2019-06-13 09:26:05 +12:00
Paul Sealock ed21ccf62e Merge pull request woocommerce/woocommerce-admin#2387 from woocommerce/fix/2365-improve-tab-switching-read-suppression
Improve hidden tab suppression/fix rapid requests
2019-06-13 09:22:48 +12:00
Renovate Bot e04862ef7e Update dependency lerna to v3.15.0 2019-06-12 15:01:10 -06:00
Jeff Stieler c2ca48274e Merge pull request woocommerce/woocommerce-admin#2398 from woocommerce/renovate/husky-2.x
Update dependency husky to v2
2019-06-12 22:55:32 +02:00
Jeff Stieler bde6e15c53 Merge pull request woocommerce/woocommerce-admin#2395 from woocommerce/renovate/css-loader-3.x
Update dependency css-loader to v3
2019-06-12 22:49:18 +02:00
Ron Rennick 6b02ee217c Update Amount of Orders to Number of Orders throughout 2019-06-12 16:16:18 -03:00
Joshua Flowers e518f13444 Cancel all wc-admin actions on deactivate 2019-06-12 13:11:13 -06:00
Joshua Flowers 4f44f97a67 Fix uninstall classes and move table deletion to uninstall 2019-06-12 13:11:13 -06:00
Joshua Flowers 9028488548 Remove table data on plugin deactivate 2019-06-12 13:11:13 -06:00
Jeff Stieler ea12ad086b Merge pull request woocommerce/woocommerce-admin#2402 from woocommerce/add/uninstall-on-release
Add uninstall file to release ZIP
2019-06-12 21:09:51 +02:00
Jeff Stieler f88efb3173 Don’t dispatch fresh-data request actions when document is hidden. 2019-06-12 12:58:46 -06:00
Jeff Stieler 6f9681ff53 Merge pull request woocommerce/woocommerce-admin#2359 from woocommerce/renovate/wordpress-monorepo
Update wordpress monorepo
2019-06-12 20:48:29 +02:00
Jeff Stieler 8c9328c382 Specify trusty dist for Travis builds. 2019-06-12 11:52:51 -06:00
Jeff Stieler 3f2957dc0d Update new sass variable. 2019-06-12 11:37:13 -06:00
Joshua T Flowers 81ffa853f3 Remove table data on plugin uninstall (https://github.com/woocommerce/woocommerce-admin/pull/2399)
* Remove table data on plugin deactivate

* Fix uninstall classes and move table deletion to uninstall
2019-06-13 00:16:08 +08:00
Jeff Stieler b83ef86add Merge pull request woocommerce/woocommerce-admin#2325 from woocommerce/add/admin-note-trigger-action
Trigger an action server side when admin note actions are clicked
2019-06-12 17:04:10 +02:00
Albert Juhé Lluveras 9f0ab4ec76 Add uninstall file to release ZIP file 2019-06-12 11:51:42 +02:00
Albert Juhé Lluveras 8bc2261c8a Add date_created_gmt property to orders endpoint (https://github.com/woocommerce/woocommerce-admin/pull/2086)
* Add date_created_gmt property to orders enpoint

* Make date_created properties of type date-time and improve descriptions
2019-06-12 11:21:56 +02:00
Joshua T Flowers 95d1a1d245 Add onbaording step 7 - Business Details (https://github.com/woocommerce/woocommerce-admin/pull/2347) 2019-06-12 11:56:10 +08:00
Renovate Bot 71287787cc Update dependency husky to v2 2019-06-12 02:56:42 +00:00
Renovate Bot 484e377cdf Update dependency css-loader to v3 2019-06-12 01:41:42 +00:00
Paul Sealock 4c3f122e89 Merge pull request woocommerce/woocommerce-admin#2292 from woocommerce/add/default-date-settings
Settings: Add default date settings
2019-06-12 11:48:01 +12:00
Paul Sealock dbd536c7a3 Settings: Add default date 2019-06-12 11:40:21 +12:00
Renovate Bot 493629113b Update wordpress monorepo 2019-06-11 21:56:55 +00:00
Renovate Bot a9d913295a Update dependency copy-webpack-plugin to v5 2019-06-11 21:50:09 +00:00
Renovate Bot 3fdc812305 Update dependency webpack-cli to v3.3.4 2019-06-11 21:28:35 +00:00
Jeff Stieler e50edf6ea3 Merge pull request woocommerce/woocommerce-admin#2357 from woocommerce/renovate/webpack-4.x
Update dependency webpack to v4.33.0
2019-06-11 23:25:46 +02:00
Jeff Stieler 49a65bd9e7 Merge pull request woocommerce/woocommerce-admin#2356 from woocommerce/renovate/reactrouter-monorepo
Update dependency react-router-dom to v5.0.1
2019-06-11 23:18:27 +02:00
Jeff Stieler 88f51e9119 Merge pull request woocommerce/woocommerce-admin#2355 from woocommerce/renovate/autoprefixer-9.x
Update dependency autoprefixer to v9.6.0
2019-06-11 23:12:38 +02:00
Jeff Stieler 1825c30b26 Performance indicators - bail whenever an internal API request fails. 2019-06-11 14:10:59 -06:00
Jeff Stieler 4ae938c99d Only update the status of a note if the triggered action is non-empty. 2019-06-11 12:38:49 -06:00
Albert Juhé Lluveras ddbb8f0be8 Add tracks to import jobs (https://github.com/woocommerce/woocommerce-admin/pull/2193)
* Add tracks to import jobs

* Include tracks client if missing when recording events

* Add batch_number, batch_size and import_count properties to import jobs

* Reorder code
2019-06-11 19:55:10 +02:00
Timmy Crawford 39d5c09c81 Notes: Add filters to disable milestone and sales record notes. (https://github.com/woocommerce/woocommerce-admin/pull/2227)
* Add filters to disable milestone and sales record notes.

* Updates per feedback.
2019-06-11 08:12:16 -07:00
Albert Juhé Lluveras 5d01cee56c Add progress bars to Historical Data Import screen (https://github.com/woocommerce/woocommerce-admin/pull/2312)
* Hook up import/status endpoint to Historical Data Import screen

* Fix PHP tests

* Add speak message when the import is complete

* Several fixes

* Cleanup

* Update progress bars every 3 seconds and bugfixes

* Rename ongoingImport to activeImport

* Use timestamp to identify queries

* Use timestamps for historical data state

* Add 'initializing' status

* Cleanup

* Pass less props around

* Refactor getStatus

* Set stop timestamp on request error

* Typo
2019-06-11 14:47:53 +02:00
Albert Juhé Lluveras 3123c4e047 Fix wrong average numbers in chart legends (https://github.com/woocommerce/woocommerce-admin/pull/2352)
* Fix wrong average numbers in chart legends

* Dashboard Extension example: update legend totals

* Rename 'totals' to 'legendTotals'

* Make sure legendTotals includes key property
2019-06-11 14:31:53 +02:00
Albert Juhé Lluveras 8790655c39 Make sure notices element exist before creating <WordPressNotices> (https://github.com/woocommerce/woocommerce-admin/pull/2378) 2019-06-11 14:14:06 +02:00
coderkevin 78e85f87c3 Improve hidden tab suppression/fix rapid requests
This fixes the rapid request problem that was happening when switching
tabs while having timed out requests. It changes the approach from
suppressing the actions sent out to preventing the read function from
being called at all.

I think the original problem has occurred because the original approach
was relying on an internal implementation of apiFetch from wp.data. This
new approach does not have such a dependency. It prevents apiFetch from
even being called. However, in the process, it will also prevent any
newly required resources from being fetched if the user manages to
switch tabs before it is requested. (e.g. refresh, then switch tabs
quickly).
2019-06-10 17:03:08 -05:00
Albert Juhé Lluveras 5a732d565a Fix 'skip_existing' option making not all data not to be imported 2019-06-10 12:45:01 +02:00
Albert Juhé Lluveras 8ed63c5547 Remove second beta warning from readme (https://github.com/woocommerce/woocommerce-admin/pull/2362) 2019-06-09 11:38:53 +02:00
Mike Jolley 3bd945511a Merge pull request woocommerce/woocommerce-admin#2191 from woocommerce/fix/low-stock-handling
Low stock handling inconsistencies with WooCommerce 3.6+
2019-06-06 12:15:46 +02:00
Paul Sealock 39d9ed38ed Merge pull request woocommerce/woocommerce-admin#2369 from shoheitanaka/patch-2
Double space at 191 row
2019-06-06 10:13:16 +02:00
Shohei Tanaka 85bd2ce168 Double space at 191 row
I find double space, like misspelling.
2019-06-06 15:18:33 +09:00
Shohei Tanaka fccf1f6156 Misspelling at update config.jp
This sentence is order, but older.
2019-06-06 14:54:28 +09:00
Renovate Bot 4e9acf6a32 Update dependency webpack to v4.33.0 2019-06-05 01:39:37 +00:00
Renovate Bot 42bc4ce0a1 Update dependency react-router-dom to v5.0.1 2019-06-05 00:36:05 +00:00
Renovate Bot 49310077d2 Update dependency autoprefixer to v9.6.0 2019-06-05 00:34:34 +00:00
Jeff Stieler 5785dfdfba Only animate actioned notes if no reduced motion preference.
Speed up animation as well.
2019-05-31 10:02:26 -06:00
Jeff Stieler 6005cbbf05 Speed up admin note fade out animation. 2019-05-31 10:02:26 -06:00
Jeff Stieler e1722a9ab8 Fix typo. 2019-05-31 10:02:26 -06:00
Jeff Stieler 82edc1c8c8 Only show unactioned notes in the Inbox panel.
And hide notes once an action has been taken.
2019-05-31 10:02:25 -06:00
Jeff Stieler 5a49991cb1 Trigger a note action on button click. 2019-05-31 09:59:20 -06:00
Jeff Stieler 698f947c16 Include the corresponding note in triggered action hook. 2019-05-31 09:59:20 -06:00
Jeff Stieler 17d793d731 Add endpoint for triggering note actions. 2019-05-31 09:59:20 -06:00
Jeff Stieler 8867152d88 Include ID when retrieving note action data. 2019-05-31 09:59:20 -06:00
Jeff Stieler b06c392ab3 Prevent double escaping of note action URLs. 2019-05-31 09:59:21 -06:00
Joshua T Flowers c524cb905f Put onboarding controllers behind feature flag check (https://github.com/woocommerce/woocommerce-admin/pull/2350)
* Put onboarding controllers behind feature flag check

* Don't load profileItems if onboarding is disabled
2019-05-31 16:55:52 +02:00
Albert Juhé Lluveras 1939ea084c Transpile newspack-components package (https://github.com/woocommerce/woocommerce-admin/pull/2348) 2019-05-31 10:34:26 +02:00