carbon-design-system / carbon-addons-iot-react

A collection of React components shared between IBM Maximo Asset Monitor (Watson IoT), IBM Maximo Visual Inspection, and Graphite products.
https://carbon-design-system.github.io/carbon-addons-iot-react/
Apache License 2.0
96 stars 78 forks source link

[RuleBuilderEditor] - Reset operand and rule value input on column change and conditionally display rule value input #3766

Open bogy0 opened 1 year ago

bogy0 commented 1 year ago

What package is this for?

We think it's an overall improvement, but React is our target package.

Summary

Currently, when users change the "column" attribute in the RuleBuilderEditor, the selected operand and rule value input are not automatically reset or cleared. This can lead to confusion as the previous operand and rule value input remain visible even after the column is changed.

To improve the user experience and avoid confusion, this feature request proposes two enhancements for the RuleBuilder component:

  1. Automatically reset or clear the selected operand and rule value input when the "column" attribute is changed. This will ensure that the component always reflects the current state and selections made by the user.

  2. Optionally, conditionally display the rule value input only after the user has selected an operand option. This will help guide users through the process of building a rule more intuitively, preventing them from inputting a rule value before an appropriate operand has been chosen.

Implementing these enhancements will result in a more user-friendly and intuitive RuleBuilder component, minimizing the risk of incorrect rule configurations and making it easier for users to build complex rules.

Specific timeline issues/requests

We want to use the RuleBuilderEditor component in a project that will start in Q2 2023, so we need a solution for this soon. We would appreciate it if you could help with it.

Available extra resources

You can contact me on IBM Slack for details or any other information.