Skip to content

Stand up the hub page: Screen, entrypoint & view context #13244

Closed

Description

@techanvil

Feature Description

The Feature Discovery Hub is a standalone wp-admin page, reached from a new Add Features item in the Site Kit menu. It follows the precedent set by the Settings page: its own WordPress screen, its own script asset, and its own view context.

This issue stands that page up. It adds the screen and its menu item, the script asset and webpack configuration for the hub's entry point, and a new view context so that tracking, notifications and permission checks can be scoped to the hub. The page renders the hub app with no content of its own — the hero and the tabs (#13248), and the feature lists inside them (#13321, #13328), are built on top of this.

For reference, see the Where the hub lives section in the design doc.


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

Acceptance criteria

Implementation Brief

  • In includes/Core/Admin/Screens.php:
    • Register a new Screen for googlesitekit-features with the menu label Add Features.
    • Parent it under the main Site Kit menu so it appears after Dashboard and before Settings.
    • Restrict access with Permissions::MANAGE_OPTIONS so the hub is admin-only.
    • Gate the screen registration on featureDiscoveryHub using Feature_Flags::enabled so that the screen is only registered when feature flag is enabled.
  • In assets/webpack/modules.config.js
    • Add a googlesitekit-features webpack entrypoint that builds from assets/js/googlesitekit-features.tsx.
  • Create assets/js/components/feature-discovery/FeatureDiscoveryApp.tsx
    • Just a blank component. It can render a placeholder text for now. The hero, tabs and feature lists will be added in subsequent issues.
  • In assets/js/googlesitekit-features.tsx
    • Boot the page with the same DOM-ready render pattern used by Settings.
    • Mount Root with VIEW_CONTEXT_FEATURE_DISCOVERY so tracking, notifications, and permission-aware logic can scope to the hub.
    • Render a dedicated hub app component that currently returns no content so the page loads cleanly before the hero, tabs, and feature list work lands.
    • Keep the render target aligned with the screen mount node id js-googlesitekit-features.
  • In assets/js/googlesitekit/constants.js:
    • Add VIEW_CONTEXT_FEATURE_DISCOVERY = 'featureDiscovery' alongside the other exported view-context constants.

Test Coverage

  • Add PHP coverage for the new screen registration, including menu placement, admin-only capability, and feature-flag gating.

QA Brief

  • Enable the featureDiscoveryHub flag in tester plugin.
  • Setup the SK plugin.
  • There should be a new menu Add Features menu listed after Dashboard and before Settings under Site Kit menu.
  • Clicking on Add Features menu would open a blank page with placeholder text FDH App.
  • There should be no console error on the page.

Changelog entry

  • Add the "Add Features" admin menu item, and a placeholder screen 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 4, 2026
  5. techanvil commented on Aug 4, 2026

    @techanvil
    CollaboratorAuthor

    IB ✅

  6. removed their assignment
    on Aug 4, 2026
  7. assigned and unassigned on Aug 14, 2026
  8. assigned and unassigned on Aug 18, 2026
  9. removed their assignment
    on Aug 19, 2026
  10. self-assigned this
    on Aug 24, 2026
  11. wpdarren commented on Aug 24, 2026

    @wpdarren
    Collaborator

    QA Update: ✅

    Verified:

    • There is a new menu Add Features menu listed after Dashboard and before Settings under Site Kit menu.
    • Clicking on Add Features menu opens up a blank page with placeholder text FDH App.
    • There are no console error on the page.
    Screenshots Image Image
  12. removed their assignment
    on Aug 24, 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