Skip to content

Register the feature catalog with final copy #13247

Description

@techanvil

Feature Description

With the catalog datastore in place, this issue populates it: an entry for every feature in the MVP catalog, carrying that feature's final copy.

The features list is the source of truth for all of that copy — note that some of the copy in Figma is placeholder text — and for the mapping of features to goal categories. Site Kit's own features are registered centrally, while a feature belonging to a module is registered by that module, so each entry sits with the code that activates it.

Two features in the features list are out of scope for this iteration and so are not registered, even though the Figma design shows cards for them: Consent Mode, which has no setup surface for the hub to point at yet, and Reader Revenue Manager's sub-features other than the newsletter sign-up form, which its express setup flow doesn't cover yet.

For reference, see the The feature catalog & datastore and The full catalog sections in the design doc, and the All services and features design in Figma.


Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

  • The catalog registers an entry for each of the following features:
    • Analytics
    • Ads
    • AdSense
    • PageSpeed Insights
    • Sign in with Google
    • Newsletter sign-up form (Reader Revenue Manager)
    • Reader Revenue Manager (full setup)
    • Enhanced measurement
    • Ad blocker detection
    • Visitor groups
    • Key Metrics
    • Dashboard sharing
    • Email reports
    • PDF report
  • Each entry's copy is taken verbatim from the features list, which is the source of truth for it: the card's title and short description, its setup effort, its CTA label, its badges, the detail panel's description / requirements / screenshots content, and the copy for its success notice. All of it is translatable.
    • Screenshots are taken from the screenshot gallery in Figma. If any screenshot is not available yet, use a placeholder and we'll address it in a followup issue when the screenshot becomes available.
  • Each entry is mapped to its goal categories per the features list. The first is the category the feature's card appears under; the rest only affect filtering.
  • Each entry records the Site Kit version its feature was released in.
  • analytics-4 is a prerequisite module for Enhanced measurement, Visitor groups and Key Metrics, and adsense is a prerequisite for Ad blocker detection. No other MVP feature has a prerequisite module.
  • The newsletter sign-up form entry is only registered when the rrmExpressSetup feature flag is enabled, and the PDF report entry only when the pdfGeneration feature flag is enabled. If either flag has been retired by the time this is built, its entry is registered unconditionally.
  • Consent Mode is not registered, and neither are Reader Revenue Manager's other sub-features — surveys, paywalls, contributions and rewarded ads. All of them are out of scope for this iteration.
  • This issue covers the catalog's content only. The activation mechanics behind each entry's CTA are out of scope.

Implementation Brief

  • In webpack/common.js
    • Update svgRule to add a resource query to oneOf to support importing SVGs as URL paths by appending ?path.
{
	resourceQuery: /path/,
	type: 'asset/resource',
	generator: {
		filename: 'images/[name]-[contenthash][ext]',
	},
},
  • In assets/js/types/svg.d.ts
    • Declare a module for .svg?path.
declare module '*.svg?path' {
	const content: string;
	export default content;
}
  • In assets/js/googlesitekit/datastore/feature-discovery/constants.ts
    • Define a FEATURE_BADGES constant with at least `PAID_SERVICE: 'paid-service' for now.
  • Create assets/js/googlesitekit/feature-discovery/index.ts:
    • Export a createFeatureDiscovery( registry ) method that accepts a data registry and returns a FeatureDiscovery object with a registerFeature method that dispatchs registerFeature from CORE_FEATURE_DISCOVERY with matching parameters (see assets/js/googlesitekit/widgets/index.js for an example of this pattern).
    • Export FeatureDiscovery.
  • Create assets/js/googlesitekit/feature-discovery/register-defaults.ts:
    • Export a registerFeatureDiscovery( featureDiscovery ) method that accepts a FeatureDiscovery API object and registers each SK feature from the spreadsheet as follows. The datastore from Add the core/feature-discovery datastore — registration & core selectors #13245 may need to be updated so that the expected shape of settings.detail matches the example below.
    • addedInVersion will need to be determined during execution as a list doesn't currently exist. The Git history, changelog.txt and the feature flags sheet are resources available. When identified, add the added version to the feature list sheet.
    • For screenshots, use SVGs where available and optimise with https://svgomg.net/. Import using the .svg?path resource query implemented above to get a URL that can be passed to an <img> tag.
import screenshotURL from './path/to/screenshot.png'; // Add `?path` to path if using .svg images.

featureDiscovery.registerFeature(
	'feature-slug',
	{
		title: __( '', 'google-site-kit' ), // Refer to spreadsheet. "Short description" column, bold text.
		shortDescription: __( '', 'google-site-kit' ), // Refer to spreadsheet. "Short description" column, after the bold text.
		effort: 1, // Refer to spreadsheet. "Setup Difficulty" column. Use `FEATURE_EFFORTS` constants.
		prerequisiteModules: [''], // Refer to AC for features with prerequisite modules. Use `MODULE_SLUG_*` constants.
		goalCategories: [''], // Refer to spreadsheet. "Feature categories" tab. Use `FEATURE_CATEGORIES` constants.
		addedInVersion: '',
		setup: {
			type: '', // Refer to the full catalog in the design doc. Use `FEATURE_SETUP_TYPES` constants.
			ctaLabel: __( '', 'google-site-kit' ), // Refer to spreadsheet. "setup CTA button in panel" column.
		},
		detail: {
			description: {
				whatIs: __( '', 'google-site-kit' ), // Refer to spreadsheet. "What is this feature?" column.
				whyUseHeading: __( '', 'google-site-kit' ), // Refer to spreadsheet. Bold text in the "Why use [feature/service name]" column.
				whyUseList: [ // Refer to spreadsheet. List items in the "Why use [feature/service name]" column.
					{
						term: __( '', 'google-site-kit' ), // Text before : in each item.
						description: __( '', 'google-site-kit' ), // Text after : in each item.
					},
				],
			},
			requirements: {
				serviceRequirements: __( '', 'google-site-kit' ), // Refer to spreadsheet. "Service requirements" column.
				setupList: [ // Refer to spreadsheet. List items in "Setup checklist" column.
					__( '', 'google-site-kit' ),
					__( '', 'google-site-kit' ),
				],
				setupComplete: __( '', 'google-site-kit' ), // Refer to spreadsheet. Paragraph after list items in "Setup checklist" column.
			},
			screenshots: [ // Refer to spreadsheet. "Screenshots list" column.
				{
					alt: __( '', 'google-site-kit' ), // A description of the screenshot.
					height: 900, // The natural height of the screenshot in pixels.
					src: screenshotURL, // Image from the Figma screenshot gallery matching the description, or a placeholder.
					width: 1440, // The natural width of the screenshot in pixels.
				},
			],
		},
		badges: [], // Refer to spreadsheet. "Badges" column. Use `FEATURE_BADGES` constants.
		successNotice: { // Refer to spreadsheet. "Success notice" column.
			title: __( '', 'google-site-kit' ), // Bold text.
			description: __( '', 'google-site-kit' ), // After the bold text.
			cta: {
				label: __( '', 'google-site-kit' ), // Bold CTA text.
				dismissLabel: __( '', 'google-site-kit' ), // Other CTA text. Can be omitted for the default "Got it".
			}
		},
	}
);
  • Create assets/js/googlesitekit-feature-discovery.ts:
    • Import and call createFeatureDiscovery with Data from 'googlesitekit-data', and assign to FeatureDiscovery.
    • Import registerFeatureDiscovery from register-defaults.ts and call it with FeatureDiscovery.
    • Assign FeatureDiscovery to global.googlesitekit.featureDiscovery if it's undefined.
  • Update the following to set up googlesitekit-feature-discovery as an entry point (copy implementation of googlesitekit-widgets and googlesitekit-notifications):
    • .eslintrc.json
    • tsconfig.json
    • assets/webpack/modules.config.js
    • includes/Core/Assets/Assets.php
    • webpack/common.js
  • Create a features/index.ts for each module that exports a registerFeatureDiscovery( featureDiscovery ) function that registers the module's features:
    • assets/js/modules/ads/
    • assets/js/modules/adsense/
    • assets/js/modules/analytics-4/
    • assets/js/modules/pagespeed-insights/
    • assets/js/modules/reader-revenue-manager/
    • assets/js/modules/sign-in-with-google/
  • In each of the following import each module's registerFeatureDiscovery and call it with FeatureDiscovery from 'googlesitekit-feature-discovery'.
    • assets/js/googlesitekit-modules-ads.ts
    • assets/js/googlesitekit-modules-adsense.ts
    • assets/js/googlesitekit-modules-analytics-4.ts
    • assets/js/googlesitekit-modules-pagespeed-insights.ts
    • assets/js/googlesitekit-modules-reader-revenue-manager.ts
    • assets/js/googlesitekit-modules-sign-in-with-google.ts

Test Coverage

  • Add test coverage for createFeatureDiscovery ensuring that it can be properly used to register features.

QA Brief

Image
  • Make sure featureDiscoveryHub, pdfGeneration and rrmExpressSetup flags are enabled in the tester plugin.

  • Setup the SK plugin.

  • Run following command and make sure it outputs 14 features as list shown in the screenshot.

    const { dispatch, select } = googlesitekit.data;
    const FD = "core/feature-discovery";
    
    select(FD)
      .getFeatures()
      .map((feature) => feature.slug);
  • Run following command one by one, only replacing the feature slug.

    const { dispatch, select } = googlesitekit.data;
    const FD = "core/feature-discovery";
    
    const featureDetails = select(FD).getFeature("ads"); // `ads` is the feature slug here.
    
    console.log(featureDetails);
    
    console.log("Title", featureDetails.title);
    
    console.log("Short description", featureDetails.shortDescription);
    
    console.log(
      "Full description - whatIs",
      featureDetails.detail.description.whatIs,
    );
    
    console.log(
      "Full description - Why use",
      featureDetails.detail.description.whyUseHeading,
    );
    
    console.log(
      "Short description - Why use list",
      featureDetails.detail.description.whyUseList,
    );
    
    console.log(
      "serviceRequirements",
      featureDetails.detail.requirements.serviceRequirements,
    );
    
    console.log("setupList", featureDetails.detail.requirements.setupList);
    
    console.log("Effort", featureDetails.effort);
    
    console.log("Goal categories", featureDetails.goalCategories);
    
    console.log("Setup CTA label", featureDetails.setup.ctaLabel);
    
    console.log("Setup module slug", featureDetails.setup.moduleSlug);
    
    console.log("Setup type", featureDetails.setup.type);
    
    console.log(
      "Success Notice CTA description",
      featureDetails.successNotice.description,
    );
    
    console.log("Success Notice CTA title", featureDetails.successNotice.title);
    
    console.log(
      "Success Notice CTA dismissLabel",
      featureDetails.successNotice.dismissLabel,
    );
  • Verify the copy matches the one given in feature details sheet in AC.

Changelog entry

  • Register the feature catalog for the Feature Discovery Hub.

Activity

  1. self-assigned this
    on Aug 3, 2026
  2. added
    P0
    Type: Enhancement
    Team M
    on Aug 3, 2026
  3. removed their assignment
    on Aug 3, 2026
  4. self-assigned this
    on Aug 10, 2026
  5. JakePT commented on Aug 12, 2026

    @JakePT
    Collaborator

    @techanvil Just wanted to check a few things here:

    • Am I correct that module feature definitions will be in eg. assets/js/modules/analytics-4/features-discovery.ts?
    • Is it right that assets/js/feature-discovery/register-defaults.ts imports those files and registers them with registerFeature, alongside base plugin features?
      • Does this check whether the module is active? Or will that check happen in the feature's checkRequirements()?
      • Or should each module be calling registerFeature() within itself? The design doc implies this main file imports the module files directly.
      • Is there going to be an layer for a features API that exposes featuresAPI.registerFeature() like how notifications works in assets/js/googlesitekit/notifications/register-defaults.js and assets/js/modules/ads/notifications/index.js? I don't see anything like that on Add the core/feature-discovery datastore — registration & core selectors #13245. Is that even part of the scope of this issue, or should this just focus on exporting definitions for now?
    • Are the feature's settings.detail.description and settings.detail.requirements just JSX? Does each feature's description need to include the full "What" and "Why" headings and markup?
      • I'm wondering if these could be HTML strings that we pass to createInterpolateElement for rendering, so the feature only needs to own '<what /><p>My description</p> and we can inject the heading and <P> typography component later? Or should the what and why sections be split up into separate fields? I'm concerned about these owning a bit too much of their presentation.
    • How would features need to define their screenshots? As file paths, URLs, or lazy imports?
  6. techanvil commented on Aug 12, 2026

    @techanvil
    CollaboratorAuthor

    Hi @JakePT, thanks for checking these things.

    Please follow the same approach as the notifications framework, and ignore where the design doc says that feature-discovery/register-defaults.ts will import from each module's features-discovery.ts file. This detail is an artifact I missed in a recent update (the original intent was to follow the notifications pattern, this was changed to enable the global count bundle that was considered but rejected), and should have been reverted. Sorry for the confusion.

    Each module should call registerFeature() itself, and the work to expose featuresAPI.registerFeature() etc is within the scope of this issue.

    The feature's description and requirements fields should simply be strings, ideally. Feel free to tweak the data model to accommodate this - we can track any significant changes in the changes during engineering section of the design doc.

    Screenshots should be lazy imports, following existing conventions for lazy loading images.

  7. JakePT commented on Aug 14, 2026

    @JakePT
    Collaborator

    @techanvil Thanks, I think I've finished the IB. Some notes:

    • I added the changes to settings.detail to the changes section of the design doc with a link to this issue.
    • It looks like JPGs and PNGs are imported as URLs, so I am just passing the non-lazy import to screenshots.
    • I added the entry point for the feature discovery data API and mentioned it in the changes section of the design doc.
  8. removed their assignment
    on Aug 14, 2026
  9. self-assigned this
    on Aug 14, 2026
  10. techanvil commented on Aug 17, 2026

    @techanvil
    CollaboratorAuthor

    Hi @JakePT - thanks for drafting this IB, which is looking good. A few points:

    • It's worth stating that we should define slugs for the goal categories, rather than adding the category names directly to goalCategories.
    • Please expand on the "TBD" placeholder for addedInVersion, as it could be interpreted to mean we'll determine these in a subsequent issue.
    • Most if not all of the screenshots should be SVGs. All the current screenshots are defined in Figma and can be exported as SVG, although it's possible some bitmap screenshots will be introduced. Let's define a lazy-loaded SVG approach - we'll need to include a lazy() call in the feature definition. We won't need the height and width properties for SVGs.
    • It's possible that not all screenshots will be ready when this moves to execution, if so a placeholder should be used instead and we'll address the missing screenshots in a followup issue.
    • badges won't be entirely empty for now - the Ads feature has the "Paid service" badge, as seen in Figma (note that the "Recommended for you" badges are not in scope for FDH v0, they are tied to the "Suggested for you" tab that we'll add in v1). I've added a Badges column in the features sheet to help track this.
    • Let's drop Search Console and Tag Manager from the bootstrapping, there's no point adding code that might never be used.
    • There's no need for a test for features being registered only by active modules - we'll register them unconditionally, and let the datastore API determine which features are available.
  11. 44 remaining items

  12. kelvinballoo commented on Sep 10, 2026

    @kelvinballoo
    Collaborator

    QA Update ⚠️

    Thanks @ankitrox

    For ITEM 2, yes, I ran the whole script and the PDF feature flag is on. Noting that I also faced this error for Reader Revenue Manager (full setup)

    Details Image Image

    I also have more observations as I complete my testing:

    ITEM 4: Wrong effort
    I noted the following efforts which were wrongly set:

    • PageSpeed Insights: Effort is currently 1. Should be 2 based on spreadsheet.
    • Dashboard Sharing: Effort is currently 1. Should it be 2 based on spreadsheet.

    ITEM 5:
    For 'Ad blocker detection', the function is actually 'Ad block recovery'.
    I'm wondering if we should change the phrasing from 'Ad blocker detection' to 'Ad block recovery' to have a consistent language?


    ITEM 6:
    For Key metrics:

    • There is a Copy typo for the full description: 'highlighing ' should be 'highlighting'

    • In the Why use key metrics? section, the order of the team-alignment is not the same as the spreadsheet: 2nd position vs 4th position

      Details Image Image
  13. JakePT commented on Sep 15, 2026

    @JakePT
    Collaborator

    @ankitrox @techanvil Just flagging something I ran into on #13359. The RRM express setup feature uses n.e.x.t for addedVersion in the catalog, but this causes isFeatureNew to throw an error and break the badge. We'll need to use something else for unreleased features, dynamically replace that value when registering a feature inside registerFeature(), or catch it within isFeatureNew and getWhatsNewFeatures before using compareVersions.

    Edit: Actually, thinking about it, n.e.x.t isn't appropriate at all, because the feature is not necessarily going to be released in the next version. The catalog entry will be added in the next version, but that's not when the feature is considered released.

  14. techanvil commented on Sep 15, 2026

    @techanvil
    CollaboratorAuthor

    As mentioned on Slack:

    @Jacob Peattie I ran into this while working on 13358, and have updated the value to use the placeholder version 1.187.0 , and also added issue #13558 to fix this when the correct version is available.

  15. removed their assignment
    on Sep 15, 2026
  16. ankitrox commented on Sep 15, 2026

    @ankitrox
    Collaborator

    Thank you @kelvinballoo
    I've cerated the follow-up PR for the issue here and also updated the QAB which should no longer throw the error as those properties were referring to setupComplete and cta functions, those are not part of this issue.

  17. self-assigned this
    on Sep 16, 2026
  18. techanvil commented on Sep 16, 2026

    @techanvil
    CollaboratorAuthor

    ITEM 4: Wrong effort I noted the following efforts which were wrongly set:

    • PageSpeed Insights: Effort is currently 1. Should be 2 based on spreadsheet.
    • Dashboard Sharing: Effort is currently 1. Should it be 2 based on spreadsheet.

    @kelvinballoo, thanks for catching these, however in light of Mariya's comments on the sheet (here, and here) I've updated the effort for both of these features to 1.

  19. techanvil commented on Sep 16, 2026

    @techanvil
    CollaboratorAuthor

    I've merged the following PR. Back to you for another pass, @kelvinballoo.

  20. kelvinballoo commented on Sep 16, 2026

    @kelvinballoo
    Collaborator

    QA Update ✅

    Tested as follows and it's looking good. Moving to approval.

    ITEM 2:
    The new script does not show the cta error as previously reported.
    However, there is a description error. As confirmed in slack with Ankit, this can be safely ignored because we haven't implemented successNotice as of now.

    Details Image Image

    ITEM 4:

    Effort for PSI and dashboard sharing remain at 1.

    Details Image Image

    ITEM 5:
    Phrasing has been updated to 'Ad-blocking-recovery' and it's usable in both snippets.

    Details Image Image

    ITEM 6:

    Typo has been rectified to highlighting and the Why-use-list is in the proper sequence.

    Details Image
  21. removed their assignment
    on Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0Team MType: Enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions