-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Redesign the pipeline overview
- The "Select pipeline" step was removed. Instead, all pipeline actions are displayed directly on the corresponding card. - A note that the TeamForCapella project name must match exactly was added. - Error handling was added if Grafana Loki is not enabled. - Make use of generated OpenAPI schema for pipelines and pipeline runs in the frontend.
- Loading branch information
1 parent
f43efb9
commit b2ab418
Showing
17 changed files
with
277 additions
and
324 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
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
28 changes: 28 additions & 0 deletions
28
...s/models/backup-settings/pipeline-deletion-dialog/pipeline-deletion-dialog.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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!-- | ||
~ SPDX-FileCopyrightText: Copyright DB InfraGO AG and contributors | ||
~ SPDX-License-Identifier: Apache-2.0 | ||
--> | ||
|
||
<div class="dialog"> | ||
<h2 class="text-xl font-medium"> | ||
Remove a TeamForCapella to Git backup pipeline | ||
</h2> | ||
<p>Do you want to delete the TeamForCapella to Git backup pipeline?</p> | ||
|
||
<div class="flex flex-row flex-wrap items-center gap-2"> | ||
@if (userService.validateUserRole("administrator")) { | ||
<mat-slide-toggle | ||
[(ngModel)]="force" | ||
aria-label="Force deletion of pipeline" | ||
matTooltip="Delete pipeline even if T4C instance not reachable. In this case we can't revoke the pipeline credentials." | ||
> | ||
Force deletion | ||
</mat-slide-toggle> | ||
} | ||
</div> | ||
|
||
<div class="flex justify-between"> | ||
<button mat-flat-button type="button" (click)="onCancel()">Cancel</button> | ||
<button mat-flat-button color="primary" type="submit">Confirm</button> | ||
</div> | ||
</div> |
53 changes: 53 additions & 0 deletions
53
...cts/models/backup-settings/pipeline-deletion-dialog/pipeline-deletion-dialog.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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* | ||
* SPDX-FileCopyrightText: Copyright DB InfraGO AG and contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { DialogRef } from '@angular/cdk/dialog'; | ||
import { CommonModule } from '@angular/common'; | ||
import { ChangeDetectionStrategy, Component } from '@angular/core'; | ||
import { FormsModule } from '@angular/forms'; | ||
import { MatSlideToggle } from '@angular/material/slide-toggle'; | ||
import { UserWrapperService } from 'src/app/services/user/user.service'; | ||
|
||
@Component({ | ||
selector: 'app-pipeline-deletion-dialog', | ||
standalone: true, | ||
imports: [CommonModule, MatSlideToggle, FormsModule], | ||
templateUrl: './pipeline-deletion-dialog.component.html', | ||
styles: ` | ||
:host { | ||
display: block; | ||
} | ||
`, | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class PipelineDeletionDialogComponent { | ||
force = false; | ||
|
||
constructor( | ||
public userService: UserWrapperService, | ||
private dialogRef: DialogRef, | ||
) {} | ||
|
||
onCancel(): void { | ||
this.dialogRef.close(false); | ||
} | ||
|
||
removePipeline(backup: Pipeline): void { | ||
this.pipelineService | ||
.removePipeline( | ||
this.data.projectSlug, | ||
this.data.modelSlug, | ||
backup.id, | ||
this.force, | ||
) | ||
.subscribe(() => { | ||
this.toastService.showSuccess( | ||
'Backup pipeline deleted', | ||
`The pipeline with the ID ${backup.id} has been deleted`, | ||
); | ||
this.closeDialog(); | ||
}); | ||
} | ||
} |
Oops, something went wrong.