Global Search improvements

* support for searching from the URL
* add support for searching by assignee and member
This commit is contained in:
John R. Supplee 2021-01-17 16:01:42 +02:00
parent 8059856c39
commit d74dc92681
7 changed files with 299 additions and 162 deletions

View file

@ -14,20 +14,21 @@ template(name="globalSearch")
if currentUser
.wrapper
form.global-search-instructions.js-search-query-form
input.global-search-query-input(type="text" name="searchQuery" placeholder="{{_ 'search-example'}}" autofocus dir="auto")
input.global-search-query-input(type="text" name="searchQuery" placeholder="{{_ 'search-example'}}" value="{{ query.get }}" autofocus dir="auto")
if searching.get
+spinner
else if hasResults.get
.global-search-dueat-list-wrapper
h1
= resultsHeading
if queryErrors.get
.global-search-results-list-wrapper
if hasQueryErrors.get
div
each msg in errorMessages
span.global-search-error-messages
| {{_ msg.tag msg.value }}
each card in results
+resultCard(card)
else
h1
= resultsHeading.get
each card in results
+resultCard(card)
else
.global-search-instructions
+viewer