Commit Graph

533 Commits

Author SHA1 Message Date
Jeff Stieler 8a0f580d1b Check for connected JP+WCS and non-ShipStation country for shipping defaults. (https://github.com/woocommerce/woocommerce-admin/pull/5320)
Fix UK country code too.
2020-10-09 13:28:41 -07:00
Sam Seay f6cd6c25c8 Ensure that the iOS smart banner is rendered on embed pages as well as wc-admin pages. (https://github.com/woocommerce/woocommerce-admin/pull/5311) 2020-10-08 19:17:11 -07:00
Joshua T Flowers 91e57586f4 Load onboarding data when enabled or directly visiting (https://github.com/woocommerce/woocommerce-admin/pull/5290)
* Always load onboarding data in component global settings

* Load onboarding data when enabled or directly visiting
2020-10-08 17:10:55 -07:00
Timmy Crawford 178278c951 Change WooCommerce Services to WooCommerce Shipping & Tax. (https://github.com/woocommerce/woocommerce-admin/pull/5305) 2020-10-08 14:15:29 -07:00
Sam Seay 259489a0b9 Fix a bug in tax automation logic and track the event in analytics (https://github.com/woocommerce/woocommerce-admin/pull/5276) 2020-10-08 14:08:03 +13:00
Bec Scott 1c009dd9e7 Add/confirm tax settings note (https://github.com/woocommerce/woocommerce-admin/pull/5279)
* Add note to confirm automated tax settings

* add back automated_tax_is_supported function

* Trigger CI

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-10-08 09:12:31 +10:00
Bec Scott 51867b3d3b Add @deprecated tag to DeprecatedNotes comments (https://github.com/woocommerce/woocommerce-admin/pull/5283)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-10-08 09:09:33 +10:00
Paul Sealock a4e8f6996c Navigation: Update PHP registration (https://github.com/woocommerce/woocommerce-admin/pull/5255)
* UPdate to new registration API

* conditionally add path to Overview

* add comment

* change to is_top_level
2020-10-08 10:10:37 +13:00
Joel Thiessen 23c19ee1b2 Removing breadcrumbs from wc-admin header, replacing with simple titl… (https://github.com/woocommerce/woocommerce-admin/pull/5232)
Removing breadcrumbs from wc-admin header, replacing with simple title (https://github.com/woocommerce/woocommerce-admin/pull/3963)

This is an interim step towards the integration of wc-navigation, where a back button will be provided to restore the critical functionality of the breadcrumbs. Note that the `breadcrumbs` data was preserved since it's still being utilized do construct the document title (in semi-breadcrumb-fashion) on both the backend and front-end.
2020-10-06 13:42:46 -07:00
Joshua T Flowers 173b8c6262 Update store setup link to redirect to setup wizard (https://github.com/woocommerce/woocommerce-admin/pull/5200) 2020-10-06 23:35:54 +03:00
Jeff Stieler e62114e307 Remove dynamic content hash from chunk names. (https://github.com/woocommerce/woocommerce-admin/pull/5229)
* Don't auto generate chunk names.

This should make SVN diffs much easier to navigate for WP.org deploys.

* Include script version parameter in async chunk requests.

* Add version parameter to CSS chunks.
2020-10-06 08:58:15 -04:00
Jeff Stieler 2358f022ef Declare the note constants on the deprecated class. (https://github.com/woocommerce/woocommerce-admin/pull/5215)
* Declare the note constants on the deprecated class.

This avoids triggering PHP errors when third party code references the old class constants.

* Remove deprecation notices and return the call result

* Restore deprecated notices.

* Avoid magic strings.

* Pass WC_Admin_Note constructor argument to migrated class.

* Allow subclasses to access the facade class instance.

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-10-06 08:56:40 -04:00
Bec Scott 9906c6c1b3 Add note status remote inbox notifications rule processor (https://github.com/woocommerce/woocommerce-admin/pull/5207)
* Add note status remote inbox notifications rule processor

* Notes class rename

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-10-06 07:51:59 +10:00
Timmy Crawford 6db5126771 Onboarding: Remove check for legacy onboarding in redirect logic. (https://github.com/woocommerce/woocommerce-admin/pull/5230) 2020-10-01 06:08:41 -07:00
Adrian Duffell f08ccc57d7 Remove customer analytics data upon order deletion (https://github.com/woocommerce/woocommerce-admin/pull/5171)
This deletes the associated customer record when an order is deleted, provided that this is the only order for the customer.
2020-10-01 20:09:04 +08:00
Bec Scott 6ad7be3d58 Fix wakeup visibility for PHP 8 compatibility (https://github.com/woocommerce/woocommerce-admin/pull/5211)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-09-30 13:51:25 +10:00
Joshua T Flowers 1d3b9c0573 Redirect to setup wizard when activation transient is present (https://github.com/woocommerce/woocommerce-admin/pull/5214) 2020-09-29 17:14:04 -07:00
Jeff Stieler 6db31e351f Check to enable automated taxes after Jetpack connection is made. (https://github.com/woocommerce/woocommerce-admin/pull/5210) 2020-09-29 16:57:06 -07:00
Bec Scott 2ba064abf4 Remove product settings video note (https://github.com/woocommerce/woocommerce-admin/pull/5213)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-09-29 13:16:59 -07:00
Fernando 2cf7ea56a8 Onboarding - Store Profiler - Removed selected CBD option for eCommerce plan (https://github.com/woocommerce/woocommerce-admin/pull/5124)
* Added filter to selected industries list

This commit adds a filter to the selected industries list

* Fixed lint error

* Fixed lint issues

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-09-29 08:10:40 -07:00
Bec Scott 27a6b4d967 Add rule processors for country and state (https://github.com/woocommerce/woocommerce-admin/pull/5203)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-09-29 15:21:44 +10:00
Bec Scott ad8f8c5b08 Rename admin notes classes and file names to fit conventions (https://github.com/woocommerce/woocommerce-admin/pull/5142)
* Rename admin notes classes and file names to fit conventions

* Use a facade class that adds deprecation warnings to each function call

* Tidy up after rebase

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-09-28 14:35:10 +10:00
Joshua T Flowers 45ea46a6f1 Pass Stripe supported countries in tasks status REST API (https://github.com/woocommerce/woocommerce-admin/pull/5197) 2020-09-25 19:21:06 +03:00
Jeff Stieler 264aa8dee4 Add Variations Report (https://github.com/woocommerce/woocommerce-admin/pull/5167)
* Add initial Variations Report to analytics feature.

* Restrict query to variations when not specifying any product IDs.

* Add route to get variations without specifying a parent.

* Move variations table component to variations report directory.

* Add missing LIMIT clause to variations report query.

* Remove broken features from Variations table.

* Add Variations report controller to CSV emailer.

* Add initial Variation Stats endpoint, based on Product Stats.

* Hook Variations Report components up to new stats endpoint.

* Hook attribute filter up to variations report queries.

* Remove variation title filter usage.

See: https://github.com/woocommerce/woocommerce-admin/pull/5100

* Use filtered separator in variation name formatting.

* Add "single variation" to variations report, fix autocompleter API request.

* Fix segmentation by variation.

* Add comparison to variations report.

* Always include manually specified variations in report results.

* Fix variations report table comparison mode.

The ReportTable component expects the `filter` query param.

* Fixing styling of compare button without table search component.

* Add variation filter to Orders report.

* Link orders count to orders report filtered by variation.

* Orders report: include variation attributes in product names.

* Further style tweaks for variations report download button.

* Add variations filter to order stats query.

* Clean up "category includes" login in REST controllers.

Prep for "category excludes" in the Variations report.

* Support category exclusion in report filters.

* Fix filter param used by the variation report table component.

* Add category filter to variations report.

* Fix initial selected ReportTable rows when using non-default compareParam.

* Add a new autocompleter for variable products.

* Add products filter to variations report.

* Fix tests.

* Handle variation IDs that are no longer found.

* Add documentation.

* Use getSetting() instead of directly accessing window properties in client code.

* Fix ordering Variations by SKU.
2020-09-25 09:57:48 -04:00
Paul Sealock 4b8a03d83b add dependencies in loader (https://github.com/woocommerce/woocommerce-admin/pull/5169) 2020-09-25 12:20:21 +12:00
Fernando 4aa01340ab Store Profiler - Industry: reduced padding and removed industry (https://github.com/woocommerce/woocommerce-admin/pull/5157)
* Reduced list padding

This commit reduces the industries list "padding" and its "min-height"

* Removed item from industries list

This commit removes the item "Art, Music & Photography" from the industries list

* Fixed e2e tests

This commit fixes the e2e tests

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-09-22 09:20:42 -03:00
Adrian Duffell 49f74d8b15 Add check for remote inbox notifications opt-out (https://github.com/woocommerce/woocommerce-admin/pull/5162)
The marketplace suggestions opt-out is now used to determine if remote inbox notifications should be fetched. This corresponds to the
`woocommerce_show_marketplace_suggestions` WP option.

Additionally, a new protected method is added to the class. This provide a series of checks for whether remote notifications are enabled on the site.
2020-09-18 13:53:49 +08:00
Jason Conroy a60f59fa10 Add Google Ads & Marketing by Kliken Note Provider (https://github.com/woocommerce/woocommerce-admin/pull/5107)
* Remove Facebook Experts note

* Swap Facebook Marketing Experts Note for Google Ads and Marketing

* Update db version for 1.6.0
2020-09-17 10:50:49 -07:00
Francesco 36f61c89f1 chore: rename WCS to WC Shipping & Tax (https://github.com/woocommerce/woocommerce-admin/pull/5139) 2020-09-16 16:45:16 -05:00
Paul Sealock d057022caf force to a float (https://github.com/woocommerce/woocommerce-admin/pull/5149) 2020-09-17 08:33:52 +12:00
Jeff Stieler 3abeda602a Search all variation attribute values, not just global ones. (https://github.com/woocommerce/woocommerce-admin/pull/5141)
* Search all variation attribute values, not just global ones.

* Fix variations test for WC < 4.4.
2020-09-16 09:57:38 -04:00
Jeff Stieler b531f51cad Don't include "min" suffix in build JavaScript when targeting core. (https://github.com/woocommerce/woocommerce-admin/pull/5130)
Files with "min" are ignored by GlotPress / translate.wp.org.
2020-09-15 11:36:58 -04:00
Bec Scott 90567853de Enable the home screen for everybody (https://github.com/woocommerce/woocommerce-admin/pull/5108)
* One-shot to enable the homescreen for everybody

* Make the home page the default (only) experience

* remove option check in activity panel tabs, get tests working, fix lint issues

* Remove is-homescreen CSS class

* Remove extra home page route registration

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-09-15 09:44:46 +10:00
Bec Scott baad343599 Add filters for columns in reports (https://github.com/woocommerce/woocommerce-admin/pull/5134)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-09-15 08:29:09 +10:00
Bec Scott 5310944f17 Add option to not charge sales tax (https://github.com/woocommerce/woocommerce-admin/pull/5111)
* Add option to not set up sales tax

* Correct JS lint errors

* Add abort option to plugin step

* Inline redirect to home page

* Use testing-library/react for the new test

* Also set woocommerce_calc_taxes to 'no'

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-09-14 08:50:02 +10:00
Fernando 11656dcd6c Modified connection check (https://github.com/woocommerce/woocommerce-admin/pull/5129)
This commit modifies the connection check for the note 'wc-admin-wc-helper-connection'

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-09-12 11:56:33 -03:00
Jeff Stieler 35ee9901bc Avoid changing product titles by removing variation title filter usage. (https://github.com/woocommerce/woocommerce-admin/pull/5100)
* Remove use of `woocommerce_product_variation_title_include_attributes` filter.

* Use attribute values in product variation titles.

* Include attribute values in product variation name during segmentation.

* Include attribute values in product variations autocompleter query.
2020-09-09 09:29:10 -04:00
Bec Scott 55a9944911 Add performance on mobile admin note (https://github.com/woocommerce/woocommerce-admin/pull/5106)
* Add performance on mobile admin note

* use MONTH_IN_DAYS constant

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-09-09 08:35:59 +10:00
Bec Scott 92b37234f6 Add Edit products on the move admin note (https://github.com/woocommerce/woocommerce-admin/pull/5054)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-09-08 09:01:12 +10:00
Jeff Stieler 4736c3fd27 Combine translation chunks when language packs are updated. (https://github.com/woocommerce/woocommerce-admin/pull/5094)
Removes version from filename and prevents WP_Filesystem use without successful initialization.
2020-09-07 12:46:39 -04:00
Timmy Crawford 89c7cede0c Onboarding: Set woocommerce_setup_jetpack_opted_in true on Jetpack connection. (https://github.com/woocommerce/woocommerce-admin/pull/5101) 2020-09-07 09:38:26 +10:00
Jeff Stieler ebfd28a9e6 Add product attribute filter to Orders Report. (https://github.com/woocommerce/woocommerce-admin/pull/5068)
* Add product attribute filter to Orders report config.

* Add attribute args to Orders report controller.

* Include attribute filters in orders report query.

* Add attribute args to Orders Stats report controller.

* Include attribute filters in orders report stats query.

* Add test for product attribute filter in orders report.

* Add tests for invalid parameter values.

* Add tests for product attribute filter in order stats endpoint.

* Fix tests for PHP 5.6 and WC 3.8.x.
2020-09-03 10:08:06 -04:00
Sam Seay 2146ccb78e Add an automated taxes smart default (https://github.com/woocommerce/woocommerce-admin/pull/5076) 2020-09-03 14:56:52 +12:00
Jason Conroy 0e42d2794d Consistently use USA spelling of optimize (https://github.com/woocommerce/woocommerce-admin/pull/5067) 2020-09-03 10:29:04 +09:30
Jeff Stieler bc39bdf646 Show full variation name instead of parent product in orders report. (https://github.com/woocommerce/woocommerce-admin/pull/5056) 2020-09-01 08:22:36 -04:00
Timmy Crawford 08a0ec3739 Remove industry option for travel. (https://github.com/woocommerce/woocommerce-admin/pull/5065) 2020-09-01 13:45:14 +10:00
Chris Shultz 570de23747 Stop using missing installPlugin function and fix WCS 1.24 compatibility (https://github.com/woocommerce/woocommerce-admin/pull/5025)
* Update Shipping Banner to use installPlugins since installPlugin has been removed.

* Fix shipping banner compatibility with WCS 1.24.

* Update metabox content to match WC 4.5 metaboxes.
2020-08-31 08:13:14 -07:00
Sam Seay dbec08f7dc When toggling the task list, record a track event. (https://github.com/woocommerce/woocommerce-admin/pull/5049)
Fixes woocommerce/woocommerce-admin#4760
2020-08-28 15:59:33 +12:00
Jeff Stieler 5e7f2af61d Rename "profile" to "store details". (https://github.com/woocommerce/woocommerce-admin/pull/4965)
* Rename "profile" to "store details".

* Missed some /profiler links.

* Fix linter error.

* Store details => Setup Wizard.

* Rename task list item.
2020-08-27 08:10:23 -04:00
Bec Scott 550445e1a4 Add error logging to remote inbox notifications data source poller (https://github.com/woocommerce/woocommerce-admin/pull/4922)
* Add error logging to remote inbox notifications data source poller

* Change DataSourcePoller to use WC_Logger

* Remove test feed

* Tidy up log messages

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-08-27 15:47:37 +10:00
Sam Seay c884f96bf9 Add WooCommerce Mobile App Banner Ad for Android and iOS (https://github.com/woocommerce/woocommerce-admin/pull/5037)
Fixes woocommerce/woocommerce-admin#4654 

The feature calls for a mobile app ad banner to be displayed to users on mobile devices.

Based on the discussion in woocommerce/woocommerce-admin#4654 this implements the following:

1. [an iOS Smart App Banner](https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/PromotingAppswithAppBanners/PromotingAppswithAppBanners.html). This banner is a meta tag that is generated in PHP. It will only display on iOS devices. One note about this: **This tag is not directly trackable like the implemented Android banner. If we would like to track its success then I believe [these instructions are relevant](https://stackoverflow.com/questions/12906502/is-it-possible-to-track-click-throughs-from-iphone-smart-banner/20422334woocommerce/woocommerce-admin#20422334)**. 

2. A mobile app banner ad that **only displays on Android** and only displays at the `738px` breakpoint specified in the issue. To only display this banner ad on Android, we use basic checking of the user agent string. I weighed this up against other approaches and for this kind of niche use case a simple UA string check is (imho) still the best way to do this.

3. The banner ad makes use of user preferences to retain a per user setting that determines if that user has dismissed the Android banner. We don't/can't do anything like this for the iOS Smart App Banner (but in theory we shouldn't need to).
2020-08-27 13:46:53 +12:00
Bec Scott 0bf9ef371c Add new note: Selling online courses (https://github.com/woocommerce/woocommerce-admin/pull/5036)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-08-26 14:11:14 +10:00
Joshua T Flowers d4dd74e44a Remove onboarding feature flag and a/b testing (https://github.com/woocommerce/woocommerce-admin/pull/4999)
* Remove store page creation during new onboarding experience

* Remove onboarding feature flag

* Add back in onboarding feature flag to enable feature loading
2020-08-25 00:51:41 +03:00
Jeff Stieler eea63f602f Refactor task list status to onboarding data store. (https://github.com/woocommerce/woocommerce-admin/pull/4998)
* Add onboarding task status API endpoint.

* Add task status to onboarding data store.

* Update appearance task to use onboarding store for status info.

* Update main task list component to use onboarding data store for status info.

* Clear onboarding status info "cache" when setting shipping rates in the task list.

* Clear onboarding status info "cache" when enabling payment methods from the task list.

* Fix onboarding data store reducer tests.

* Clean up redundant code, nest task status settings under new key for hydration.

* Include tasks status in onboarding data hydration.

* Update tax task to use onboarding data store for status info.

* Avoid continually rehydrating onboarding data.

* Refactor payment task method retrieval to use onboarding data store.

* Fix bug with disappearing appearance tax steps.

* Update appearance completion faster by using hydrated onboarding value.

* Avoid PHP warnings when onboarding isn't enabled.

* Remove unused imports.
2020-08-24 09:20:57 -04:00
Joshua T Flowers 07b3c87f6b Add filter to allow modification of report columns (https://github.com/woocommerce/woocommerce-admin/pull/4984)
* Add filter to allow modification of report columns

* Check for report columns existence before filtering
2020-08-24 14:18:48 +03:00
Daniel Bitzer d8098d6fd7 Adds `@woocommerce/tracks` package (https://github.com/woocommerce/woocommerce-admin/pull/5017)
* Add @woocommerce/tracks package.json

* Add @woocommerce/tracks .npmrc

* Move lib/tracks.js in to tracks package

* Add tracks package debug dependency

* Add readme for tracks package

* Add changelog for tracks package

* Add info about debugging and opt-ins to tracks package readme

* Load tracks package script

* Add tracks package to packages readme

* Add tracks package to webpack config

* Add tracks package external to starter-pack

* Replace lib/tracks uses with @woocommerce/tracks

* Update package-lock.json
2020-08-20 14:29:52 +09:30
Jeff Stieler c16da34c30 Migrate export data store to wp.data (https://github.com/woocommerce/woocommerce-admin/pull/4958)
* Add export ID to success response and fix typos in endpoint schema.

* Initial export data store.

Allows for starting export, but not checking progress.

* Use new export data store in analytics report tables.

* Remove defunct report export wc-api files.

* Apply review feedback from another wp.data PR.

* Use getResourceName() util for more DRYness.

* Fix linter error.

* Add response status code to fetchWithHeaders control.

* Use HTTP status rather than response body to determine success.

* Fix tests.

* Remove unused import from actions.
2020-08-18 09:04:58 -04:00
Bec Scott 4e8ca09a3a Remove composite products from onboarding (https://github.com/woocommerce/woocommerce-admin/pull/4996)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-08-18 10:56:36 +10:00
Paul Sealock 5cbd4ed521 Documentation: Fix Add Report (https://github.com/woocommerce/woocommerce-admin/pull/4991)
* Update readme

* better
2020-08-18 09:45:21 +12:00
Manos Psychogyiopoulos a236f6d79f Add 'woocommerce_analytics_update_order_stats_data' filter (https://github.com/woocommerce/woocommerce-admin/pull/4934) 2020-08-14 15:59:29 +03:00
Jeff Stieler 025860c879 Delete associated customer analytics data when user is deleted from WordPress. (https://github.com/woocommerce/woocommerce-admin/pull/4977)
* Delete customer lookup rows when their corresponding user is deleted.

* Asynchronously delete users from customer lookup table.

* Add user deletion test case.

* Fix user deletion test.
2020-08-13 09:23:51 -04:00
Joshua T Flowers 483055dd75 Migrate notes data store to wp data (https://github.com/woocommerce/woocommerce-admin/pull/4943)
* Add initial notes data store using wp data

* Cache individual note queries

* Update notes undo endpoint to batch update endpoint

* Allow batch updates of notes

* Add requesting state

* Update components to use new note store

* Remove old notes store from wc-api

* Get note IDs from json and validate data in REST API

* Add an updating state to each note

* Throw errors in actions so they can be caught by client

* Add store reducer tests

* Handle PR feedback

* Fix failing tests

* Don't set inbox panel visibility while batch updating

* Move woocommerce block to external dependencies
2020-08-13 16:23:38 +03:00
Joshua T Flowers 260843c528 Fix industry args type in REST API (https://github.com/woocommerce/woocommerce-admin/pull/4974)
* Fix industry args type in REST API

* Only allow object for industry param

* Fix onboarding industry object shape in test case.

Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>
2020-08-12 15:57:55 +03:00
Claudio Sanches 073a3f706f Fix usage of "package" tag in file headers (https://github.com/woocommerce/woocommerce-admin/pull/4940)
* Don't require package tag or file comment inside src

* Removed package tag from files inside src

* Fixed tests directory in phpcs.xml.dist

* Fixed usage of package tag

* Fixed new classes

* Fixed coding standards

* Fixed coding standards in tests
2020-08-11 16:18:47 -03:00
Joshua T Flowers 92a8a58d2b Remove payment task actions (https://github.com/woocommerce/woocommerce-admin/pull/4917)
* Remove task list payment actions

* Check that the payments task has been marked complete in checkout note

* Track payments completion via enabled gateways

* Allow toggling to unfinish task when no payments enabled
2020-08-11 15:20:48 +03:00
Bec Scott b511469dc8 Automatically add free local shipping zone on completing the profiler (https://github.com/woocommerce/woocommerce-admin/pull/4857)
* Set up profile completed action

* Stub out the steps

* Only run if Jetpack is installed and connected

* Return if WCS isn't active

* Return unless physical is selected as a product type

* Return if there are existing shipping zones

* Shipping labels are enabled when WCS is installed

* Set up free local shipping

* Comment for the profiler complete action

* By default there is no international/catch-all shipping method set up

* Add review shipping settings note

* Record tracks event

* Fix logic

* Add unit test around setting up free local shipping

* Rename some functions

* Use countries service to get all countries

* Drop duplicated possibly_add_note()

* Check the old value when determining if the profiler has completed

* Fall back to country code if country name doesn't exist

* Use admin_url fn to build up URL

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-08-11 14:39:25 +10:00
Bec Scott 028e1fcab4 Post-release, update readme, bump versions to 1.6.0-dev (https://github.com/woocommerce/woocommerce-admin/pull/4950)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-08-11 11:05:03 +10:00
Timmy Crawford 2b7fddb16b Setup Payments: Add eWAY for AU/NZ Stores. (https://github.com/woocommerce/woocommerce-admin/pull/4947)
* Setup Payments: Add eWAY for AU/NZ Stores."

* Fix typo
2020-08-06 17:09:10 -07:00
Jeff Stieler 17d79a2d67 Load chunked translation data from language packs. (https://github.com/woocommerce/woocommerce-admin/pull/4937)
* Combine all JSON translation chunks into one file.

* Use WP_Filesystem.

* Handle core WooCommerce text domain when running as a package.
2020-08-05 15:29:05 -04:00
Jeff Stieler 239b6c95b8 Fix use of Jetpack autoloader. (https://github.com/woocommerce/woocommerce-admin/pull/4920)
* Require the correct autoloader file.

* Include composer file when updating version numbers.

* Add notice for development builds not using JETPACK_AUTOLOAD_DEV.

* Only bump version numbers when preparing a release.
2020-08-04 13:13:48 +12:00
Jeff Stieler 53031f3fae OBW: fix product types step bugs (https://github.com/woocommerce/woocommerce-admin/pull/4900)
* OBW: fix tooltip display on product types step.

* Restore physical products as default.

* Slight improvement to screen reader text.
2020-07-30 12:14:18 -04:00
Jeff Stieler 6bcf6510bd Fix build check for core. (https://github.com/woocommerce/woocommerce-admin/pull/4867)
Core package doesn't have unminified JS.
2020-07-28 10:52:32 -04:00
Jeff Stieler fe1e422039 Fix PHP warning when preloading scripts on WPEngine (https://github.com/woocommerce/woocommerce-admin/pull/4856)
* Handle missing script dependencies when preloading.

* Updated terminology.
2020-07-23 15:02:31 -04:00
Jeff Stieler cc8b7982a3 Fix child theme upload error (https://github.com/woocommerce/woocommerce-admin/pull/4852)
* Match method signature to parent class.

* Fix fatal error when installing a child theme.

* Fix undefined property notice.
2020-07-23 10:36:46 -04:00
Joshua T Flowers 7f9c5ae1d8 Register wca pages with wc navigation (https://github.com/woocommerce/woocommerce-admin/pull/4850) 2020-07-23 12:01:45 +03:00
Fernando 88a83e4d84 Remove item "profiler" from the menu (https://github.com/woocommerce/woocommerce-admin/pull/4851)
* Lint detail solved

This commit resolves a small lint warning in the file Loader.php

* Removed "profiler" from menu

This commit removes the item "profiler" from the menu.

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-07-22 15:24:33 -03:00
Fernando ba12049b79 New notification: Don't forget to test your checkout (https://github.com/woocommerce/woocommerce-admin/pull/4805)
* Added Test Checkout note

This commit adds a note to test the checkout process

# Conflicts:
#	src/Events.php
#	src/FeaturePlugin.php

* Replaced method "site_url" with "wc_get_page_permalink"

* Removed products with state draft verifcation from "check_task_completion"

This commit modifies the code to not set the products task list item as done when they have state draft.

* Added published date control

This commit adds a product published date control to the note

* Half-hour calculation changed

* Typo error corrected

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-07-22 15:24:03 -03:00
Bec Scott 6ac2a5f74f Update versions (https://github.com/woocommerce/woocommerce-admin/pull/4846)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-07-22 16:20:23 +10:00
Bec Scott a82d359a5e Include activeTheme onboarding setting if the task list is shown (https://github.com/woocommerce/woocommerce-admin/pull/4834)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-07-22 09:55:25 +10:00
Ayub Adiputra e2d41ea718 Fix non-lowercase theme activation issue (https://github.com/woocommerce/woocommerce-admin/pull/4393) (https://github.com/woocommerce/woocommerce-admin/pull/4706)
Use sanitize_text_field instead of sanitize_title_with_dashes to clean up the theme name during theme activation and installation. Remove another sanitize_title because it also need to allow non-lowercase slug as well. Use the sanitized theme name as slug for:
- Checking whether current theme is allowed to activate
- Checking whether current theme is one of installed theme
- Slug of theme on Onboarding::get_theme_data() method.
2020-07-21 13:53:33 -07:00
Joshua T Flowers 3862223149 Update profiler reference links and loading state (https://github.com/woocommerce/woocommerce-admin/pull/4828)
* Update button to revisit the profiler

* Hide the wp admin UI when loading the profiler route
2020-07-21 13:39:53 -07:00
Bec Scott 551dfe1f0c Pills and tooltips in product step of OBW (https://github.com/woocommerce/woocommerce-admin/pull/4707)
* Add monthly product prices to OBW

* Remove description for physical and download products

* Use pills in product selection step of OBW

* Add missing translation wrapper, also convert some spaces to tabs

* Add pill to changelog

* Change pills to medium gray text and border

* Make everything line up correctly on smaller viewports

* Get the styles closer to the design

* Breakpoint to set font size to 11px

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-07-21 14:27:32 +10:00
Jeff Stieler 7b4f825bc7 Fix PHP Fatals from Notes DataStore when columns are missing. (https://github.com/woocommerce/woocommerce-admin/pull/4831)
* Handle admin note data read exceptions.

* Add test for notes datastore encountering an exception in read().

* Fix WC_Admin_notes::get_note() helper.

* Throw exception from WC_Admin_Note class instead.

Mimicking WC_Order, etc.

* Use helper method to retrieve existing notes.

* Use self for static calls.

* Check for valid note before updating in WCPay note class.

* Don't specify columns when fetching notes from the database.

* Fix deprecated function call.

Avoid calling deprecated set_icon() when passing data to WC_Admin_Note constructor.
2020-07-20 11:28:00 -07:00
Jeff Stieler 289d626551 Fix missing version update callback and add test (https://github.com/woocommerce/woocommerce-admin/pull/4816)
* Add test for plugin version DB update callbacks.

* Add 1.4.0 DB version update callback.
2020-07-16 12:08:40 -04:00
Fernando a7a59583c9 Added skip profiler functionality (https://github.com/woocommerce/woocommerce-admin/pull/4721)
* Added skip profiler functionality

This commit adds the skip profiler functionality, leaving the Home screen `Store details` as incomplete.

# Conflicts:
#	client/task-list/tasks.js

* Unit tests repaiared

* Added OBW page

This commit makes the necessary changes to add an OBW page

# Conflicts:
#	client/profile-wizard/index.js

* Event name changed

This commit renames the event name we were recording since it was wrong.

* Redirection modified

This commit modifies the way we do redirection

# Conflicts:
#	client/profile-wizard/index.js

* Removed `profiler` feature flag

* Removed `profiler` feature flag

This commit removes the `profiler` feature flag

* Added error handling for `updateProfileItems`

This commit adds error handling for the method `updateProfileItems`

* Update client/profile-wizard/index.js

Co-authored-by: Matt Sherman <matt.sherman@automattic.com>

* Removed "throw" from "then"

* Update client/dashboard/index.js

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>

* Update client/profile-wizard/index.js

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>

* Modified redirection URL

This commit modifies the redirection URL.

# Conflicts:
#	client/task-list/tasks.js

# Conflicts:
#	client/profile-wizard/index.js

* Removed the variable "lastStep" and the related logic.

* Removed change of state for variable "skipped"

* Added error trowing to onboarding actions

This commit adds error trowing to onboarding actions

* Removed response handling for `updateProfileItems`

* Added default value for "profileItems" in Homescreen and Dashboard

* Removed `step` from OnboardingProfile and test

This commit removes the `step` from OnboardingProfile.php and from tests

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
Co-authored-by: Matt Sherman <matt.sherman@automattic.com>
Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2020-07-16 12:17:10 -03:00
Jeff Stieler 973335f5d0 Allow Jetpack plugin to be manipulated via API from the home screen. (https://github.com/woocommerce/woocommerce-admin/pull/4817)
* Allow Jetpack plugin to be manipulated via API from the home screen.

Fixes issue where Jetpack's installation status wasn't visible if the OBW was skipped.

* Remove incorrect arguments from add_filter() call.
2020-07-15 15:39:03 -04:00
Timmy Crawford 946f701523 Setup Checklist: Fix Homepage Template (https://github.com/woocommerce/woocommerce-admin/pull/4807)
* Onboarding: Fix Homepage Template.

* Update product categories short code usage.
2020-07-15 09:20:47 -07:00
Jason Conroy c8de6b97be Add WooCommerce Admin Facebook Marketing Expert Note Provider. (https://github.com/woocommerce/woocommerce-admin/pull/4787)
* Add WooCommerce Admin Facebook Marketing Expert Note Provider.

* Fix number of orders and move cheaper check to be first

* Update title

* Update note title and copy

* Adjust orders_last_month check

* Return ids to speed up query

* Use PluginsHelper
2020-07-15 15:45:20 +09:30
Bec Scott 480362ca29 Admin note to install other payment providers (https://github.com/woocommerce/woocommerce-admin/pull/4795)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-07-15 12:09:49 +10:00
Fernando 6c4b78f899 Changed logic of "Set up payments" reminder (https://github.com/woocommerce/woocommerce-admin/pull/4792)
* Removed "woocommerce_task_list_payments" from note.

This commit removes the use of "woocommerce_task_list_payments" from the note "Set up payments"

* Removed task list check

This commit removes an out of date check we were doing to show the note

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-07-14 18:21:43 -03:00
Timmy Crawford 2ebfa828b7 Post-Release: Sync readme changelog, bump versions to 1.4.0-dev. (https://github.com/woocommerce/woocommerce-admin/pull/4780)
* Post-Release: Sync readme changelog, bump versions to 1.4.0-dev.

* Adding in missing changelog item.

* readme updates
2020-07-14 07:24:52 -07:00
Joshua T Flowers 49a0a9f3a2 Add option to dismiss tasks (https://github.com/woocommerce/woocommerce-admin/pull/4733)
* Add dismiss button as task list item option

* Add option to undo task dismissal

* Record modal dismissal event

* Add transition animation to list items

* Use key for list items instead of index

* Remove dismissed tasks on recompleting profiler steps
2020-07-14 13:46:25 +03:00
Bec Scott ceeac5b943 Readme for remote inbox notifications (https://github.com/woocommerce/woocommerce-admin/pull/4767)
* Readme for remote inbox notifications

* Document all of the rules

* Couple of tweaks

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-07-14 11:52:33 +10:00
Bec Scott 547f569b1c Add is_ecommerce rule (https://github.com/woocommerce/woocommerce-admin/pull/4773)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-07-14 11:40:20 +10:00
Bec Scott d4330181b4 Trigger a remote inbox notifications engine run when the OBW completes (https://github.com/woocommerce/woocommerce-admin/pull/4737)
* Trigger a remote inbox notifications engine run when the OBW completes

* Fix typo in state check

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-07-09 14:50:20 +10:00
Bec Scott 0faca8a0d7 Make sure product count and revenue items are set in choose niche note (https://github.com/woocommerce/woocommerce-admin/pull/4764)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-07-09 14:49:40 +10:00
Paul Sealock d0460c2f08 Variation Names: Allow long names to be shown (https://github.com/woocommerce/woocommerce-admin/pull/4715) 2020-07-08 15:25:51 +12:00
Bec Scott 3e79e973ab Toggle the “Physical products” checkbox on by default (https://github.com/woocommerce/woocommerce-admin/pull/4702)
* Toggle the “Physical products” checkbox on by default

* change 'preselect' to 'default'

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-07-08 12:14:57 +10:00
Bec Scott 643ca9b6fb Update "Deactivate old WCA version" note to be informational (https://github.com/woocommerce/woocommerce-admin/pull/4645)
* Install task to update selected notes if they need to be changed

* Add comment for filter

* Add some extra comments to explain things a little better

* Undo my implementation of modifying notes

* Add a SQL script to update deactivate plugin note type

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-07-08 10:15:00 +10:00
Timmy Crawford c0e1e441b0 REST API: Add support for legacy public function install_plugin. (https://github.com/woocommerce/woocommerce-admin/pull/4713)
* Add support for legacy public function install_plugin.

* Check for permissions on note action to install plugin.
2020-07-06 14:39:24 -07:00