Files
gerrit/polygerrit-ui/app/elements/core
Kasper Nilsson a979ab7281 Implement simple autocomplete for the search bar
This change modifies the existing search bar component by replacing
the existing iron-input implementation with a gr-autocomplete
component. Rudimentary autocompletion for the search bar now exists
-- specific autocomplete features, I.E. backend querying for
possible usernames when 'author:' is entered, are yet to be
implemented.

This task required modification of the gr-autocomplete element to
support multiple search terms -- this was accomplished by the
addition of a boolean prop, 'multi', that is false by default.
When multi is true, the component will only look to autocomplete
the substring from the index of the last space til the end.

Possible enhancements to this change include:
    - addition of a 'delimiter' prop, as opposed to the hardcoded
    space delimiter
    - UI modifications to allow deleting of specific search terms,
    like a multi-select tag-styled input.

Bug: Issue 4276
Change-Id: Ic04981af06ba34dd1d58b023fcf444e4168d6b18
2016-08-16 10:11:43 -07:00
..