Skip to content

WIP: Update filtered search

Illya Klymov requested to merge xanf-update-filtered-search into master

🚧 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

demo

Pressing q is definitely not the part of = or != operator, so we immediately jump to the value field

Restores invalid value for operator or data segment on blur

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

For unique tokens does not display them more than once

video here

Natural backspace handling

video here

Properly highlight current value of selection

video here

Destroying incomplete token

video here

Edited by Illya Klymov

Merge request reports

Loading