Skip to content

Add the dismiss-with-feedback menu #13357

Closed

Description

@techanvil

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.
  • 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 FeedbackMenuOption type:
      • { id: string, label: ReactNode, triggerID?: string }.
    • Accept props:
      • id: string
      • isOpen: boolean
      • onClose: () => void
      • onSelect?: ( id: string, index: number ) => void
      • options: FeedbackMenuOption[]
      • sourceRef?: ElementRef
      • wrapperRef?: ElementRef
    • Use useClickAway() with wrapperRef to call the onClose callback on click away (see UserMenu).
    • Use useKeyCodesInside() with ESCAPE and TAB on the ref to call the onClose callback on keypress (see UserMenu). If sourceRef exists, focus on it.
    • Define an onSelected( index, event ) callback:
      • Call CORE_USER.triggerSurvey() with the triggerID of the selected index in options, if it has one. Don't await a response, the card should close silently even on a failed request.
      • Call the component's onSelect prop with event.detail.item.id and index, if it has one.
      • Call the component's onClose callback.
    • Render a <MenuWithHeading /> with:
      • id Pass through id.
      • onSelected – Pass through onSelected.
      • menuOpen – Pass through isOpen.
      • heading – A <Typography /> with "Help us improve".
      • A <MenuItem /> for each options, with:
        • id – The option id.
        • label – The option label.

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'
  • 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_REASONS and returning a survey trigger ID in the format feedback:feature_relevancy_${slug}:${reason}.
  • In assets/js/googlesitekit/datastore/feature-discovery/newness.ts
  • 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 FeedbackMenuOption for each FEATURE_RELEVANCY_REASONS shown in the design.
      • id – The FEATURE_RELEVANCY_REASONS value.
      • label – The corresponding label from the design.
      • triggerID – Pass the feature slug and relevancy reason to the trigger ID builder added above. Omit this for JUST_HIDE.
    • Render <FeedbackMenu /> with:
      • id – An ID generated with useInstanceId().
      • isOpen – The feedback menu open state.
      • onClose – The feedback menu close callback.
      • onSelect – The selection callback.
      • options – The list of FeedbackMenuOption.
      • sourceRef – The ref for the X button.
      • wrapperRef – The ref for the wrapper.
    • Add attributes to the X button:
      • aria-controls with the ID passed to the menu.
      • aria-expanded with 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 ref we defined.
    • Ensure the button is only visible if isDismissible was passed to the card.
  • In assets/js/components/feature-discovery/whats-new/WhatsNewTab.tsx
    • Ensure feature list items pass isDismissible.
  • 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 FeedbackMenu when open.
  • Add unit test coverage for FeatureCard verifying the X button behaviour.
  • Add a VRT stories for a dismissible FeatureCard with and without the feedback menu open.

QA Brief

  • In the tester plugin enable featureDiscoveryHub feature 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-trigger endpoint 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

  1. added
    P0
    Team M
    Type: Enhancement
    and removed on Aug 18, 2026
  2. assigned and unassigned on Aug 27, 2026
  3. JakePT commented on Sep 3, 2026

    @JakePT
    Collaborator

    @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 DismissalFeedbackMenu to FeedbackMenu and FEATURE_DISMISSAL_REASON to FEATURE_RELEVANCY_REASON (since the panel will use this menu without dismissing features).

  4. removed their assignment
    on Sep 3, 2026
  5. 34 remaining items

  6. JakePT commented on Sep 29, 2026

    @JakePT
    Collaborator

    Thanks @kelvinballoo

    1. I've fixed this and updated the QAB to describe the expected behaviour.
    2. I've tweaked some styles to bring the menu closer to the design, including this aspect.

    The changes should be visible when this issue returns to QA.

  7. removed their assignment
    on Sep 29, 2026
  8. eugene-manuilov commented on Sep 29, 2026

    @eugene-manuilov
    Collaborator

    @techanvil yes, we use survey triggers for vote up/vote down clicks, but not for feedback. We will need to prepare something.

  9. assigned and unassigned on Sep 29, 2026
  10. hussain-t commented on Sep 29, 2026

    @hussain-t
    Collaborator

    @kelvinballoo, the follow-up fix has been merged, back to you for another pass.

  11. kelvinballoo commented on Sep 30, 2026

    @kelvinballoo
    Collaborator

    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
  12. removed their assignment
    on Sep 30, 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