Repository navigation
Description
Feature Description
Not every feature the hub puts in front of a user is one they want, and What's new? (#13321) lets them clear away the ones that aren't. Rather than have a card simply disappear, we take the opportunity to ask why: a small menu, offering to just hide the suggestion, or to say that it isn't relevant to their goals, or that they already use something else.
This issue adds that menu and the answers it records. Together with the thumbs in the detail panel (#13337) it's how the hub finds out which of its suggestions are landing — one of the PRD's success measures — and it asks at the one moment a user has clearly formed an opinion.
Hiding and telling us why are kept apart: choosing any of the three removes the card, and the feedback signal is sent alongside. A dismissed feature stays gone from What's new?, but remains findable on All services and features (#13328) — the one place a feature stays listed until it's set up — so nothing is lost for a user who changes their mind.
For reference, see the Feedback: dismiss reasons & relevancy section in the design doc, and the dismiss feedback menu design in Figma.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
- Clicking a card's dismiss (X) on What's new? (Build
FeatureCard+EffortIndicator(Storybook) #13320, Build the "What's new?" tab #13321) opens a small menu beside it, headed "Help us improve", offering four choices:- Just hide this suggestion
- It's not relevant to my site goals
- I'm already using another tool
- Setup seems complex
- Choosing any of the four removes that feature's card from the list straight away.
- The dismissal is permanent: that feature isn't listed on What's new? again for that user, and no longer counts towards their new-feature count (Implement the newness model & derived selectors #13246).
- The feature remains listed on All services and features (Build the "All services and features" tab + goal groups #13328) until it's set up. Cards there aren't dismissible and carry no X, so this menu is a What's new? control only.
- The three reasons beyond hiding are recorded for that feature against the user, through Site Kit's survey pipeline — as the relevancy thumbs are (Add relevancy thumbs feedback to the panel #13337):
- It's not relevant to my site goals —
feedback:feature_relevancy_{slug}:not_relevant - I'm already using another tool —
feedback:feature_relevancy_{slug}:already_using - Setup seems complex —
feedback:feature_relevancy_{slug}:too_complicated - where
{slug}identifies the feature.
- It's not relevant to my site goals —
- Just hide this suggestion records nothing — it's a plain dismissal.
- The card is dismissed whether or not the feedback signal gets through; a failure to record it is never surfaced to the user.
- Closing the menu without choosing — clicking elsewhere, or pressing Escape — leaves the card exactly as it was and records nothing.
- The menu can be opened, navigated and used with the keyboard alone, and its options are announced to screen readers.
- The menu matches the Figma design.
- The menu and the logic to record reasons using Site Kit's survey pipeline should be generic and reusable by other features/widgets in Site Kit, e.g. for the Site Goals footer survey feedback..
Implementation Brief
Create the feedback menu.
- Create
assets/js/components/feature-discovery/FeedbackMenu.tsx:- Define a
FeedbackMenuOptiontype:{ id: string, label: ReactNode, triggerID?: string }.
- Accept props:
id: stringisOpen: booleanonClose: () => voidonSelect?: ( id: string, index: number ) => voidoptions: FeedbackMenuOption[]sourceRef?: ElementRefwrapperRef?: ElementRef
- Use
useClickAway()withwrapperRefto call theonClosecallback on click away (seeUserMenu). - Use
useKeyCodesInside()withESCAPEandTABon the ref to call theonClosecallback on keypress (seeUserMenu). IfsourceRefexists, focus on it. - Define an
onSelected( index, event )callback:- Call
CORE_USER.triggerSurvey()with thetriggerIDof the selected index inoptions, if it has one. Don't await a response, the card should close silently even on a failed request. - Call the component's
onSelectprop withevent.detail.item.idandindex, if it has one. - Call the component's
onClosecallback.
- Call
- Render a
<MenuWithHeading />with:idPass throughid.onSelected– Pass throughonSelected.menuOpen– Pass throughisOpen.heading– A<Typography />with "Help us improve".- A
<MenuItem />for eachoptions, with:id– The optionid.label– The optionlabel.
- Define a
Add the feedback menu to the feature card.
- In
assets/js/googlesitekit/datastore/feature-discovery/constants.ts- Define a const for feature relevancy reasons
FEATURE_RELEVANCY_REASONS:JUST_HIDE = 'just_hide'NOT_RELEVANT = 'not_relevant'ALREADY_USING = 'already_using'TOO_COMPLICATED = 'too_complicated'
- Define a const for feature relevancy reasons
- In
assets/js/googlesitekit/datastore/feature-discovery/utils.ts(Implement the newness model & derived selectors #13246)- Add a utility for accepting a feature slug and
FEATURE_RELEVANCY_REASONSand returning a survey trigger ID in the formatfeedback:feature_relevancy_${slug}:${reason}.
- Add a utility for accepting a feature slug and
- In
assets/js/googlesitekit/datastore/feature-discovery/newness.ts- Add an action
dismissFeature( slug: string ):- Call
CORE_USER.dismissItem()with the feature slug passed to the dismissal key builder utility from Implement the newness model & derived selectors #13246.
- Call
- Add an action
- In
assets/js/components/feature-discovery/FeatureCard.tsx- Track whether the feedback menu is open as state.
- Define ref for the X button and a wrapper.
- Define a close callback for the feedback menu that sets the menu state to closed.
- Define a selection callback that calls
CORE_FEATURE_DISCOVERY.dismissFeature()with the card's feature's slug. - Define a list of options as an array of
FeedbackMenuOptionfor eachFEATURE_RELEVANCY_REASONSshown in the design.id– TheFEATURE_RELEVANCY_REASONSvalue.label– The corresponding label from the design.triggerID– Pass the feature slug and relevancy reason to the trigger ID builder added above. Omit this forJUST_HIDE.
- Render
<FeedbackMenu />with:id– An ID generated withuseInstanceId().isOpen– The feedback menu open state.onClose– The feedback menu close callback.onSelect– The selection callback.options– The list ofFeedbackMenuOption.sourceRef– The ref for the X button.wrapperRef– The ref for the wrapper.
- Add attributes to the X button:
aria-controlswith the ID passed to the menu.aria-expandedwith the feedback menu open state.aria-haspopup="menu"onClick()that flips the feedback menu open state.ref– The X button ref.
- Add a wrapper around the X button and menu with the wrapper
refwe defined. - Ensure the button is only visible if
isDismissiblewas passed to the card.
- In
assets/js/components/feature-discovery/whats-new/WhatsNewTab.tsx- Ensure feature list items pass
isDismissible.
- Ensure feature list items pass
- In
assets/sass/components/feature-discovery/_googlesitekit-feature-card.scss- Add any styling that might be needed to position the menu and align the design with the Figma.
Test Coverage
- Add unit test coverage for the
dismissFeature()action. - Add unit test coverage for
FeedbackMenu. - Add VRT stories for
FeedbackMenuwhen open. - Add unit test coverage for
FeatureCardverifying the X button behaviour. - Add a VRT stories for a dismissible
FeatureCardwith and without the feedback menu open.
QA Brief
- In the tester plugin enable
featureDiscoveryHubfeature flag and set Force initial Site Kit plugin version to 1.89.0. - Go to Site Kit > Add Features and open the What's new? tab. Feature cards should be listed with an X button for each.
- Clicking the X button should open a Help us improve menu. Using the up and down arrow keys should highlight items within the list. Pressing escape or tab, or clicking outside the menu, should close the list. Clicking the X button while the menu is open should also close the list. Pressing it again should open it. Clicking an X button in one card should open a menu and close any menu that is already open.
- If the menu is closed without an option being selected, the card should not disappear, and should persist after a refresh.
- Selecting a feedback option should close the list and remove the card from the list. After refreshing the page the card should remain dismissed.
- With the developer tools open to the Network tab, if any option other than "Just hide this suggestion" is selected, a network request to the
survey-triggerendpoint should be seen with a payload like{triggerID: "feedback:feature_relevancy_dashboard-sharing:not_relevant"}, with the appropriate flag given in the AC. - Check the flipping and compressing behaviour of the feedback menu:
- Normally the top-right of the menu should anchored to the button.
- If the button is close to the bottom edge of the window the menu should flip to be anchored on the bottom-right.
- If there is not enough room for the entire menu in the window, the menu height should adjust to fit within the window with a scrolling overflow.
Changelog entry
- Allow a user to provide feedback when dismissing a feature from the "What's new?" tab in the Feature Discovery Hub.
Activity
JakePT commentedon Sep 3, 2026
@hussain-t Thanks for passing this back, I've revised the implementation brief to make the feedback menu more generic so that it can be shared with the panel in #13337, which is why I've changed it from
DismissalFeedbackMenutoFeedbackMenuandFEATURE_DISMISSAL_REASONtoFEATURE_RELEVANCY_REASON(since the panel will use this menu without dismissing features).34 remaining items
JakePT commentedon Sep 29, 2026
Thanks @kelvinballoo
The changes should be visible when this issue returns to QA.
eugene-manuilov commentedon Sep 29, 2026
@techanvil yes, we use survey triggers for vote up/vote down clicks, but not for feedback. We will need to prepare something.
hussain-t commentedon Sep 29, 2026
@kelvinballoo, the follow-up fix has been merged, back to you for another pass.
kelvinballoo commentedon Sep 30, 2026
QA Update ✅
Thanks @JakePT
This was verified good for both issues raised as attached.
Details
13357.-.Retest.1.ok.mov
13357.-.Retest.1.ok.mobile.mov
Other than that, the other points were verified good as well:
Dismissed with not relevant is good and the survey request is sent accordingly
Details
13357.-.02.-.Dismiss.with.not.relevant.to.my.site.ok.mov
When we tap esc, click outside, dismiss hide suggestion, these are behaving as expected. Also, using up and down arrow on the keyboard is behaving as expected.
Details
13357.-.03.esc.click.outside.arrow.ok.dismiss.hide.suggestion.ok.mov
Choosing other options like using another tool or too complicated is behaving as expected.
Details
13357.-.04.already.using.another.tool.network.ok.mov
13357.-.05.too.complicated.ok.mov
When the popup for one of the cards is open and we click 'x' for another, the former popup will close accordingly.
Details
13357.-.07.One.open.close.another.ok.mov