Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions src/app/workspace/workspace.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,27 @@
</cdk-cell>
</ng-container>

<ng-container cdkColumnDef="createdAt">
<cdk-header-cell *cdkHeaderCellDef></cdk-header-cell>
<cdk-cell *cdkCellDef="let workspace" class="font-size-small font-roboto font-medium-gray">
Created: <app-date class="d-inline-block ml-2" [dateTime]="workspace.createdAt"></app-date>
</cdk-cell>
</ng-container>

<ng-container cdkColumnDef="timestamp-status">
<cdk-header-cell *cdkHeaderCellDef></cdk-header-cell>
<cdk-cell *cdkCellDef="let workspace" class="font-size-small font-roboto font-medium-gray">
<span *ngIf="workspace.status?.startedAt && workspace.status.phase !== 'Paused'">
Started:
<app-date class="d-inline-block ml-2" [dateTime]="workspace.status.startedAt"></app-date>
</span>
<span *ngIf="workspace.status?.pausedAt && workspace.status.phase === 'Paused'">
Paused:
<app-date class="d-inline-block ml-2" [dateTime]="workspace.status.pausedAt"></app-date>
</span>
</cdk-cell>
</ng-container>

<ng-container cdkColumnDef="spacer">
<cdk-header-cell *cdkHeaderCellDef></cdk-header-cell>
<cdk-cell *cdkCellDef="let workflow" class="flex-grow-1"></cdk-cell>
Expand Down
16 changes: 14 additions & 2 deletions src/app/workspace/workspace.component.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
.cdk-column-name {
min-width: 300px;
max-width: 300px;
min-width: 200px;
max-width: 200px;
}

.cdk-column-template {
width: 150px;
}

.cdk-column-createdAt {
width: 250px;
}

.cdk-column-timestamp-status {
width: 250px;
}

.cdk-column-status {
Expand Down
2 changes: 1 addition & 1 deletion src/app/workspace/workspace.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type WorkspaceState = 'loading-initial-data' | 'loading' | 'new';
})
export class WorkspaceComponent implements OnInit, OnDestroy {
namespace: string;
displayedColumns = ['name', 'status', 'template', 'spacer', 'actions', 'labels'];
displayedColumns = ['name', 'status', 'template', 'createdAt', 'timestamp-status', 'spacer', 'actions', 'labels'];
workspaceResponse: ListWorkspaceResponse;
workspaces: Workspace[] = [];
pagination = new Pagination();
Expand Down