Repository navigation
Closed
Labels
Description
Feature Description
With the hub page standing, this issue builds the hub's shell: the page hero that introduces the hub, and the tab navigation the feature lists sit inside. It is modelled on the Settings app, which has the same shape — a page whose tabs are deep-linkable, so a link can point at one of them directly.
The tabs' contents are out of scope: each is built as its own issue — All services and features by #13328 and What's new? by #13321 — so this issue lands the tabs with placeholder content.
For reference, see the All services and features design in Figma, and the Where the hub lives and UI component architecture sections in the design doc.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
- The hub page renders the standard Site Kit header, as the Settings page does.
- The page then opens with a hero, comprising the heading Drive your site's success and the body copy "Discover features built to help your site succeed and take control of your site's growth. Turn on additional features and tools to uncover deeper insights about your audience, simplify your reporting, and reach your goals faster."
- Below the hero, two tabs are shown, in this order: All services and features, then What's new?.
- Selecting a tab shows that tab's content and updates the page URL, so that each tab can be linked to directly —
#/all-servicesfor All services and features, and#/whats-newfor What's new?. Opening one of those URLs opens the hub on that tab. - The browser's back and forward buttons move between the tabs the user has visited.
- Opening the hub with no tab in the URL lands the user on What's new?. Which tab a user lands on by default depends on whether they are new to Site Kit, which is covered by Route the default tab for new vs. returning users #13319.
- Each tab renders placeholder content at this stage; the contents of both tabs are built by Build the "All services and features" tab + goal groups #13328 and Build the "What's new?" tab #13321.
- The hero and the tab bar match the Figma design.
Implementation Brief
- In
assets/js/components/feature-discovery/FeatureDiscoveryApp.tsx:- Replace the blank app scaffold from Stand up the hub page:
Screen, entrypoint & view context #13244 with the hub shell component. Refer theSettingsapp structure for the same. - Render the standard Site Kit page header
Headercomponent first, then the hub hero directly in this component rather than extracting a separate hero sub-component. - Render the hero copy from the acceptance criteria: heading
Drive your site's successand the supporting descriptive paragraph from the issue/design. - Use existing layout primitives and
TabBar/Tabfromgooglesitekit-componentsso the shell follows Site Kit page spacing and tab behavior instead of introducing custom navigation. - Keep the tab order fixed to
All services and featuresfirst andWhat's new?second. - Derive the active tab from the current hash route, using the same
Link-driven tab pattern asSettingsso tab selection is URL-backed rather than local component state only. - Render
FeatureDiscoveryContentbelow the tab bar; the detail panel, in-place setup panels, or catalog card UI will be added in separate issues.
- Replace the blank app scaffold from Stand up the hub page:
- In
assets/js/components/feature-discovery/FeatureDiscoveryContent.tsx:- Add the hub's routed content switch for
#/all-servicesand#/whats-new, keeping the routing responsibility separate from the shell. - Add placeholder tab surfaces only for this issue, ideally as
all-services/AllServicesTab.tsxandwhats-new/WhatsNewTab.tsx, so the component hierarchy is in place for follow-up issues without pulling catalog logic into this change. - Use
Route/Switchfromreact-router-domand a default redirect so opening?page=googlesitekit-featureswith no hash lands on#/whats-newfor now. ReferSettingsModulescomponent. - Ensure route transitions push hash history entries so direct links, browser back, and browser forward all move across previously visited tabs correctly.
- Add the hub's routed content switch for
- In the new feature discovery shell styling:
- Add a feature-discovery Sass partial in
assets/sass/components/feature-discoveryfor the page-specific shell styles. - Style only the shell pieces introduced here: the hero block, the tab-bar container, and placeholder tab content wrappers.
- Use
googlesitekit-*BEM naming pattern and shared layout/tab primitives so the shell matches the Figma direction.
- Add a feature-discovery Sass partial in
Test Coverage
- Add JS component tests for the shell routing behavior: tab order, tab selection updating
location.hash, direct opening of#/all-servicesand#/whats-new, and the no-hash default redirect to#/whats-new. - Add navigation tests that verify browser history integration for the hash routes, so back/forward moves between tabs the user already visited.
- Add render coverage for the shell and placeholder surfaces: standard Site Kit header present, hero heading/body copy rendered, and each route showing only its own placeholder content.
QA Brief
- Enable the
featureDiscoveryHubfeature flag. - Add Features should appear in the admin menu, under Site Kit.
- Clicking the add features link should navigate to
/wp-admin/admin.php?page=googlesitekit-features. - At this stage you should be immediately redirected to
/wp-admin/admin.php?page=googlesitekit-features#/whats-new. - The What's new tab should be active and the "What’s new?" placeholder content should be shown.
- Clicking the back button should take you to wherever you were before clicking Add Features, not the URL without
#/whats-new. - Return the the discovery hub. Clicking between tabs should update the content to the appropriate placeholder and the URL in the browser's address bar. Clicking backwards and forwards should move backwards and forwards through the history in the expected sequence.
- Clicking the active tab multiple times and then pressing back should not treat each click as an additional navigation, and should return to the tab or page from before the active tab was clicked multiple times.
- Refreshing the page should load the same tab.
- The text size and spacing should adapt to smaller displays in a logical way. There is no design reference for mobile at this stage but the desktop should match Figma.
Changelog entry
- Add the feature discovery hub page shell with hero, tab navigation, and deep-linkable routes.
Activity
techanvil commentedon Aug 18, 2026
IB ✅
mohitwp commentedon Sep 15, 2026
QA Update ✅
Tested the Feature Discovery Hub shell with
featureDiscoveryHubflag enabled.Verified:
#/whats-newroute and What's new tab selected.#/all-services#/whats-newfeatureDiscoveryHubflag disabled.Details
Recording.3386.mp4
Recording.3387.mp4
Recording.3388.mp4