diff --git a/ui-v2/.ember-cli b/ui-v2/.ember-cli index ee64cfed2..7f520c46a 100644 --- a/ui-v2/.ember-cli +++ b/ui-v2/.ember-cli @@ -5,5 +5,14 @@ Setting `disableAnalytics` to true will prevent any data from being sent. */ - "disableAnalytics": false + "disableAnalytics": false, + /** + We use a nested in /components folder structure: + /components/component-name/index.{hbs,js} + */ + "componentStructure": "nested", + /** + We currently use classic components + */ + "componentClass": "@ember/component" } diff --git a/ui-v2/app/templates/components/acl-filter.hbs b/ui-v2/app/components/acl-filter/index.hbs similarity index 100% rename from ui-v2/app/templates/components/acl-filter.hbs rename to ui-v2/app/components/acl-filter/index.hbs diff --git a/ui-v2/app/components/acl-filter.js b/ui-v2/app/components/acl-filter/index.js similarity index 100% rename from ui-v2/app/components/acl-filter.js rename to ui-v2/app/components/acl-filter/index.js diff --git a/ui-v2/app/templates/components/action-group.hbs b/ui-v2/app/components/action-group/index.hbs similarity index 100% rename from ui-v2/app/templates/components/action-group.hbs rename to ui-v2/app/components/action-group/index.hbs diff --git a/ui-v2/app/components/action-group.js b/ui-v2/app/components/action-group/index.js similarity index 100% rename from ui-v2/app/components/action-group.js rename to ui-v2/app/components/action-group/index.js diff --git a/ui-v2/app/templates/components/app-view.hbs b/ui-v2/app/components/app-view/index.hbs similarity index 100% rename from ui-v2/app/templates/components/app-view.hbs rename to ui-v2/app/components/app-view/index.hbs diff --git a/ui-v2/app/components/app-view.js b/ui-v2/app/components/app-view/index.js similarity index 100% rename from ui-v2/app/components/app-view.js rename to ui-v2/app/components/app-view/index.js diff --git a/ui-v2/app/templates/components/aria-menu.hbs b/ui-v2/app/components/aria-menu/index.hbs similarity index 100% rename from ui-v2/app/templates/components/aria-menu.hbs rename to ui-v2/app/components/aria-menu/index.hbs diff --git a/ui-v2/app/components/aria-menu.js b/ui-v2/app/components/aria-menu/index.js similarity index 100% rename from ui-v2/app/components/aria-menu.js rename to ui-v2/app/components/aria-menu/index.js diff --git a/ui-v2/app/templates/components/catalog-filter.hbs b/ui-v2/app/components/catalog-filter/index.hbs similarity index 100% rename from ui-v2/app/templates/components/catalog-filter.hbs rename to ui-v2/app/components/catalog-filter/index.hbs diff --git a/ui-v2/app/components/catalog-filter.js b/ui-v2/app/components/catalog-filter/index.js similarity index 100% rename from ui-v2/app/components/catalog-filter.js rename to ui-v2/app/components/catalog-filter/index.js diff --git a/ui-v2/app/templates/components/changeable-set.hbs b/ui-v2/app/components/changeable-set/index.hbs similarity index 100% rename from ui-v2/app/templates/components/changeable-set.hbs rename to ui-v2/app/components/changeable-set/index.hbs diff --git a/ui-v2/app/components/changeable-set.js b/ui-v2/app/components/changeable-set/index.js similarity index 100% rename from ui-v2/app/components/changeable-set.js rename to ui-v2/app/components/changeable-set/index.js diff --git a/ui-v2/app/templates/components/child-selector.hbs b/ui-v2/app/components/child-selector/index.hbs similarity index 100% rename from ui-v2/app/templates/components/child-selector.hbs rename to ui-v2/app/components/child-selector/index.hbs diff --git a/ui-v2/app/components/child-selector.js b/ui-v2/app/components/child-selector/index.js similarity index 100% rename from ui-v2/app/components/child-selector.js rename to ui-v2/app/components/child-selector/index.js diff --git a/ui-v2/app/templates/components/code-editor.hbs b/ui-v2/app/components/code-editor/index.hbs similarity index 100% rename from ui-v2/app/templates/components/code-editor.hbs rename to ui-v2/app/components/code-editor/index.hbs diff --git a/ui-v2/app/components/code-editor.js b/ui-v2/app/components/code-editor/index.js similarity index 100% rename from ui-v2/app/components/code-editor.js rename to ui-v2/app/components/code-editor/index.js diff --git a/ui-v2/app/templates/components/confirmation-dialog.hbs b/ui-v2/app/components/confirmation-dialog/index.hbs similarity index 100% rename from ui-v2/app/templates/components/confirmation-dialog.hbs rename to ui-v2/app/components/confirmation-dialog/index.hbs diff --git a/ui-v2/app/components/confirmation-dialog.js b/ui-v2/app/components/confirmation-dialog/index.js similarity index 100% rename from ui-v2/app/components/confirmation-dialog.js rename to ui-v2/app/components/confirmation-dialog/index.js diff --git a/ui-v2/app/templates/components/consul-service-list.hbs b/ui-v2/app/components/consul-service-list/index.hbs similarity index 100% rename from ui-v2/app/templates/components/consul-service-list.hbs rename to ui-v2/app/components/consul-service-list/index.hbs diff --git a/ui-v2/app/components/consul-service-list.js b/ui-v2/app/components/consul-service-list/index.js similarity index 100% rename from ui-v2/app/components/consul-service-list.js rename to ui-v2/app/components/consul-service-list/index.js diff --git a/ui-v2/app/templates/components/copy-button-feedback.hbs b/ui-v2/app/components/copy-button-feedback/index.hbs similarity index 100% rename from ui-v2/app/templates/components/copy-button-feedback.hbs rename to ui-v2/app/components/copy-button-feedback/index.hbs diff --git a/ui-v2/app/components/copy-button-feedback.js b/ui-v2/app/components/copy-button-feedback/index.js similarity index 100% rename from ui-v2/app/components/copy-button-feedback.js rename to ui-v2/app/components/copy-button-feedback/index.js diff --git a/ui-v2/app/templates/components/copy-button.hbs b/ui-v2/app/components/copy-button/index.hbs similarity index 100% rename from ui-v2/app/templates/components/copy-button.hbs rename to ui-v2/app/components/copy-button/index.hbs diff --git a/ui-v2/app/components/copy-button.js b/ui-v2/app/components/copy-button/index.js similarity index 100% rename from ui-v2/app/components/copy-button.js rename to ui-v2/app/components/copy-button/index.js diff --git a/ui-v2/app/templates/components/delete-confirmation.hbs b/ui-v2/app/components/delete-confirmation/index.hbs similarity index 100% rename from ui-v2/app/templates/components/delete-confirmation.hbs rename to ui-v2/app/components/delete-confirmation/index.hbs diff --git a/ui-v2/app/components/delete-confirmation.js b/ui-v2/app/components/delete-confirmation/index.js similarity index 100% rename from ui-v2/app/components/delete-confirmation.js rename to ui-v2/app/components/delete-confirmation/index.js diff --git a/ui-v2/app/templates/components/discovery-chain.hbs b/ui-v2/app/components/discovery-chain/index.hbs similarity index 100% rename from ui-v2/app/templates/components/discovery-chain.hbs rename to ui-v2/app/components/discovery-chain/index.hbs diff --git a/ui-v2/app/components/discovery-chain.js b/ui-v2/app/components/discovery-chain/index.js similarity index 100% rename from ui-v2/app/components/discovery-chain.js rename to ui-v2/app/components/discovery-chain/index.js diff --git a/ui-v2/app/templates/components/dom-buffer-flush.hbs b/ui-v2/app/components/dom-buffer-flush/index.hbs similarity index 100% rename from ui-v2/app/templates/components/dom-buffer-flush.hbs rename to ui-v2/app/components/dom-buffer-flush/index.hbs diff --git a/ui-v2/app/components/dom-buffer-flush.js b/ui-v2/app/components/dom-buffer-flush/index.js similarity index 100% rename from ui-v2/app/components/dom-buffer-flush.js rename to ui-v2/app/components/dom-buffer-flush/index.js diff --git a/ui-v2/app/templates/components/dom-buffer.hbs b/ui-v2/app/components/dom-buffer/index.hbs similarity index 100% rename from ui-v2/app/templates/components/dom-buffer.hbs rename to ui-v2/app/components/dom-buffer/index.hbs diff --git a/ui-v2/app/components/dom-buffer.js b/ui-v2/app/components/dom-buffer/index.js similarity index 100% rename from ui-v2/app/components/dom-buffer.js rename to ui-v2/app/components/dom-buffer/index.js diff --git a/ui-v2/app/templates/components/feedback-dialog.hbs b/ui-v2/app/components/feedback-dialog/index.hbs similarity index 100% rename from ui-v2/app/templates/components/feedback-dialog.hbs rename to ui-v2/app/components/feedback-dialog/index.hbs diff --git a/ui-v2/app/components/feedback-dialog.js b/ui-v2/app/components/feedback-dialog/index.js similarity index 100% rename from ui-v2/app/components/feedback-dialog.js rename to ui-v2/app/components/feedback-dialog/index.js diff --git a/ui-v2/app/templates/components/form-component.hbs b/ui-v2/app/components/form-component/index.hbs similarity index 100% rename from ui-v2/app/templates/components/form-component.hbs rename to ui-v2/app/components/form-component/index.hbs diff --git a/ui-v2/app/components/form-component.js b/ui-v2/app/components/form-component/index.js similarity index 100% rename from ui-v2/app/components/form-component.js rename to ui-v2/app/components/form-component/index.js diff --git a/ui-v2/app/templates/components/freetext-filter.hbs b/ui-v2/app/components/freetext-filter/index.hbs similarity index 100% rename from ui-v2/app/templates/components/freetext-filter.hbs rename to ui-v2/app/components/freetext-filter/index.hbs diff --git a/ui-v2/app/components/freetext-filter.js b/ui-v2/app/components/freetext-filter/index.js similarity index 100% rename from ui-v2/app/components/freetext-filter.js rename to ui-v2/app/components/freetext-filter/index.js diff --git a/ui-v2/app/templates/components/hashicorp-consul.hbs b/ui-v2/app/components/hashicorp-consul/index.hbs similarity index 100% rename from ui-v2/app/templates/components/hashicorp-consul.hbs rename to ui-v2/app/components/hashicorp-consul/index.hbs diff --git a/ui-v2/app/components/hashicorp-consul.js b/ui-v2/app/components/hashicorp-consul/index.js similarity index 100% rename from ui-v2/app/components/hashicorp-consul.js rename to ui-v2/app/components/hashicorp-consul/index.js diff --git a/ui-v2/app/templates/components/healthcheck-info.hbs b/ui-v2/app/components/healthcheck-info/index.hbs similarity index 100% rename from ui-v2/app/templates/components/healthcheck-info.hbs rename to ui-v2/app/components/healthcheck-info/index.hbs diff --git a/ui-v2/app/components/healthcheck-info.js b/ui-v2/app/components/healthcheck-info/index.js similarity index 100% rename from ui-v2/app/components/healthcheck-info.js rename to ui-v2/app/components/healthcheck-info/index.js diff --git a/ui-v2/app/templates/components/healthcheck-list.hbs b/ui-v2/app/components/healthcheck-list/index.hbs similarity index 100% rename from ui-v2/app/templates/components/healthcheck-list.hbs rename to ui-v2/app/components/healthcheck-list/index.hbs diff --git a/ui-v2/app/components/healthcheck-list.js b/ui-v2/app/components/healthcheck-list/index.js similarity index 100% rename from ui-v2/app/components/healthcheck-list.js rename to ui-v2/app/components/healthcheck-list/index.js diff --git a/ui-v2/app/templates/components/healthcheck-output.hbs b/ui-v2/app/components/healthcheck-output/index.hbs similarity index 100% rename from ui-v2/app/templates/components/healthcheck-output.hbs rename to ui-v2/app/components/healthcheck-output/index.hbs diff --git a/ui-v2/app/components/healthcheck-output.js b/ui-v2/app/components/healthcheck-output/index.js similarity index 100% rename from ui-v2/app/components/healthcheck-output.js rename to ui-v2/app/components/healthcheck-output/index.js diff --git a/ui-v2/app/templates/components/healthcheck-status.hbs b/ui-v2/app/components/healthcheck-status/index.hbs similarity index 100% rename from ui-v2/app/templates/components/healthcheck-status.hbs rename to ui-v2/app/components/healthcheck-status/index.hbs diff --git a/ui-v2/app/components/healthcheck-status.js b/ui-v2/app/components/healthcheck-status/index.js similarity index 100% rename from ui-v2/app/components/healthcheck-status.js rename to ui-v2/app/components/healthcheck-status/index.js diff --git a/ui-v2/app/templates/components/healthchecked-resource.hbs b/ui-v2/app/components/healthchecked-resource/index.hbs similarity index 100% rename from ui-v2/app/templates/components/healthchecked-resource.hbs rename to ui-v2/app/components/healthchecked-resource/index.hbs diff --git a/ui-v2/app/components/healthchecked-resource.js b/ui-v2/app/components/healthchecked-resource/index.js similarity index 100% rename from ui-v2/app/components/healthchecked-resource.js rename to ui-v2/app/components/healthchecked-resource/index.js diff --git a/ui-v2/app/templates/components/intention-filter.hbs b/ui-v2/app/components/intention-filter/index.hbs similarity index 100% rename from ui-v2/app/templates/components/intention-filter.hbs rename to ui-v2/app/components/intention-filter/index.hbs diff --git a/ui-v2/app/components/intention-filter.js b/ui-v2/app/components/intention-filter/index.js similarity index 100% rename from ui-v2/app/components/intention-filter.js rename to ui-v2/app/components/intention-filter/index.js diff --git a/ui-v2/app/templates/components/list-collection.hbs b/ui-v2/app/components/list-collection/index.hbs similarity index 100% rename from ui-v2/app/templates/components/list-collection.hbs rename to ui-v2/app/components/list-collection/index.hbs diff --git a/ui-v2/app/components/list-collection.js b/ui-v2/app/components/list-collection/index.js similarity index 100% rename from ui-v2/app/components/list-collection.js rename to ui-v2/app/components/list-collection/index.js diff --git a/ui-v2/app/templates/components/modal-dialog.hbs b/ui-v2/app/components/modal-dialog/index.hbs similarity index 100% rename from ui-v2/app/templates/components/modal-dialog.hbs rename to ui-v2/app/components/modal-dialog/index.hbs diff --git a/ui-v2/app/components/modal-dialog.js b/ui-v2/app/components/modal-dialog/index.js similarity index 100% rename from ui-v2/app/components/modal-dialog.js rename to ui-v2/app/components/modal-dialog/index.js diff --git a/ui-v2/app/templates/components/modal-layer.hbs b/ui-v2/app/components/modal-layer/index.hbs similarity index 100% rename from ui-v2/app/templates/components/modal-layer.hbs rename to ui-v2/app/components/modal-layer/index.hbs diff --git a/ui-v2/app/components/modal-layer.js b/ui-v2/app/components/modal-layer/index.js similarity index 100% rename from ui-v2/app/components/modal-layer.js rename to ui-v2/app/components/modal-layer/index.js diff --git a/ui-v2/app/templates/components/phrase-editor.hbs b/ui-v2/app/components/phrase-editor/index.hbs similarity index 100% rename from ui-v2/app/templates/components/phrase-editor.hbs rename to ui-v2/app/components/phrase-editor/index.hbs diff --git a/ui-v2/app/components/phrase-editor.js b/ui-v2/app/components/phrase-editor/index.js similarity index 100% rename from ui-v2/app/components/phrase-editor.js rename to ui-v2/app/components/phrase-editor/index.js diff --git a/ui-v2/app/templates/components/policy-form.hbs b/ui-v2/app/components/policy-form/index.hbs similarity index 91% rename from ui-v2/app/templates/components/policy-form.hbs rename to ui-v2/app/components/policy-form/index.hbs index fc8300dbc..fe5e7cf3d 100644 --- a/ui-v2/app/templates/components/policy-form.hbs +++ b/ui-v2/app/components/policy-form/index.hbs @@ -12,9 +12,9 @@ {{! this should use radio-group }}
{{item.Description}}
diff --git a/ui-v2/app/templates/dc/nodes/-services.hbs b/ui-v2/app/templates/dc/nodes/-services.hbs
index 83a2caaae..420e45b3c 100644
--- a/ui-v2/app/templates/dc/nodes/-services.hbs
+++ b/ui-v2/app/templates/dc/nodes/-services.hbs
@@ -6,36 +6,36 @@
{{/if}}
diff --git a/ui-v2/app/templates/dc/nodes/-sessions.hbs b/ui-v2/app/templates/dc/nodes/-sessions.hbs
index e34e6c8d4..8bc240c3a 100644
--- a/ui-v2/app/templates/dc/nodes/-sessions.hbs
+++ b/ui-v2/app/templates/dc/nodes/-sessions.hbs
@@ -1,9 +1,9 @@
{{#if (gt sessions.length 0)}}
- {{#tabular-collection
- data-test-sessions
- class="sessions"
- items=sessions as |item index|
- }}
+
There are no Lock Sessions for this Node. For more information, view our documentation
diff --git a/ui-v2/app/templates/dc/services/-addresses.hbs b/ui-v2/app/templates/dc/services/-addresses.hbs
index 5df6852fe..4ba07aed3 100644
--- a/ui-v2/app/templates/dc/services/-addresses.hbs
+++ b/ui-v2/app/templates/dc/services/-addresses.hbs
@@ -1,23 +1,23 @@
{{#if item.TaggedAddresses }}
-{{#tabular-collection
+
There are no additional addresses.
diff --git a/ui-v2/app/templates/dc/services/-exposedpaths.hbs b/ui-v2/app/templates/dc/services/-exposedpaths.hbs
index 3fba75fb8..7222f7a81 100644
--- a/ui-v2/app/templates/dc/services/-exposedpaths.hbs
+++ b/ui-v2/app/templates/dc/services/-exposedpaths.hbs
@@ -1,11 +1,11 @@
You can expose individual HTTP paths like /metrics through Envoy for external services like Prometheus.
diff --git a/ui-v2/app/templates/dc/services/metadata.hbs b/ui-v2/app/templates/dc/services/-metadata.hbs
similarity index 80%
rename from ui-v2/app/templates/dc/services/metadata.hbs
rename to ui-v2/app/templates/dc/services/-metadata.hbs
index e1fb12657..e1061be4c 100644
--- a/ui-v2/app/templates/dc/services/metadata.hbs
+++ b/ui-v2/app/templates/dc/services/-metadata.hbs
@@ -1,9 +1,9 @@
{{#if item.Meta}}
{{#with (object-entries item.Meta) as |meta|}}
- {{#tabular-collection
- data-test-metadata
- items=meta as |item index|
- }}
+
diff --git a/ui-v2/app/templates/dc/services/-upstreams.hbs b/ui-v2/app/templates/dc/services/-upstreams.hbs
index a1cb0f474..af051a0d6 100644
--- a/ui-v2/app/templates/dc/services/-upstreams.hbs
+++ b/ui-v2/app/templates/dc/services/-upstreams.hbs
@@ -1,8 +1,8 @@
{{#if (gt item.Proxy.Upstreams.length 0) }}
-{{#tabular-collection
- data-test-upstreams
- items=item.Proxy.Upstreams as |item index|
-}}
+
There are no upstreams.
diff --git a/ui-v2/tests/steps/assertions/model.js b/ui-v2/tests/steps/assertions/model.js
index 12f6b2ae9..a42066f1c 100644
--- a/ui-v2/tests/steps/assertions/model.js
+++ b/ui-v2/tests/steps/assertions/model.js
@@ -15,7 +15,6 @@ export default function(scenario, assert, find, currentPage, pauseUntil, plurali
const len = currentPage()[pluralize(model)].filter(function(item) {
return item.isVisible;
}).length;
-
assert.equal(len, num, `Expected ${num} ${pluralize(model)}, saw ${len}`);
})
.then(['I see $num $model model[s]? on the $component component'], function(
Service
- Port
- Tags
-
-
- {{#let (service/external-source item) as |externalSource| }}
- {{#if externalSource }}
-
- {{else}}
-
- {{/if}}
- {{/let}}
- {{item.Service}}{{#if (not-eq item.ID item.Service) }} ({{item.ID}}){{/if}}
-
-
-
- {{item.Port}}
-
-
-
- Service
+ Port
+ Tags
+
+
+ {{#let (service/external-source item) as |externalSource| }}
+ {{#if externalSource }}
+
+ {{else}}
+
+ {{/if}}
+ {{/let}}
+ {{item.Service}}{{#if (not-eq item.ID item.Service) }} ({{item.ID}}){{/if}}
+
+
+
+ {{item.Port}}
+
+
+
+ Name
ID
@@ -49,7 +49,7 @@
Tag
- Address
-
- {{object-at 0 taggedAddress}}{{#if (and (eq address.Address item.Address) (eq address.Port item.Port))}} (default){{/if}}
-
-
- {{address.Address}}:{{address.Port}}
-
-{{/with}}
- Tag
+ Address
+
+ {{object-at 0 taggedAddress}}{{#if (and (eq address.Address item.Address) (eq address.Port item.Port))}} (default){{/if}}
+
+
+ {{address.Address}}:{{address.Port}}
+
+ {{/with}}
+ Path
Protocol
@@ -30,4 +30,4 @@
{{item.Address}}:{{path.ListenerPort}}{{path.Path}}
ID
Node
@@ -47,7 +47,7 @@
{{/with}}
Key
Value
@@ -18,7 +18,7 @@
{{object-at 1 item}}
Upstream
Datacenter
@@ -31,7 +31,7 @@
{{item.LocalBindAddress}}:{{item.LocalBindPort}}