diff --git a/ui-v2/app/components/consul/intention/components.scss b/ui-v2/app/components/consul/intention/components.scss new file mode 100644 index 000000000..51c5755f9 --- /dev/null +++ b/ui-v2/app/components/consul/intention/components.scss @@ -0,0 +1,34 @@ +%pill-allow::before, +%pill-deny::before, +%pill-l7::before { + @extend %as-pseudo; + margin-right: 5px; + font-size: 0.9em; +} +%pill-allow, +%pill-deny, +%pill-l7 { + display: inline-block; + font-weight: $typo-weight-normal; + font-size: $typo-size-600; +} +%pill-allow { + color: $green-800; + background-color: $green-100; +} +%pill-deny { + color: $red-800; + background-color: $red-100; +} +%pill-l7 { + @extend %frame-gray-900; +} +%pill-allow::before { + @extend %with-arrow-right-color-mask; +} +%pill-deny::before { + @extend %with-deny-color-mask; +} +%pill-l7::before { + @extend %with-layers-mask; +} diff --git a/ui-v2/app/components/consul/intention/form/fieldsets/index.hbs b/ui-v2/app/components/consul/intention/form/fieldsets/index.hbs index be1570673..02dcd0853 100644 --- a/ui-v2/app/components/consul/intention/form/fieldsets/index.hbs +++ b/ui-v2/app/components/consul/intention/form/fieldsets/index.hbs @@ -119,7 +119,7 @@ ) (hash intent="" - header="L7 Permissions" + header="Application Aware" body="The source service may or may not connect to the destination service via unique permissions based on L7 criteria: path, header, or method." ) ) diff --git a/ui-v2/app/components/consul/intention/index.scss b/ui-v2/app/components/consul/intention/index.scss new file mode 100644 index 000000000..c7539a74c --- /dev/null +++ b/ui-v2/app/components/consul/intention/index.scss @@ -0,0 +1,8 @@ +@import './components'; + +@import './search-bar'; +@import './list'; +@import './form/fieldsets'; +@import './permission/list'; +@import './permission/form'; +@import './permission/header/list'; diff --git a/ui-v2/app/components/consul/intention/list/components.scss b/ui-v2/app/components/consul/intention/list/components.scss index e6b00fdad..b7a0760b8 100644 --- a/ui-v2/app/components/consul/intention/list/components.scss +++ b/ui-v2/app/components/consul/intention/list/components.scss @@ -12,7 +12,7 @@ td.intent-deny strong { @extend %pill-deny; } - td.intent-l7-rules strong { + td.intent- strong { @extend %pill-l7; } .notice.allow { diff --git a/ui-v2/app/components/consul/intention/list/layout.scss b/ui-v2/app/components/consul/intention/list/layout.scss index 515bcbd52..e208890f7 100644 --- a/ui-v2/app/components/consul/intention/list/layout.scss +++ b/ui-v2/app/components/consul/intention/list/layout.scss @@ -6,13 +6,13 @@ width: calc(30% - 50px); } tr > *:nth-child(2) { - width: 100px; + width: 120px; } tr > *:nth-child(3) { width: calc(30% - 50px); } tr > *:nth-child(4) { - width: calc(40% - 220px); + width: calc(40% - 240px); } tr > *:nth-child(5) { width: 160px; diff --git a/ui-v2/app/components/consul/intention/list/table/index.hbs b/ui-v2/app/components/consul/intention/list/table/index.hbs index 89ab400d2..56da9040d 100644 --- a/ui-v2/app/components/consul/intention/list/table/index.hbs +++ b/ui-v2/app/components/consul/intention/list/table/index.hbs @@ -28,11 +28,9 @@ as |item index|> {{or item.SourceNS 'default'}} -{{#let (or item.Action "L7 rules") as |intent|}} -