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

Add settings editor search funnel button #147260

Merged
merged 3 commits into from
Apr 13, 2022

Conversation

rzhao271
Copy link
Contributor

@rzhao271 rzhao271 commented Apr 11, 2022

Fixes #145710

This PR adds a funnel button to the right of the Settings editor search bar, so that users can click around to add tags, rather than manually type in tags. When users click on the funnel button, a dropdown of filter types appears.

For most filter types in the dropdown, clicking on it adds the appropriate tag to the search widget query, and refocuses the search widget.

For some filter types, clicking on it adds the appropriate tag to the search widget query, refocuses the search widget, but also pops open the suggestions. This behaviour occurs when there are pre-filled suggestions available, such as for the language and feature tags.

For the modified filter type, clicking on it adds the modified tag to the search widget query if it doesn't already exist. Otherwise, it removes that tag from the search widget query. The modified filter type option also displays with a checkmark whenever the modified tag appears in the search widget query.

A screencap showing the settings editor funnel interaction with the modified and lang tags

@rzhao271 rzhao271 added this to the April 2022 milestone Apr 11, 2022
@rzhao271 rzhao271 self-assigned this Apr 11, 2022
- Fix modified action to act as a toggle
- Make some actions toggle suggestions
@rzhao271 rzhao271 force-pushed the rzhao271/settings-editor-search-funnel branch from 6d7995f to 1ed33eb Compare April 11, 2022 23:04
@rzhao271 rzhao271 merged commit 214ff3b into main Apr 13, 2022
@rzhao271 rzhao271 deleted the rzhao271/settings-editor-search-funnel branch April 13, 2022 02:49
@rzhao271
Copy link
Contributor Author

Addressed the comments above in #147461

@github-actions github-actions bot locked and limited conversation to collaborators May 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Language filter not discoverable, needs funnel icon inline action
2 participants