woocommerce/plugins/woocommerce-admin/client/wp-admin-scripts
Manzur Ahammed a7ade5d2dc
Show notice for expired and expiring subscriptions in settings and in-app extensions page (#47004)
* show notice on WC core about subs expired

* add notice in wc core my subscription page

* dismiss subscription notice

* add rest api for dismiss subscription notioce

* dismiss notice permanently

* code refactor

* fix issue in expired subs

* not showing expiring subs notice if expired sub notice render

not showing expiring subs notice if expired sub notice render

* fix lint

* added changelog

* update comment

* fix js lint

* update response

* added new endpoint for notice

* update the endpoint URL

* update the endpoint URL

* show notice after one month

* add css class for refactor

* fix lint

* Add missing callback after the merge

* check plugin is installed on current site

* add comments, and fix missing price

* fix lint

* remove unnecessary duplicate asset load

* fix notice so that it only trigger dismiss API on notices close

* localize the renew product price

* track events in the wc settings page

* Use the correct field product_regular_price instead of product_price

* Add missing period in the notice message

* add nonce to the dismiss notice API

* extract dismiss notice API call to different code

* extract expired and expiring component to 1 component

* add track events for tsx components

* fix nonce checking

* fix lint

* fix lint

* enrich the button and hyperlink url to contains the product_id of expiring / expired subscription

* fix lint

* fix lint

---------

Co-authored-by: Akeda Bagus <akeda.bagus@automattic.com>
Co-authored-by: prahesa.setia <prahesa.kusuma.setia@automattic.com>
2024-05-31 08:34:36 +07:00
..
add-term-tracking Add additional global attributes and local attributes information when saving product attributes (#36858) 2023-02-20 23:55:01 +01:00
attributes-tracking Add additional global attributes and local attributes information when saving product attributes (#36858) 2023-02-20 23:55:01 +01:00
beta-features-tracking-modal Update Woo.com references to WooCommerce.com (#46259) 2024-04-09 09:50:15 +01:00
category-tracking Add initial tracking for categories, tags, and attribute product pages (#33118) 2022-05-30 13:14:25 -03:00
command-palette Prevent Command Palette scripts to enqueue unnecessary scripts in the editor (#43221) 2024-01-03 18:07:43 +01:00
command-palette-analytics Prevent Command Palette scripts to enqueue unnecessary scripts in the editor (#43221) 2024-01-03 18:07:43 +01:00
marketing-coupons Add Coupon feature (https://github.com/woocommerce/woocommerce-admin/pull/4526) 2020-06-16 12:00:41 +09:30
navigation-opt-out Codemod to change i18n text domain from 'woocommerce-admin' to 'woocommerce' in WCA Client 2022-04-01 11:41:32 +08:00
onboarding-homepage-notice Add product form buttons and specific product edit page (#34211) 2022-08-11 11:04:14 -03:00
onboarding-load-sample-products-notice Set up i18n-text-domain rule and fix missing text domain (#33780) 2022-07-08 18:37:30 +08:00
onboarding-product-import-notice Codemod to change i18n text domain from 'woocommerce-admin' to 'woocommerce' in WCA Client 2022-04-01 11:41:32 +08:00
onboarding-product-notice Codemod to change i18n text domain from 'woocommerce-admin' to 'woocommerce' in WCA Client 2022-04-01 11:41:32 +08:00
onboarding-tax-notice Codemod to change i18n text domain from 'woocommerce-admin' to 'woocommerce' in WCA Client 2022-04-01 11:41:32 +08:00
order-tracking Update tracks events hooks for HPOS (#42879) 2023-12-29 08:46:59 +00:00
payment-method-promotions Update Woo.com references to WooCommerce.com (#46259) 2024-04-09 09:50:15 +01:00
print-shipping-label-banner Update Woo.com references to WooCommerce.com (#46259) 2024-04-09 09:50:15 +01:00
product-category-metabox fix: fixed all instances of translator lint rule violations (#41450) 2023-11-16 19:15:11 +08:00
product-import-tracking Add components to @woocommerce/customer-effort-score (#37112) 2023-03-14 12:16:19 -04:00
product-tour dev: move guided tours into consolidated folder (#34279) 2022-08-12 09:49:18 +08:00
product-tracking Add product id to product_edit_view track in classic product edit screen (#47853) 2024-05-27 14:42:15 -03:00
settings-tracking Add components to @woocommerce/customer-effort-score (#37112) 2023-03-14 12:16:19 -04:00
shipping-settings-region-picker Fix shipping cost formatting to respect shipping formula (#42916) 2023-12-21 10:25:43 +13:00
tags-tracking Add initial tracking for categories, tags, and attribute product pages (#33118) 2022-05-30 13:14:25 -03:00
variable-product-tour Show spotlight when switching to variable product type (#37413) 2023-03-28 13:49:40 -04:00
wc-addons-tour Feature: Add the In-App Marketplace Tour (#35278) 2022-11-15 11:12:17 +01:00
woo-connect-notice Tracks event for WooCommerce.com connect notice (#47003) 2024-05-13 13:45:43 +07:00
woo-enable-autorenew Display a notice for expired/expiring subscriptions along with a plugin update message. (#47076) 2024-05-20 03:06:03 +00:00
woo-plugin-update-connect-notice Tracks event for WooCommerce.com connect notice (#47003) 2024-05-13 13:45:43 +07:00
woo-renew-subscription Display a notice for expired/expiring subscriptions along with a plugin update message. (#47076) 2024-05-20 03:06:03 +00:00
woo-subscriptions-notice Show notice for expired and expiring subscriptions in settings and in-app extensions page (#47004) 2024-05-31 08:34:36 +07:00
README.md Fix/37502: Correct spelling errors. (#37887) 2023-05-08 15:55:09 +08:00

README.md

Scripts located in this directory are meant to be loaded on wp-admin pages outside the context of WooCommerce Admin, such as the post editor. Adding the script name to wpAdminScripts in the Webpack config will automatically build these scripts.

Scripts must be manually enqueued with any necessary dependencies. For example, onboarding-homepage-notice uses the WooCommerce navigation package:

wp_enqueue_script( 'onboarding-homepage-notice', Loader::get_url( 'wp-scripts/onboarding-homepage-notice.js' ), array( 'wc-navigation' ) );