Repository navigation
Labels
Description
Feature Description
All services and features (#13328) lists the whole catalog under its goal headings, which makes for a long page. A user who came to the hub with one goal in mind — earning money from their content, say — should be able to narrow it to just that.
This issue adds the filter chips above the groups. Filtering is a view over the same list, so it changes what's shown and nothing else.
For reference, see the The "All services and features" tab section 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
- A row of chips sits above the goal groups on the All services and features tab: an All services chip, followed by one chip per goal category — Know your audience, Engage your visitors, Monetize, Drive traffic, Manage privacy, Improve site speed, Collaborate.
- All services is selected when the user arrives, and the tab shows everything.
- Selecting a category chip narrows the list to the features in that category. More than one chip can be selected, in which case a feature matching any of them is shown.
- A feature is matched on every goal it serves, not only the goal it's normally grouped under (Build the "All services and features" tab + goal groups #13328), so a filter can surface a feature whose primary goal isn't selected.
- A feature surfaced that way is shown under the heading of the selected goal it matched, not under its primary goal's heading — so every feature shown sits under a heading the user selected. Where it matches more than one selected goal, it's shown under the first of those in the feature's own goal order, and it's still shown only once.
- While a filter is applied, therefore, the only headings shown are those of the selected goals that have features to list, in the same fixed order as unfiltered (Build the "All services and features" tab + goal groups #13328).
- Selecting All services clears any category chips, and deselecting the last selected category chip returns to All services. The user can never end up with nothing selected.
- The chips match the Figma design.
Implementation Brief
- Add
assets/js/components/feature-discovery/all-services/CategoryFilterChips.tsx, wrappingChipMultiSelect/ChipMultiSelectItemfrom@/js/components/ChipMultiSelect:- Props:
selectedCategories— the selected category slugs, empty meaning All services — andonToggleCategory. - Renders the All services chip, selected while
selectedCategoriesis empty and clearing the selection when clicked, followed by one chip pergetFeatureCategories()entry. - The chips use short labels (Know your audience, …) rather than the group headings (Get to know your audience, …), so add a
chipLabelto each category definition behindgetFeatureCategories()(Add thecore/feature-discoverydatastore — registration & core selectors #13245); the AC gives all seven. ChipMultiSelectalready carries the design's pill shape, fills and wrapping (_googlesitekit-chip-multi-select.scss), so the one visual difference is the checkmark it puts on a selected chip and the Figma chips don't have: pass aCheckMarkcomponent returningnull, which overridesChipMultiSelectItem's default through its prop spread. Its selected-state rules add agapand zero the label's padding to make room for that checkmark, so both need correcting to stop a chip's label shifting as it's selected.
- Props:
- In
assets/js/components/feature-discovery/all-services/AllServicesTab.tsx:- Hold the selection in component state — an empty array is All services, and toggling the last selected chip off returns to it, so the user can never reach an empty selection — and render
CategoryFilterChipsabove the groups. - Replace Build the "All services and features" tab + goal groups #13328's per-category
getFeaturesByGoal()reads with a single pass overgetAvailableFeatures()(Add thecore/feature-discoverydatastore — registration & core selectors #13245), placing each feature under the first of its owngoalCategoriesthat is selected, or undergoalCategories[ 0 ]when nothing is selected. One rule covers both cases — unfiltered it reduces to exactly the primary-goal groupinggetFeaturesByGoal()gave — and it's needed because a filter can place a feature under a goal that isn't its primary one, which that selector can't express. - Group order, and the omission of groups with nothing to list, are unchanged from Build the "All services and features" tab + goal groups #13328: a filter narrows the headings to the selected goals that still have features, in the same fixed order.
- Hold the selection in component state — an empty array is All services, and toggling the last selected chip off returns to it, so the user can never reach an empty selection — and render
- Add
assets/sass/components/feature-discovery/_googlesitekit-category-filter-chips.scss, imported inassets/sass/admin.scss, for that spacing correction alone — scoped to the hub's chips, soPostTypesSelect, the only otherChipMultiSelectconsumer, keeps its checkmark and its spacing as they are.
Storybook
- Add
CategoryFilterChips.stories.tsxwith two variants — All services selected, and two category chips selected — so both chip states and the suppressed checkmark are covered.scenario = {}on each.
Test Coverage
CategoryFilterChips.test.tsx— All services selected on arrival; selecting a category clears it; two categories can be selected at once; deselecting the last selected category returns to All services; clicking All services clears the categories.AllServicesTab.test.tsx— a feature whose secondary goal is selected shows under that goal's heading rather than its primary one; a feature matching two selected goals renders once, under the first of them in its owngoalCategoriesorder; only selected goals with features to list get headings, in the fixed order.
QA Brief
- Enable
featureDiscoveryHubfeature flag in the tester plugin. - Go to
Site Kit > Add features > All services and features. - Make sure category chips are available in this tab at the top and
All serviceschip is selected. - Select some other chips like
Know your audiencechip which would display all features with goal category Audience. Refer this feature list which contains all feature with the respective categories. - Select few more chips as multiple chips can be selected and the relevant features should be displayed.
- Deselect all chips,
All serviceschip should get selected automatically when all other chips are deselected. - Chips are visible only under
All services and features, switching toWhat's newtab would not display the chips.
Changelog entry
- Add category filter chips to the Feature Discovery Hub's "All services and features" tab.
Activity
46 remaining items
kelvinballoo commentedon Oct 28, 2026
QA Update⚠️
Thanks @ankitrox
Visitor group is now appearing in the 3 sections it's supposed to.
That said, I noticed a couple more discrepancies as I look deeper.
Could you have a look below to see if these warrant a fix as well.
ITEM 3:
For monetize, we should have
Currently we have AdSence and Ad Blocker detection but not RRM. By right we should have it.
Details
ITEM 4:
For
Drive traffic, we should have:Currently,
Key Metricsis missing.Details
techanvil commentedon Oct 28, 2026
Thanks @kelvinballoo, good catch. I've created a followup PR to address this.
nfmohit commentedon Oct 28, 2026
Thanks @techanvil , the follow-up PR has been merged. @kelvinballoo this is now back with you for another pass.
kelvinballoo commentedon Oct 28, 2026
QA Update ✅
Thanks @techanvil
Verified good as follows and moving to approval.
ITEM 3:
RRM now appears under
MonetizeDetails
ITEM 4:
Key metrics now appears under
Drive traffic.Details