Commit Graph

5652 Commits

Author SHA1 Message Date
louwie17 7f38f6fd0a Feature/7319 add woocommerce com data (https://github.com/woocommerce/woocommerce-admin/pull/7553)
* Add woocommerce.com data source poller

* Change data source back to .com

* Fix namespace

* Make use of the sub_title prop to display payment cards

* Fix some styling issue and add TS types

* Rename admin script to keep it more generic

* Add br tag as allowed, and update expected data format

* Update styling

* Address PR feedback
2021-09-09 09:25:13 -03:00
louwie17 4c4161ac3c Render psuedo wc pay payment gateway in payment method table (https://github.com/woocommerce/woocommerce-admin/pull/7550)
* Render psuedo wc pay payment gateway in payment method table

* Fix lint errors

* Fix lint error

* Add setup event and make use of script_assets file

* Left align payment icons

* Fix feature import and update pageview track

* Fix broken test and add an extra one

* Fix payment method ordering persistance

* Remove the use of psuedo and addressed several PR related feedback

* Fix PHP lint errors

* Make sure track props use underscore

* Fix test

* Update comment

* Add await
2021-09-08 13:41:00 -03:00
louwie17 e6cf391141 Make sure batch fetch resolved data remains consistent (https://github.com/woocommerce/woocommerce-admin/pull/7587)
* Adjust batch fetch logic so data stays the same

* Fix receive options action call

* Resolve returned result

* Add missing await
2021-09-08 09:37:44 -03:00
Joshua T Flowers 13fe7c4c7a Add marketing task testing instructions (https://github.com/woocommerce/woocommerce-admin/pull/7624) 2021-09-07 16:00:11 -04:00
Tomek Wytrębowicz 143113be8a Add optional parameter to `/currency`'s `formatAmount` to display currency code. (https://github.com/woocommerce/woocommerce-admin/pull/7575)
* Add optional parameter to `/currency`'s `formatAmount` to display currency code.

To support rendering non-ambiguous results.

* Add the changelog entry.
2021-09-06 11:52:01 +08:00
renovate[bot] 9295de2bb6 Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/7510)
* Lock file maintenance

* Rework package lock to revert all deps that has @wordpress/elements@3.2.0 update

* Update lock again

* Add missing deps for woocommerce/onboarding

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2021-09-04 12:40:45 +08:00
louwie17 4fb6841e40 Add task list and activity panel E2E tests (https://github.com/woocommerce/woocommerce-admin/pull/7509)
* Add hide and show task list tests

* The start to adding tests for the activity panel

* Add activity panel tests and WP-API plugin on initialize

* Update task list tests to be more flexible

* Add changelog in package

* Update the re-enable task list logic to be more robust

* Use a more generic selector

* Make sure task list is shown in previous test

* Add test screenshot

* Remove screenshot and update logic

* Address PR feedback
2021-09-03 08:21:43 -03:00
louwie17 016a355623 Only display expanded content when expanded is true (https://github.com/woocommerce/woocommerce-admin/pull/7611)
* Only display expanded content when expanded is true

* Add changelogs

* Fix test
2021-09-03 08:20:22 -03:00
Adrian Duffell 4c13bca528 Add Powered by Mailchimp text to newsletter sign-up label (https://github.com/woocommerce/woocommerce-admin/pull/7619)
* Add Powered by Mailchimp label text

* Vertically center confirmation checkbox
2021-09-03 19:13:31 +08:00
Joshua T Flowers 8f836c292f Create task list APIs (https://github.com/woocommerce/woocommerce-admin/pull/7577)
* Add endpoint to hide task lists

* Migrate old setup task list hidden option

* Use option to store all hidden lists

* Add getter for deprecated options

* Migrate old task list options

* Move task lists into separate class

* Add TaskList class for individual task list control

* Update hidden checks to use TaskList api

* Update docs for hidden lists

* Update use of should_show_tasks to check for visible task lists

* Remove hide endpoint to reduce scope on PR

* Fix up failing tests

* Fix up rebase

* Add back in should_show_tasks with deprecation notice

* Add delay between payment tests
2021-09-02 17:40:02 -04:00
Moon 89343470cb Remove docs command (https://github.com/woocommerce/woocommerce-admin/pull/7607) 2021-09-01 19:03:34 -07:00
Moon 7aa1cd79d0 Check if file exists (https://github.com/woocommerce/woocommerce-admin/pull/7606) 2021-09-01 19:03:25 -07:00
Moon 8e2d0bacc2 Sync 2.6.0 and 2.6.1 changelog back to main (https://github.com/woocommerce/woocommerce-admin/pull/7608)
* Sync changelog

* Update changelog
2021-09-01 18:27:13 -07:00
Joshua T Flowers 6300e8aacd Add task list components to consume task list REST API (https://github.com/woocommerce/woocommerce-admin/pull/7556)
* Add initial task list render

* Add task list item render

* Separate task list menu component

* Fix click handling for tasks

* Add task started count data

* Scroll to top after selecting task

* Handle PR feedback

* Handle PR feedback round 2
2021-09-01 17:28:24 -04:00
louwie17 d86864275b Adjust marketing completion logic (https://github.com/woocommerce/woocommerce-admin/pull/7586)
* Add woocommerce_task_list_visited_tasks option for marketing task completion

* Add changelog

* Use trackedCompletedActions to track completed actions

* Change completed action name

* Check # of installed extension for the completion logic

* Do not update completed action if marketing already exists

Co-authored-by: Moon <moon.kyong@automattic.com>
2021-09-01 14:02:44 -07:00
louwie17 b8fc676b48 Adjust task item class name to prevent conflicts with older versions (https://github.com/woocommerce/woocommerce-admin/pull/7593)
* Adjust task item class name to prevent conflicts with older versions

* Fix styling lint errors

* Add changelog

* Fix more lint errors
2021-08-31 08:16:19 -07:00
Joshua T Flowers f136b770d6 Update completed task option when task lists are retrieved (https://github.com/woocommerce/woocommerce-admin/pull/7549)
* Update completed task option when task lists are retrieved

* Update action calls to filter
2021-08-31 10:38:51 -04:00
Adrian Duffell 2ce0cd9519 Update email pre-fill endpoint to be experimental (https://github.com/woocommerce/woocommerce-admin/pull/7602) 2021-08-31 16:38:21 +08:00
Adrian Duffell 6d23ab7ea1 Add newsletter signup to profiler (https://github.com/woocommerce/woocommerce-admin/pull/7601)
* Add email address field to store details step in OBW (https://github.com/woocommerce/woocommerce-admin/pull/7552)

* Subscribe store_email to MailChimp (https://github.com/woocommerce/woocommerce-admin/pull/7579)

* Add prefill for email field in OBW (https://github.com/woocommerce/woocommerce-admin/pull/7570)

* Add error handling for email validation errors from backend (https://github.com/woocommerce/woocommerce-admin/pull/7590)

* Remove OnboardingEmailMarketing note class (https://github.com/woocommerce/woocommerce-admin/pull/7595)

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
Co-authored-by: Moon <moon.kyong@automattic.com>
2021-08-31 12:39:04 +08:00
Moon ccdd32282d Fix 'cannot read property' error from ExPlat (https://github.com/woocommerce/woocommerce-admin/pull/7600)
* Change option value path

* Try wcSettings.preloadSettings.general first

* Add changelog
2021-08-30 20:31:03 -07:00
Moon e6833b19eb CSS override for the plugin header (https://github.com/woocommerce/woocommerce-admin/pull/7598) 2021-08-30 20:09:57 -07:00
Moon aaf7832ddb Feature/add logger to rin (https://github.com/woocommerce/woocommerce-admin/pull/7194)
* Add evaluation logger

* Update readme

* Use simplified log format

* Add a new line at the end

* Move constant checking to consumer level

* Rename constant name

* Check constant before checking the value

* Fix test

* Add changelog

* Move initialization of the logger to RuleEvaluator and use more generic constant name

* Remove the default source value

* Update readme.txt

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

* Update src/RemoteInboxNotifications/README.md

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

* Update src/RemoteInboxNotifications/RuleEvaluator.php

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

* Add soruce -- remote-inbox-notifications

* Move WC_ADMIN_DEBUG_RULE_EVALUATOR check to the logger

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2021-08-30 13:26:36 -07:00
Moon 0a1a07cc54 Use !important to force padding:0 (https://github.com/woocommerce/woocommerce-admin/pull/7594)
* Use !important to force padding:0

* Remove card body component
2021-08-30 12:59:05 -07:00
Moon 59f0ffd1a6 Fix broken tests with the latest WC (https://github.com/woocommerce/woocommerce-admin/pull/7582) 2021-08-30 12:02:38 -07:00
Fernando 5f664bdade Fix marketing task visibility (https://github.com/woocommerce/woocommerce-admin/pull/7580)
* Fixed marketing task visibility

This commit fixes the marketing task visibility

* Add changelog

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-08-30 14:21:04 -03:00
louwie17 aeaf96c715 Fix business step auto installing (https://github.com/woocommerce/woocommerce-admin/pull/7585)
* Only select installable extensions

* Add two tests to cover this use case

* Add changelog

* Fix lint error
2021-08-30 11:46:37 -03:00
Moon 03fb7e87a6 Add/7481 cmd to collect testing instructions (https://github.com/woocommerce/woocommerce-admin/pull/7499)
* Add a new command to build testing instructions by a given version

* Check - [ ] Include test instructions in the release checkbox

* Fix code format

* Code cleanup

* Fix config error

* Update README.md

* Update README.md

* Update README.md

* Remove js version

* Remove test file

* A minor refactor

* Reuse parse() method from the WCAdminFormatter.php

* Exclude PRs with "no release testing instructions" label

* Remove Requests:multi_request dependency

* Remove wp load script
2021-08-27 13:47:16 -07:00
Joel Thiessen 26e6e62bd9 Updating eway logo in payment suggestions defaults (https://github.com/woocommerce/woocommerce-admin/pull/7562) 2021-08-26 08:58:39 -07:00
Rua Haszard 0225ffdb8d show Pinterest for WooCommerce in `Marketing > Installed` (https://github.com/woocommerce/woocommerce-admin/pull/7417)
* show Pinterest for WooCommerce in `Marketing > Installed`

* tweak Pinterest bounding rect so padding is consistent with other icons

* add changelog entry

* add testing instructions

* tweak wording for clarity

* link to correct Pinterest admin settings URL

* detect if Pinterest is set up & link to onboarding if appropriate

* add utm_medium campaign link tracker tag to docs link

* change all the logs 🪵

* Remove redundant changelog entry from readme

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

* remove todo for Pinterest onboarded/setup status (now implemented)

Co-authored-by: Rua Haszard <rua@automattic.com>
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2021-08-26 15:47:17 +12:00
Joshua T Flowers 32e8f90c47 Add task selectors and actions to onboarding data store (https://github.com/woocommerce/woocommerce-admin/pull/7545)
* Add selector for task lists

* Add snooze task actions

* Add dismiss task actions

* Create utility function to update task in task list

* Add undo endpoints

* Add task lists to default onboarding state

* Add undo function reducer cases

* Handle PR feedback
2021-08-25 21:42:26 -04:00
louwie17 dda9d120b6 Add HK and SG countries to back up wc pay supported lists (https://github.com/woocommerce/woocommerce-admin/pull/7558)
* Add HK and SG countries to back up wc pay supported lists

* Add changelog
2021-08-25 16:28:04 -03:00
Joel Thiessen ea17558e9a Adding undo snooze endpoint (https://github.com/woocommerce/woocommerce-admin/pull/7560) 2021-08-25 11:43:05 -07:00
louwie17 6093db043a Fix wrong function name (https://github.com/woocommerce/woocommerce-admin/pull/7557) 2021-08-24 16:04:49 -03:00
Joel Thiessen b17e3c5aa2 Create snooze task endpoint (https://github.com/woocommerce/woocommerce-admin/pull/7539) 2021-08-24 10:05:58 -07:00
louwie17 022f7a173a Remove depreciated shared settings hook (https://github.com/woocommerce/woocommerce-admin/pull/7480)
* Initial set up for the WCAdminSettingsRegistry

* Make use of filter for admin settings

* Add wc/settings package and remove depreciated dropzone wrapper

* Make use of the getSetting function instead of accessing window directly

* Add comments

* Add changelog

* Remove un needed changes

* Update dropzone provider logic and fix styling

* Remove old css
2021-08-24 08:39:48 -03:00
louwie17 c6abb21840 Fix country region select with autocomplete (https://github.com/woocommerce/woocommerce-admin/pull/7497)
* initial refactor

* Fix auto fill and write tests

* Removed autofill from country/region and added support for abbreviation regions

* Add changelog

* Add changelog for the component package

* Fix clear form for autofill
2021-08-23 14:36:00 -03:00
Joshua T Flowers 7cb06f00fd Add tasks feature flag (https://github.com/woocommerce/woocommerce-admin/pull/7522)
* Add feature flags for tasks feature

* Add tasks initial render and placeholder to layout

* Fix lint errors
2021-08-23 10:29:20 -04:00
Joshua T Flowers 29f17a0564 Add task dismissal endpoints (https://github.com/woocommerce/woocommerce-admin/pull/7538)
* Add dismiss task endpoint

* Add undismiss endpoint

* Add tracks to dismissal functions

* Add the task dismissal status to the response

* Add changelog entry
2021-08-23 10:08:04 -04:00
Joshua T Flowers f24bef9882 Skip scheduling action if Action Scheduler tables have not been set up (https://github.com/woocommerce/woocommerce-admin/pull/7521)
* Skip scheduling action if Action Scheduler tables have not been set up

* Add changelog entry

* Add PR number to changelog entry
2021-08-20 09:09:00 -04:00
Moon e10b2db0b1 Bump package versions (https://github.com/woocommerce/woocommerce-admin/pull/7544)
* Bump package versions

* Preserve the previous version changelog
2021-08-19 17:17:33 -07:00
Moon 4e5e5578c5 Sync changelog and testing instructions up to 2.6.0 (https://github.com/woocommerce/woocommerce-admin/pull/7541)
* Sync changelog and testing instructions

* Update release date
2021-08-19 15:57:57 -07:00
NekoJonez 71a173f14f Deleting unneeded double spaces in text strings. (https://github.com/woocommerce/woocommerce-admin/pull/7502) 2021-08-19 11:07:37 -04:00
Joshua T Flowers 77963a5814 Create task list REST API endpoint (https://github.com/woocommerce/woocommerce-admin/pull/7512)
* Include is_installed property with extension response

* Allow fetching specific extension bundles

* Move all tasks to REST endpoint

* Fix purchase extensions and wcpay completion logic

* Fix purchaseable product strings

* Add changelog entry

* Fix unfilled profiler data for product types
2021-08-19 10:39:02 -04:00
Jeff Stieler d3e940208e Refactor package style builds (https://github.com/woocommerce/woocommerce-admin/pull/7531)
* Build experimental package CSS with webpack.

* Move style-only webpack config to reusable private package.

* Update other packages to use webpack for style builds.

* Add tsbuildinfo to clean scripts.

* Fix main start script.

* Remove defunct package build scripts.

* Move client/ dependencies for style builds.

* DRY.

* Remove defunct IE stylesheet definitions.

* Add missing RTL setup for onboarding styles.

* No need to export a function.

* Add changelog.

* Fix README.

* Revert concurrently script path change.
2021-08-19 10:15:59 -04:00
Maria Górska-Piszek a93fe16085 Add Marketplace and My Subscriptions to the new WooCommerce Navigation. (https://github.com/woocommerce/woocommerce-admin/pull/7529)
* Add Marketplace and My Subscriptions items to the new WooCommerce Navigation.
2021-08-19 10:36:13 +02:00
Adrian Duffell 091897aba9 Update packages for publishing (https://github.com/woocommerce/woocommerce-admin/pull/7535)
* Bump explat version

* Bump onboarding version
2021-08-19 12:42:57 +08:00
Adrian Duffell d08ab10900 Update packages for publishing (https://github.com/woocommerce/woocommerce-admin/pull/7534)
* Bump explat version

* Bump onboarding version
2021-08-19 10:32:46 +08:00
Moon be3e4f174f Add woo_country_code param to the assignment fetch request in ExPlat (https://github.com/woocommerce/woocommerce-admin/pull/7533)
* Add woocommerce_default_country to explat param

* Add window interface in utils

* Add changelog
2021-08-18 17:25:16 -07:00
Moon 7559f324f0 Bump the fallback WP version to 5.8.0 (https://github.com/woocommerce/woocommerce-admin/pull/7532) 2021-08-18 14:20:17 -07:00
Moon d2e1e3feff Fix broken PHP linter workflow (https://github.com/woocommerce/woocommerce-admin/pull/7526)
* Remove dollar sign and space to fix the syntax error.

Remove dollar sign and space

* , separated file list does not work with phpcs. Use space instead
2021-08-18 11:15:58 -07:00