Commit Graph

114 Commits

Author SHA1 Message Date
Ilyas Foo d936b649fc Remove business step original flow (https://github.com/woocommerce/woocommerce-admin/pull/7103)
* Remove logic flags for business step A/B test

* Delete unused files

* Remove benefits step from profile wizard

* Update related e2e tests

* Update readme

* Rename SelectiveFeaturesBusinessStep to BusinessFeaturesList
2021-06-03 16:33:54 +08:00
Paul Sealock abf0ddebda apply better rules (https://github.com/woocommerce/woocommerce-admin/pull/7008) 2021-05-25 07:02:52 +12:00
Ján Mikláš ee2e89a75f Tweak: change MailPoet's title and description in Store Profiler (https://github.com/woocommerce/woocommerce-admin/pull/6989) (https://github.com/woocommerce/woocommerce-admin/pull/6990)
* Tweak: change MailPoet's title and description in Store Profiler (https://github.com/woocommerce/woocommerce-admin/pull/6989)

* Add a changelog entry

Co-authored-by: Timmy Crawford <timmyc@users.noreply.github.com>
2021-05-19 11:43:07 -07:00
Hsing-yu Flowers 9cce902c84 Update Form's documentation (https://github.com/woocommerce/woocommerce-admin/pull/6708)
* Rename onChangeCallback to onChange

* Add onChange documentation

* Update prop `touched` documentation

* Removd unused onChnage in the example

* Add changelog

* Handle feedback

* Deprecate onSubmitCallback

* Handle feedback 2

* Update new onSubmitcallbacks

* Handle feedback 3

Co-authored-by: Bec Scott <me@becdetat.com>
2021-05-18 14:24:24 +10:00
Paul Sealock 9c94852932 Consume Remote Free Extensions from UI (https://github.com/woocommerce/woocommerce-admin/pull/6952)
* transform data

* working

* better

* check for marketplace suggestions

* changelog

* copy initialInstallableExtensions before transform

* parse locales server side

* deep equality

* Match remote data to local data

* reflect changes on UI

* fix keys
2021-05-18 14:28:13 +12:00
Mik 820bf30e29 Replace marketing extension - Google Listings and Ads (https://github.com/woocommerce/woocommerce-admin/pull/6939)
* Replace google icon

* Remove note for Google Ads extension

* Replace extension in API OnboardingProfile

* Record event for new extension

* Replace extension in onboarding flow

* Replace extension benefits

* Change background colour of Google icon

* Fix svg warnings

* Add changelog entry

* Fix prettier error

* Add old note to obsolete list for removal
2021-05-10 10:56:47 +01:00
Sam Seay 82f94c0171 Fix the case of any mention of MailPoet. (https://github.com/woocommerce/woocommerce-admin/pull/6924) 2021-05-06 09:17:45 +12:00
Moon 011089246c Exclude woocommerce shipping for stores that are only offering downlo… (https://github.com/woocommerce/woocommerce-admin/pull/6917)
* Exclude woocommerce shipping for stores that are only offering downloadable products
2021-05-04 17:32:24 -07:00
Ján Mikláš 684e469c64 Tweak: change MailPoet's title and description in Store Profiler (https://github.com/woocommerce/woocommerce-admin/pull/6886)
* Tweak: change MailPoet's title and description in Store Profiler (https://github.com/woocommerce/woocommerce-admin/pull/6882)

* Add a changelog entry
2021-04-28 14:18:37 -04:00
Hsing-yu Flowers 529456c143 Get currency from `CurrencyContext` (https://github.com/woocommerce/woocommerce-admin/pull/6723)
* Get currency from `CurrencyContext`

* Add changelog

* Remove errant

Co-authored-by: Bec Scott <me@becdetat.com>
2021-04-28 12:54:49 +10: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
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 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
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
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
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
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
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
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
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
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
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
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
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
Hsing-Yu Flowers 5aaf5d83c4 Add exclusion on getOptions and method renaming (https://github.com/woocommerce/woocommerce-admin/pull/6115)
* Remove exclusion in getFilteredOptions

* Update filteredOptions to searchOptions

* Check if options then setState after searchOptions is updated

* Show all options under business details select controls
2021-03-02 09:06:29 +08: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
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
Elizabeth Pizzuti bc5c6a700b Updated copy in task lists (https://github.com/woocommerce/woocommerce-admin/pull/6298) 2021-02-11 12:57:51 +13:00
renovate[bot] 8c9235096c Update wordpress monorepo (https://github.com/woocommerce/woocommerce-admin/pull/6013)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lourens Schep <lourensschep@gmail.com>
Co-authored-by: Sam Seay <samueljseay@gmail.com>
2021-02-11 10:52:39 +13: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
Moon d5d57097e4 Update/inconsistent button look in OBW (https://github.com/woocommerce/woocommerce-admin/pull/6112)
* Set isBusy for the continue button on Store Details

* Set isBusy for the continue button on Industry

* Set isBusy for the continue button on Product Types
2021-01-21 14:53:47 -08:00
Fernando f6fce948dc Fixed empty string filtering (https://github.com/woocommerce/woocommerce-admin/pull/6139)
This commit fixes the empty string filtering in OBW

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-01-21 16:59:47 -03:00
Joshua T Flowers bc998444a3 Future proof experimental components (https://github.com/woocommerce/woocommerce-admin/pull/5961)
* Possibly use safe Text component

* Possibly use safe navigation components

* Add experimental package

* Update components to import from woocommerce/experimental

* Make experimental package private

* Reference experimental package relatively

* Update packages/experimental/README.md

Co-authored-by: Paul Sealock <psealock@gmail.com>

* Update packages/experimental/CHANGELOG.md

Co-authored-by: Paul Sealock <psealock@gmail.com>

* Update history state instead of mocking getQuery in tests

* Handle PR feedback

* Create excluded externals array and return early

Co-authored-by: Paul Sealock <psealock@gmail.com>
2021-01-07 18:57:09 -05:00
Moon 44571a0379 Fix visual glitches on OBW when screen width is less than 438px (https://github.com/woocommerce/woocommerce-admin/pull/6001)
* Added media selector to target viewport size less than 438px for the label

* Added media selector to target viewport size less than 375px for the pricing label
2021-01-07 10:23:40 -08: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
Joshua T Flowers f3f6b31a49 Localize regional currency information for use during onboarding setup (https://github.com/woocommerce/woocommerce-admin/pull/5969)
* Provide localeInfo via wcSettings

* Provide currency symbols via wcSettings

* Use localized data to derive currency

* Decode entities and fix spaces after setting currency

* Determine currency by country instead of region

* Handle PR feedback

* Remove country info and symbol fallbacks
2021-01-04 13:04:58 -05:00
Moon 082b6c1089 Update ce4wp_referred_by option when Creative Mail gets activated during the onboarding process (https://github.com/woocommerce/woocommerce-admin/pull/5978) 2020-12-29 13:21:24 -08:00
Joshua T Flowers a6c109e032 Update onboarding setup wizard to use WP Card component (https://github.com/woocommerce/woocommerce-admin/pull/5896)
* Use WP Card for onboarding cards

* Fix business extensions border

* Fix lint and test errors
2020-12-21 14:34:22 -05: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
Moon aff8a66fe7 Add missing namespace for translation (https://github.com/woocommerce/woocommerce-admin/pull/5905) 2020-12-17 16:06:39 -08:00
Moon 7e0364f026 Disable the continue button while requests are being made (https://github.com/woocommerce/woocommerce-admin/pull/5704)
* Disable the continue button while requests are being made

* Use isUpdatingProfileItems method name for all

* Add disabled attr for the choose buttons
2020-12-01 14:56:17 -08:00
Vasily Belolapotkov 5dab25382f Add/wcpay usage tracking request (https://github.com/woocommerce/woocommerce-admin/pull/5248)
Fixes woocommerce/woocommerce-admin#5294 and Automattic/woocommerce-paymentswoocommerce/woocommerce-admin#810 .

Changes:

* Update UsageModal UI to have two action buttons instead of 'Count me in' checkbox.
* Make UsageModal configurable with custom title, message and buttons text.
* Add customized modal to request site usage tracking after WC Payments KYC flow is completed.
2020-11-26 13:27:37 +13:00
Sam Seay d43e45576d Revert the smart tax defaults work of woocommerce/woocommerce-admin#4594. (https://github.com/woocommerce/woocommerce-admin/pull/5720) 2020-11-25 08:36:04 +13:00
Fernando a4ed451065 Changed price toggle placement (https://github.com/woocommerce/woocommerce-admin/pull/5708)
* Changed price toggle placement

This commit changes the price toggle placement

* Fixed margin

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-11-23 11:40:14 -03:00
Sam Seay be47d9d795 Only import the Gridicons we need, to reduce package size. (https://github.com/woocommerce/woocommerce-admin/pull/5668) 2020-11-19 09:52:24 +13:00
Jeff Stieler 3857d03e1d Fix WCS slug. (https://github.com/woocommerce/woocommerce-admin/pull/5614)
Tracks data was checking FB install instead.
2020-11-13 15:31:18 -05:00