Commit Graph

204 Commits

Author SHA1 Message Date
Chi-Hsuan Huang e37bc5e18f Add load sample product hook & modal component 2022-05-04 10:15:03 +08:00
moon 8219510fc5 Style update 2022-05-03 18:57:23 -07:00
moon 0a75c8d6be Adjust text color 2022-05-03 15:55:15 -07:00
moon d0b500a3f4 Import Stacks before CardList to fix the order error 2022-05-03 15:55:02 -07:00
moon 84fe952ba8 Add link to the card 2022-05-03 15:54:18 -07:00
moon bc634512af Remove unnecessary style 2022-04-29 16:01:05 -07:00
moon 4ee252b549 Style fix 2022-04-29 15:53:45 -07:00
moon 0958641c85 Update svg fill 2022-04-29 15:53:07 -07:00
moon 0c3a142e89 Convert svg to react component 2022-04-29 15:51:46 -07:00
moon 422018eb78 Refactor useProductTypeListItems to accept product types 2022-04-29 14:42:04 -07:00
moon 9cf2993975 Fix error with the items type 2022-04-28 20:45:49 -07:00
moon a441ff189b Add stacks 2022-04-28 20:39:09 -07:00
moon b03149a29c Align the stacks button center 2022-04-28 20:39:08 -07:00
moon b109eba8c7 Adjust styles and add initial stacks functionality 2022-04-28 20:38:31 -07:00
moon de836d1f79 Add Learn More link 2022-04-28 20:38:31 -07:00
moon 14cff0a001 Allow JSX.Element in content 2022-04-28 20:38:31 -07:00
Chi-Hsuan Huang 345a2ed60c Update experimental product stack layout style 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang 0d9d463d46 Update experimental-products default surfaced product types 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang 76777d2981 Refactor experimental-products functions 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang 6205c0208f Update card name & check support product types 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang e6d3ed3c3c Add loading sample product card 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang 48c89b2266 Add card view 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang 6248683042 Add tests for experimental add product task 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang cbfc393c6a Add use-create-product-by-type & use-product-types-list-items hooks 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang 5f233898bf Implement functionalities of experimental products 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang 843a59c0c4
Merge pull request #32735 from woocommerce/update/woo-data-types
Update `@woocommerce/data` & admin client type definitions
2022-04-28 18:03:14 +08:00
Ilyas Foo ff4d735238 Merge remote-tracking branch 'origin/trunk' into dev/32575-add-generic-fallback-image-payments-task 2022-04-28 11:56:58 +08:00
Chi-Hsuan Huang b938eb88f9 Update icons 2022-04-27 18:32:20 +08:00
Chi-Hsuan Huang 7eff6afd82 Add initial experimental-products component to show product stack component 2022-04-27 15:22:17 +08:00
Chi-Hsuan Huang d4dbf2f1a3 Add product stack component 2022-04-27 15:22:17 +08:00
moon 3b654321b1 Remove unnecessary style 2022-04-26 20:14:47 -07:00
moon 3d68bdbded Add CardList component 2022-04-26 14:15:11 -07:00
moon 7c32432bf1 Add feature flag experimental-import-products-task and base component 2022-04-26 13:03:30 -07:00
Chi-Hsuan Huang 255872e4a3 Update react admin tasks/fills to render experimental-products when the feature flag is on 2022-04-26 13:40:13 +08:00
Ilyas Foo 9eba4b93de Add fallback image 2022-04-26 12:10:26 +08:00
Chi-Hsuan Huang d0e31f9949 Add is_visible to Extension type 2022-04-26 09:34:52 +08:00
Chi-Hsuan Huang 678e893f60 Fix react admin ./client types after updating @woocommerce/data types 2022-04-25 15:17:28 +08:00
Chi-Hsuan Huang d94c1dc7bd Remove unnecessary wpDataselect & WCDataSelector types from react client 2022-04-25 14:17:28 +08:00
Lourens Schep 6ab9a9ae2c Add task list slot fill support in the sectioned task list 2022-04-22 12:04:51 -03:00
louwie17 f5ec1856c4
Merge pull request #32726 from woocommerce/add/32161
Add tracks to task list reminder bar
2022-04-22 11:00:45 -03:00
Fernando ee5d38d49c
Merge pull request #32704 from woocommerce/fix/task-list-style-conflict
Fix setup task list style conflict
2022-04-22 10:34:50 -03:00
Joshua Flowers 835b1e73a1 Add tracks to task list reminder bar 2022-04-21 12:01:56 -07:00
Chi-Hsuan Huang 66deb864ab Fix reamining type errors 2022-04-21 13:10:56 +08:00
Chi-Hsuan Huang 71e9073c0b Fix remaining task type errors 2022-04-21 12:44:19 +08:00
Chi-Hsuan Huang c5c1cf438a Fix task types 2022-04-21 09:04:32 +08:00
Fernando Marichal 5dbc394784 Fix task list style conflict 2022-04-20 10:12:08 -03:00
Ilyas Foo 89b7415297 Refactor and add unit tests 2022-04-15 18:42:07 +08:00
Joel Thiessen 35440c9b56
Supressing tasks reminder bar on products screen and addressing translation issue #32526 2022-04-14 12:06:20 -07:00
louwie17 19e57a4377
Merge pull request #32624 from woocommerce/update/minor_tasklist_changes
Update minor tasklist changes
2022-04-14 11:21:17 -03:00
Lourens Schep d59fa94d2f Add sectioned task list loading placeholder component 2022-04-14 09:48:53 -03:00
Chi-Hsuan Huang c546e9e6e7 Update payment method links to extension > payment section 2022-04-14 19:01:35 +08:00
Chi-Hsuan Huang 08466d8de1 Update payment method link to the internal Extensions Marketplace 2022-04-14 19:01:14 +08:00
Ilyas Foo 3668ea36c5 Small refactor to consolidate logic 2022-04-14 17:09:10 +08:00
Ilyas Foo 1a129a2354 Change recommended ribbon to Pill 2022-04-14 10:52:12 +08:00
Ilyas Foo 6f8cb2b536 Merge remote-tracking branch 'origin/trunk' into update/32132-payment-logic-in-task-and-settings 2022-04-14 09:48:39 +08:00
Ilyas Foo 54ea7c9cbe Revert previous image attribute to preserve old images and new icons are replace with new attribute 2022-04-14 09:45:27 +08:00
Ilyas Foo adbc101312 Update logic to only show additional gateways when other is installed and wcpay isnt eligible 2022-04-14 08:39:55 +08:00
Ilyas Foo 39c57c802f Fix tests 2022-04-14 08:38:42 +08:00
Ilyas Foo c81d749781 Fix cases when gateway is disabled but has been set up 2022-04-14 08:37:53 +08:00
Joel T 0ec373734f Replacing condition depending on pageTitle due to translation issues 2022-04-13 16:24:55 -07:00
Joel T bc9ce569b0 Adding Products screens to those that will not show tasks reminder bar 2022-04-13 13:08:13 -07:00
Lourens Schep f15e38f55e Fix minor css issues with complete task list item 2022-04-13 16:01:31 -03:00
Lourens Schep 0c91a56f1f Address minor PR feedback and UI issues 2022-04-13 11:20:26 -03:00
Ilyas Foo f1d8cbe15c Add support for external links for payment gateways 2022-04-13 21:39:44 +08:00
Lourens Schep 68efbafcb5 Add sectioned task list component 2022-04-13 09:58:09 -03:00
Ilyas Foo 202f9df078 Fix tests 2022-04-13 19:12:25 +08:00
Ilyas Foo b7159dbfc9 Add test 2022-04-13 15:43:07 +08:00
Ilyas Foo 7bebe192e9 Update logic to show only additional category when applicable 2022-04-13 15:13:15 +08:00
Ilyas Foo 0b2df9a956 Fix text domain, standardize component conditional, remove unnecessary comment 2022-04-12 10:52:11 +08:00
Ilyas Foo 7cca9642f4 Remove enabled section 2022-04-12 10:09:07 +08:00
Ilyas Foo 1f77200e70 Add missing track prop 2022-04-11 15:57:26 +08:00
Ilyas Foo c8b6bd91e0 Update payment gateway logos 2022-04-11 14:24:08 +08:00
Ilyas Foo 90c61e4bad Revert WCPay suggestion UI changes 2022-04-11 11:55:05 +08:00
Ilyas Foo 829b4c4480 Merge remote-tracking branch 'origin/trunk' into dev/32131-ui-changes-additional-payment-section 2022-04-11 09:42:23 +08:00
Ilyas Foo f82b5d78f1 Fix css and test 2022-04-06 21:31:50 +08:00
Ilyas Foo ffdf1e6c02 More adjustments 2022-04-06 16:25:33 +08:00
Ilyas Foo 3050cacc39 Minor adjustments 2022-04-06 16:25:33 +08:00
Ilyas Foo 1980fac6fd Revamp WCPay suggestion in payments task 2022-04-06 16:25:32 +08:00
Ilyas Foo c596222069 Refactor tests 2022-04-06 16:25:32 +08:00
Ilyas Foo 5ff23bf103 Add tracks and small refactor to toggle 2022-04-06 16:25:32 +08:00
Ilyas Foo 0f554436da Broke wcpay task to different sections, added toggle component, added other payment methods toggle 2022-04-06 16:25:32 +08:00
Ilyas Foo a3bd1e5109 Add see more button 2022-04-06 16:25:32 +08:00
Ilyas Foo fb89df5f2c Rename set up button to get started 2022-04-06 16:25:32 +08:00
Ilyas Foo fd4a4a5604 Add is_offline flag and split payment sections 2022-04-06 16:25:31 +08:00
Lourens Schep e4803ef40f Fix tests 2022-04-04 16:43:15 -03:00
Lourens Schep 217bec8942 Fix lint errors 2022-04-04 15:58:50 -03:00
Lourens Schep 4d6aab73df Add placeholder for task list experiment one 2022-04-04 15:38:27 -03:00
Lourens Schep 885516f302 Slight improvements for loading of the task list 2022-04-04 11:54:34 -03:00
RJChow 1ba60ee69d Codemod to change i18n text domain from 'woocommerce-admin' to 'woocommerce' in WCA Client 2022-04-01 11:41:32 +08:00
Chi-Hsuan Huang b9eeb4991e Fix reminder-bar.scss lint error 2022-03-29 16:07:09 +08:00
Chi-Hsuan Huang 2c5c7549b5 Fix client lint errors 2022-03-29 16:06:33 +08:00
Lourens Schep c281ddb820 Add progress header bar to task list experiment 2022-03-24 15:25:06 -03:00
Lourens Schep 44d9824d47 Fix error when tasks are not defined yet 2022-03-23 14:05:25 -03:00
Lourens Schep 371ce71173 Update completed tasks variable 2022-03-23 13:57:48 -03:00
Lourens Schep 25d6b6d528 Add reminder bar for task list experiment 2022-03-22 12:28:58 -03:00
Chi-Hsuan Huang 3dc5f95254 Update test mocks
Fix lint
2022-03-22 11:24:58 +08:00
Chi-Hsuan Huang c05605fddf Update linting, testing, `@types/*` dependencies (https://github.com/woocommerce/woocommerce-admin/pull/8475)
* Update husky from 4 to 7

* Update @types/jest from 26 to 27

* Update lint-staged from 10 to 12

* Update babel-jest from 26 to 27

* Update @typescript-eslint/eslint-plugin from 4 to 5

* Update @typescript-eslint/parser from 4 to 5

* Update chalk from 4 to 5

* Update concurrently from 5 to 7

* Update stylelint from 9 to 14 and stylelint-config-wordpress from 13 to 17

* Update @wordpress/prettier-config from 0.4 to 1.1

* Update eslint from 7 to 8, @wordpress/eslint-plugin from 8 to 10, eslint-plugin-testing-library to 5

* Fix lint errors after updating eslint-plugin-testing-library

* Fix style lint

* Rename .stylelintrc.json -> stylelint.config.js & add todo comment

Fix stylelint.config.js

* Remove @wordpress/e2e-test-utils

* Add changelogs for eslint-plugin

* Update storybook/preview.js since addDecorator has been deprecated

Remove parameters

* Import directly from @storybook/addon-docs

* Migrate some stories to use @storybook/addon-controls

Add a comment for @storybook/addon-knobs

* Update changelogs

* Update preview.js to fix lint warning

* Update pnpm-lock.yaml

* Fix eslint layout errors (https://github.com/woocommerce/woocommerce-admin/pull/8484)
2022-03-18 19:45:14 +08:00
louwie17 f37af20b5f New task list version 1 (https://github.com/woocommerce/woocommerce-admin/pull/8457)
* Allow for easy task component switch

* Add past tense feature addition with cross out

* Add visible option for task lists and make use of new feature config

* Fix lint errors

* Fix lint errors

* Fix css lint

* Fix js unit tests

* Address PR feedback

* Add js tests for task list changes

* Add php tests for updated logic

* Add changelog

* Update copy

* Make snooze test a little more robust
2022-03-15 14:40:22 -03:00
Moon 5d55b9b625 Redirect customers back to the payment task after enabling an offline gateway (https://github.com/woocommerce/woocommerce-admin/pull/8389)
* Redirect customers back to the payment task page after enabling an offline payment

* Add changelog

* Make hasPlugins property boolean

* Remove unnecessary type checking

* Fix the comparison logic
2022-03-01 17:45:44 -08:00
louwie17 b871cbf09b Fix/8251 woocommerce payments task list logic (https://github.com/woocommerce/woocommerce-admin/pull/8332)
* Allow the support of multiple task lists with overlapping tasks

* Add filter by task ids

* Revert getTaskListById call

* Fix notices

* Move prefix event to task and task list classes instead

* Fix track events and extended task list

* Fix php unit tests

* Remove the seperate task list classes as this was unnecessary.

* Fix tests

* Remove unneeded allowed-tasks

* Change onboarding task list redux store structure

* Add extra id for handling hidden param for experimental task lists

* Fix lint errors

* Fix forgotten change

* Add changelog
2022-03-01 08:34:18 -04:00