Skip to content

Add the category filter chips #13329

Description

@techanvil

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, wrapping ChipMultiSelect / ChipMultiSelectItem from @/js/components/ChipMultiSelect:
    • Props: selectedCategories — the selected category slugs, empty meaning All services — and onToggleCategory.
    • Renders the All services chip, selected while selectedCategories is empty and clearing the selection when clicked, followed by one chip per getFeatureCategories() entry.
    • The chips use short labels (Know your audience, …) rather than the group headings (Get to know your audience, …), so add a chipLabel to each category definition behind getFeatureCategories() (Add the core/feature-discovery datastore — registration & core selectors #13245); the AC gives all seven.
    • ChipMultiSelect already 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 a CheckMark component returning null, which overrides ChipMultiSelectItem's default through its prop spread. Its selected-state rules add a gap and 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.
  • 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 CategoryFilterChips above the groups.
    • Replace Build the "All services and features" tab + goal groups #13328's per-category getFeaturesByGoal() reads with a single pass over getAvailableFeatures() (Add the core/feature-discovery datastore — registration & core selectors #13245), placing each feature under the first of its own goalCategories that is selected, or under goalCategories[ 0 ] when nothing is selected. One rule covers both cases — unfiltered it reduces to exactly the primary-goal grouping getFeaturesByGoal() 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.
  • Add assets/sass/components/feature-discovery/_googlesitekit-category-filter-chips.scss, imported in assets/sass/admin.scss, for that spacing correction alone — scoped to the hub's chips, so PostTypesSelect, the only other ChipMultiSelect consumer, keeps its checkmark and its spacing as they are.

Storybook

  • Add CategoryFilterChips.stories.tsx with 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 own goalCategories order; only selected goals with features to list get headings, in the fixed order.

QA Brief

  1. Enable featureDiscoveryHub feature flag in the tester plugin.
  2. Go to Site Kit > Add features > All services and features.
  3. Make sure category chips are available in this tab at the top and All services chip is selected.
  4. Select some other chips like Know your audience chip which would display all features with goal category Audience. Refer this feature list which contains all feature with the respective categories.
  5. Select few more chips as multiple chips can be selected and the relevant features should be displayed.
  6. Deselect all chips, All services chip should get selected automatically when all other chips are deselected.
  7. Chips are visible only under All services and features, switching to What's new tab would not display the chips.

Changelog entry

  • Add category filter chips to the Feature Discovery Hub's "All services and features" tab.

Activity

  1. added
    P0
    Team M
    on Aug 12, 2026
  2. added
    Type: Enhancement
    and removed on Aug 18, 2026
  3. self-assigned this
    on Aug 21, 2026
  4. removed their assignment
    on Sep 15, 2026
  5. 46 remaining items

  6. kelvinballoo commented on Oct 28, 2026

    @kelvinballoo
    Collaborator

    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

      • AdSense
      • RRM (all features setup)
      • Ad blocker detection
    • Currently we have AdSence and Ad Blocker detection but not RRM. By right we should have it.

      Details Image Image

    ITEM 4:
    For Drive traffic, we should have:

    • Analytics
    • Ads
    • RRM (all features setup)
    • Visitor groups (SK)
    • Key Metrics (SK)

    Currently, Key Metrics is missing.

    Details Image
  7. techanvil commented on Oct 28, 2026

    @techanvil
    CollaboratorAuthor

    Thanks @kelvinballoo, good catch. I've created a followup PR to address this.

  8. nfmohit commented on Oct 28, 2026

    @nfmohit
    Collaborator

    Thanks @techanvil , the follow-up PR has been merged. @kelvinballoo this is now back with you for another pass.

  9. kelvinballoo commented on Oct 28, 2026

    @kelvinballoo
    Collaborator

    QA Update ✅

    Thanks @techanvil

    Verified good as follows and moving to approval.

    ITEM 3:

    RRM now appears under Monetize

    Details Image

    ITEM 4:

    Key metrics now appears under Drive traffic.

    Details Image
  10. removed their assignment
    on Oct 28, 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