Skip to content

Commit

Permalink
My Jetpack: fix Stats Learn More link when site is disconnected (#38225)
Browse files Browse the repository at this point in the history
* My Jetpack: Fix Learn More URL for Stats

This label will be displayed when the status of the product is NEEDS_FIRST_SITE_CONNECTION.

* changelog

* Fix project versions

* Use primaryActionOverride

* Fix project versions
  • Loading branch information
IanRamosC authored Jul 10, 2024
1 parent 762e94a commit 602fd04
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ const StatsSection = () => {
[ PRODUCT_STATUSES.ERROR ]: {
label: __( 'Connect Jetpack to use Stats', 'jetpack-my-jetpack' ),
},
[ PRODUCT_STATUSES.NEEDS_FIRST_SITE_CONNECTION ]: {
href: `#/add-${ slug }`,
},
};

return (
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Fix Learn More link destination when the site was never connected.
2 changes: 1 addition & 1 deletion projects/packages/my-jetpack/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@automattic/jetpack-my-jetpack",
"version": "4.27.2",
"version": "4.27.3-alpha",
"description": "WP Admin page with information and configuration shared among all Jetpack stand-alone plugins",
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/packages/my-jetpack/#readme",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion projects/packages/my-jetpack/src/class-initializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Initializer {
*
* @var string
*/
const PACKAGE_VERSION = '4.27.2';
const PACKAGE_VERSION = '4.27.3-alpha';

/**
* HTML container ID for the IDC screen on My Jetpack page.
Expand Down

0 comments on commit 602fd04

Please sign in to comment.