Repository navigation
Description
Bug Description
Reported on the FDH bug bash
Once PageSpeed Insights is set up from its card, "Success! PageSpeed Insights is set up" takes the card's place, with "Got it" and "Show me". A click on "Show me" changes nothing: the page stays where it is, and the notice stays. It should open the dashboard's speed section, where PageSpeed Insights shows its report.
Visitor groups' notice does the same. After "Enable visitor groups" on its card, "Success! Visitor groups are enabled" takes the card's place, and its "Show me" changes nothing either. It should open the dashboard's visitor groups.
Steps to reproduce
- With the featureDiscoveryHub feature flag on and PageSpeed Insights not connected, open "Site Kit > Add Features".
- Click "Set up PageSpeed Insights" on its card.
- Click "Show me" on the success notice that takes the card's place.
Screenshots
The success notice in the card's place, with its "Show me" button
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
- When PageSpeed Insights is set up on the hub, clicking "Show me" on its success card should navigate to the dashboard and scroll to the PSI widget.
- When visitor groups is set up on the hub, clicking "Show me" should navigate to the dashboard and scroll to the visitor groups widget.
Implementation Brief
Note: POC PR: #14251
- In
assets/js/modules/pagespeed-insights/feature-discovery/index.ts, addgetURLto thepagespeed-insightsfeature'ssuccessNotice.cta. It returns the dashboard URL (select( CORE_SITE ).getAdminURL( 'googlesitekit-dashboard' )) with the#${ ANCHOR_ID_SPEED }hash.ANCHOR_ID_SPEEDis inassets/js/googlesitekit/constants.js. The dashboard navigation scrolls to the section that matches the hash once that section is visible. - In
assets/js/modules/analytics-4/feature-discovery/index.ts, addgetURLto thevisitor-groupsfeature'ssuccessNotice.cta. It returnsselect( CORE_SITE ).getAdminURL( 'googlesitekit-dashboard', { widgetArea: AREA_MAIN_DASHBOARD_TRAFFIC_AUDIENCE_SEGMENTATION } ).
Test Coverage
- Add
assets/js/modules/pagespeed-insights/feature-discovery/index.test.ts, following the setup inassets/js/modules/analytics-4/feature-discovery/index.test.ts(createTestRegistry(),provideSiteInfo(),registerFeatures( createFeatureDiscovery( registry ) )), covering:- the
pagespeed-insightssuccess notice CTA URL is the dashboard URL with the#speedhash.
- the
- Add a
visitor-groupsblock toassets/js/modules/analytics-4/feature-discovery/index.test.tscovering:- the success notice CTA URL is the dashboard URL with
widgetArea=mainDashboardTrafficAudienceSegmentation.
- the success notice CTA URL is the dashboard URL with
Activity
techanvil commentedon Nov 24, 2026
IB ✅