From 8b220ded5ebc004a53105355552111cffd99ed0c Mon Sep 17 00:00:00 2001 From: Becky Siegel Date: Wed, 4 Apr 2018 17:11:06 -0700 Subject: [PATCH] Add gr-smart-search to handle rest API calls and navigation This allows gr-search-bar to be more flexible, and can be used with a separate router and rest API. Change-Id: Ife602e0caab8cc52e4977b80931bea0b242820a1 --- .../core/gr-main-header/gr-main-header.html | 8 +- .../core/gr-navigation/gr-navigation.html | 9 + .../core/gr-search-bar/gr-search-bar.html | 6 - .../core/gr-search-bar/gr-search-bar.js | 122 +++--------- .../gr-search-bar/gr-search-bar_test.html | 148 ++------------- .../core/gr-smart-search/gr-smart-search.html | 38 ++++ .../core/gr-smart-search/gr-smart-search.js | 144 +++++++++++++++ .../gr-smart-search/gr-smart-search_test.html | 174 ++++++++++++++++++ polygerrit-ui/app/test/index.html | 1 + 9 files changed, 418 insertions(+), 232 deletions(-) create mode 100644 polygerrit-ui/app/elements/core/gr-smart-search/gr-smart-search.html create mode 100644 polygerrit-ui/app/elements/core/gr-smart-search/gr-smart-search.js create mode 100644 polygerrit-ui/app/elements/core/gr-smart-search/gr-smart-search_test.html diff --git a/polygerrit-ui/app/elements/core/gr-main-header/gr-main-header.html b/polygerrit-ui/app/elements/core/gr-main-header/gr-main-header.html index 4823ef930f..7af5fd5b40 100644 --- a/polygerrit-ui/app/elements/core/gr-main-header/gr-main-header.html +++ b/polygerrit-ui/app/elements/core/gr-main-header/gr-main-header.html @@ -22,7 +22,7 @@ limitations under the License. - +