Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(sidebar): add filter #8968

Merged
merged 123 commits into from
Jun 8, 2023
Merged

feat(sidebar): add filter #8968

merged 123 commits into from
Jun 8, 2023

Conversation

caugner
Copy link
Contributor

@caugner caugner commented May 29, 2023

Summary

(MP-418)

Problem

We have some long sidebars with several collapsible sections, and so far users can discover sidebar content only by scrolling through the sidebar and manually expanding those sections.

Solution

Adds a filter field that allows users to quickly filter the sidebar.

When focusing the field, a feedback prompt with thumbs up/down
buttons appears below the input field, which we keep for 2-3 weeks.
Once feedback is given, the prompt does no longer appear for a user.

When filtering, the number of matches is shown inside the input field,
and only matching sidebar items (along with their parents and section
heading, if exists) are shown, with the text matches being highlighted.

This includes three measurements to evaluate the feature:

  1. We measure how many users focus the filter field.
  2. We measure user sentiment through the thumbs feedback.
  3. We measure how many filtered sidebar items are clicked.

Screenshots

Before

image

After

image image image

How did you test this change?

QA by @mirunacurtean

@caugner caugner force-pushed the sidebar-filter branch 2 times, most recently from 432d41d to 0a0d004 Compare May 30, 2023 15:00
@caugner caugner temporarily deployed to xyz May 31, 2023 13:02 — with GitHub Actions Inactive
@caugner caugner temporarily deployed to xyz May 31, 2023 17:28 — with GitHub Actions Inactive
@caugner caugner temporarily deployed to xyz May 31, 2023 19:18 — with GitHub Actions Inactive
@caugner caugner temporarily deployed to xyz June 6, 2023 15:10 — with GitHub Actions Inactive
@caugner caugner temporarily deployed to xyz June 6, 2023 15:36 — with GitHub Actions Inactive
caugner added 2 commits June 6, 2023 18:58
Chrome was suggesting previously typed queries.
In Chrome and Safari innerText seems to be empty for
elements that are hidden in a collapsed details element.
@caugner caugner temporarily deployed to xyz June 6, 2023 17:12 — with GitHub Actions Inactive
@caugner caugner temporarily deployed to xyz June 7, 2023 10:01 — with GitHub Actions Inactive
Avoids that " " finds matches.
@caugner caugner temporarily deployed to xyz June 8, 2023 08:26 — with GitHub Actions Inactive
@caugner caugner requested a review from LeoMcA June 8, 2023 09:28
@caugner caugner marked this pull request as ready for review June 8, 2023 09:28
@caugner caugner changed the title feat(sidebar): add filter field feat(sidebar): add filter Jun 8, 2023
@caugner caugner merged commit 3a4c28d into main Jun 8, 2023
@caugner caugner deleted the sidebar-filter branch June 8, 2023 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants