Commit Graph

3983 Commits

Author SHA1 Message Date
renovate[bot] db169c9b06 Update dependency lint-staged to v10.2.11 (https://github.com/woocommerce/woocommerce-admin/pull/4812)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-17 14:21:45 +10:00
renovate[bot] c9afa72d49 Update dependency autoprefixer to v9.8.5 (https://github.com/woocommerce/woocommerce-admin/pull/4811)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-17 14:19:42 +10:00
renovate[bot] 6d5e0a5544 Update dependency @testing-library/react to v10.4.7 (https://github.com/woocommerce/woocommerce-admin/pull/4810)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-17 14:08:41 +10:00
renovate[bot] bad969456c Update babel monorepo to v7.10.5 (https://github.com/woocommerce/woocommerce-admin/pull/4809)
* Update babel monorepo to v7.10.5

* Update babel monorepo to v7.10.5

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-07-17 12:29:37 +10:00
renovate[bot] 2fc7827d72 Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/4801)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-17 12:02:57 +10:00
Sam Seay b448ff60b7 Update @wordpress/base-styles and replace deprecated variables (https://github.com/woocommerce/woocommerce-admin/pull/4759)
Fixes woocommerce/woocommerce-admin#4732

This updates `@wordpress/base-styles`, and because `@wordpress/components` depends on variables from it, that must be updated as well.

There are 3 major changes required as part of updating:

1. The $theme-color variable is no longer exposed by base-styles. Instead there are 3 css vars exposed. These are made available by use of a provided mixin. Situations where $theme-color was darkened using scss have been mapped as best as possible to the 2 other darkened shades of the css var that are available such as `--wp-admin-theme-color-darker-20` and `--wp-admin-theme-color-darker-10`. In some cases this means the colors are not exactly the same as before.

2. The post css `theme()` call is no longer available. All uses of this have been consolidated to use of the main theme css var `--wp-admin-theme-color`. This means that calls like `theme(secondary)` or `theme(outline)` etc have all been consolidated to the one color.

3. Many of the variables used for different shades of gray have been deprecated. These have been mapped across to the new gray variables. (Mapped according to the list described in woocommerce/woocommerce-admin#4732)
2020-07-17 12:11:42 +12:00
Fernando c950b9fafd Reordered home screen tasks (https://github.com/woocommerce/woocommerce-admin/pull/4754)
* Removed task item `connect`

This commit removes the task item `Connect your store to WooCommerce.com`

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

* Reordered home screen tasks

This commit reorders the task list visible on the home screen.

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-07-16 15:09:36 -03:00
Fernando 0c4dfb823c Added event recording to home/dashboard task list (https://github.com/woocommerce/woocommerce-admin/pull/4743)
This commit adds event recording to home/dashboard task list

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

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-07-16 13:54:31 -03:00
Jeff Stieler 289d626551 Fix missing version update callback and add test (https://github.com/woocommerce/woocommerce-admin/pull/4816)
* Add test for plugin version DB update callbacks.

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

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

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

* Unit tests repaiared

* Added OBW page

This commit makes the necessary changes to add an OBW page

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

* Event name changed

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

* Redirection modified

This commit modifies the way we do redirection

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

* Removed `profiler` feature flag

* Removed `profiler` feature flag

This commit removes the `profiler` feature flag

* Added error handling for `updateProfileItems`

This commit adds error handling for the method `updateProfileItems`

* Update client/profile-wizard/index.js

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

* Removed "throw" from "then"

* Update client/dashboard/index.js

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

* Update client/profile-wizard/index.js

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

* Modified redirection URL

This commit modifies the redirection URL.

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

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

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

* Removed change of state for variable "skipped"

* Added error trowing to onboarding actions

This commit adds error trowing to onboarding actions

* Removed response handling for `updateProfileItems`

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

* Removed `step` from OnboardingProfile and test

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

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
Co-authored-by: Matt Sherman <matt.sherman@automattic.com>
Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2020-07-16 12:17:10 -03:00
Jason Conroy 1fbf06678e Enable the coupons feature in core (https://github.com/woocommerce/woocommerce-admin/pull/4786) 2020-07-16 18:15:11 +09:30
Jason Conroy 8afaa58b9e Update marketing tab styles (https://github.com/woocommerce/woocommerce-admin/pull/4794)
* Fix incorrect woocommere-admin spelling

* Update styles

* Add icons

* Add hover effect for coupon icons

* Remove variable comment

* Update color case

* Style lint fixes

* Use $theme-color

* Update icons, use wordpress/icons where possible

* Adjustment for using smaller default icons and no fills in the svgs

* Use var(--wp-admin-theme-color) instead of $theme-color

* Reorg coupons stylesheet

* Update PropTypes for ProductIcon

* Adjust icon export

* Rever to using $theme-color

* Add versions of link, people and currency-dollar

* Overide coupons icon background color

* Add background transition to icon wrapper
2020-07-16 15:22:06 +09:30
Jeff Stieler 973335f5d0 Allow Jetpack plugin to be manipulated via API from the home screen. (https://github.com/woocommerce/woocommerce-admin/pull/4817)
* Allow Jetpack plugin to be manipulated via API from the home screen.

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

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

* Update product categories short code usage.
2020-07-15 09:20:47 -07:00
Joshua T Flowers 90c1431129 Update connection flow for Bundle UI (https://github.com/woocommerce/woocommerce-admin/pull/4717)
* Move Jetpack connection from benefits to profiler completion

* Handle profiler completion and connection URL async

* Update cached components on each profiler step

* Show bundle install UI based on segment

* Create notice on error catch

* Refactor redirect after promise completion

* Fix up accessiblity issues in bundle popover UI
2020-07-15 17:52:21 +03:00
Jeff Stieler 98f09e2b7d Add option to automatically create a PayPal account (https://github.com/woocommerce/woocommerce-admin/pull/4804)
* Add "create an account" option to PayPal setup.

Requires a connected Jetpack and WCS.

* Incorporate account creation into multiple flows.

Consolidate form code as well.

* Empty emails aren't valid.

* Remove defunct manual form render.

* Only validate API credentials if needed.

* Update PayPal settings for account creation flow.

* Add first basic test for PayPal setup task.

* Add more test coverage.

* Add some padding to the create account form.

* Only show "create account" if WCS TOS has been accepted.
2020-07-15 08:10:21 -04:00
Matt Sherman c85f6bf0f3 Onboarding: Center continue buttons in profile wizard (https://github.com/woocommerce/woocommerce-admin/pull/4802) 2020-07-15 07:24:00 -04:00
Jason Conroy c8de6b97be Add WooCommerce Admin Facebook Marketing Expert Note Provider. (https://github.com/woocommerce/woocommerce-admin/pull/4787)
* Add WooCommerce Admin Facebook Marketing Expert Note Provider.

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

* Update title

* Update note title and copy

* Adjust orders_last_month check

* Return ids to speed up query

* Use PluginsHelper
2020-07-15 15:45:20 +09:30
Sam Seay 88ab1cf285 Fix a React warning in test that the key prop wasn't assigned in List (https://github.com/woocommerce/woocommerce-admin/pull/4808) 2020-07-15 14:35:44 +12:00
Bec Scott 480362ca29 Admin note to install other payment providers (https://github.com/woocommerce/woocommerce-admin/pull/4795)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-07-15 12:09:49 +10:00
Fernando 6c4b78f899 Changed logic of "Set up payments" reminder (https://github.com/woocommerce/woocommerce-admin/pull/4792)
* Removed "woocommerce_task_list_payments" from note.

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

* Removed task list check

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

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

* Adding in missing changelog item.

* readme updates
2020-07-14 07:24:52 -07:00
Jeff Stieler 7da3a59465 Show "Help" Activity Panel When Working Single Task List Item (https://github.com/woocommerce/woocommerce-admin/pull/4779)
* Add initial (rough) help panel.

Only includes "products" task items.

* Add help links for other tasks.

* Add header to help tab content.

* Toggle activity panel tabs when performing a setup task.

* Move query string parsing up a level.

* Pass query string as prop to ActivityPanel.

Fixes rerendering issue when entering a task.

* Pass current task to Help panel.

* Filter payments task help items by available payment methods.

* Filter shipping and tax help items based on WCS install.

* Add generic docs link to all help panels.

* Track help panel open.

* Track help panel link clicks.

* Show WCS help items when prompted to install.

* Tasks are only performed on the main route.

E.g. no value for "path".

* Small tweaks to make AcivityPanel more easily testable.

* Add initial tests for ActivityPanel tab logic.

* Modify HelpPanel component for easier testing.

* Add tests for conditional help panel links.

* Fix tracking keyboard "clicks" on help links.

* Fix query prop on embedded pages.

* Allow filtering of help tab items.
2020-07-14 08:20:51 -04:00
Joshua T Flowers 49a0a9f3a2 Add option to dismiss tasks (https://github.com/woocommerce/woocommerce-admin/pull/4733)
* Add dismiss button as task list item option

* Add option to undo task dismissal

* Record modal dismissal event

* Add transition animation to list items

* Use key for list items instead of index

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

* Document all of the rules

* Couple of tweaks

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-07-14 11:52:33 +10:00
Bec Scott 213fba853a Highlight WooCommerce Payments task (https://github.com/woocommerce/woocommerce-admin/pull/4793)
* Add wcpay setup task and hide normal payment task if the wcpay plugin is installed

* Record an event when selecting the wcpay task

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-07-14 11:40:56 +10:00
Bec Scott 547f569b1c Add is_ecommerce rule (https://github.com/woocommerce/woocommerce-admin/pull/4773)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-07-14 11:40:20 +10:00
Timmy Crawford e02003b46d Onboarding: Don't show tracking modal if site is already opted in to usage tracking. (https://github.com/woocommerce/woocommerce-admin/pull/4766) 2020-07-13 15:35:20 -07:00
Bec Scott d4330181b4 Trigger a remote inbox notifications engine run when the OBW completes (https://github.com/woocommerce/woocommerce-admin/pull/4737)
* Trigger a remote inbox notifications engine run when the OBW completes

* Fix typo in state check

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-07-09 14:50:20 +10:00
Bec Scott 0faca8a0d7 Make sure product count and revenue items are set in choose niche note (https://github.com/woocommerce/woocommerce-admin/pull/4764)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-07-09 14:49:40 +10:00
Bec Scott a6a8b82280 Limit status to unactioned notes (https://github.com/woocommerce/woocommerce-admin/pull/4765)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-07-09 14:49:13 +10:00
Evan Mattson 5872c450a7 Customize webpack jsonpFunction to avoid collision (https://github.com/woocommerce/woocommerce-admin/pull/4644) 2020-07-09 14:10:34 +12:00
renovate[bot] 79552c953d Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/4649)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-08 16:10:22 +12:00
renovate[bot] a476991d9f Pin dependencies (https://github.com/woocommerce/woocommerce-admin/pull/4676)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-08 16:09:54 +12:00
renovate[bot] 4a3aeb0e49 Update dependency @octokit/graphql to v4.5.1 (https://github.com/woocommerce/woocommerce-admin/pull/4678)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-08 16:09:19 +12:00
Paul Sealock d0460c2f08 Variation Names: Allow long names to be shown (https://github.com/woocommerce/woocommerce-admin/pull/4715) 2020-07-08 15:25:51 +12:00
renovate[bot] 9ecb76635f Update dependency @testing-library/jest-dom to v5.11.0 (https://github.com/woocommerce/woocommerce-admin/pull/4679)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-08 15:24:49 +12:00
renovate[bot] 1ac65a6548 Update babel monorepo to v7.10.4 (https://github.com/woocommerce/woocommerce-admin/pull/4677)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-08 15:16:10 +12:00
renovate[bot] 27ba7cc64c Update dependency grunt to v1.2.1 (https://github.com/woocommerce/woocommerce-admin/pull/4772)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-08 15:08:55 +12:00
renovate[bot] 6e0400c16d Update dependency @testing-library/react to v10.4.4 (https://github.com/woocommerce/woocommerce-admin/pull/4723)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Paul Sealock <psealock@gmail.com>
2020-07-08 15:04:23 +12:00
renovate[bot] 1399dce286 Update dependency eslint-plugin-react to v7.20.3 (https://github.com/woocommerce/woocommerce-admin/pull/4769)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Paul Sealock <psealock@gmail.com>
2020-07-08 15:03:37 +12:00
renovate[bot] b0b3d3d32a Update dependency @testing-library/react-hooks to v3.3.0 (https://github.com/woocommerce/woocommerce-admin/pull/4724)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-08 14:25:11 +12:00
renovate[bot] 25e242e67a Update dependency eslint-plugin-testing-library to v3.3.1 (https://github.com/woocommerce/woocommerce-admin/pull/4770)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-08 14:22:57 +12:00
Bec Scott 3e79e973ab Toggle the “Physical products” checkbox on by default (https://github.com/woocommerce/woocommerce-admin/pull/4702)
* Toggle the “Physical products” checkbox on by default

* change 'preselect' to 'default'

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-07-08 12:14:57 +10:00
renovate[bot] 739a801c2e Update dependency autoprefixer to v9.8.4 (https://github.com/woocommerce/woocommerce-admin/pull/4726)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-08 13:22:30 +12:00
renovate[bot] 1562993b81 Update dependency dompurify to v2.0.12 (https://github.com/woocommerce/woocommerce-admin/pull/4727)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-08 13:20:39 +12:00
renovate[bot] 78c9f079b5 Update dependency eslint-plugin-jsx-a11y to v6.3.1 (https://github.com/woocommerce/woocommerce-admin/pull/4768)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-08 13:09:43 +12:00
renovate[bot] 26189b164a Update dependency eslint-plugin-jest to v23.18.0 (https://github.com/woocommerce/woocommerce-admin/pull/4728)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-08 12:53:55 +12:00
Paul Sealock d03f3e9553 fix staticParams (https://github.com/woocommerce/woocommerce-admin/pull/4704) 2020-07-08 12:38:50 +12:00