Commit Graph

414 Commits

Author SHA1 Message Date
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
Joel Thiessen 0bccfc123f Adding client-side filter to navigation root url (https://github.com/woocommerce/woocommerce-admin/pull/6505) 2021-03-05 08:34:17 -08:00
Joshua T Flowers 198e3fb7ce Add navigation container tests (https://github.com/woocommerce/woocommerce-admin/pull/6464)
* Add changelog and testing instructions

* Set active level when matching a new item

* Add navigation container tests

* Add testing instructions and changelog

* Update testing instructions

* Fix up missing changelog entries after rebase

* Add in missing menu items from useSelect in tests
2021-03-05 09:35:53 -05:00
Moon 5dfe505f94 add preview site btn in personalize store task (https://github.com/woocommerce/woocommerce-admin/pull/6513)
* Add preview site btn on appearance task

* Add testing instructions and changelog

* Change letter case
2021-03-04 18:37:18 -08:00
Bec Scott 3c72bd4990 Add remote inbox notifications rule that triggers when WCA is updated (https://github.com/woocommerce/woocommerce-admin/pull/6040)
* Add remote inbox notifications rule that triggers when WCA is updated

* Add changlog entry

* Note that `plugin_version` should be used to check the WCA version
2021-03-05 10:44:54 +10:00
Bec Scott 46d4a01791 Remove Mollie promo note on install (https://github.com/woocommerce/woocommerce-admin/pull/6510)
* Remove Mollie promo note on install

* Test instructions and changelog
2021-03-05 10:16:17 +10:00
Joshua T Flowers d5b4c432e0 Add nav header component tests (https://github.com/woocommerce/woocommerce-admin/pull/6509)
* Add nav header component tests

* Add changelog
2021-03-04 16:13:11 -05:00
Fernando a95af87948 Added warning when WC-Admin is active but not being used (https://github.com/woocommerce/woocommerce-admin/pull/6453)
* Added warning when WC-Admin is active but not being used

This commit adds a warning when WC-Admin is active but not being used

* Fixed copy

* Added changelog

# Conflicts:
#	readme.txt

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-03-04 13:07:47 -03:00
Joshua T Flowers 5f9e4f3164 Add legacy report items to new navigation (https://github.com/woocommerce/woocommerce-admin/pull/6507)
* Add legacy report items

* Hide nav tabs on report pages

* Add testing instructions and changelog entry
2021-03-04 10:45:12 -05:00
Joshua T Flowers 40a86daf2f Remove active item from navigation store (https://github.com/woocommerce/woocommerce-admin/pull/6486)
* Remove active item from navigation store

* Add changelog entry
2021-03-03 16:57:00 -05:00
Joshua T Flowers 7a20e582a3 Add initial tests for navigation Menu class (https://github.com/woocommerce/woocommerce-admin/pull/6492)
* Add initial tests for navigation Menu class

* Add changelog entry
2021-03-03 08:09:33 -05:00
Sam Seay bb821a76e9 Add a back button to the Header when the task list is displayed. (https://github.com/woocommerce/woocommerce-admin/pull/6397) 2021-03-03 13:05:08 +13:00
Sam Seay 7229948cd1 Add a new revenue option, 'rather not say' (https://github.com/woocommerce/woocommerce-admin/pull/6475) 2021-03-03 11:59:18 +13:00
Moon 2cbf73b6a4 Add docker setup using WP-ENV (https://github.com/woocommerce/woocommerce-admin/pull/6448)
* Add docker setup using WP-ENV

* Add ALTERNATE_WP_CRON config to avoid cron issues

* Add changelog

* Update README

* Added HOWTOs section
2021-03-02 13:13:21 -08:00
Joshua T Flowers 8a0ba82e6f Add nav favorite button tests (https://github.com/woocommerce/woocommerce-admin/pull/6446)
* Add nav favorite button tests

* Add changelog entry
2021-03-02 11:19:31 -05:00
Joshua T Flowers c71d64a937 Fix double prefixing of navigation URLs (https://github.com/woocommerce/woocommerce-admin/pull/6460)
* Fix double prefixing of navigation URLs

* Add changelog and testing instructions
2021-03-02 11:18:48 -05:00
Joshua T Flowers a4785b7c2a Add navigation favorites tests (https://github.com/woocommerce/woocommerce-admin/pull/6409)
* Add navigation favorites tests

* Fix copy pasta

* Fix test comment

* Add changelog entry
2021-03-02 10:15:53 -05:00
David Levin f00721fa3e Fix summary number style regression on analytics reports (https://github.com/woocommerce/woocommerce-admin/pull/5913)
* Update summary number styles

* Add changelog

* Add testing instructions

Co-authored-by: David Levin <davidlevin@Davids-MacBook-Pro-2.local>
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2021-03-02 13:07:35 +08:00
Hsing-Yu Flowers a85034f504 Update payment card style on mobile (https://github.com/woocommerce/woocommerce-admin/pull/6413)
* Update payment card style on mobile

* Add changelog

* Add testing instructions

* Move changelog entry to unreleased

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2021-03-02 12:36:05 +08:00
Hsing-Yu Flowers 2439347dd5 Fix missing i18n in welcome modal (https://github.com/woocommerce/woocommerce-admin/pull/6468)
* Localize string

* Add changelog entry

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2021-03-02 11:21:48 +08:00
Paul Sealock 101df3b019 Add Dependency Extraction Webpack Plugin (https://github.com/woocommerce/woocommerce-admin/pull/5762)
* Add woo flavored DEWP

* clean up webpack config

* clean

* marketing coupons

* onboarding scripts

* nav scripts

* better imports of deps

* add asset files to bundle

* under git rebase conflict error

* try order

* Add wp_set_script_translations to the scripting loop

* changelog
2021-03-01 12:48:52 +13:00
Joel Thiessen 66a5c3f42b Checking if navigation is in the process of being enabled while initializing (https://github.com/woocommerce/woocommerce-admin/pull/6462) 2021-02-26 15:12:45 -08:00
Adrian Duffell 2714ea04b1 Deprecate Onboarding::has_woocommerce_support (https://github.com/woocommerce/woocommerce-admin/pull/6401)
* Deprecate Onboarding::has_woocommerce_support

* Add changelog entry

* Add testing instructions

* Update testing instructions

* Fix typo
2021-02-26 18:11:17 +08:00
Adrian Duffell 151f6d127f Update broken links in help panel (https://github.com/woocommerce/woocommerce-admin/pull/6455)
* Update broken link anchors to online support

* Add changelog entry

* Move changelog entry to Unreleased
2021-02-26 14:12:47 +08:00
Adrian Duffell 63435dfa71 Bump Version to 2.2.0-dev (https://github.com/woocommerce/woocommerce-admin/pull/6417)
* Bump to version 2.2.0-dev

* Update changelog with 2.1.0 heading

* Revert "Bump to version 2.2.0-dev"

This reverts commit cc7d4b95ea3ccae140a5366cdd521ac8f35a3100.

* Bump to version 2.2.0-dev

This was performed using `npm run bump-version`

* Move recent changelog entries out of 2.1.0
2021-02-26 11:48:52 +08:00
Bec Scott f5718e9b95 Correct the Klarna slug (https://github.com/woocommerce/woocommerce-admin/pull/6440)
* Correct the Klarna slug

* Test instructions and release note

* Update testing suggestions with @adrianduffel's suggestion

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2021-02-25 16:15:57 +10:00
Viktor Szépe 79957c1014 Refactor autoloader to remove global variable (https://github.com/woocommerce/woocommerce-admin/pull/6412)
* Remove 1 global from main file

* Add changelog to readme
2021-02-24 11:50:57 +08:00
Sam Seay 7e4a2a6dc8 Add a changelog lint check and auto-labelling to PRs (https://github.com/woocommerce/woocommerce-admin/pull/6414) 2021-02-24 14:47:06 +13:00
Sam Seay 27989ec4f2 Update client and packages builds to use corejs 3 and latest wp babel preset (https://github.com/woocommerce/woocommerce-admin/pull/6411) 2021-02-24 14:24:22 +13:00
Hsing-Yu Flowers b1257c5b22 Move the shipping input and text 1px lower (https://github.com/woocommerce/woocommerce-admin/pull/6408)
* Move the shipping input and text 1px lower

* Add changelog

Co-authored-by: Sam Seay <samueljseay@gmail.com>
2021-02-24 09:14:53 +08:00
Paul Sealock 5c2402e6f3 Navigation: Reset submenu before making Flyout (https://github.com/woocommerce/woocommerce-admin/pull/6396)
* reset flyout before adding things

* instructions and changelog
2021-02-23 13:09:59 +13:00
Adrian Duffell 122418436b Add missing changelog entries for 2.1 release (https://github.com/woocommerce/woocommerce-admin/pull/6403) 2021-02-23 06:55:35 +08:00
Joshua T Flowers 8e9c60b0b0 Add navigation intro modal (https://github.com/woocommerce/woocommerce-admin/pull/6367)
* Add initial intro modal

* Hide modal on dismissal

* Add modal styling

* Add modal page content

* Update styles to match Figma designs

* Replace video with gifs

* Check if user is opted in to satisfy gdpr concerns

* Add testing instructions and changelog notes

* Handle PR feedback

* Handle responsiveness

* Dismiss modal when welcome modal is shown simultaneously

* Update shared modal option constants
2021-02-22 13:40:44 -05:00
Ilyas Foo 168b1a17b1 Add CES track settings tab on updating settings (https://github.com/woocommerce/woocommerce-admin/pull/6368)
* Add settings_area prop to CES settings track

* Update readme and testing instructions

* Update comments

* Add test

* Fix testing instructions
2021-02-22 10:09:45 +08:00
Fernando 7d53737a12 Email notes now are turned off by default (https://github.com/woocommerce/woocommerce-admin/pull/6324)
* Email notes now are turned off by default

This commit turns off the email notes by default

* Added readme.txt

* Added testing instructions

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-02-19 12:32:06 -03:00
Fernando 6d7f6dcbd6 Removed @woocommerce/components/card from OBW (https://github.com/woocommerce/woocommerce-admin/pull/6374)
* Removed @woocommerce/components/card from OBW

This commit removes the "@woocommerce/components/card" from the step "Business Details" in the OBW.

* Added readme.txt line

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-02-19 11:20:16 -03:00
Joshua T Flowers 851dac281c Add filter to allow the wp toolbar in navigation (https://github.com/woocommerce/woocommerce-admin/pull/6371)
* Add class to determine styling for disabled wp toolbar

* Use disabled toolbar class in onboarding setup wizard

* Add changelog and readme notes for filter
2021-02-19 08:20:32 -05:00
Paul Sealock 993e236ce0 Update Minimum version in docs and test configs (https://github.com/woocommerce/woocommerce-admin/pull/6342)
* update min version in docs and tests

* update woocommerce-admin.php

* update docker versions

* one more 5.3

* Docker image: back to min versions

* fix main file's min PHP to 7.0, same as Woo Core and readme.txt

* docs/readme

* get_dependency_errors
2021-02-19 11:22:56 +13:00
louwie17 58503834f7 Enqueue beta features scripts on enqueue_scripts action instead of filter (https://github.com/woocommerce/woocommerce-admin/pull/6358)
* Change filter callback to enqueue_scripts action to safely enqueue scripts

* Add changelog

* Only load beta modal JS on advanced features settings tab
2021-02-18 16:38:58 -04:00
Paul Sealock 3483f1930e Navigation: Add test to container component (https://github.com/woocommerce/woocommerce-admin/pull/6344)
* getCategoriesMap

* getMenuItemsByCategory

* changelog
2021-02-18 13:06:28 -05:00
Sam Seay 5354e4e856 Remove googlefonts/material icons. Migrate to @wordpress/icons and gridicons (https://github.com/woocommerce/woocommerce-admin/pull/6343) 2021-02-18 11:54:02 +13:00
Bec Scott d32d88d43c Remove CES actions for adding and editing a product and editing an order (https://github.com/woocommerce/woocommerce-admin/pull/6355)
* Remove CES survey for editing a product

* Remove CES survey for adding a product

* Remove CES survey for editing an order

* Add testing instructions

* add to release notes
2021-02-17 20:37:10 +10:00
Sam Seay 4649817d9e Implement the PayU payment task and fix a bug (https://github.com/woocommerce/woocommerce-admin/pull/6332)
Fixes woocommerce/woocommerce-admin#6172

This adds the PayU plugin as a payment task option. Based on the requirements, we've opted for this just to be a simple task that installs the plugin and lets the user configure the plugin later via it's settings screen.
2021-02-17 10:08:35 +13:00
Bec Scott 1ada698dfb Bump versions (https://github.com/woocommerce/woocommerce-admin/pull/6321) 2021-02-12 06:49:48 +13:00
louwie17 ea0c6d704e Update highlight tooltip to make use of anchor logic (https://github.com/woocommerce/woocommerce-admin/pull/6309)
* Update highlight tooltip to make use of anchor logic

* Add changelog

* Make sure the extra parent is removed as well

* Small refactor to update anchor rect later on, incase items are still rendering
2021-02-10 16:28:33 -04:00
louwie17 8bc7863c71 Show management links when main task list is hidden (https://github.com/woocommerce/woocommerce-admin/pull/6291)
* Show management links when main task list is hidden, and add test

* Add changelog
2021-02-10 13:30:29 +10:00
Sam Seay 3ccf825e16 Adjust the timing of the Marketing.php note to 5 days. (https://github.com/woocommerce/woocommerce-admin/pull/6083) 2021-02-10 08:56:13 +13:00
louwie17 e7c0d0b8b1 Add paypal commerce obw integration (https://github.com/woocommerce/woocommerce-admin/pull/6261)
* Initial paypal plugin name replacement

* Add necessary fields for the Paypal plugin

* Updated payment methods info to use new options key

* Add most of the OBW paypal integration

* Some old code cleanup

* Get ready for the dynamic onboarding addition.

* Update paypal onboarding, adding script after plugin enabled

* Revert some old changes

* Check if plugin is enabled correctly

* Allow for manual input as a fallback

* Fix unit tests and alter the config updates

* Update plugin to use latest rest endpoint instead :)

* Add comment

* Fix some naming from PR feedback

* Made use of the payment gateway info from tasks/status, and show 500 error message

* Add support for the status and set credential endpoints

* Set the enabled value in ppcp-settings as well

* Added fall back for the 'get-status' method

* Fix issue where I was overwriting the options :/

* Small fix for when updating items manually

* Add changelog

* Remove old tests

* Add testing instructions
2021-02-06 09:41:26 +10:00
Sam Seay 6847c44869 Add the Mollie payment provider setup task (https://github.com/woocommerce/woocommerce-admin/pull/6257)
* Whitelist the mollie plugin and ensure it does not crash on activation.

* Improve error messages for failed plugin installs.

* Add the payment provider screen for the Mollie payment provider.

* Revert change to try/catch activation, its not needed.

* Move the whitelist of mollie to Onboarding.php.

* Add api fetch to dep list of components, update the node setup workflow on gh actions.

* Pass indsutry to the klarna tests to avoid a crash.

* Add some tests for the mollie payment method.

* Remove redundant change to handler.

* Add a changelog entry for the feature.

* fix name of option

* Add testing instructions

Co-authored-by: Rebecca Scott <me@becdetat.com>
2021-02-05 13:41:55 +10:00
Fernando 601c177b19 Onboarding - Fixed "Business Details" error (https://github.com/woocommerce/woocommerce-admin/pull/6271)
* Added initial value to `savedValues`

This commit adds an initial value to `savedValues` in the "Business Details" step in the OBW

* Added readme.txt line

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-02-04 16:40:58 -03:00
Fernando 6ed6d278d1 Added line to readme.txt (https://github.com/woocommerce/woocommerce-admin/pull/6259)
This commit adds the extended task list refactor to the unreleased list in readme.txt

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-02-04 09:59:46 -03:00
Fernando 3ffc2c32ec Fixed the Add First Product email note checks (https://github.com/woocommerce/woocommerce-admin/pull/6260)
* Added extra filters to note

This commit adds extra filters to email note.

* Fixed note image and css

This commit fixes a few things related to the note image, css and some checks

* Fixed css and note image replaced

* Added readme.txt

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-02-03 17:15:43 -03:00
louwie17 d2ca866b26 Remove old debug code for connecting to Calypso / WordPress.com in help section (https://github.com/woocommerce/woocommerce-admin/pull/6097)
* Remove Calypso / WordPress.com help section, only shown in WP_Debug

* Add changelog

* Remove unused calypso tests actions
2021-01-28 13:32:06 -04:00
louwie17 78d62c858d Move inbox panel to left column, to increase user interaction (https://github.com/woocommerce/woocommerce-admin/pull/6122)
* Move inbox panel to left column, to increase user interaction

* Add changelog

* Fix and add test

* Remove old loading banner-block

* Remove unused css

* Fix test with new props
2021-01-28 09:33:36 -04:00
louwie17 4ad9c07d51 Add wait for mysql script to php unit entrypoint (https://github.com/woocommerce/woocommerce-admin/pull/6185)
* Add wait for mysql script to php unit entrypoint, also removing containers after run is finished.

* Add changelog
2021-01-27 14:35:12 -04:00
louwie17 74b3eccbc9 Add option to create product by template (https://github.com/woocommerce/woocommerce-admin/pull/5892)
* Initial product template modal

* Add custom product template for the new-post route

* Add test, and code for making use of the insert_post action

* Added ProductTemplates Datastore to create template with REST api

* Add back variation method, deleted by accident

* Move product from template endpoint to OnboardingTasks class

* Fix lint errors

* Added tracks and template hooks

* Rename product create permission check function, for less confusion

* Remove duplicate recommended option

* Fix stylelint errors

* PHP tests for the product_from_template endpoint

* Fix onboarding php unit tests

* Write tests for client product template options

* Refactored list component, to use it as a radio control list

* Fix lint errors

* REmove assertion as it fails on the ci

* Add changelog

* Updating tests to make sure all product attribute taxonomies are removed

* Add more specific assertions for importing sample products test

* Update the sample products test

* Deconstruct item object, from PR suggestion

* Fix PHP errors, by updating the createProductFromTemplate call
2021-01-25 12:52:42 -04:00
Tomek Wytrębowicz f012bbb7ca Render SummaryNumber delta precisely. (https://github.com/woocommerce/woocommerce-admin/pull/5926)
Previously only a given delta was rendered as an integer. Now it renders the number with a given precision.
Fixes woocommerce/woocommerce-admin#5925.

Co-authored-by: Rebecca Scott <me@becdetat.com>
2021-01-21 19:06:07 +01:00
Sam Seay 7041c3b2d3 Add the "Getting started in Ecommerce" inbox note (https://github.com/woocommerce/woocommerce-admin/pull/6086) 2021-01-21 16:13:23 +13:00
Adrian Duffell e506e6c9bf Bump minimum supported PHP version to 7.0 (https://github.com/woocommerce/woocommerce-admin/pull/6046) 2021-01-21 09:11:30 +08:00
Ilyas Foo 0b06f09d6a Update store deprecation welcome modal support doc link (https://github.com/woocommerce/woocommerce-admin/pull/6094)
* Update support doc link

* Update readme.txt
2021-01-20 12:04:37 +08:00
Bec Scott 0fd35e9a35 Add remote inbox notifications contains comparison and fix product count rule (https://github.com/woocommerce/woocommerce-admin/pull/6073)
* add remote inbox notifications contains comparison and fix product count rule

* Use stored state instead of another option

* Add change log to readme

* add new_product_count to remote inbox notifications documentation

* ensure new_product_count exists
2021-01-19 17:14:51 +10:00
Sam Seay 35a448a8f3 Allow for larger result sets of attribute terms (https://github.com/woocommerce/woocommerce-admin/pull/6077) 2021-01-18 09:49:32 +13:00
Sam Seay 2f1946b408 Update content and timing of NeedSomeInspiration.php. (https://github.com/woocommerce/woocommerce-admin/pull/6076) 2021-01-18 09:27:10 +13:00
Bec Scott b606a6933e New note: manage activity from home screen (https://github.com/woocommerce/woocommerce-admin/pull/6072)
* New note: manage activity from home screen

* update readme and fix compared version

* tweak the newly installed action name
2021-01-15 11:34:00 +10:00
Paul Sealock 3835cfc13a Changelog update (https://github.com/woocommerce/woocommerce-admin/pull/6070) 2021-01-15 14:08:10 +13:00
Paul Sealock 0bde0d5fea Version bump to 2.0.0-dev (https://github.com/woocommerce/woocommerce-admin/pull/6071)
* version bump to 1.10.0-dev

* use WP version 2.0.0
2021-01-15 09:21:47 +13:00
Fernando 46c59b4d8d Fixed error hiding core task list (https://github.com/woocommerce/woocommerce-admin/pull/6050)
* Fixed hiding core task list

This commit fixes the hiding of the core task list

* Added tests

* Added fix to readme.txt

* Fixed readme.txt

* Added new test

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-01-14 13:59:31 -03:00
louwie17 4ab71bd963 Update travis CI to use a new distribution - xenial (https://github.com/woocommerce/woocommerce-admin/pull/6067)
* Update travis CI to use a new distribution - xenial

* Add changelog
2021-01-14 09:43:14 -04:00
Ilyas Foo e8e791dc0b Fix for translation chunks not generated on plugin activation (https://github.com/woocommerce/woocommerce-admin/pull/6028)
* Fix for translation chunks not generated on plugin activation

* Add support for woocommerce_activated_plugin hook to work as embedded package

* Update readme.txt

* Make sure woocommerce/woocommerce-admin#5062 does not regress by adding checks before accessing files

* Consolidate duplicated codes
2021-01-14 13:22:12 +08:00
Sam Seay 94af45fef0 Update the content of the ChooseNiche note. (https://github.com/woocommerce/woocommerce-admin/pull/6048) 2021-01-14 10:38:45 +13:00
Fernando 513173a9d9 Add merchant email notifications (https://github.com/woocommerce/woocommerce-admin/pull/5922)
* Added MerchantEmailNotifications class

* Added new type and Events refactor

# Conflicts:
#	src/Events.php

* Added templates

* Refactored MerchantEmailNotifications and NotificationEmail

* Templates refactored

* Added email opening tracking endpoint

* Added templates handling

* Moved folder `MerchantEmailNotifications`

* Fixed template extensibility

* Fixed note `heading` check

* Added default type in `get_template_filename`

* Added tests

* Removed bypass

* Modified URL

* Added required noteTypes

* Added flag for functionallity

* Fixed plain link

* Fixed comment

* Turned email notifications on by default

This commit adds the code to turn email notifications on by default

* Fixed email styles

* Fixed typo

* Renamed method "possible_send" as "run"

* Removed unnecessary control

* Fixed another typo

* Renamed method as "get_notification_email_addresses"

* Refactored method "send_merchant_notification"

* Renamed plain-merchant-notification

* Fixed tests

* Merchant email notifications - Action triggering (https://github.com/woocommerce/woocommerce-admin/pull/5976)

* Added templates

# Conflicts:
#	includes/emails/plain-mechant-notification.php

# Conflicts:
#	includes/emails/html-merchant-notification.php

* Added note action triggering

This commit adds the note actions triggering

# Conflicts:
#	includes/emails/html-merchant-notification.php

* Fixed error handling

* Refactored "trigger_note_action" method

* Fixed actions url

* Fixed note URL

* Added external redirect

* Added image and html handling for email

* Fixed tests

* Fixed buttons style

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>

* Add your first product: email notification (https://github.com/woocommerce/woocommerce-admin/pull/6024)

* Added AddFirstProduct note

# Conflicts:
#	src/Events.php

* Added "AddFirstProduct" email note

This commit adds the email note "AddFirstProduct"

* Fixed image

This commit removes the image img-product-light.svg to use a png instead. Otherwise, the gmail proxy would break the image

* Fixed readme.txt

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>

* Added readme.txt

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-01-12 21:09:22 -03:00
Sam Seay f1d649a657 Add an unread indicator to inbox messages based on existing logic. (https://github.com/woocommerce/woocommerce-admin/pull/6047) 2021-01-13 08:48:24 +13:00
Adrian Duffell 3f044e8118 Remove deprecated use of Jetpack in shipping label banner (https://github.com/woocommerce/woocommerce-admin/pull/5929) 2021-01-12 08:43:34 +08:00
Nick Korovaiko c376d501c7 Fix undefined variable when database does not have collation capability
* handle the unsupported collation case

* add an entry to readme.txt[Unreleased]

Co-authored-by: Nikolay Korovaiko <villedepommes@l-mhjo56y7ce.TheFacebook.com>
Co-authored-by: Nick Korovaiko <villedepommes@fb.com>
2021-01-11 08:05:09 +08:00
Bec Scott fe871be92d Add note for users coming from Calypso (https://github.com/woocommerce/woocommerce-admin/pull/6030)
* Add note for users coming from Calypso if the site has wpcomsh installed

* remove check for wpcomsh

* Add release note
2021-01-11 09:24:28 +10:00
Bec Scott 3338c273c2 Add welcome modal when coming from Calypso (https://github.com/woocommerce/woocommerce-admin/pull/6004)
* Add welcome modal when coming from Calypso

* add to changelog

* do some important work for prettier

* udpated with final copy

* Add PR number to readme
2021-01-08 12:06:52 +10:00
Paul Sealock b1ed75aa11 version bump to 1.9.0-dev (https://github.com/woocommerce/woocommerce-admin/pull/5999) 2021-01-08 08:41:29 +13:00
louwie17 83524c7f69 Remove visit count on track and only count uncompleted task visits (https://github.com/woocommerce/woocommerce-admin/pull/5996)
* Remove visit count, and only count uncompleted task visits

* Add changelog

* Remove unused constant
2021-01-07 09:27:12 -04:00
Sam Seay a2c4a6a306 A/B test creating a business features step for free extensions (https://github.com/woocommerce/woocommerce-admin/pull/5786)
This fixes woocommerce/woocommerce-admin#5287 

Major changes:

1. The `<Form>` component (which is a published component) gets a new optional prop (so its backward compatible), called `onChangeCallback`. This is called when any form value changes, allowing the controlling component to act on individual form changes. This was needed to utilise `<Form>` to revalidate and check if the user could access the next tab. This should not impact existing usages of the `<Form>`, but it could be good to test this.

2. Introduces a new flow for choosing business extensions that was specified in woocommerce/woocommerce-admin#5287 issue description. Please check the issue for reviewing the designs. The simplest way to implement this, ended up being keeping the existing flow intact and where necessary copy pasting code from those components into the new flow. This new flow is only shown if your segmentation matches the following: `Stores that selected the US as the country and Other or Food & Drinks as the industry
2021-01-07 11:08:57 +13:00
Paul Sealock 4e3107a322 1.8.3 changelog (https://github.com/woocommerce/woocommerce-admin/pull/6009)
* 1.8.3 changelog

* fixup
2021-01-06 12:47:54 +13:00
Ilyas Foo 71877be8dc Reverts work done in woocommerce/woocommerce-admin#4857 for automated shipping after OBW is completed (https://github.com/woocommerce/woocommerce-admin/pull/5971)
* Reverts work done in woocommerce/woocommerce-admin#4857 for automated shipping after OBW is completed

* Remove ReviewShippingSettings note

* Update readme.txt

* Add wc-admin-review-shipping-settings to delete note list
2021-01-01 15:30:28 +08:00
Jeff Stieler 4184392d33 Don't show Stock or Reviews panels before there are Products and/or Orders. (https://github.com/woocommerce/woocommerce-admin/pull/5973)
* Hide Stock and Reviews panels until there are products and/or orders.

* Add tests.

* Add to changelog.
2020-12-29 11:19:13 -05:00
Paul Sealock 641eedb60d synch 1.8 readme (https://github.com/woocommerce/woocommerce-admin/pull/5948) 2020-12-23 20:27:59 +13:00
Paul Sealock 80f641b849 Unbundle wp.components (https://github.com/woocommerce/woocommerce-admin/pull/5753)
* enqueue wp-components

* conditional check of Navigation?

* nav version checks, first pass

* better nav checking

* bump min requirments

* min versions

* Use WP 5.6 instead of 5.6.0

* add wp.date and wp.compose

* Handle missing FlexItem

* enqueue styles

* fix date range mobile dropdown
2020-12-21 14:57:55 +13:00
louwie17 cad707f57c Highlight help panel with tooltip (https://github.com/woocommerce/woocommerce-admin/pull/5826)
* Show highlight help panel popup after user enters uncompleted task more then once

* Updated styling of highlight tooltip

* Removed empty array from the useSelect to prevent unnecessary re-renders

* Updated styling of the highlight tooltip to match wireframe and wrote tests

* Fix close button location

* Add event tracking

* Add changelog

* Make use of user preferences meta data for task visit tracking

* Add support for toggling the show boolean

* Make sure the delay works correctly for highlight tooltip

* Continue tracking tasks visit count, and added onShow callback for tooltip
2020-12-18 09:17:07 -04:00
Jeff Stieler c8c544f70c Support custom product attributes in advanced filter (https://github.com/woocommerce/woocommerce-admin/pull/5848)
* Add product attributes autocomplete for Search control.

* Support single selection in Search component.

* Fix SelectControl input after selection in single mode.

* Remove label from Search component's inner SelectControl.

Placeholder is the behavior we want to avoid label and selection collision.

* Match Search component selected prop to SelectControl.

It's passed through anyhow.

* Rework attribute filter to use new endpoints for custom terms.

* Hook up custom attribute filter to report queries.

* Fix errant space in filter name.

* Fix SelectControl active status when control is disabled.

* Fix SelectControl "has tags" logic for non-multiple use cases.

* Fix attribute filter screen reader text.

* Update changelogs.

* Move custom attribute test to it's own function.

* Remove SelectControl input disabling.

This was supposed to improve keyboard behavior for non-multiple controls, but it was questionable.

* Fix backspace in attribute term field.
2020-12-17 09:59:01 -05:00
louwie17 9055d3831e Update verified product owner view for a review (https://github.com/woocommerce/woocommerce-admin/pull/5877)
* Add checkmark svg and update verified owner view

* Add changelog

* Fix lint errors, add tooltip, and add test
2020-12-16 08:32:40 -04:00
Jeff Stieler f5b243d073 Fix typo in Variation Stats Datastore context variable. (https://github.com/woocommerce/woocommerce-admin/pull/5874) 2020-12-15 09:28:13 +13:00
Paul Sealock 0dbbd7534d Documentation: Add wc_admin_register_page docs (https://github.com/woocommerce/woocommerce-admin/pull/5844)
* Add wc_admin_register_page docs

* update readme.txt

* icon feedback

* better example code

* proper import

* updated links
2020-12-14 12:04:32 +13:00
louwie17 484e945460 Fix updating WC customer without wordpress user (if multiple orders are present) (https://github.com/woocommerce/woocommerce-admin/pull/5825)
* Create get last order function that does not rely on Wordpress user, and add test for use case

* Add change log

* Make sure tests use the right index for comparison

* Order by date_created_gmt first and order id second, and wrote test for get_last_order

* Fix test assertion, and remove unnecessary parameter
2020-12-10 09:42:17 -04:00
louwie17 c1ad7aa21d Move collapsible to panels config, fixing orders panel (https://github.com/woocommerce/woocommerce-admin/pull/5855)
* Move collapsible to panels config, so we can always set it to true for orders

* Add changelog
2020-12-09 16:57:41 -04:00
Adrian Duffell 300504ea94 Fix inconsistent customer Type parameter in REST endpoints (https://github.com/woocommerce/woocommerce-admin/pull/5823)
The wc-analytics/reports/orders and /wc-analytics/reports/orders/stats endpoints have inconsistent parameter names for filtering the customer type: customer_type vs customer.

This was affecting the Customer Type filter in the orders analytics, reported in issue woocommerce/woocommerce-admin#5803, where the component expects the parameter names to be the same. This is because it uses a parameter name based on the key in the filter configuration (customer_type).

To resolve this, this PR updates /wc-analytics/reports/orders/stats to accept both customer_type and customer as parameter names for this filter. The customer parameter has however been deprecated in its description to discourage usage.

Co-authored-by: Sam Seay <samueljseay@gmail.com>
2020-12-07 06:39:29 +08:00
Jeff Stieler a476445788 Fix Orders Report Product/Variation Exclusion Filters (https://github.com/woocommerce/woocommerce-admin/pull/5822)
* Add aliases to product lookup table joins in the orders report.

Fixes issues with stacking product-type filters.

* Fix orders report product/variation exclusion filters.

Using "anti join" query strategy.

* Add changelog.

* Add test for product exclusion filter.
2020-12-04 11:33:58 -05:00
Ilyas Foo db598dafc4 Add page parameter to getNewPath to override default page wc-admin (https://github.com/woocommerce/woocommerce-admin/pull/5821)
* Add page parameter to getNewPath to override default page wc-admin

* Updated readme.txt
2020-12-04 14:45:16 +08:00
Bec Scott 5874c73a90 Add Customer Type column to the Orders report table (https://github.com/woocommerce/woocommerce-admin/pull/5820)
* Show customer type in orders table

* Add note to readme.txt

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-12-04 14:19:04 +10:00
Jeff Stieler 8b9a2fdd23 Add Variations Report to the readme. (https://github.com/woocommerce/woocommerce-admin/pull/5808) 2020-12-04 12:14:51 +13:00
Fernando 91bf42d7f4 Home Screen - modified tasks extensibility (https://github.com/woocommerce/woocommerce-admin/pull/5794)
* Added tasks extensibility

This commit addes tasks extensibility

* Fixed tests

This commit fixes the tests

* Fixed add task example

This commit fixes the add task example

* Fixed method possiblyCompleteTaskList

This commit fixes the method "possiblyCompleteTaskList"

* Fixed method getIncompleteTasks

This commit fixes the method getIncompleteTasks

* Fixed add task example

* Added callback onDismiss

This commit adds the callback for the "onDismiss"

* Added onDismiss and isDismissable to add task example

This commit adds the props "onDismiss" and "isDismissable" to add task example

* Not showing extensions task list if empty

* Fixed onDismiss callback

* Add changelog

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
Co-authored-by: Sam Seay <samueljseay@gmail.com>
2020-12-03 17:16:04 -04:00
louwie17 09f42065d6 Invalidate product count if the last product was updated in the list (https://github.com/woocommerce/woocommerce-admin/pull/5790) 2020-12-04 09:20:13 +13:00
Sam Seay ebddffb8e8 Post 1.7.0 beta release chores (https://github.com/woocommerce/woocommerce-admin/pull/5558)
* Bump versions to 1.8.0-dev
* Update changelog for 1.7.0
2020-11-19 08:36:45 +13:00
Adrian Duffell 25c2841a20 Bump WooCommerce to v4.5 in minimum requirements documentation (https://github.com/woocommerce/woocommerce-admin/pull/5610) 2020-11-12 09:07:02 +08:00
Adrian Duffell 173f5802a4 Update readme.txt to Unix style (LF) line endings (https://github.com/woocommerce/woocommerce-admin/pull/5517) 2020-11-05 07:33:40 +08:00
Timmy Crawford 4a1f4b233a Add 1.6.x changelog entries (https://github.com/woocommerce/woocommerce-admin/pull/5464) 2020-10-27 12:54:15 -07:00
Timmy Crawford 016f4cc2d9 Update version to 1.7.0-dev. (https://github.com/woocommerce/woocommerce-admin/pull/5397) 2020-10-15 13:18:02 -07:00
Adrian Duffell 8466859eb9 Fix inconsistent line endings in readme.txt (https://github.com/woocommerce/woocommerce-admin/pull/5281)
This updates the Stable tag line in readme.txt to use a CRLF style line ending. This makes it consistent with the rest of the file and fixes “mixed line ending” type error messages when opening.
2020-10-07 11:34:27 +08:00
Sam Seay fb03e64ced Profile wizard style consistency updates (https://github.com/woocommerce/woocommerce-admin/pull/5059)
Co-authored-by: Joshua Flowers <joshuatf@gmail.com>
Co-authored-by: James Koster <james@jameskoster.co.uk>
2020-09-01 20:47:49 +12:00