siemens / ix

Siemens Industrial Experience is a design system for designers and developers, to consistently create the perfect digital experience for industrial software products.
https://ix.siemens.io/
MIT License
174 stars 62 forks source link

Category Filter | Is there way to add free-text value for any category #1269

Closed Jayesh26 closed 1 month ago

Jayesh26 commented 1 month ago

Prerequisites

Suggestion / feature request

image

In above eg. we have added "Name" as category given free-text value (Name category options are empty [])

We can see empty dropdown including static data, as we have given [] (empty) options why its showing ?

We are unbale to add few more category after free-text input value added for category.

nuke-ellington commented 1 month ago

Hello @Jayesh26, thank you for your question. Can you please be more specific about the expected behaviour? Adding custom input to a category is possible. The dropdown is empty but shows the context the user is currently in (category name and operator).

Jayesh26 commented 1 month ago

Hi @nuke-ellington, Yes it shows the context but it does not allow me to add more filter category. eg. Name: "testSearch" (free text search input) In above eg user has entered the value against the category "Name" and he wants to add more category then on clicking on "CategoryFiter" it will just show the values for previous category and wont let me add new category

nuke-ellington commented 1 month ago

@Jayesh26 thank you for your message. Unfortunately it is not clear to me what the expected behaviour should be. Could you please provide a step by step example?

E.g.:

Jayesh26 commented 1 month ago

Hi @nuke-ellington,

E.g.:

Step1: User selects category "Name" Step2: User types "testSearch" Step3: User wants to add one more category called "Label" But there is issue as use click on Category Filter to add new Category but he always get context box of Name Category so unable to add new Category.

I have attached below video, where for Product category added free text value and wanted to add few more category but unable to add

https://github.com/siemens/ix/assets/3745459/b2cf83ad-6c6e-48cd-86d3-cfdf2e26d0f8

nuke-ellington commented 1 month ago

Thank you for the clarification @Jayesh26 . Unless the user presses "Enter" the text will remain in the input since the filter was not applied yet. They are still setting a filter for e.g. "Product". This is expected behavior so I will close the issue.

Jayesh26 commented 1 month ago

@nuke-ellington True user has not pressed the "Enter" but he still wants to add some more filter and Category Filter is not allowing him to add after free-text value for last category. This can be a valid scenario in most of the cases where user want to add some free-text value as we are allowing him to add.