From 8067b229e7b4704379931443e772b979023c4a2a Mon Sep 17 00:00:00 2001 From: John Cowen Date: Fri, 13 Nov 2020 15:55:40 +0000 Subject: [PATCH] ui: Search/sort improvements (#9183) --- .../consul/intention/search-bar/index.hbs | 6 +- .../components/consul/nspace/list/index.hbs | 110 +++++++++--------- .../consul/policy/search-bar/index.hbs | 6 +- .../consul/service/search-bar/index.hbs | 14 +-- .../consul/token/search-bar/index.hbs | 8 +- .../app/controllers/dc/acls/policies/index.js | 3 +- .../app/controllers/dc/acls/tokens/index.js | 2 + .../consul-ui/app/controllers/dc/kv/index.js | 1 + .../app/controllers/dc/services/index.js | 3 +- .../dc/services/show/intentions/index.js | 1 + .../app/filter/predicates/intention.js | 18 +-- .../consul-ui/app/filter/predicates/node.js | 18 +-- .../consul-ui/app/filter/predicates/policy.js | 41 +++---- .../app/filter/predicates/service-instance.js | 30 ++--- .../app/filter/predicates/service.js | 94 ++++----------- .../consul-ui/app/filter/predicates/token.js | 31 ++--- .../app/routes/dc/acls/policies/index.js | 5 +- .../app/routes/dc/acls/roles/index.js | 3 +- .../app/routes/dc/acls/tokens/index.js | 9 +- .../app/routes/dc/intentions/index.js | 1 + .../consul-ui/app/routes/dc/kv/index.js | 6 +- .../consul-ui/app/routes/dc/nodes/index.js | 4 +- .../consul-ui/app/routes/dc/nspaces/index.js | 7 +- .../consul-ui/app/routes/dc/services/index.js | 11 +- .../app/routes/dc/services/show/instances.js | 3 + .../dc/services/show/intentions/index.js | 2 + .../app/templates/dc/acls/policies/index.hbs | 4 +- .../app/templates/dc/acls/tokens/index.hbs | 4 +- .../app/templates/dc/nspaces/index.hbs | 60 +++++----- .../app/templates/dc/services/index.hbs | 4 +- .../consul-ui/app/utils/filter/index.js | 56 +++++++++ .../unit/filter/predicates/service-test.js | 12 +- 32 files changed, 287 insertions(+), 290 deletions(-) create mode 100644 ui/packages/consul-ui/app/utils/filter/index.js diff --git a/ui/packages/consul-ui/app/components/consul/intention/search-bar/index.hbs b/ui/packages/consul-ui/app/components/consul/intention/search-bar/index.hbs index 0c3e87ddaa..630376dde7 100644 --- a/ui/packages/consul-ui/app/components/consul/intention/search-bar/index.hbs +++ b/ui/packages/consul-ui/app/components/consul/intention/search-bar/index.hbs @@ -1,4 +1,7 @@ -