elastic / elastic/search-ui

Add "- Fewer" option to Facets

Open
#642 3 comments 6 reactions 0 assignees View on GitHub
enhancement pinned
Dominant language
TypeScript
Stars
2k
Forks
383
PR merge metrics
No merged PRs in 30d

Description

When using the Facets with many options, there is the "+ More" button to click to see more options. This is great!

The problem becomes when you keep clicking "+ More" and and now you just see a ton of options, with no way to reduce the number of options.

**Describe the solution you'd like**
I propose adding a "- Fewer" button to the right of the "+ More" button.

Contributor guide

Open the contributing guide

Research direction

Start by locating the Facets component and the existing "+ More" control. Add a nearby "- Fewer" control that reduces the displayed options after expansion, and verify that repeated use of both controls produces the expected number of visible facet options.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend, search
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.