Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add red bubble with update count on in-app My Subscriptions tab (#46088)
* Extract update count function. * Pass wooUpdateCount to be used by admin components. * Show update count bubble on in-app my subscriptions tab. * Add changefile(s) from automation for the following project(s): woocommerce * Refactor how update count HTML is generated and move logic into appropriate classes. * Show red badge when the site is disconnected, regardless of the installation status of WUM. * Always display as 1 update is available when site is disconnected. * Skip using dangerouslySetInnerHTML. * Remove unused dependency. * Move updateCount to a tab property. * Prevent calling get_update_count if the site is not connected. * Raw url encode the product key before signing the URL --------- Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Muhammad Anas <muhammad.anas@automattic.com>
- Loading branch information
Showing
7 changed files
with
74 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
plugins/woocommerce/changelog/46088-update-red-bubble-on-my-subs-tab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: minor | ||
Type: add | ||
|
||
Displays a red badge on in-app My Subscriptions tab if Woo.com Update Manager is not installed or activated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters