WIP: Update filtered search
🚧 MR Description Under construction 🚧
This MR closes #590 (closed), #641 (closed) and #636 (closed) and makes filtered search component in sync with current legacy implementation
It also adds major features:
- allow tokens to be set to
disabled
(disabled tokens will be hidden from autocomplete) - allow tokens to be set to
unique
(unique tokens will appear only once)
An example of unique tokens is also added :)
Filtered search token highlights
The token is built with consistency in mind. It tries to keep a consistent state as much as possible while providing consistent and keyboard-controllable UX for end-users.
Immediately jumps to "value" if user presses key which is not part of operator
Pressing q
is definitely not the part of =
or !=
operator, so we immediately jump to the value field
operator
or data
segment on blur
Restores invalid value for video here
Pressing space when operator is selected accepts selection and goes to data input
video here
Correctly allows editing both parts of token independently
video here
unique
tokens does not display them more than once
For video here
Natural backspace handling
video here
Properly highlight current value of selection
video here
Destroying incomplete token
video here
Edited by Illya Klymov