nexus icon indicating copy to clipboard operation
nexus copied to clipboard

Search - Ability to autocomplete on a configured selection of columns in the search bar

Open samuel-kerrien opened this issue 2 years ago • 0 comments

The quick access to types on the top left isn't obvious to some users which have a tendency to start typing types in the search bar. We would like to make the search bar type aware. An example would be, the user types "morpho" and gets presented with type "NeuronMorphology" or SearchConfig "Neuron Morphology".

Question beforehand

  • How can we structure the elements displayed in the recommendation?
  • How can we connect the content in the column to the query searched?
  • How can we reinforce the quick access orientation of the tool and tone down the free-text search aspect?

Desired Behaviour

  • An admin should be able to configure which column Search will autocomplete on.
  • In case you already have an existing query that includes a filter on a column T, the selection of an auto-complete choice about the values on that column T would replace the existing filter.
  • If the current query does not include a filter on column T, if you choose an auto-complete choice on column T, we would add that filter on the query.
  • If the column is currently hidden, the column should be made visible
  • If you have a query with a filter on column X, and choose an auto-complete on column Y, adding that filter should not affect previous filters.
  • If you have a preselected Search Layout, when you select an auto-complete choice we just replace the filter on that column.

Acceptance Criteria

  • The Search bar should offer auto-completion on types that is not sensitive to the casing
  • The ordering of proposals should be:
    • Full-text search
    • Auto-complete on configured columns
    • Studios
    • Projects
  • We limit to a set maximum of choices per category
    • 3 Project,
    • 3 Studio,
    • Top match for each Column.
  • When many choices are presented, add a scroll bar to allow

Not in Scope

  • If the query matches a type value that is included as a filter in one of the predefined Search Layout, then present in the auto-complete choice a new entry with the ability to switch to that layout and apply the selected filter
  • Show visual indicated when a user has changed a layout setting of a predefined Search Layout

samuel-kerrien avatar Apr 04 '22 14:04 samuel-kerrien