geido opened a new issue, #33150:
URL: https://github.com/apache/superset/issues/33150

   ## Description
   
   PR https://github.com/apache/superset/pull/31726 has removed the slider as a 
way to configure numerical range filters. However, we have received feedback 
from the community that the slider could still serve some purposes.
   
   - The slider would allow to specify just one of the values, removing the 
dependency on both values as it is the case currently
   The slider would simplify configuring over large ranges instead of having to 
type a value or increase a value using the Input Number arrows.
   
   For the reasons above we would like to introduce the slider AND / OR the 
numerical inputs as ways to configure the numerical range filter.
   
   ## Objectives
   
   - Add a range type option (Slider, Range inputs, Slider and range inputs).
   - In the inputs, placeholders should show the default min and max ranges 
from the dataset.
   - Add metadata text "Choose numbers between [x] and [x]" in vertical filter 
bar and same text in tooltip for vertical filter bar (From filters left pane, 
click on gear icon, then select orientation of the filter bar).
   - In horizontal mode, when both slider and inputs are shown, the slider 
should be rendered first followed by the inputs inline.
   - Make sure errors also mention actual ranges as shown in the screenshot.
   - When showing both slider and inputs, slider and inputs should be updated 
dynamically based on the actions that are happening in one or the other, so if 
I am using slider to define range, numbers in inputs should be dynamically 
updated.
   - Remove the need of having both values configured. Allow to keep one of the 
two empty.
   - Check: Make sure the "Single value" (configurable in filter 
configurations) option continues to work with these changes.
   
   Please, refer to the screenshots below for more info on the desired 
implementation. 
   
   
![Image](https://github.com/user-attachments/assets/221677e7-d4e5-4a43-b30a-323631add108)
   
![Image](https://github.com/user-attachments/assets/e5fb8245-c6b0-40d5-a262-ef775c59646c)
   
![Image](https://github.com/user-attachments/assets/38de97d7-2ba5-40f3-b6f0-494cf766342f)
   
![Image](https://github.com/user-attachments/assets/97187833-895e-4ffc-a26a-0b608ac84744)
   
![Image](https://github.com/user-attachments/assets/527f57c2-f1ba-4283-b2de-ecfe4ec6852c)
   
![Image](https://github.com/user-attachments/assets/afbd5983-57cb-4827-9ffd-95ee42c218d7)
   
![Image](https://github.com/user-attachments/assets/37b984bf-494f-406c-a27f-ccab4e3a5f4d)
   
![Image](https://github.com/user-attachments/assets/faf52ffd-7aa8-448f-a3ef-11ae1a246f47)
   
![Image](https://github.com/user-attachments/assets/92dec3f5-dd1e-4e2c-aa9e-8c472b92187b)
   
![Image](https://github.com/user-attachments/assets/ee94926f-11ee-4226-a21e-598b245c46f1)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to