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

New Range Filter Component #194

Open
jorgenherje opened this issue Dec 14, 2021 · 1 comment
Open

New Range Filter Component #194

jorgenherje opened this issue Dec 14, 2021 · 1 comment
Labels
enhancement New feature or request
Projects

Comments

@jorgenherje
Copy link
Collaborator

jorgenherje commented Dec 14, 2021

Create component for filtering among list of integers - i.e. create ranges

Feature request came when wanting to filter among list of realization numbers in a webviz-subsurface-plugin.

The Volumetrics-plugin has such filtering functionality, but callback functionality can become complex. To simplify usage of such filtering, a React-component can be considered.


Possible Solution

  • Input TextField
  • RangeSlider
  • List with selectable elements (e.g. reuse wcc.Select where delay time is added?)

Allow each component to edit the selected elements from list, if the range slider is selected, only one range is valid. If the list is
selected, multiple ranges can be selected. The input TextField can be edited as well, and will modify values/selections in the RangeSlider and List. Can add delay on props update to prevent callbacks immediately after edit.

Input:

  • Initially selected items
  • Configurable if the filter should be exclude or include the selected values

Output:

  • List of the selected elements (not ranges, list of each selected element)

Print screen from Volumetrics-plugin
image

image


Additional context

Consider if wcc.Select should have some sort of delay, as callbacks fire fairy quickly during interaction with current solution. Can have "edit"-mode where props are not updated before edit mode timer has timed out?

Feature request created: #195

image

@jorgenherje jorgenherje added the enhancement New feature or request label Dec 14, 2021
@jorgenherje jorgenherje added this to Backlog 📝 in Webviz via automation Dec 14, 2021
@rubenthoms
Copy link
Collaborator

Another suggestion could be the following component design with multiple single-value and range selections in a single slider:
https://www.figma.com/file/wg5OpOtyZ2mPCaK8IUYcf8/Range-Filter-Component?node-id=0%3A1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog 📝
Webviz
  
Backlog 📝
Development

No branches or pull requests

2 participants