Commit Graph

318 Commits

Author SHA1 Message Date
Waclaw Jacek 4c17776815 Throw custom exception in NoteTraits if notes are disabled (https://github.com/woocommerce/woocommerce-admin/pull/6771)
A custom exception `NotesUnavailableException` will be thrown on attempts to load the "admin-note" data store using the `Notes::load_data_store()` method introduced in this PR.

All calls to `\WC_Data_Store::load( 'admin-note' )` were replaced with calls to the above method.
2021-04-26 23:57:39 +02:00
Joshua T Flowers 7bed3d01e8 Try: Use rule processing for remote payment methods (https://github.com/woocommerce/woocommerce-admin/pull/6830)
* Add initial remote payment method feature

* Add onboarding payments REST endpoint

* Localize payment payment methods prior to storing

* Delete the specs transient when locale is switched

* Add changelog entry
2021-04-26 16:19:41 -04:00
louwie17 3ff1e1375e Update E2E config to support screenshots on test failure (https://github.com/woocommerce/woocommerce-admin/pull/6858)
* Add login page wait script for e2e tests

* Re-navigate to login page, if initial selector does not exist

* Add screenshot if login page did not render

* Add screenshot code, and screenshot artifacts to GH action

* Update screenshot logic for login

* Update artifact task

* Update upload artifact workflow

* Update jest config to make sure the screenshots work on test failures

* Remove old screenshot code

* Add screenshots to daily e2e tests as well incase of failure

* Add changelog
2021-04-26 13:41:38 -03:00
Tomek Wytrębowicz d6a126c301 Change `import-wp-css-storybook.sh`'s shebang to portable bash. (https://github.com/woocommerce/woocommerce-admin/pull/6875)
Fixes https://github.com/woocommerce/woocommerce-admin/issues/6874
2021-04-26 12:05:41 +02:00
Paul Sealock 562af3eedc SlotFill: Remove Navigation's context (https://github.com/woocommerce/woocommerce-admin/pull/6832)
* Use same wc-admin slotFill context

* changelog
2021-04-23 15:44:54 +12:00
Jeff Stieler ad67df0658 Move CES action dispatch to report filter configs. (https://github.com/woocommerce/woocommerce-admin/pull/6847)
* Move CES action dispatch to report filter configs.

Makes the click handler attachment more resilient to 3PD filter usage.

* Add changelog entry.
2021-04-22 16:06:46 -04:00
louwie17 4141e5b59c Deleted and re-generated package lock to fix packages (https://github.com/woocommerce/woocommerce-admin/pull/6843)
* Deleted and re-generated package lock to fix packages

* Add changelog

* Add sleep after docker:up
2021-04-22 12:18:15 -03:00
Moon 9fe84fbc3c Disable the continue btn when plugins are being installed/activated (https://github.com/woocommerce/woocommerce-admin/pull/6838)
* Disable btn when plugins are being installed
2021-04-21 19:20:38 -07:00
Moon 6846036594 Convert date to timestamp before passing to set_date_prop to persist … (https://github.com/woocommerce/woocommerce-admin/pull/6795)
* Convert date to timestamp before passing to set_date_prop to persist the correct timezone
2021-04-20 17:00:30 -07:00
louwie17 be7dd2dd5e Add recommended payment methods (https://github.com/woocommerce/woocommerce-admin/pull/6760)
* Add initial payment recommendations code for the payments settings

* Added request data for the recommended payments

* Some styling updates and make sure it does not show when marketplace suggestions is disabled

* Update url

* Update comment in php class

* Add tests

* Fix lint errors

* Remove unnecessary type

* Fix lint error

* Fix broken test

* Convert plugin package to typescript

* Fix lint errors

* Add changelog

* Add support for locale-data

* Fix track name

* Fix up the tests

* Fix lint errors

* Address PR feedback

* Add tests for option hydration

* Make types more robust in plugins reducer

* Made use of SlotFill component instead of page registry and router

* Removed console log, and fixed types

* Add newer version of i18n to data package, for newer types

* Make the request to WooCommerce.com more restrictive

* Fix path of import

* Update PHP with suggested changes

* Remove SlotFill with applyFilters

* Update copy and PR feedback

* Update package lock

* Updated package lock

* Fix the package lock

* Added dot, and some minor styling changes

* Add test instructions
2021-04-20 14:17:19 -03:00
Hsing-yu Flowers 15897e1bbb Update the checked input radio button margin style (https://github.com/woocommerce/woocommerce-admin/pull/6701)
* Add component RadioControl and remove List
2021-04-20 12:22:10 -04:00
Timmy Crawford 0163e93852 Sort unreleased readme for ease of consumption. (https://github.com/woocommerce/woocommerce-admin/pull/6827)
* Sort unreleased readme for ease of consumption.

* Resolve merge conflict
2021-04-19 14:15:44 -07:00
Fernando e88b0d749c Remove PayPal for India (https://github.com/woocommerce/woocommerce-admin/pull/6828)
* Remove PayPal for India

This commit removes PayPal payment option for India

* Added changelog

* Added testing instructions

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-04-19 16:15:25 -03:00
Fernando b8a7f9a7ab Add event recording to start of gateway connections (https://github.com/woocommerce/woocommerce-admin/pull/6801)
* Added PayPal and Stripe start connection tracking

This commit adds PayPal and Stripe start connection tracking

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

* Added Square connection

* Added chagelog

# Conflicts:
#	readme.txt

* Added recorded event "wcadmin_payments_task_stepper_view"

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

* Added event recording to eWAY connection flow

* Added event recording to generic connections

* Modified changelog

# Conflicts:
#	readme.txt

* Moved event recording line

* Added testing instructions

* Fixed method "recordConnectStartEvent"

* Fixed event "payments_task_stepper_view"

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-04-19 08:53:14 -03:00
louwie17 28d4c03ae0 Add try catch around JSON parse of users meta values (https://github.com/woocommerce/woocommerce-admin/pull/6819)
* Add try catch around JSON parse of users meta values

* Add changelog
2021-04-16 17:31:59 -03:00
Joshua T Flowers 89c19a4d20 Try: Use the store timezone to make time data requests (https://github.com/woocommerce/woocommerce-admin/pull/6632)
* Add store timezone string to preloaded settings

* Get current timezone periods based on store timezone

* Use current moment object to append timestamps

* Add changelog and testing instructions

* Consolidate timezone logic into getStoreCurrentTime

* Use const for default datetime format

* Use store moment converted via tz

* Make testing instructions more clear

* Add information to date readme about timezones

* Add tests around getStoreTimeZoneMoment
2021-04-16 16:13:39 -04:00
Joshua T Flowers 8f018fc518 Add plugin installer to allow installation of plugins via URL (https://github.com/woocommerce/woocommerce-admin/pull/6805)
* Allow any plugin to be installed or activated

* Add PluginInstaller class

* Redirect to referring page if one exists

* Store message and show after redirect

* Add changelog and testing instructions
2021-04-16 15:45:43 -04:00
Jeff Stieler 9e05116326 Detect missed DB version number updates and fix them. (https://github.com/woocommerce/woocommerce-admin/pull/6818)
* Detect missed DB version number updates and fix them.

* Add changelog entry.
2021-04-16 15:01:04 -04:00
Jeff Stieler 7089fa2b56 Show/hide (extension) task list and move completed tasks to bottom (https://github.com/woocommerce/woocommerce-admin/pull/6792)
* Rename extensions task list card.

* Remove unused function parameter.

* Fix extended task list view tracking event name.

* Move completed extension tasks to the end of the list.

* Add extension task list toggle to display options.

* Avoid toggle width changing based on status.

* Remove redundant prefix from event name.

* Add changelog entry.

* Handle an empty extension task list.

* Only show extension task list display options when tasks have been filtered in.
2021-04-16 09:29:54 -04:00
Fernando 794d177df7 Pause inbox message "GivingFeedbackNotes" (https://github.com/woocommerce/woocommerce-admin/pull/6802)
* Paused inbox message "GivingFeedbackNotes"

This commit pauses the inbox message "GivingFeedbackNotes"

* Added changelog

# Conflicts:
#	readme.txt

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-04-16 09:44:57 -03:00
Adrian Duffell 6434ffb9c8 Add nonce support to note actions (https://github.com/woocommerce/woocommerce-admin/pull/6726)
* Add database columns

* Add support for nonces in note actions

* Add test for nonces in note actions

* Fix db values should default to null

* Fix a bug where URLs had encoded ampersands

* Update variable naming for clarity

* Add throwing an exception when note name not found

* Add tests for nonces in the datastore

* Add changelog

* Fix default paramater name

* Add changelog

* Revert "Add changelog"

This reverts commit f842bc58e4db66c8a497ca4f38d1b0294590192d.
2021-04-16 13:56:39 +08:00
Hsing-yu Flowers eb9baa06a3 Load the page controller functions file first to prevent fatal errors when disabling WooCommerce Admin (https://github.com/woocommerce/woocommerce-admin/pull/6710)
* Load the page controller functions file first to prevent fatal errors when disabling WooCommerce Admin

* Add changelog

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2021-04-16 09:59:44 +08:00
Joel Thiessen c31d694c45 Adding setup required indicator for non-configured payment methods (https://github.com/woocommerce/woocommerce-admin/pull/6811) 2021-04-15 15:29:15 -07:00
Joel Thiessen c0e95ba189 Update UI for Payment Task Screen (https://github.com/woocommerce/woocommerce-admin/pull/6766) 2021-04-15 11:42:31 -07:00
louwie17 53011ceb27 Update onboarding logic setting task list to hidden (https://github.com/woocommerce/woocommerce-admin/pull/6803)
* Created Admin helper for helper functions

* Only set task_list to hidden on plugin update when store is less then day old

* Add onboarding skipped as well

* Add changelog
2021-04-15 11:02:25 -03:00
Ismael Martín Alabarce 664694e165 Render optional children in summary number component (https://github.com/woocommerce/woocommerce-admin/pull/6748)
* WIP add details prop to summary number component. New optional prop to add additional information at the bottom.

* Update component readme and stories to include new prop

* Revert commits to use children instead of a new prop

* Render optional summary number component children

* Typo fix, doc improvement and add entry to changelog

* Add readme.txt entry
2021-04-15 08:49:35 +02:00
Paul Sealock 7ab756b76c Try ExPlat: Add A/A test (https://github.com/woocommerce/woocommerce-admin/pull/6669)
* Add basic ExPlat initialization

* add tsx support
2021-04-15 13:32:46 +12:00
Joshua T Flowers 55add24ef3 Add data source filter to remote inbox notification system (https://github.com/woocommerce/woocommerce-admin/pull/6794)
* Add data source filter to remote inbox notification system

* Add changelog entry
2021-04-14 15:27:04 -04:00
Joshua T Flowers eb6186a29c Refactor payments to allow management of methods (https://github.com/woocommerce/woocommerce-admin/pull/6786)
* Add manage button for enabled and configured payments

* Enable methods only instead of toggling

* Update payment methods location

* Move ribbon to separate component

* Move setup container to separate component

* Move payment action to separate component

* Refactor payments to functional component

* Fix missing action props

* Fix broken onsetup callback

* Update payment method keys to match management pages

* Add changelog and testing instructions

* Revert key changes in favor of manageUrl

* Update e2e tests for payments
2021-04-14 15:26:50 -04:00
louwie17 715f4806f5 Redirect to shipping settings page when task is completed (https://github.com/woocommerce/woocommerce-admin/pull/6791)
* Redirect to shipping settings page when shipping task after task is completed

* Add changelog and testing instructions
2021-04-13 16:49:29 -03:00
Hsing-yu Flowers 3d0e00ed0b Make pagination buttons height and width consistent (https://github.com/woocommerce/woocommerce-admin/pull/6725)
* Make pagination buttons height and width consistent

* Add changelog
2021-04-13 10:30:56 -04:00
Jeff Stieler d819373057 Avoid updating customer info synchronously when "last active" is modified. (https://github.com/woocommerce/woocommerce-admin/pull/6765)
* Schedule (async) customer update when last active date is modified.

* Add test case for scheduled customer update.

* Add changelog entry.
2021-04-12 10:17:02 -04:00
Ilyas Foo 157625018d Remove no-reply from inbox notification emails (https://github.com/woocommerce/woocommerce-admin/pull/6644)
* Add override headers in notification email class

* Update readme and testing instructions

* Fix formatting

* Remove testing instructions
2021-04-12 09:40:42 +08:00
Moon f5b1d44e8c Add settings_section event prop for CES (https://github.com/woocommerce/woocommerce-admin/pull/6762)
* Add settings_section event prop for CES

* Add changelog
2021-04-09 12:44:25 -07:00
louwie17 b29cd9a6c0 Add support for php8 unit tests (locally and in GH actions) (https://github.com/woocommerce/woocommerce-admin/pull/6678)
* Partial local version to run php8 unit tests

* Remove the post install scripts

* Remove tab

* Make sure woocommerce version contains patch number

* Remove unnecessary script

* Update bin settings and unit test script

* Remove phpunit binary

* Updated how php unit is being run

* Add specific phpunit version for php8

* Update bin phpunit composer.json

* Final cleanup of scripts

* Fix potential test where image is an object

* Move setting image below save

* Add changelog

* Do not convert obj/array to string for email_actions

* Remove some uses of tabs

* Set WP and WC version to minimum php 8 supported

* Remove unnecessary composer install within tests
2021-04-07 14:28:03 -03:00
Joel Thiessen 588776deb3 Fix persisted queries being lost when navigating to excluded page (such as Homescreen) (https://github.com/woocommerce/woocommerce-admin/pull/6614) 2021-04-02 14:35:31 -07:00
Joshua T Flowers 7d293499a8 Update choose niche note cta URL (https://github.com/woocommerce/woocommerce-admin/pull/6733)
* Update choose niche note cta URL

* Add changelog entry
2021-04-02 16:50:00 -04:00
Moon 58823341d3 Update WC Payments plugin copy (https://github.com/woocommerce/woocommerce-admin/pull/6734)
* Update WC Payments plugin copy

* Add changelog
2021-04-01 20:36:52 -07:00
Joshua T Flowers 2a0b29d9cd Update 2.2.0 release date (https://github.com/woocommerce/woocommerce-admin/pull/6721) 2021-04-01 17:04:28 -04:00
Hsing-yu Flowers 90f811f2dd Update folded header style (https://github.com/woocommerce/woocommerce-admin/pull/6724)
* Update folded header style

* Make header full width for smaller screen

* Add changelog
2021-04-01 14:42:32 +08:00
Moon d096710842 Fix variation bug with Products reports (https://github.com/woocommerce/woocommerce-admin/pull/6647)
* Update query param name

* Add changelog

* Fix typo
2021-03-30 12:06:28 -07:00
Moon ac0d06406c Add track data for the preview site btn (https://github.com/woocommerce/woocommerce-admin/pull/6623)
* Add track data for the preview site btn

* Add changelog

* Remove testing instruction
2021-03-30 11:44:17 -07:00
Adrian Duffell a5e14e9fb2 Add TypeScript to CustomerFeedbackModal (https://github.com/woocommerce/woocommerce-admin/pull/6498)
* Add types

* Add type definitions for @wordpress/components

* Fix formatting

* Fix JSX return type

* Fix incorect type for rows

* Add null to return type for react component

* Add type definitions for @wordpress/components to main package

* Add changelog entry

* Remove TS filename from import

* Re-add @types/wordpress__components
2021-03-30 20:04:08 +08:00
Hsing-yu Flowers 4cbbd920cc Check active plugins before getting the PayPal onboarding status (https://github.com/woocommerce/woocommerce-admin/pull/6625)
* Check active plugins before get paypal onboarding status

* Add changelog and testing instructions

Co-authored-by: Bec Scott <me@becdetat.com>
2021-03-30 16:02:19 +10:00
Duc Nguyen e2043f9875 woocommerce/woocommerce-admin#6600 Add marginBottom setup wizard container (https://github.com/woocommerce/woocommerce-admin/pull/6620)
* woocommerce/woocommerce-admin#6600 Add marginBottom setup wizard container

* woocommerce/woocommerce-admin#6600 Add issue to changelog

* woocommerce/woocommerce-admin#6600 Correct changlog

Co-authored-by: Bec Scott <me@becdetat.com>
2021-03-30 14:49:31 +10:00
Fernando 74d1afaded Fixed event tracking for merchant email notes (https://github.com/woocommerce/woocommerce-admin/pull/6616)
* Modified MerchantEmailNotifications class

This commit modifies the class "MerchantEmailNotifications" in order to set the current user before the events tracking

# Conflicts:
#	src/Notes/MerchantEmailNotifications/MerchantEmailNotifications.php
#	src/Notes/MerchantEmailNotifications/NotificationEmail.php
#	tests/notes/class-wc-tests-email-notes.php

* Added changelog

# Conflicts:
#	readme.txt

* Added testing instructions

* Fixed changelog

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-03-29 16:00:23 -03:00
Adrian Duffell c97cf5deb9 Prepare Documentation for 2.1.4 release (https://github.com/woocommerce/woocommerce-admin/pull/6696) 2021-03-29 19:41:50 +08:00
Joshua T Flowers 94a2ad98fd Fix use of feature checks and remove deprecated method calls (https://github.com/woocommerce/woocommerce-admin/pull/6687)
* Update all references to of Loader::is_feature_enabled to use Feature class

* Check if feature is enabled instead of existence in deprecated feature method

* Add changelog entry
2021-03-26 13:00:05 -04:00
Joshua T Flowers 922522542e Check if features are currently being enabled (https://github.com/woocommerce/woocommerce-admin/pull/6688)
* Check if features are currently being enabled

* Add changelog entry
2021-03-26 12:19:38 -04:00
Paul Sealock a2996ff820 Build: Fix production script asset names (https://github.com/woocommerce/woocommerce-admin/pull/6681)
* Avoid  suffix on production build assets filenames

* check minification feature to determin filename

* changelog

* changelog typo
2021-03-26 16:04:34 +13:00
Ilyas Foo 6296952949 Improve AddFirstProduct email note contents (https://github.com/woocommerce/woocommerce-admin/pull/6617)
* Add capability for merchant email note personalization, improve AddFirstProduct email note contents.

* Update heading

* Update readme and testing instructions

* Remove old image, fix typo and improve translation
2021-03-26 09:26:07 +08:00
Joshua T Flowers fda793646e Next new novel navigation nudge note (https://github.com/woocommerce/woocommerce-admin/pull/6610)
* Add method to enable features

* Add the navigation nudge note

* Add changelog entry and testing instructions

* Update note name

* Fix renamed note class name

* Use redirect to settings instead of directly enabling note

* Remove old feature settings filter
2021-03-25 20:07:20 -04:00
Joshua T Flowers bc552e14eb Fix the activity panel toggle not closing on click (https://github.com/woocommerce/woocommerce-admin/pull/6679)
* Fix activity panel toggle across browsers

* Fix activity panel not full viewport height
2021-03-25 19:42:01 -04:00
Joshua T Flowers e96addd95c Bump main to 2.3.0-dev (https://github.com/woocommerce/woocommerce-admin/pull/6661) 2021-03-25 19:26:46 -04:00
Sam Seay 4e17af5734 Show management links when the task list is complete (even if its not hidden). (https://github.com/woocommerce/woocommerce-admin/pull/6657) 2021-03-26 10:54:24 +13:00
louwie17 e4a161fa44 Update the mercado option name, so it enables correctly (https://github.com/woocommerce/woocommerce-admin/pull/6677)
* Update the mercado option name, so it enables correctly

* Add changelog
2021-03-25 18:01:37 -03:00
louwie17 d5800c1a7a Check if value for contains comparison is an array (https://github.com/woocommerce/woocommerce-admin/pull/6645)
* Add warning and default to empty array for contains operation, when value is not array

* Add changelog

* Move option is array check and warning to the OptionRuleProcessor

* Added a check for the new_value as well, given we do the same for the old_value
2021-03-25 08:55:36 -03:00
louwie17 babb964ca7 Add IE and NZ to the selective bundle install list (https://github.com/woocommerce/woocommerce-admin/pull/6649)
* Add IE and NZ to the selective bundle install list

* Add changelog and testing instructions

* Remove testing instructions
2021-03-24 09:30:20 -03:00
Paul Sealock 8c1dcd949f Ensure script asset.php files are included in builds (https://github.com/woocommerce/woocommerce-admin/pull/6635)
* Ensure script asset.php files are included

* add changelog
2021-03-23 12:20:26 +13:00
Fernando 93cc81206e Payments task: include Mercado Pago (https://github.com/woocommerce/woocommerce-admin/pull/6572)
* Added Mercado Pago payment gateway

# Conflicts:
#	client/task-list/tasks/payments/index.js
#	client/task-list/tasks/payments/methods.js

* Added tests

* Added plugin's name to constants

* Added default url

* Modified card copy

* Modified copy

* Added changelog

# Conflicts:
#	readme.txt

* Added testing instructions

# Conflicts:
#	TESTING-INSTRUCTIONS.md

* Added "Local Partner" ribbon

* Using local image

* Fixed typo

* Fixed line duplication

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-03-22 15:57:43 -03:00
Moon 5c99f54828 Fix "Themes" step visibility bug in IE 11 (https://github.com/woocommerce/woocommerce-admin/pull/6578)
* Fix themes are not visible in IE 11
* Add CSS class for the first 40 card items
2021-03-22 10:01:53 -07:00
Moon 0ff7b208ff Set default value to array when op is 'contains' (https://github.com/woocommerce/woocommerce-admin/pull/6622)
* Set default value to array when op is contains
* Add changelog
2021-03-22 09:59:46 -07:00
David Levin 2b95eea771 Update contrast and hover / active colors for analytics dropdown buttons (https://github.com/woocommerce/woocommerce-admin/pull/6504)
* Update contrast and hover / active colors

* Update hover and active state of chevron using mask

* add test instructions and changelog entries

* Update readme.txt

Co-authored-by: David Levin <davidlevin@Davids-MacBook-Pro-2.local>
Co-authored-by: Dan Hauk <dan@danhauk.com>
Co-authored-by: Paul Sealock <psealock@gmail.com>
2021-03-22 20:56:15 +13:00
louwie17 193b5d7d71 Added paystack to payment methods for african countries (https://github.com/woocommerce/woocommerce-admin/pull/6579)
* Added paystack to payment methods for african countries

* Enforce the use of 'setMethodEnabledOption'

* Add changelog and test instructions
2021-03-18 17:30:17 -03:00
Joshua T Flowers 28a6622b3b Delete customer data on network user deletion (https://github.com/woocommerce/woocommerce-admin/pull/6574)
* Delete customer data on network user deletion

* Add changelog entry and testing instructions
2021-03-18 15:14:04 -04:00
Paul Sealock b7360d0d55 Add typescript to Nav utils (https://github.com/woocommerce/woocommerce-admin/pull/6477)
* Add typescript to nav utils--no-verify

* save

* progress

* fixup category

* better

* getting closer

* grrr

* appease the type gods

* move types to start of page

* Fixup addHistoryListener

* Add typescript to nav utils--no-verify

* save

* progress

* fixup category

* better

* fix tsconfig

* changelog

* add babel jest typescript preset for tests

* fix rebase issue

* PR feedabck

* update package-lock

* eslint fix
2021-03-18 16:38:38 +13:00
Sam Seay e0fcee518a Add tracking for the business step (https://github.com/woocommerce/woocommerce-admin/pull/6575) 2021-03-18 16:36:40 +13:00
louwie17 9b180db614 Add Typescript and page objects to E2E suite (https://github.com/woocommerce/woocommerce-admin/pull/6582)
* Initial playwright

* Updated e2e to use playwright and typescript

* Update set up environment and jest package

* Add changelog

* Add await to uncheck

* Fix formatting

* Revert jset back to ~24, as >25 runs slower, see facebook/jestwoocommerce/woocommerce-admin#9457

* Removed some unnecessary uses of waitForSelector

* Fix eslint issue

* Fix the e2e tests with latest updates

* Running most tests, with typescript now

* Fix any outstanding queries for the tests to work

* Update changelog

* Remove unnecessary jest version and unnecessary transform setting

* Fix test case broken after rebase

* Add fix to make e2e tests more robust

* Making sure dropdown value is correct

* Reove the wcpay condition for features number
2021-03-17 16:22:09 -03:00
Moon 350ffe3f32 Update insight inbox message and add no option (https://github.com/woocommerce/woocommerce-admin/pull/6555)
* Update insight inbox message and add no option

* Add changelog.
2021-03-17 02:14:47 -07:00
Moon fda300ff4f Improve WC Shipping & Tax logic (https://github.com/woocommerce/woocommerce-admin/pull/6547)
* Improve WC Shipping & Tax logic

* Add changelog

* Simplify return statement

* Add test for filtering selected extensions

* Fix broken test
2021-03-17 01:22:33 -07:00
Moon 6b3fe5c475 Adjust targeting store age: 2 - 5 days for the Add First Product note (https://github.com/woocommerce/woocommerce-admin/pull/6554)
* Adjust targeting store age: 2 - 5 days

* Add changelog

* Remove unnecessary comment
2021-03-16 23:33:07 -07:00
Paul Sealock 7c61e2bff9 Hook Reference: Automate a reference resource (https://github.com/woocommerce/woocommerce-admin/pull/6454)
* read sample doc

* npm cli

* work with arrays

* Its happening

* better naming

* cleanup

* moar cleanup

* new line

* better

* save

* fixup rebase error

* package lock update

* node 12 usage

* add changelog

* fancy logs

* update package lock

* changelog in right place
2021-03-17 13:27:26 +13:00
Lee Willis c8e4714c71 Loader::is_admin_page() throws fatal error if woocommerce_admin_disabled is true. (https://github.com/woocommerce/woocommerce-admin/pull/6563)
* Check for function before calling

* Add comment & changelog note

Co-authored-by: Lee Willis <lee@ademti-software.co.uk>
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2021-03-17 07:47:48 +08:00
Joshua T Flowers 4ad0d142e4 Refactor profile wizard benefits step and add tests (https://github.com/woocommerce/woocommerce-admin/pull/6583)
* Refactor benefits component to functional component

* Update to useSelect and useDispatch

* Use state to store installing state

* Separate benefits components

* Add missing translator comments

* Don't show benefits screen when already completed

* Add benefits step tests

* Add changelog entry and testing instructions
2021-03-16 13:27:15 -04:00
Sam Seay d55120bfb0 Add tracking for mail poet installs (https://github.com/woocommerce/woocommerce-admin/pull/6603) 2021-03-17 06:25:48 +13:00
Joshua T Flowers 84a9cfac87 Add filter to profile wizard steps (https://github.com/woocommerce/woocommerce-admin/pull/6564)
* Add filter to profile wizard steps

* Add changelog entry and testing instructions

* Make testing instructions easier
2021-03-16 12:58:31 -04:00
Joshua T Flowers 4d445350ea Close activity panel tabs by default and track (https://github.com/woocommerce/woocommerce-admin/pull/6566)
* Close activity panels by default and track shown

* Add task list shown data to tracks

* Add changelog and testing instructions

* Fire the panel tracks again when the task list is hidden
2021-03-15 20:34:20 -04:00
Hsing-yu Flowers be7d28d4bc Add customer name column to CSV export (https://github.com/woocommerce/woocommerce-admin/pull/6556)
* Add customer name column to CSV export

* Add changelog and testing instructions

* Handle PR feedback
2021-03-16 09:54:07 +10:00
Joshua T Flowers 3e90b8642a Update undefined task name properties for help panel tracks (https://github.com/woocommerce/woocommerce-admin/pull/6565)
* Update undefined task name properties for help panel tracks

* Add changelog entry and testing instructions
2021-03-15 19:44:53 -04:00
Adrian Duffell 326dabf559 Prepare Documentation for 2.1.3 release (https://github.com/woocommerce/woocommerce-admin/pull/6587)
* Update testing instructions

* Update Changelog
2021-03-15 10:46:51 +08:00
Hsing-yu Flowers 918d97f36d Add gross sales column to CSV export (https://github.com/woocommerce/woocommerce-admin/pull/6567) 2021-03-13 15:11:16 +13:00
Moon 3b26396ad9 Allow manager role to query options (https://github.com/woocommerce/woocommerce-admin/pull/6577)
* Give manager role permission for woocommerce_ces_tracks_queue and woocommerce_navigation_intro_modal_dismissed options

* Add changelog
2021-03-11 20:01:11 -08:00
Sam Seay e51e1401c5 Fix a bug where the JP connection flow would not activate (https://github.com/woocommerce/woocommerce-admin/pull/6521)
Fixes woocommerce/woocommerce-admin#6488

Changes.

* See the issue for the discussion, but we're changing the behaviour of triggering the connection flow as part of this. Before it was required that both wc-services and wc-admin were installed before triggering the flow.

* Also the plugins value was not being updated properly in the new flow, but plugins is not used in any useful way in the onboarding profile, so I have removed it completely. We now rely on the actual installed plugins to determine what is installed/activated.
2021-03-12 16:36:23 +13:00
Joshua T Flowers 828eccb20e Fix hidden menu title on smaller screens (https://github.com/woocommerce/woocommerce-admin/pull/6562)
* Fix hidden menu title on smaller screens

* Add changelog entry and testing instructions
2021-03-11 15:01:37 -05:00
Ilyas Foo a4701c8494 Add CES survey for adding product categories, tags, and attributes (https://github.com/woocommerce/woocommerce-admin/pull/6418)
* Add CES survey for adding product categories and tags

* Update readme and testing instructions

* Add CES survey for adding product attributes

* Change logic to use number of rows in tags table

* Replace addslashes with esc_js, use JS variables pagenow and adminpage
2021-03-11 18:52:54 +08:00
Ilyas Foo 5be293f5c8 Add CES survey for importing products (https://github.com/woocommerce/woocommerce-admin/pull/6419)
* Add CES survey for importing products

* Update readme and testing instructions
2021-03-11 17:55:59 +08:00
Ilyas Foo 6c097d7745 Add CES survey for search product, order, customer (https://github.com/woocommerce/woocommerce-admin/pull/6420)
* Add CES survey for search product, order, customer

* Update readme and testing instructions

* Add line feed

* Utilize get_current_screen
2021-03-11 17:35:57 +08:00
Ilyas Foo cab6a56378 Add Ireland to Square payment method (https://github.com/woocommerce/woocommerce-admin/pull/6559)
* Add Ireland country code to Square payment method

* Add testing instructions and changelog
2021-03-11 17:25:13 +08:00
Sam Seay 4ec75439c5 Remove rest API props from onboarding confirmed as no longer used. (https://github.com/woocommerce/woocommerce-admin/pull/6520) 2021-03-11 08:50:23 +13:00
Fernando 1267af3665 Business features step: include Mailpoet (https://github.com/woocommerce/woocommerce-admin/pull/6515)
* Added "MailPoet" option to new Business Details step

This commit adds "MailPoet" option to the new Business Details step

* Modified the Creative Mail copy

* Added changelog

* Added testing instructions

# Conflicts:
#	TESTING-INSTRUCTIONS.md

* Fixed testing instructions

* Fixed e2e tests

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-03-10 14:27:58 -03:00
louwie17 cb3c1e88e8 Add tilde (~) option for client root directory (https://github.com/woocommerce/woocommerce-admin/pull/6517)
* Add tilde option for client root directory

* Support tilde start as internal to fix lint issues

* Update baseUrl and paths so auto complete works correctly

* Add changelogs

* Add eslint support for webpack resolvers

Co-authored-by: Matt Sherman <matt@jam123.com>
2021-03-10 11:11:37 -04:00
Adrian Duffell 335f4a3ab5 Prepare Documentation for 2.1.2 release (https://github.com/woocommerce/woocommerce-admin/pull/6560)
* Add changelog entries

* Add testing instructions

* Add 2.0.x readme entries

* Add date to 2.1.x releases
2021-03-10 16:46:54 +08:00
Joshua T Flowers b7d4da5f45 Add nav intro modal tests (https://github.com/woocommerce/woocommerce-admin/pull/6518)
* Remove unnecessary tracking opt in check

* Add intro modal tests

* Add changelog entry

* Add extra check to see if modal has previously been dismissed
2021-03-09 17:53:24 -05:00
Joshua T Flowers f0e1e924c8 Use wc filter to get status tabs for tools category (https://github.com/woocommerce/woocommerce-admin/pull/6525)
* Use wc filter to get status tabs for tools category

* Add testing instructions and changelog entry

* Handle PR feedback
2021-03-09 17:41:54 -05:00
Adrian Duffell f1bac7d787 Add Guards to "Deactivate Plugin" Note Handlers (https://github.com/woocommerce/woocommerce-admin/pull/6532)
* Add packgage state check to deactivate-plugin note

* Add changelog entry

* Add method to check if notes are initialized

* Update guard to check if notes are initialized

* Add testing instructions
2021-03-09 17:33:17 -05:00
Fernando 0ebccd674b Fixed associated Order Number for refunds (https://github.com/woocommerce/woocommerce-admin/pull/6428)
* Fixed related orders problem

This commit fixes the related orders problem

* Fixed customer type query

* Fixed get_order_number filtering

* Added a default value to totalResults

This commit adds a default value to totalResults (in order to avoid errors)

* Added testing instructions

# Conflicts:
#	TESTING-INSTRUCTIONS.md

* Added changelog

# Conflicts:
#	readme.txt

* Fixed orders without products

* Added tests

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-03-09 15:57:50 -03:00
Fernando 5b368f4227 Store profiler: Business Details steps changes (https://github.com/woocommerce/woocommerce-admin/pull/6503)
* Added "MailPoet" option to Business Details step

This commit adds the "MailPoet" option to Business Details step in the OBW

* Fixed plugins order

* Creative Mail option toggled off by default

This commit toggles off the Creative Mail option by default

* Fixed copy and image URL

* Added mailpoet.png image

* Added changelog

# Conflicts:
#	readme.txt

* Added testing instructions

# Conflicts:
#	TESTING-INSTRUCTIONS.md

* Fixed key

* Fixed lint error

* Fixed testing instructions

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-03-09 15:00:34 -03:00
Joshua T Flowers 0e1b81b3c9 Remove mobile activity panel toggle (https://github.com/woocommerce/woocommerce-admin/pull/6539)
* Remove activity panel mobile sub nav

* Allow toggling of tab in focus outside

* Add changelog and testing instructions
2021-03-09 08:11:49 -05:00
Sam Seay 9225fce382 Fix a bug in useSettings that causes an infinite loop. (https://github.com/woocommerce/woocommerce-admin/pull/6540) 2021-03-09 12:44:11 +13:00
louwie17 14e2becc9a Update/6487 target audience of business feature step (https://github.com/woocommerce/woocommerce-admin/pull/6508)
* Prune out old bundle flow and expand range of new one

* Add feature flag, default to true

* Update feature flag, and updated WcPay logic

* Fix lint errors

* Add changelog

* Onlly show WC payments task if part of the business extensions

* Remove stray console log

* Update copy of WCPay card

* Add a couple more e2e tests

* Add await for click

* Add test instructions
2021-03-08 10:23:39 -04:00