woocommerce/plugins/woocommerce-admin/client/products
Ismael Martín Alabarce 9a49ff72da
Update WCPay welcome page incentives (#38689)
* Initial refactor of components

Move out from index every UI component to make it easier to maintain.

* Initial implementation of new design

Some minor adjustments are missing, and I've added a few TODOs to complete later.

* Add changelog entry

* Finish design update

* Compress menu icon

* Add user's first name to heading copy

* Fetch and cache eligible incentive from WCPay API

Sharing its properties under `window.WcSettings.admin`

* Filter `allowed_promo_notes`

To be able to add those form WCPay API request

* Update JS side to use the new shared incentive details

* Ensure we cache requests even if there are no eligible incentives

* Fix a typo in WCPayBanner

* Move incentive preloaded data from wcSettings

to a new window variable which will be only loaded on WCPay welcome page.

* Simplify `has_wcpay` check

* Render sanitized HTML from incentive description

* Update get incentive logic to also cache non success responses

* Add incentive ID to page view track

* Add changelog entry for the onboarding package

* Update used options names

and add them to `get_default_option_permissions

* Differentiate every dismissed incentive

Reuse WCPay welcome page logic for notes display conditions

* Use tos_url instead of tos_link to match response

* Fix incentives endpoint request payload

* Back to preload incentive on admin shared settings

* Move promo notes filter to where it's used

to avoid any possible race conditions.

* Replace every occurrence of `WooCommerce Payments` with `WooPayments`

* Prevent modal large padding-bottom

* Prevent another global style override on modal

* Fix TS error coming from trunk merge

* Fix wrong style property

* Further restrict WCPay incentives to plugin not active and countries supported

* Adjust the meaning of has_wcpay

* Wait for dismiss option update before redirect

to prevent the side menu entry to be visible after redirecting back to WC admin.

* Enforce TOS asterix at the end of incentive description

* Remove underscore from priavate instance var.

* Fix ESLint error

* Fix SCSS linting issues

* Refine `has_wcpay` and `has_orders`

* Enforce consistent WooPayments branding

* Enforce stricter i18n calls with escape

* Update page title to match new branding

* docs: Enforce branding in code docs also

* Remove method that is unreliable to be used outside of onboarding

* Remove unused constant

* Missing new line

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

---------

Co-authored-by: Vlad Olaru <vlad@pixelgrade.com>
Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2023-06-16 16:32:58 +02:00
..
fields Adding attributes block to product block editor. (#38051) 2023-05-02 21:13:48 -07:00
fills Extract usePublishedProductsCount hook and use it in about-the-editor-menu-item (#38742) 2023-06-15 13:03:18 -03:00
hooks Adding attributes block to product block editor. (#38051) 2023-05-02 21:13:48 -07:00
images Add product variation visibility toggle (#36020) 2022-12-16 14:44:06 -03:00
layout Show feedback footer on product editor page (#38599) 2023-06-08 20:56:07 -04:00
product-settings Create @woocommerce/admin-layout package (#37094) 2023-03-10 09:58:02 -05:00
sections Move product editor utils to product editor package (#36730) 2023-02-23 09:48:49 -08:00
shared/posts-navigation Adding shipping class option and modal (#37968) 2023-05-01 10:04:54 -07:00
test Show feedback footer on product editor page (#38599) 2023-06-08 20:56:07 -04:00
tour Update WCPay welcome page incentives (#38689) 2023-06-16 16:32:58 +02:00
add-edit-product-page.scss Fix double scrollbars on product editor page (#38281) 2023-05-18 05:25:36 -03:00
add-product-page.tsx Fix double scrollbars on product editor page (#38281) 2023-05-18 05:25:36 -03:00
constants.ts Include tax options in pricing section (#36299) 2023-01-06 09:41:45 -03:00
edit-product-page.tsx Fix double scrollbars on product editor page (#38281) 2023-05-18 05:25:36 -03:00
index.ts Add/42 new product page (#34115) 2022-08-03 14:42:22 -03:00
product-breadcrumbs.scss Add breadcrumbs to new product management experience (#35596) 2022-11-18 09:51:01 -08:00
product-breadcrumbs.tsx Add breadcrumbs to new product management experience (#35596) 2022-11-18 09:51:01 -08:00
product-form-actions.scss Add product variation header actions and persistence (#36155) 2022-12-27 10:21:32 -08:00
product-form-actions.tsx Show feedback footer on product editor page (#38599) 2023-06-08 20:56:07 -04:00
product-form-tab.tsx Adding WooProductSectionItem slotfill (#36331) 2023-01-11 10:00:20 -08:00
product-form.tsx Show feedback footer on product editor page (#38599) 2023-06-08 20:56:07 -04:00
product-more-menu.scss Add contextual product more menu (#35447) 2022-11-16 07:02:45 -08:00
product-more-menu.tsx Adding more menu with items using slot fill (#37255) 2023-03-22 07:30:06 -03:00
product-page.scss Show feedback footer on product editor page (#38599) 2023-06-08 20:56:07 -04:00
product-page.tsx Product Editor Onboarding: Show spotlight for first time visitors (#38590) 2023-06-06 12:06:26 -03:00
product-status-badge.scss Add product status badge to product form header (#35460) 2022-11-16 08:03:39 -08:00
product-status-badge.tsx Update the @woocommerce/eslint-plugin and fix bugs (#36988) 2023-03-02 11:36:38 +13:00
product-title.scss Add responsiveness to product form header (#35623) 2022-11-24 11:00:20 -03:00
product-title.tsx Create @woocommerce/admin-layout package (#37094) 2023-03-10 09:58:02 -05:00
product-validation.ts Migrating product editor inventory section to use slot fills (#36509) 2023-01-23 08:11:41 -08:00
product-variation-form-actions.tsx Move usePreventLeavingPage to navigation package (#36752) 2023-03-16 05:33:22 -03:00
product-variation-form.scss Add product variation navigation component (#36076) 2022-12-20 18:02:25 -03:00
product-variation-form.tsx Refactor product tabs and add product tab slot fills (#36551) 2023-01-24 15:37:21 -08:00