-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from hashicorp/CC-6361
- Loading branch information
Showing
13 changed files
with
193 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@hashicorp/consul-ui-toolkit': minor | ||
--- | ||
|
||
Service list item now includes cluster ID, partition, and namespace info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
toolkit/src/components/cut/metadata/cluster-path/index.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{{! | ||
Copyright (c) HashiCorp, Inc. | ||
}} | ||
|
||
{{#if (and (and @clusterId @partition) @namespace)}} | ||
<div class="cut-service-cluster-path" data-test-service-cluster-path> | ||
<span class="hds-link-inline__icon hds-link-inline__icon--leading"> | ||
<FlightIcon @name="server-cluster" @size="16" @stretched={{true}} /> | ||
</span> | ||
{{@clusterId}} | ||
|
||
<span | ||
class="hds-link-inline__icon hds-link-inline__icon--leading cluster-path-separator" | ||
> | ||
<FlightIcon @name="chevron-right" @size="16" @stretched={{true}} /> | ||
</span> | ||
|
||
<span class="hds-link-inline__icon hds-link-inline__icon--leading"> | ||
<FlightIcon @name="users" @size="16" @stretched={{true}} /> | ||
</span> | ||
{{@partition}} | ||
|
||
<span | ||
class="hds-link-inline__icon hds-link-inline__icon--leading cluster-path-separator" | ||
> | ||
<FlightIcon @name="chevron-right" @size="16" @stretched={{true}} /> | ||
</span> | ||
|
||
<span class="hds-link-inline__icon hds-link-inline__icon--leading"> | ||
<FlightIcon @name="folder-users" @size="16" @stretched={{true}} /> | ||
</span> | ||
{{@namespace}} | ||
</div> | ||
{{/if}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/** | ||
* Copyright (c) HashiCorp, Inc. | ||
*/ | ||
|
||
import Component from '@glimmer/component'; | ||
|
||
interface Args { | ||
clusterId: string; | ||
partition: string; | ||
namespace: string; | ||
} | ||
|
||
// eslint-disable-next-line ember/no-empty-glimmer-component-classes | ||
export default class MetadataClusterPathComponent extends Component<Args> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* Copyright (c) HashiCorp, Inc. | ||
*/ | ||
|
||
.cluster-path-separator { | ||
color: var(--token-color-palette-neutral-300); | ||
} | ||
|
||
.cut-service-cluster-path { | ||
color: var(--token-color-foreground-faint); | ||
font-size: var(--token-typography-body-200-font-size); | ||
font-weight: var(--token-typography-font-weight-regular); | ||
display: flex; | ||
align-items: center; | ||
gap: 4px; | ||
padding-left: 4px; | ||
} |
04d2282
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
consul-ui-toolkit-documentation – ./
consul-ui-toolkit-documentation.vercel.app
consul-ui-toolkit-documentation-hashicorp.vercel.app
consul-ui-toolkit-documentation-git-main-hashicorp.vercel.app