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

[Feature Request]: 4 handle slider #14774

Closed
1 task done
ayman3011 opened this issue Oct 4, 2023 · 5 comments
Closed
1 task done

[Feature Request]: 4 handle slider #14774

ayman3011 opened this issue Oct 4, 2023 · 5 comments

Comments

@ayman3011
Copy link

ayman3011 commented Oct 4, 2023

The problem

The current Carbon Slider component allows the user to change a single value. In other cases such as with setting multiple thresholds at once, this is not possible. The only current solution to this is to repeat the slider a number of times depending on how many thresholds the user would need to configure. Even with that, the problem is each threshold would need 2 values to decide on the threshold range (i.e. the minimum value and the maximum value). While I understand there is a 2 values slider being developed, the use case I have is the user would need to set up 4 different thresholds (Low, Medium, High, and Creitical).

The solution

To offer multiple threshold configurations in the same pattern/component, where the user would use a slide handler to drag it right or left to set the maximum value for the lower threshold which is the same minimum value for the higher threshold.

So for example, If I have 4 thresholds (Low, Medium, High, and Critical) I would have 3 handlers, one between each 2 thresholds. By dragging the handlers (one at a time), the user would be able to configure all of the thresholds in the same pattern.

The overall threshold is based on a percentage from 0% to 100% with 5% step intervals, however, this is not mandatory.
image

Examples

The last example of this page:
https://developergovindgupta.github.io/multi-range-slider-react-ts/

image

Application/PAL

IBM Security Guardium Insights

Business priority

Medium Priority = upcoming release but is not pressing

Available extra resources

I would be more than happy to provide any necessary help around implementing it into Carbon's Figma libraries.

Code of Conduct

@github-project-automation github-project-automation bot moved this to Triage in Roadmap Oct 4, 2023
@github-actions github-actions bot added the adopter: strategic-product Work-stream that directly effects the Product-led Growth initiative. label Oct 4, 2023
@tay1orjones tay1orjones changed the title [Feature Request]: [Feature Request]: 4 handle slider Oct 4, 2023
@t-trafer
Copy link

t-trafer commented Oct 4, 2023

Hey, i would like to work on this issue

@tay1orjones
Copy link
Member

@ayman3011 Thanks for proposing this idea! Could you outline the anticipated use case a bit more as well as the reusability of this pattern, specifically:

  • How many teams/projects do you anticipate will use this?
  • Have you explored alternative design options to provide the user this configurability of multiple thresholds?

With this info, we as a team can look at this and determine if this pattern is scalable, and also provide a design spec to implement against. If you're interested, a good way to get some momentum behind this would be to attend the designer office hours and discuss this proposal with the team.

@tay1orjones
Copy link
Member

Related: #7581

@ayman3011
Copy link
Author

@ayman3011 Thanks for proposing this idea! Could you outline the anticipated use case a bit more as well as the reusability of this pattern, specifically:

  • How many teams/projects do you anticipate will use this?
  • Have you explored alternative design options to provide the user this configurability of multiple thresholds?

With this info, we as a team can look at this and determine if this pattern is scalable, and also provide a design spec to implement against. If you're interested, a good way to get some momentum behind this would be to attend the designer office hours and discuss this proposal with the team.

Thank you so much @tay1orjones Sure here are my answers:

How many teams/projects do you anticipate will use this?
I know that our team "IBM Guardium Insights" Design Team needs it for a story we're currently working on. I also know another team within IBM Security Design org is also looking for a similar solution. I can get in touch with that other team and get more info, if that is necessary.

Have you explored alternative design options to provide the user this configurability of multiple thresholds?
Yes I have explored other ways to provide that including multiple numeric boxes. You may take a look at those exploration and more at the following Figma file. Basically, please look at all of the proposed flows in that Figma page.

I'd be more than happy to join the Designer Office Hours next week to discuss this further.

Thank you so much! Really appreciate it a lot :)

@laurenmrice
Copy link
Member

Hi @ayman3011. Thank you for showing interest in contributing and providing more details about your use case. After discussing with other designers on the Carbon team, we feel the the four-handle slider would be better suited to live at the PAL level for Security rather than being in Carbon core, mainly because it seems very product-specific and not as common of a pattern used by other products.

@sstrubberg sstrubberg closed this as not planned Won't fix, can't repro, duplicate, stale Nov 8, 2023
@github-project-automation github-project-automation bot moved this from Triage to Completed in Roadmap Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

5 participants