Commit Graph

21 Commits

Author SHA1 Message Date
louwie17 f16039684f Tests for task list components (https://github.com/woocommerce/woocommerce-admin/pull/7757)
* Added first set of task-list tests

* Fix event prefix and add two extra task list tests

* Add test for task list item

* Update package to allow tests with slotfill to work

* Add tests for Task component

* Add tasks tests

* Revert package.json changes

* Update prefixEvent function and revert package.json changes

* Remove class additions to body tag

* Add missing styles to tasks container as well
2021-10-15 16:56:17 -03:00
Fernando f20113fa01 Add country validation to subscription inclusion (https://github.com/woocommerce/woocommerce-admin/pull/7777)
* Add country validation

* Add OnboardingProductTypes

* Add OnboardingProductTypes

* Add country validation to product task

* Add `productTypes` data handling

* Add country validation and new productTypes handling

* Fix to get `productTypes` from a SSOT

* Add `invalidateResolution` for `getTaskLists`

* Fixed testing instructions

* Fix `isTaskListHidden` issue

* Fixed product type

* Added constant `EMPTY_ARRAY` to `selectors.ts`

* Fixed constant `EMPTY_ARRAY`

* Moved `invalidateResolutionForStoreSelector` into OBW

* Updated testing instructions

* Updated testing instructions

* Fixed testing instructions

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-10-13 13:15:47 -03:00
louwie17 beb05ae487 Move some of the deprecated tasks stuff outside of the main components (https://github.com/woocommerce/woocommerce-admin/pull/7761)
* Move some of the deprecated tasks stuff outside of the main components

* Do not add data to request when no depreciated tasks

* Move possiblePruneTaskData function to the deprecated-tasks class
2021-10-12 11:05:43 -03: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
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
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 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
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 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
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