From e20c8f8634c1cbed4519ff97cc35700e7611997f Mon Sep 17 00:00:00 2001 From: Phil Renaud Date: Wed, 5 Jun 2024 15:06:27 -0400 Subject: [PATCH] A few more style tweaks and the beginnings of a recent-searches list --- ui/app/components/global-search.hbs | 16 ++++-- ui/app/initializers/history.js | 5 ++ .../components/global-search-dropdown.scss | 50 +++++++++++-------- .../components/global-search-test.js | 5 ++ ui/tests/unit/initializers/history-test.js | 5 ++ ui/tests/unit/services/history-test.js | 5 ++ 6 files changed, 63 insertions(+), 23 deletions(-) diff --git a/ui/app/components/global-search.hbs b/ui/app/components/global-search.hbs index 431e9332191c..0d8970ca9152 100644 --- a/ui/app/components/global-search.hbs +++ b/ui/app/components/global-search.hbs @@ -35,18 +35,28 @@ > {{#if this.expanded}} {{log "EXPANDED"}} + {{#if this.results}}
TODO: Search results here...
+ {{else}} +
+

Recent Searches:

+ TODO: Recent searches here... +
+ {{/if}}
-

Jump to:

+

Recently Visited:

{{#each this.history.recommendations as |recent|}}
-
{{recent.entityType}}
-

{{or recent.label recent.identifier}}

+ {{!--
{{recent.entityType}}
--}} +

+ {{or recent.label recent.identifier}} + {{recent.entityType}} +