data-table-filters icon indicating copy to clipboard operation
data-table-filters copied to clipboard

Data Filter Command: Account for Space Values

Open Herbsta opened this issue 10 months ago • 1 comments

The current Data Filter Command palette does not handle data that contains spaces. Therefore, when you try search for values that contain spaces from within the palette it fails.

Would there be scope for this to be able to handle data containing spaces, possibly by the use of quotation marks?

NB: If the filter field is set to commandDisabled then the spaces are handled correctly, just unfortunately cannot use the command palette for the filtering.

Herbsta avatar Feb 18 '25 13:02 Herbsta

Valid issue and definitely not an edge case! That is something I have been thinking about, yet haven't been able to tackle on.

Yes, my first intuition was also to use quotes like prop:"account with space" to bound the values.

Can't tell you when but it's on the todos. Thanks for pointing it out!

Edit: It will require the input filter to be touched as well as both fields are synced. We will most likely have to parse the message (").

https://github.com/openstatusHQ/data-table-filters/blob/main/src/components/data-table/data-table-filter-command/utils.ts#L225

mxkaske avatar Feb 20 '25 20:02 mxkaske