Skip to content

Commit

Permalink
feat(orb-ui): Expose warning sink messages (#2735)
Browse files Browse the repository at this point in the history
* feat(orb-ui): Expose warning sink messages

* remove sink details scss
  • Loading branch information
joao-mendonca-encora authored Oct 9, 2023
1 parent e475f4b commit 86360e3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
9 changes: 9 additions & 0 deletions ui/src/app/@theme/styles/_overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,15 @@
&offline, &none {
color: #969fb9;
}
&provisioning {
color: #3089fc;
}
&provioning_error {
color: #df316f;
}
&warning {
color: #f2c94c;
}
}
.orb-service-background- {
&new, &unknown {
Expand Down
3 changes: 3 additions & 0 deletions ui/src/app/common/interfaces/orb/sink.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ export enum SinkStates {
error = 'error',
idle = 'idle',
unknown = 'unknown',
provisioning = 'provisioning',
provisioning_error = 'provisioning_error',
warning = 'warning',
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@
</div>
<div class="flex-row">
<label class="summary-accent">Status</label>
<p *ngIf="sink?.state !== sinkStates.error" class="orb-service-{{sink?.state}}"> {{ sink?.state | titlecase }} </p>
<p *ngIf="sink?.state === sinkStates.error" class="orb-service-{{sink?.state}}"> {{ sink?.state | titlecase }} {{ sink?.error | titlecase }} </p>
<p *ngIf="sink?.state !== sinkStates.error && sink?.state !== sinkStates.warning" class="orb-service-{{sink?.state}}"> {{ sink?.state | titlecase }} </p>
<p *ngIf="sink?.state === sinkStates.error" class="orb-service-{{sink?.state}}"> {{ sink?.state | titlecase }} {{ sink?.error }} </p>
<p *ngIf="sink?.state === sinkStates.warning" class="orb-service-{{sink?.state}}"> {{ sink?.state | titlecase }} {{ sink?.error }} </p>
</div>
<div class="flex-row">
<label class="summary-accent">Tags</label>
Expand Down

0 comments on commit 86360e3

Please sign in to comment.