From fb1fd730a4d038b628a5564a56cc60db4c69f436 Mon Sep 17 00:00:00 2001 From: Kenia <19161242+kaxcode@users.noreply.github.com> Date: Fri, 12 Jun 2020 09:35:52 -0400 Subject: [PATCH] ui: Add health check icon to Ingress Upstreams and add Tooltips in additional areas (#8091) * Add Health Checks and update Tooltips in Ingress Upstreams * Update Tooltip in Proxy Info tab Upstreams * Add Tooltips to Proxy Info tab Exposed Paths * Add Health Checks with Tooltips to Service List page --- .../components/consul-service-list/index.hbs | 39 ++++++--- ui-v2/app/components/tooltip/index.hbs | 4 +- .../base/components/tooltip/layout.scss | 1 + .../components/composite-row/index.scss | 3 +- .../components/composite-row/layout.scss | 14 +++- .../styles/components/composite-row/skin.scss | 10 +-- .../templates/dc/services/instance/proxy.hbs | 80 ++++++++++++++----- .../templates/dc/services/show/upstreams.hbs | 53 ++++++++---- 8 files changed, 146 insertions(+), 58 deletions(-) diff --git a/ui-v2/app/components/consul-service-list/index.hbs b/ui-v2/app/components/consul-service-list/index.hbs index c20a6194fb..740f152a9f 100644 --- a/ui-v2/app/components/consul-service-list/index.hbs +++ b/ui-v2/app/components/consul-service-list/index.hbs @@ -1,19 +1,34 @@ {{yield}} {{#if (gt items.length 0)}} -{{#if (eq item.Kind 'terminating-gateway')}} - - {{item.Name}} - -{{else if (eq item.Kind 'ingress-gateway')}} - - {{item.Name}} - -{{else}} - - {{item.Name}} - +
  • + + + {{#if (eq 'critical' (service/health-checks item))}} + At least one health check on one instance is failing. + {{else if (eq 'warning' (service/health-checks item))}} + At least one health check on one instance has a warning. + {{else if (eq 'passing' (service/health-checks item))}} + All health checks are passing. + {{else}} + There are no health checks. + {{/if}} + + + {{#if (eq item.Kind 'terminating-gateway')}} + + {{item.Name}} + + {{else if (eq item.Kind 'ingress-gateway')}} + + {{item.Name}} + + {{else}} + + {{item.Name}} + {{/if}} +