Commit Graph

5393 Commits

Author SHA1 Message Date
Matt Sherman 30a808f49b Remove old changelog from readme.txt and update minimum requirements (https://github.com/woocommerce/woocommerce-admin/pull/7774)
* Remove old changelog from readme.txt and update minimum requirements
* Update WC requires/tested versions in plugin comment block
2021-10-11 14:33:09 -04:00
Ilyas Foo 364b284e3e Fix analytics crashing on daylight saving (https://github.com/woocommerce/woocommerce-admin/pull/7763)
* Fix next_day_start from miscalculating daylight saving dates

* Add failsafe for do-while loop in next_week_start

* Add changelog

* Add seconds to setTime
2021-10-11 09:45:24 +08:00
Joshua T Flowers 76c082ff2c Add TaskList unit tests (https://github.com/woocommerce/woocommerce-admin/pull/7754)
* Add TaskList unit tests

* Remove extra prefix event method

* Fix up test vars
2021-10-08 17:01:37 -04:00
Joshua T Flowers d8f3aca83a Use action to verify appearance task completion (https://github.com/woocommerce/woocommerce-admin/pull/7770)
* Use task action to verify appearance completion

* Add migration for old option

* Handle PR feedback
2021-10-08 17:01:12 -04:00
leonardo lopes de albuquerque 2521d7d073 Fix nesting div inside p element (https://github.com/woocommerce/woocommerce-admin/pull/7704)
* changed p element to div to allow inner elements. This prevents warnings when using ReportCard component woocommerce/woocommerce-admin#7703

* added testing instructions and changelog woocommerce/woocommerce-admin#7703

* removed unnecessary test description woocommerce/woocommerce-admin#7703

Co-authored-by: Leonardo Lopes de Albuquerque <leonardo.albuquerque@automattic.com>
2021-10-07 11:47:14 -03:00
Ilyas Foo cc1dab6e70 Bump admin-e2e-tests version to 0.1.2 (https://github.com/woocommerce/woocommerce-admin/pull/7764) 2021-10-07 13:05:40 +08:00
Joshua T Flowers eefb1c2513 Add missing task events (https://github.com/woocommerce/woocommerce-admin/pull/7744)
* Add task view event

* Fix double prefix on events

* Add shared trait for event recording

* Fix double prefixed events

* Use record_tracks_event to record task related events

* Handle PR feedback

* Add parent ID to temporary extended tasks

* Fix prefixing order
2021-10-06 16:48:55 -04:00
Joshua T Flowers ba71478725 Clean up task related functions (https://github.com/woocommerce/woocommerce-admin/pull/7739)
* Move active task transient

* Move default tasks to constant

* Move task return notice scripts

* Remove redundant task completion check

* Move deprecated options to separate class

* Move media scripts to appearance task

* Fix up missing classes
2021-10-06 16:48:28 -04:00
louwie17 6852ec0571 Make sure the depreciated onClick is triggered and container is used (https://github.com/woocommerce/woocommerce-admin/pull/7749)
* Make sure the depreciated onClick is triggered and container is used

* Fix the extended tasks condition

* Add sort by support for task list

* Revert extension example changes back

* Move sorting tasks to the API and add asc/desc support

* Revert extension example changes

* Update sort function naming
2021-10-06 15:47:41 -03:00
Jacob Sewell 6aa8afa85a Minor design update to marketing task (https://github.com/woocommerce/woocommerce-admin/pull/7732)
* Remove background color from marketing tool list header, increasee padding in plugin list, rearrange list borders.

* Changelog entry for 7642.

* Section heading tweaks: bottom padding, force uppercase.

* Move Marketing task plugin list changes into more specific stylesheet.
2021-10-06 12:26:27 -05:00
Fernando aef7742b69 Add testing instructions to 7445 (https://github.com/woocommerce/woocommerce-admin/pull/7759)
* Add testing instructions

* Fix typo

* Fix release version

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-10-06 14:04:59 -03:00
Ron Rennick 5a8a019465 restore closed overview sections before testing (https://github.com/woocommerce/woocommerce-admin/pull/7652)
* restore closed overview sections before testing

* add changelog entry
2021-10-06 13:24:10 -03:00
Fernando f35fae4482 OBW - Fix WooCommerce Payments installation footnote visibility (https://github.com/woocommerce/woocommerce-admin/pull/7756)
* Fixed `wc-pay` footnote visibility

* Added validation before `setState`

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-10-06 13:09:20 -03:00
Ron Rennick c0759cdbe3 update waitFor calls to waitForFunction, waitForTimeout (https://github.com/woocommerce/woocommerce-admin/pull/7646)
* update waitFor calls to waitForFunction, waitForTimeout

* fix linting

* move waitForTimeout to general utility function
2021-10-06 11:07:09 -03:00
Matt Sherman f3b0441f80 Update WC requires/tested versions (https://github.com/woocommerce/woocommerce-admin/pull/7755) 2021-10-06 09:39:39 -04:00
Ron Rennick 09a285cb52 add Customers page E2E test (https://github.com/woocommerce/woocommerce-admin/pull/7645) 2021-10-06 09:59:44 -03:00
Paul Sealock 5fb4fb51a9 wp-env: Use WooCommerce Core latest (https://github.com/woocommerce/woocommerce-admin/pull/7752) 2021-10-06 20:42:45 +13:00
Moon 9d75d82eb1 Use target: es2019 for backward compatibility (https://github.com/woocommerce/woocommerce-admin/pull/7658) 2021-10-06 14:52:42 +08:00
louwie17 3bda07aec3 Add status param support for dismissing all notes (https://github.com/woocommerce/woocommerce-admin/pull/7743)
* Add status param support for dismissing all notes

* Add changelog

* Add unit test for new arg in /delete/all endpoint
2021-10-05 15:37:52 -03:00
Joshua T Flowers 0b8596f53c Remove tasks feature flag and old components (https://github.com/woocommerce/woocommerce-admin/pull/7736)
* Remove feature flag

* Remove unused task status items

* Remove old task list components

* Remove more unused task status items

* Move completion checking to TaskList class

* Move completion checking to Task class

* Add changelog entry

* Fix up old task-list component references

* Remove flag around slotfill area

* Add back missing task stylesheet

* Move task specific styles to respective fills

* Add PR number to changelog entry
2021-10-05 14:20:28 -04:00
Joshua T Flowers 93b42ad9ef Add an endpoint and method for actioning tasks (https://github.com/woocommerce/woocommerce-admin/pull/7746)
* Add checks for actioned task status

* Update completion logic for task

* Add rest route for actioning tasks

* Add action in data store for actioning tasks

* Add test for actioning task

* Only prune isActioned from task data
2021-10-05 13:07:50 -04:00
Fernando 5d7661eeb9 Store Profiler and Product task - include Subscriptions (https://github.com/woocommerce/woocommerce-admin/pull/7734)
* Add flag

* Add free subscription to Product Types step

* Show copy and install WC-Pay when `Subscriptions` is checked

* Fixed `Start with a template` description

* Added flag to product-types and small refactor

* Add test for subscriptions

* Fixed wc-pay installation in product-types step

* Refactor product-template-modal

# Conflicts:
#	client/task-list/tasks/products/product-template-modal.js
#	client/tasks/fills/products/product-template-modal.js

* Add more tests

* Refactor product types list

* Add wc-pay activation in store profiler

* Add `wc-pay filter in business details step

* Add redirection after selecting subscriptions template option

* Fix prop renamed

* Fix product-types list

* Add changelog

* Fix typo

* Add check to `Free features`

* Refactor `SelectiveExtensionsBundle`

* Add `is_activated` to `EvaluateExtension`

* Add validation to `ProductTemplateModal` component

* Removed useless import

* Add missing flags

* Fix list

* Add promise.all to `product-types`

* Removed useless validation

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-10-05 09:27:30 -03:00
Joshua T Flowers ad0afb4aba Sync 2.7.1 changelog (https://github.com/woocommerce/woocommerce-admin/pull/7745) 2021-10-04 15:52:36 -04:00
Joshua T Flowers 5b553ff2ea Allow already installed marketing extensions to be activated (https://github.com/woocommerce/woocommerce-admin/pull/7740)
* Allow already installed marketing extensions to be activated

* Add installAndActivate to old task list

* Add changelog entry
2021-10-04 13:11:00 -04:00
Joel Thiessen 1d00a09ec3 Add show/hide behavior for task list API (https://github.com/woocommerce/woocommerce-admin/pull/7733)
Co-authored-by: Joshua Flowers <joshuatf@gmail.com>
2021-10-04 10:02:01 -07:00
Joshua T Flowers d3d2acdd25 Add optimistic task completion and cache invalidation (https://github.com/woocommerce/woocommerce-admin/pull/7722)
* Add action to optimistically complete task

* Optimistically mark shipping task complete

* Invalidate cache on task completion

* Add complete tax task handler

* Add completion handlers to remaining tasks
2021-10-01 15:53:22 -04:00
louwie17 5c9bf5d925 Add extended task list support to the new REST api task lists (https://github.com/woocommerce/woocommerce-admin/pull/7730)
* Add extended task list support to the new REST api task lists

* Some small refactors

* Small refactors from PR review

* Create extended tasks on the fly if added on the client

* Remove unneeded change

* Add level and additionalInfo support, also adding it to the WooCommerce Payments task

* Fix a mis-type in a comment
2021-10-01 15:46:23 -03:00
Joel Thiessen 9c5c39732b Only return viewable tasks from tasks endpoint (https://github.com/woocommerce/woocommerce-admin/pull/7718) 2021-09-29 16:47:01 -07:00
Joshua T Flowers 43f68534ef Fix task list placeholder not showing (https://github.com/woocommerce/woocommerce-admin/pull/7724) 2021-09-29 14:30:34 -04:00
Joshua T Flowers a423bd0f52 Fix task snooze and dismiss functions (https://github.com/woocommerce/woocommerce-admin/pull/7728)
* Fix tax snoozeability

* Fix tax dismissal endpoint

* Clean up undo endpoints

* Fix up task visibility

* Handle PR feedback
2021-09-29 13:55:44 -04:00
Matt Sherman 45122db842 Bump version to 2.9.0-dev (https://github.com/woocommerce/woocommerce-admin/pull/7731)
* Bumps version to 2.9.0-dev

* Delete changelog files from 2.7.x and 2.8.0

* Update changelog for 2.7.1 and 2.8.0

* Update testing instructions for 2.7.1
2021-09-29 06:32:38 -04:00
Fernando fbd6d42574 Add experimental list documentation (https://github.com/woocommerce/woocommerce-admin/pull/7687)
* Moved task-item

* Moved task-item css

* Added readme.md

* Added storybook

* Renamed `remindMeLater

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-09-28 21:21:52 -03:00
louwie17 33ca13abc9 Fix category lookup class (https://github.com/woocommerce/woocommerce-admin/pull/7709)
* Initial test

* Add category look up tests

* Add more tests

* Add changelog

* Update PR number in changelog
2021-09-28 13:59:10 -03:00
Joshua T Flowers a2f78f156b Migrate tasks to task API (https://github.com/woocommerce/woocommerce-admin/pull/7699)
* Move purchase task

* Move products task

* Move WC Pay task

* Fix property casing

* Move payments task

* Move tax task

* Migrate shipping task

* Move marketing task

* Migrate appearance task

* Remove deprecated task filters

* Move logic to respective model

* Fix task list methods

* Update visibility to can_view property

* Add default tasks on demand

* Handle PR feedback
2021-09-27 16:55:55 -04:00
Joel Thiessen 14c38190ac Fixing error thrown when dimissing/snoozing tasks via API (https://github.com/woocommerce/woocommerce-admin/pull/7697) 2021-09-27 13:06:40 -07:00
louwie17 da395281e7 Add changelog and enable promotion in core and plugin configs (https://github.com/woocommerce/woocommerce-admin/pull/7666)
* Add changelog and enable promotion in core and plugin configs

* Add PR number

* Make variation name a constant

* Clone spec as we are overwriting the is_visible prop

* Fix unit tests and support array and object

* Revert explat variation name

* Update changelog entry

* Update changelog once more

* Make sure the recommendations show up if marketplace suggestions is not defined defaulting to 'yes'
2021-09-27 10:24:47 -03:00
Joshua T Flowers 48539bf3f4 Update option list migrations to run on 2.7.1 (https://github.com/woocommerce/woocommerce-admin/pull/7705) 2021-09-24 13:04:43 -04:00
Moon 99705f4ea2 Sync changelog entires from 2.6.x releases (https://github.com/woocommerce/woocommerce-admin/pull/7664)
* Sync changelog

* Update changelog
2021-09-23 21:15:57 -07:00
louwie17 114069a06e Add old option back with depreciated notice for backwards compatibility (https://github.com/woocommerce/woocommerce-admin/pull/7688)
* Add old option back with depreciated notice for backwards compatibility

* Add changelog

* Update depreciation message
2021-09-23 16:14:45 -03:00
Jacob Sewell c0ea027afa Fix/7591 eWAY to Eway (https://github.com/woocommerce/woocommerce-admin/pull/7678)
* Change eWAY to Eway.

* Change eWAY to Eway.

* Create changelog for PRwoocommerce/woocommerce-admin#7678 (fixes Issuewoocommerce/woocommerce-admin#7591)
2021-09-23 10:08:00 -05:00
louwie17 8969c01c06 Fix track properties and add warning for wrong track format (https://github.com/woocommerce/woocommerce-admin/pull/7677)
* Fix track properties and add warning for wrong track format

* Add changelog

* Add eslint disable for console warning

* Remove unneeded change
2021-09-23 10:39:44 -03:00
Ilyas Foo 804116be18 Bump admin-e2e-tests version to 0.1.1 (https://github.com/woocommerce/woocommerce-admin/pull/7700)
* Bump admin-e2e-tests to 0.1.1

* Add missed changes to changelog
2021-09-23 20:10:10 +08:00
louwie17 6f9cd96867 Fix issue where variation name might not exist in analytics (https://github.com/woocommerce/woocommerce-admin/pull/7686)
* Make sure name is defined before using indexOf

* Add changelog
2021-09-23 08:58:10 -03:00
louwie17 3b2cce8814 Include yoast phpunit polyfills in phpunit tests (https://github.com/woocommerce/woocommerce-admin/pull/7695)
* Include yoast phpunit polyfills in phpunit tests

* Do a normal composer install

* Use original composer.lock

* Remove the use of composer 1

* Fix asset url

* Fix failed test with file rename

* Make sure plugin_dir_url is pointing at a file

* Fix asset url take 3

* Fix lint error
2021-09-23 18:01:52 +08:00
Hsing-yu Flowers 082c6e3edd Assign parent order status as children order status if refund order (https://github.com/woocommerce/woocommerce-admin/pull/7253)
* Assign parent order status as children order status if refund order

* Handle feedback

* Add changelog entry

* Check order type before calling get_refunds
2021-09-23 15:45:54 +08:00
Jacob Sewell 78d280ebf7 Add France to list of countries that get Square as an option… (https://github.com/woocommerce/woocommerce-admin/pull/7679)
* Add France to list of countries that get Square as an option if selling venues includes brick-mortar or brick-mortar-other.

* Changelog for 7631_include_square_in_fr.
2021-09-22 14:12:41 -05:00
Joel Thiessen f187c6763a Adding SlotFill support for API-driven tasks components (https://github.com/woocommerce/woocommerce-admin/pull/7616) 2021-09-21 12:33:44 -07:00
Joshua T Flowers b8b7c94bd1 Fix unsecured report files (https://github.com/woocommerce/woocommerce-admin/pull/7691)
* Fix unsecured report files

* Add changelog entry
2021-09-21 12:06:49 -07:00
louwie17 f5dc970a0f Pass empty string instead of null to init (https://github.com/woocommerce/woocommerce-admin/pull/7692) 2021-09-21 14:40:14 -04:00
Joshua T Flowers 9a361dde6c Add Task API (https://github.com/woocommerce/woocommerce-admin/pull/7665)
* Add Task model API

* Add task dismiss and snooze methods

* Add tests

* Fix snooze time check
2021-09-20 17:17:22 -04:00
Ilyas Foo 2be141bd16 Fixes for analytics bugs introduced in 2.6 (https://github.com/woocommerce/woocommerce-admin/pull/7682)
* Return early when categories is not ready

* Revert "Fix blank screen on analytics categories when searching (https://github.com/woocommerce/woocommerce-admin/pull/7482)"

This reverts commit f696474e97.

* Revert "Increase per_page value for search results on the Analytics pages. (https://github.com/woocommerce/woocommerce-admin/pull/7385)"

This reverts commit 8045c92b96.

* Add back working changes

* Add changelog
2021-09-20 12:29:26 -07:00
Joshua T Flowers fb85e6b7d9 Add hide task list endpoint and data actions (https://github.com/woocommerce/woocommerce-admin/pull/7578)
* Add task list hide endpoint and data store actions

* Fix requesting properties for hide task list request
2021-09-20 12:55:33 -04:00
Joshua T Flowers 99b01d6dd2 Add API methods to store task lists and tasks (https://github.com/woocommerce/woocommerce-admin/pull/7663)
* Add API methods to store task lists and tasks

* Fix list string i18n
2021-09-20 12:55:08 -04:00
Ron Rennick f028d728fa allow CBD to be optional in business details in E2E (https://github.com/woocommerce/woocommerce-admin/pull/7675) 2021-09-17 10:55:29 -06:00
Moon aed89bfdc5 Console command to order PRs by merge date (https://github.com/woocommerce/woocommerce-admin/pull/7543)
* Add a command to sort PRs by merge date in asc -- this can be useful when we cherry-pick PRs for the releases

* Check # of arguments

* Convert PHP to shell script
2021-09-15 10:50:54 -07:00
Joel Thiessen 3ee60dc833 Fixing an unwanted page refresh when using Woo Navigation (https://github.com/woocommerce/woocommerce-admin/pull/7615)
* Adding changelog

* Fixing page refresh on woo navigation

* Narrowing scope of navigation slot fills
2021-09-15 09:42:54 -07:00
Jacob Sewell 3b3472595e Fix/7548 set up marketing tools title (https://github.com/woocommerce/woocommerce-admin/pull/7640)
* Fix Marketing tools header: add missing page title for marketing task.

* Add changelog.

* Add PR number to changelog entry for issue woocommerce/woocommerce-admin#7548.

Co-authored-by: Jacob Sewell <jacob.sewell@automattic.com>
2021-09-14 09:40:45 -05:00
Fernando f9ac95b5e5 Bump experimental version to 2.0.3 (https://github.com/woocommerce/woocommerce-admin/pull/7656)
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-09-13 15:02:57 -03:00
Fernando 7b9c721c16 Fernando Marichal (https://github.com/woocommerce/woocommerce-admin/pull/7654)
Bump experimental version to 2.0.2

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-09-13 13:18:43 -03:00
Joshua T Flowers 4c0939288e Get email prefill to avoid infinite loading state (https://github.com/woocommerce/woocommerce-admin/pull/7612) 2021-09-13 11:36:44 -04:00
louwie17 b5ccd3acf8 Add explat variation for wc pay promotion (https://github.com/woocommerce/woocommerce-admin/pull/7554)
* Add experimental abtest class and use it in WCPayPromotion

* Update experiment version data structure

* Address PR feedback
2021-09-10 10:50:58 -03:00
Fernando 291915d7a5 Bump experimental version (https://github.com/woocommerce/woocommerce-admin/pull/7651)
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-09-09 18:04:55 -03:00
Fernando 0fc0d533e0 Bump experimental version (https://github.com/woocommerce/woocommerce-admin/pull/7650)
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-09-09 16:13:13 -03:00
Fernando 2f1b03cc29 Add toggle to experimental task item (https://github.com/woocommerce/woocommerce-admin/pull/7632)
* Add toggle to experimental task item

This commit adds a toggle to experimental task item

* Fixed onClick for expandable tasks

* Add changelog

* Fixed changelog

# Conflicts:
#	packages/experimental/CHANGELOG.md

* Add callback

* Fixed class name

* Add useEffect to experimental-list

* Fixed tests

* Fixed experimental-list useEffect

* Add callback to Home screen task list

* Fixed missing border error

* Fixed wrapper classes

* Fixed lint

* Added missing semicolon

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-09-09 15:30:56 -03:00
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
Fernando cd768601e9 update changelog (https://github.com/woocommerce/woocommerce-admin/pull/7511)
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-08-18 09:17:39 -03:00
Moon c8bbd89d79 Add missing quote (https://github.com/woocommerce/woocommerce-admin/pull/7524) 2021-08-17 13:08:03 -07:00
Joel Thiessen 3591ee41a0 Making business details sticky in OBW (https://github.com/woocommerce/woocommerce-admin/pull/7426) 2021-08-16 15:34:33 -07:00
Moon affea0b25d Set default value for orders var (https://github.com/woocommerce/woocommerce-admin/pull/7506)
* Set default value for orders var

* Add changelog

* Add PR # to the changelog

* Return default orders in the early return statement

* Adding the default value for the order var

* Revert the early return changes
2021-08-13 12:27:54 -07:00
David Levin a53c618138 Update analytics card header text styles (https://github.com/woocommerce/woocommerce-admin/pull/6506)
* Update analytics card header text styles

* Add changelog entry

* Replace snapshot tests

Co-authored-by: Joshua Flowers <joshuatf@gmail.com>
2021-08-13 15:06:32 -04:00
David Levin c728cced1f Sentence case all the things analytics (https://github.com/woocommerce/woocommerce-admin/pull/6501)
* Sentence case all the things

* Update a few more things that were missed on the first round

* update documentation titles to use title case

* Add changelog

* Handle PR feedback

* Revert readme changelog changes

* Revert changes to ALT text in dev documentation

* Revert a change to ALT text in dev documentation

* Fix failing tests

Co-authored-by: David Levin <davidlevin@Davids-MacBook-Pro-2.local>
Co-authored-by: Joshua Flowers <joshuatf@gmail.com>
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2021-08-13 14:54:24 -04:00
Hsing-yu Flowers 78e49ab09e Fix end date for last periods (https://github.com/woocommerce/woocommerce-admin/pull/6584)
* Fix end date for last periods

* Test February end date for leap year

* Add changelog and testing instructions

* Handle feedback

* Fix merge conflict

* Add changelog
2021-08-12 11:06:21 -04:00
Maria Górska-Piszek 35d58de151 Split the Extensions page into Marketplace and My Subscriptions. (https://github.com/woocommerce/woocommerce-admin/pull/7471)
* Split the Extensions page into Marketplace and My Subscriptions.

* Add changelog entry.

Co-authored-by: And Finally <andfinally@users.noreply.github.com>
2021-08-12 09:22:46 +02:00
Francesco c1730d16f1 feat: add shipping marketplace recommendations (https://github.com/woocommerce/woocommerce-admin/pull/7446) 2021-08-11 17:09:32 -05:00
Moon 3398e03999 Add missing ---> tag (https://github.com/woocommerce/woocommerce-admin/pull/7494) 2021-08-11 07:11:13 -07:00
Renovate Bot f7ea47343e Pin dependencies 2021-08-11 01:57:50 +00:00
Moon 938b546f7f Add missing : in the changelog (https://github.com/woocommerce/woocommerce-admin/pull/7493)
* Add missing :
2021-08-10 12:11:06 -07:00
Joshua T Flowers 0ab7c7a3ec Remove the preloaded onboarding options (https://github.com/woocommerce/woocommerce-admin/pull/7338)
* Remove unused options

* Remove preloade tracking option

* Remove preloaded wc_connect_options

* Remove preloaded modal options

* Refactor requesting options into task list component

* Remove preloaded dismissed and completed tasks

* Add changelog entry

* Wait for modal before attempting to dismiss

* Attempt to make closing welcome modal more robust

* Update the payment E2E tests to support new app flow

* Update isResolving selectors to hasFinishedResolution

Co-authored-by: Lourens Schep <lourensschep@gmail.com>
2021-08-10 14:58:01 -04:00
Fernando 5ade1e1c66 Update changelog (https://github.com/woocommerce/woocommerce-admin/pull/7491)
* Update changelog

* Add PR #

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-08-10 11:31:07 -03:00
renovate[bot] c151950a6e Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/7448)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-10 09:53:30 -04:00
Adrian Duffell b21f659b27 Prepare packages for publishing (https://github.com/woocommerce/woocommerce-admin/pull/7492)
* Bump experimental package to 1.5.1

* Bump components package to 8.1.0
2021-08-10 19:42:03 +08:00
Adrian Duffell 7abbc6942b Add rimraf dev dependency (https://github.com/woocommerce/woocommerce-admin/pull/7485) 2021-08-10 18:11:11 +08:00
Moon 8f7101711d Set padding: 0 to override Gutenberg style (https://github.com/woocommerce/woocommerce-admin/pull/7488)
* Set padding: 0 to override Gutenberg style

* Add changelog

* Fix typo
2021-08-09 14:36:32 -07:00
Joshua T Flowers f34b234711 Add super admin check to preloaded user data (https://github.com/woocommerce/woocommerce-admin/pull/7489)
* Add super admin check to preloaded user data

* Add the current user data via filter instead of manually

* Add changelog entry
2021-08-09 17:37:24 -03:00
Joshua T Flowers 119b3ce1e3 Fix up onboarding profiler not working when opted out of tracking (https://github.com/woocommerce/woocommerce-admin/pull/7490)
* Add countries to onboarding preloaded data

* Only toggle off beta features when opting out of tracking

* Add changelog entry
2021-08-09 17:36:07 -03:00
louwie17 87d386ea85 Make sure defaultSections is a unique object, so we do not remove icon (https://github.com/woocommerce/woocommerce-admin/pull/7475)
* Make sure defaultSections is a unique object, so we do not remove icon by accident

* Add changelog

* Remove un needed change

* Update changelog
2021-08-09 17:32:51 -03:00
Ilyas Foo f696474e97 Fix blank screen on analytics categories when searching (https://github.com/woocommerce/woocommerce-admin/pull/7482)
* Fix unupdated API for analytics search items

* Update changelog

* Update changelogs/fix-7473-blank-screen-search-categories

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2021-08-09 17:28:49 +08:00
Ilyas Foo 178e1ba209 Fix all links with hash to behind query parameters (https://github.com/woocommerce/woocommerce-admin/pull/7483)
* Fix all links with hash to properly behind query parameters

* Update changelog
2021-08-09 17:27:54 +08:00
Dat Hoang d001ca23f0 Update component Table to align texts and numeric a bit smarter (https://github.com/woocommerce/woocommerce-admin/pull/7431)
* Update Table components to align texts and numeric a bit smarter

Text fields are left-aligned and numeric values should be right-aligned.

* Update a snapshot test

 npm run test:client -- --updateSnapshot client/analytics/components/leaderboard/test/index.js

* Add tests for property isLeftAligned
2021-08-09 08:04:06 +07:00
Chris Aprea 71aa954577 Do not retain values when switching between rules in the DateFilter component (https://github.com/woocommerce/woocommerce-admin/pull/7423)
* Do not retain values when switching between rules in the DateFilter component

* Add changelog entry

* Remove unnecessary use of the ternary operator

* Fix the changelog entry

* Add tests

* Add changelog entry

Co-authored-by: Chris <chris.aprea@automattic.comchris.aprea@automattic.comchris.aprea@automattic.com>
2021-08-06 15:39:16 +10:00
Moon b5e973ed18 Add changelog.txt (https://github.com/woocommerce/woocommerce-admin/pull/7464) 2021-08-05 15:49:37 -07:00
Moon 9a9fb8ccde Replace first occurrence of the bullet char instead of replacing all (https://github.com/woocommerce/woocommerce-admin/pull/7465) 2021-08-05 15:36:59 -07:00
Moon 9d9a2772e2 Sync changelog (https://github.com/woocommerce/woocommerce-admin/pull/7469) 2021-08-05 12:35:16 -07:00
Joshua T Flowers 7de9de823d Don't show the marketing task if no marketing tasks exist (https://github.com/woocommerce/woocommerce-admin/pull/7460) 2021-08-05 13:10:48 -04:00
Joshua T Flowers d5b0b664f8 Add default marketing extensions as fallbacks (https://github.com/woocommerce/woocommerce-admin/pull/7466) 2021-08-05 13:01:40 -04:00
Moon 5a21fe1dd0 Sync changelog (directory) and changelog.txt (https://github.com/woocommerce/woocommerce-admin/pull/7463)
* Delete changelogs that are already released

* Add missing changelogs for 2.4.2, 2.4.3, 2.4.4
2021-08-05 09:32:22 -07:00
Joshua T Flowers aaf64e7423 Add tracks to marketing manage button click (https://github.com/woocommerce/woocommerce-admin/pull/7467) 2021-08-05 12:26:57 -04:00
Adrian Duffell 4b5a40a9ee Add changelog entries for 2.4.x (https://github.com/woocommerce/woocommerce-admin/pull/7457) 2021-08-05 07:47:54 +08:00
Joshua T Flowers 365fb30674 Update business details to use extensions data store (https://github.com/woocommerce/woocommerce-admin/pull/7452)
* Add default free extensions to REST API response

* Use data store to retrieve free extensions

* Add back in product link click tracks

* Handle visibility and evaluation server-side

* Update sprintf to use entire link tag

* Fix up remote free extensions rule evaluation

* Add visibility rules to mailpoet

* Fix fallback to default payment gateways if polling fails

* Add changelog entry

* Fix empty array check

Co-authored-by: Matt Sherman <matt@jam123.com>
2021-08-04 11:57:09 -04:00
Joshua T Flowers f474fd5fe8 Add marketing task completion check and tests (https://github.com/woocommerce/woocommerce-admin/pull/7451)
* Extract extension list transformation logic

* Check for installed marketing extensions in the task list

* Add tests for marketing extension utils

* Remove use of useMemo in non-component
2021-08-04 10:55:15 -04:00
Joshua T Flowers d678d622f4 Delete free extensions transient on WCA update (https://github.com/woocommerce/woocommerce-admin/pull/7454)
* Delete free extensions transient on WCA update

* Rename extensions feature name
2021-08-04 09:23:47 -04:00