-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Locking and Deployment information changes (#276)
- Loading branch information
Showing
51 changed files
with
1,186 additions
and
535 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
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
52 changes: 25 additions & 27 deletions
52
.../src/app/components/environments/deployment-state-tag/deployment-state-tag.component.html
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 |
---|---|---|
@@ -1,72 +1,70 @@ | ||
@switch (state()) { | ||
@case ('SUCCESS') { | ||
<!-- Success State --> | ||
<p-tag severity="success" [rounded]="true"> | ||
<i-tabler name="check" class="!h-4 !w-4 mr-0.5"></i-tabler> | ||
Latest deployment successful | ||
<p-tag severity="success" [rounded]="true" [pTooltip]="'Latest Deployment Successful'"> | ||
<i-tabler name="check" class="!size-5"></i-tabler> | ||
</p-tag> | ||
} | ||
|
||
@case ('WAITING') { | ||
<!-- In Progress State --> | ||
<p-tag severity="warn" [rounded]="true" [pTooltip]="'Waiting deployment'"> | ||
<i-tabler name="progress" class="!size-5 animate-spin"></i-tabler> | ||
</p-tag> | ||
} | ||
|
||
@case ('PENDING') { | ||
<!-- Pending State --> | ||
<p-tag severity="info" [rounded]="true"> | ||
<i-tabler name="progress" class="!h-4 !w-4 mr-0.5"></i-tabler> | ||
Deployment pending | ||
<p-tag severity="warn" [rounded]="true" [pTooltip]="'Deployment pending'"> | ||
<i-tabler name="progress" class="!size-5 animate-spin"></i-tabler> | ||
</p-tag> | ||
} | ||
|
||
@case ('IN_PROGRESS') { | ||
<!-- In Progress State --> | ||
<p-tag severity="info" [rounded]="true"> | ||
<i-tabler name="progress" class="!h-4 !w-4 mr-0.5 animate-spin"></i-tabler> | ||
Deployment in progress | ||
<p-tag severity="info" [rounded]="true" [pTooltip]="'Deployment in progress'"> | ||
<i-tabler name="progress" class="!size-5 animate-spin"></i-tabler> | ||
</p-tag> | ||
} | ||
|
||
@case ('QUEUED') { | ||
<!-- Queued State --> | ||
<p-tag severity="warn" [rounded]="true"> | ||
<i-tabler name="progress" class="!h-4 !w-4 mr-0.5"></i-tabler> | ||
Deployment queued | ||
<p-tag severity="info" [rounded]="true" [pTooltip]="'Deployment queued'"> | ||
<i-tabler name="progress" class="!size-5 animate-spin"></i-tabler> | ||
</p-tag> | ||
} | ||
|
||
@case ('ERROR') { | ||
<!-- Error State --> | ||
<p-tag severity="danger" [rounded]="true"> | ||
<i-tabler name="exclamation-circle" class="!h-4 !w-4 mr-0.5"></i-tabler> | ||
Latest deployment failed | ||
<p-tag severity="danger" [rounded]="true" [pTooltip]="'Latest deployment failed'"> | ||
<i-tabler name="exclamation-circle" class="!size-5"></i-tabler> | ||
</p-tag> | ||
} | ||
|
||
@case ('FAILURE') { | ||
<!-- Failure State --> | ||
<p-tag severity="danger" [rounded]="true"> | ||
<i-tabler name="exclamation-mark" class="!h-4 !w-4 mr-0.5"></i-tabler> | ||
Latest deployment failed | ||
<p-tag severity="danger" [rounded]="true" [pTooltip]="'Latest deployment failed'"> | ||
<i-tabler name="exclamation-mark" class="!size-5"></i-tabler> | ||
</p-tag> | ||
} | ||
|
||
@case ('INACTIVE') { | ||
<!-- Inactive State --> | ||
<p-tag severity="secondary" [rounded]="true"> | ||
<i-tabler name="time-duration-off" class="!h-4 !w-4 mr-0.5"></i-tabler> | ||
Deployment inactive | ||
<p-tag severity="secondary" [rounded]="true" [pTooltip]="'Deployment inactive'"> | ||
<i-tabler name="time-duration-off" class="!size-5"></i-tabler> | ||
</p-tag> | ||
} | ||
|
||
@case ('UNKNOWN') { | ||
<!-- Unknown State --> | ||
<p-tag severity="secondary" [rounded]="true"> | ||
<i-tabler name="question-mark" class="!h-4 !w-4 mr-0.5"></i-tabler> | ||
Deployment state unknown | ||
<p-tag severity="secondary" [rounded]="true" [pTooltip]="'Deployment state unknown'"> | ||
<i-tabler name="question-mark" class="!size-5"></i-tabler> | ||
</p-tag> | ||
} | ||
|
||
@default { | ||
<p-tag severity="secondary" [rounded]="true"> | ||
<i-tabler name="question-mark" class="!h-4 !w-4 mr-0.5"></i-tabler> | ||
Unrecognized State | ||
<p-tag severity="secondary" [rounded]="true" [pTooltip]="'Unrecognized State'"> | ||
<i-tabler name="question-mark" class="!size-5"></i-tabler> | ||
</p-tag> | ||
} | ||
} |
5 changes: 3 additions & 2 deletions
5
...nt/src/app/components/environments/deployment-state-tag/deployment-state-tag.component.ts
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 |
---|---|---|
@@ -1,13 +1,14 @@ | ||
import { Component, input } from '@angular/core'; | ||
import { IconsModule } from 'icons.module'; | ||
import { TagModule } from 'primeng/tag'; | ||
import { TooltipModule } from 'primeng/tooltip'; | ||
|
||
@Component({ | ||
selector: 'app-deployment-state-tag', | ||
imports: [TagModule, IconsModule], | ||
imports: [TagModule, IconsModule, TooltipModule], | ||
providers: [], | ||
templateUrl: './deployment-state-tag.component.html', | ||
}) | ||
export class DeploymentStateTagComponent { | ||
state = input.required<string>(); | ||
state = input.required<string | undefined>(); | ||
} |
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
Oops, something went wrong.