From 37de276350bfb9b6d82a287366d72601ffb4605b Mon Sep 17 00:00:00 2001 From: Kenia <19161242+kaxcode@users.noreply.github.com> Date: Wed, 10 Nov 2021 16:54:12 -0500 Subject: [PATCH] ui: Add Consul API Gateway as an external source (#11371) --- .changelog/11371.txt | 3 + .../consul/external-source/index.hbs | 59 +++++++++++++------ .../consul/intention/list/table/index.hbs | 2 +- .../consul-ui/app/components/pill/index.scss | 3 +- .../app/components/popover-menu/layout.scss | 2 +- .../app/components/popover-select/index.scss | 6 +- .../app/components/topology-metrics/index.hbs | 2 + .../app/helpers/service/external-source.js | 7 ++- .../app/templates/dc/services/instance.hbs | 2 +- .../app/templates/dc/services/show.hbs | 2 +- ui/packages/consul-ui/mock-api/v1/connect/_ | 2 +- .../mock-api/v1/connect/intentions/_ | 2 +- .../mock-api/v1/connect/intentions/exact | 2 +- .../consul-ui/mock-api/v1/health/service/_ | 2 +- .../consul-ui/mock-api/v1/internal/ui/node/_ | 2 +- .../mock-api/v1/internal/ui/services | 2 +- .../dc/services/show/topology/metrics.feature | 22 +++++++ .../consul-ui/translations/common/en-us.yaml | 1 + 18 files changed, 93 insertions(+), 30 deletions(-) create mode 100644 .changelog/11371.txt diff --git a/.changelog/11371.txt b/.changelog/11371.txt new file mode 100644 index 0000000000..eff8f65a6e --- /dev/null +++ b/.changelog/11371.txt @@ -0,0 +1,3 @@ +```release-note:feature +ui: Adding support of Consul API Gateway as an external source. +``` \ No newline at end of file diff --git a/ui/packages/consul-ui/app/components/consul/external-source/index.hbs b/ui/packages/consul-ui/app/components/consul/external-source/index.hbs index 38f4463866..a2ee22a001 100644 --- a/ui/packages/consul-ui/app/components/consul/external-source/index.hbs +++ b/ui/packages/consul-ui/app/components/consul/external-source/index.hbs @@ -1,21 +1,46 @@ {{#if @item}} {{#let (service/external-source @item) as |externalSource|}} - {{#if externalSource}} - - {{#if @label}} - {{@label}} - {{else}} - {{#if (eq externalSource 'aws')}} - Registered via {{uppercase externalSource}} - {{else}} - Registered via {{capitalize externalSource}} - {{/if}} - {{/if}} - - {{/if}} + {{#if (and @withInfo (eq externalSource 'consul-api-gateway'))}} +