Repository navigation
Description
Feature Description
Setting a feature up sometimes takes the user out of the hub altogether — into a Site Kit setup flow, or off to a Google service — and when they're finished the hub brings them back (#13338). Landing back on a list that looks much as it did before leaves them to work out for themselves whether what they went off to do actually worked.
This issue adds the confirmation they come back to: a success notice at the top of the list, on the tab they're returned to, telling them what they now have and where they can manage it. It's the same notice the hub already shows when a feature is set up without the user leaving the page (#13346), saying the same thing — in a second placement, because by the time the user is back the feature is set up and its card is gone from the list.
The notice belongs to the visit they returned in. Dismissing it, reloading, or coming back later leaves the hub in its ordinary state. And it's only shown when the feature really is set up, so a setup the user started and abandoned confirms nothing.
For reference, see the Success detection & removal and Returning to the hub sections in the design doc, and the success notice design in Figma.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
- When a user is returned to the hub having completed a setup that took them away from it, and that feature is now set up, a success notice is shown at the top of the list, above the feature cards, on the tab they're returned to.
- What it says comes from the feature itself (Register the feature catalog with final copy #13247) — a title, an optional second line, an optional call to action, and a dismiss labelled "Got it" unless the feature gives it another label — so a feature is confirmed in the same words wherever it's confirmed. For the newsletter sign-up form, for example: "Success! Your Newsletter sign-up form by Reader Revenue Manager is set up", "You can always update your sign-up form settings in Publisher center", and a Go to Publisher center button opening Publisher Center.
- It's the same notice as the one shown in a card's place (Implement in-place success detection & notice #13346), in a different position — not a second notice with its own appearance.
- It covers every feature a user leaves the hub to set up: the services activated through Site Kit's setup flow (Implement the shared
setup-flowmechanism + the return to the hub #13338), those finishing on their own screens (Return the user to the hub from bespoke completion handlers #13340), the newsletter sign-up form (Implement setup for the RRM newsletter sign-up feature #13345), and Key Metrics (Implement setup for the Key Metrics feature #13348). - It's shown once, in the visit the user returned in. Dismissing it removes it; reloading the hub, or coming back to it later, shows neither the notice nor the feature.
- On What's new? it's shown in the notification area above the feature list that the auto-updates notice already uses (Surface the auto-updates CTA notice in the hub #13323), and the two share it: on return from a setup the success notice takes precedence, so it's the one shown. Once it's been dismissed, the auto-updates notice can take the area again.
- All services and features (Build the "All services and features" tab + goal groups #13328) gains the same notification area, in the same position above the feature list, holding one notice at a time. There the success notice is its only occupant — the auto-updates notice remains a What's new? notice.
- The notice matches the Figma design.
Implementation Brief
-
In pending-setup flow added by Implement the shared
setup-flowmechanism + the return to the hub #13338:consumePendingSetup()is called exactly once onFeatureDiscoveryAppmount and stored incore/feature-discoverysession state viareceivePendingSetup().getPendingSetup()is then the source of truth for whether the hub visit is a return-from-setup visit.
-
In
assets/js/googlesitekit/notifications/constants.js:- Reuse
NOTIFICATION_AREAS.FEATURE_DISCOVERY_WHATS_NEW_TOPfor the What's new tab area (as introduced by Surface the auto-updates CTA notice in the hub #13323). - Add a new area constant for All services and features,
NOTIFICATION_AREAS.FEATURE_DISCOVERY_ALL_SERVICES_TOP = 'notification-area-feature-discovery-all-services-top'. - Add notification IDs for top-of-list setup success in each area, e.g.
FEATURE_DISCOVERY_SETUP_SUCCESS_WHATS_NEW_NOTIFICATIONandFEATURE_DISCOVERY_SETUP_SUCCESS_ALL_SERVICES_NOTIFICATION.
- Reuse
-
In
assets/js/components/feature-discovery/whats-new/WhatsNewTab.tsx(Build the "What's new?" tab #13321/Surface the auto-updates CTA notice in the hub #13323):- Ensure the existing top notification slot uses
NOTIFICATION_AREAS.FEATURE_DISCOVERY_WHATS_NEW_TOPwithNOTIFICATION_GROUPS.SETUP_CTAS.
- Ensure the existing top notification slot uses
-
In
assets/js/components/feature-discovery/all-services/AllServicesTab.tsx(Build the "All services and features" tab + goal groups #13328):- Mount a top notification slot above the feature list using
NOTIFICATION_AREAS.FEATURE_DISCOVERY_ALL_SERVICES_TOPandNOTIFICATION_GROUPS.SETUP_CTAS.
- Mount a top notification slot above the feature list using
-
Create
assets/js/components/feature-discovery/FeatureDiscoverySetupSuccessNotification.tsx— the registered notification for the shared top-of-tab slot:- Props:
{ id, Notification } - Read
pendingSetupusinggetPendingSetupselector and useslug = pendingSetup?.featureSlug; returnnullif not set. onDismiss: dispatchreceivePendingSetup( null )incore/feature-discoveryso the notice is shown once in the returned visit only.- Render
<Notification><FeatureSuccessNotice slug={ slug } onDismiss={ onDismiss } /></Notification>— reuse the in-place notice built in Implement in-place success detection & notice #13346 unchanged (same title/description/CTA/dismiss from the feature'ssuccessNotice), wrapped in the framework'sNotificationHOC for view tracking, modelled onModuleSetupSuccessNotification.
- Props:
-
In
assets/js/googlesitekit/notifications/register-defaults.js, register two top-of-list success notifications (same component/settings, differentareaSlug):- What's new registration:
areaSlug: NOTIFICATION_AREAS.FEATURE_DISCOVERY_WHATS_NEW_TOP,groupID: NOTIFICATION_GROUPS.SETUP_CTAS,priority: PRIORITY.SETUP_CTA_HIGH,viewContexts: [ VIEW_CONTEXT_FEATURE_DISCOVERY ]. - All services registration:
areaSlug: NOTIFICATION_AREAS.FEATURE_DISCOVERY_ALL_SERVICES_TOP,groupID: NOTIFICATION_GROUPS.SETUP_CTAS,priority: PRIORITY.SETUP_CTA_HIGH,viewContexts: [ VIEW_CONTEXT_FEATURE_DISCOVERY ]. - Use one shared
checkRequirementscallback that readspendingSetup = select( CORE_FEATURE_DISCOVERY ).getPendingSetup()and returnsfalsewhen absent. - From
pendingSetup.featureSlug, resolvefeature = select( CORE_FEATURE_DISCOVERY ).getFeature( featureSlug ); returnfalsewhen missing. - Before evaluating connection state, wait for state that can affect
isFeatureConnected:await resolveSelect( CORE_MODULES ).getModules().- Where
feature.setup.moduleSlugexists, get the module viaselect( CORE_MODULES ).getModule( feature.setup.moduleSlug ); if it has astoreNameand that store exposesgetSettings,await resolveSelect( module.storeName ).getSettings(). await resolveSelect( CORE_SITE ).getSiteInfo()for feature checks that rely on site-level state (e.g. Key Metrics completion).
- Finally, require
select( CORE_FEATURE_DISCOVERY ).isFeatureConnected( featureSlug ) === true; otherwise returnfalse. This preserves the "abandoned setup confirms nothing" rule. - Keep the existing auto-updates notice registration in the What's new area at lower precedence (
SETUP_CTA_LOW), so the success notice wins that slot until dismissed, after which auto-updates can occupy it again.
- What's new registration:
Test Coverage
- Add
FeatureDiscoverySetupSuccessNotification.test.tsx: rendersFeatureSuccessNoticewhengetPendingSetup()returns a feature slug, renders nothing when pending setup is missing, and dismissing callsreceivePendingSetup( null ). - Extend
register-defaults.test.jsfor both registrations (What's new area and All services area):checkRequirementsreturnsfalsefor no pending setup or unknown feature slug.checkRequirementswaits for required resolution (getModules, plus module store settings/site info where applicable) before evaluating.checkRequirementsreturnstrueonly whenisFeatureConnected( featureSlug ) === true; returnsfalsewhen unresolved/false.- On What's new, success notice precedence over auto-updates is preserved by priority and group/area alignment.
- Extend
WhatsNewTab.test.tsxto confirm it mountsNOTIFICATION_AREAS.FEATURE_DISCOVERY_WHATS_NEW_TOPwithNOTIFICATION_GROUPS.SETUP_CTAS. - Extend
AllServicesTab.test.tsx(Build the "All services and features" tab + goal groups #13328) to confirm it mountsNOTIFICATION_AREAS.FEATURE_DISCOVERY_ALL_SERVICES_TOPwithNOTIFICATION_GROUPS.SETUP_CTAS.
QA Brief
- Set up Site Kit with the
featureDiscoveryHubfeature flag enabled, and the initial Site Kit version to1.0.0(this ensures all features are available in the "What's new" tab). - Set up features which redirect the user away from the hub, and verify that a success notice is shown when returning to the hub upon completion of the setup.
- Analytics, AdSense, Ads, and SiwG should all work as expected now. Other features are dependent on issues which may not be implemented yet:
- RRM (full): Show Reader Revenue Manager's own setup success notice in the hub #13505
- RRM (newsletter): Implement setup for the RRM newsletter sign-up feature #13345
- Ad blocking recovery: Return the user to the hub from bespoke completion handlers #13340
- Key Metrics: Implement setup for the Key Metrics feature #13348
- Analytics, AdSense, Ads, and SiwG should all work as expected now. Other features are dependent on issues which may not be implemented yet:
- Verify that the notice is shown in the tab you're returned to.
- Confirm that the auto-updates notice can be shown in the "What's new" tab when the success notice is shown in the "All services" tab.
Changelog entry
- Add success notice when using new Feature Discovery Hub setup.
Activity
hussain-t commentedon Sep 17, 2026
@techanvil, following on from your review on #13323: #13323 gives the auto-updates notice an area of its own,
FEATURE_DISCOVERY_WHATS_NEW_TOP, mounted on What's new? only. So this issue needs its own area for All services and features and a success notice registered for both, rather than the sharedFEATURE_DISCOVERY_TOPit has now. The design doc describes the same shared slot, so that needs updating too.techanvil commentedon Sep 29, 2026
Hi @ankitrox, thanks for the IB. A few points:
FEATURE_DISCOVERY_WHATS_NEW_TOP, and we'll need to add a new notification area for the "All services and features" tab.consumePendingSetup()will be called onFeatureDiscoveryAppmount, so we don't need any changes togetPendingSetupReturnURL()here. We might be able to simplify things and callgetPendingSetup()directly in the notification'scheckRequirements()callback.checkRequirements()may need to wait for some additional state to resolve, e.g. module settings.2 remaining items
techanvil commentedon Oct 2, 2026
Thanks @ankitrox! That LGTM.
IB ✅
wpdarren commentedon Nov 3, 2026
QA Update: ✅
Verified:
Screenshots