e1ec19ecfbeceff6648b3ec78a68c492b0d35447
[ccsdk/cds.git] /
1 <div class="execution-history-container">
2     <div class="row mb-3" *ngIf="hasHistory">
3         <div class="col text-right">
4             <button class="btn btn-sm btn-outline-secondary" (click)="clearHistory()">
5                 <i class="fa fa-trash mr-1"></i> Clear History
6             </button>
7         </div>
8     </div>
9
10     <div *ngIf="!hasHistory" class="empty-state text-center p-5">
11         <i class="fa fa-history fa-3x text-muted mb-3"></i>
12         <p class="text-muted">No execution history yet.</p>
13         <p class="text-muted small">Execute a blueprint from the Execution Setup tab to see results here.</p>
14     </div>
15
16     <table class="table table-hover" *ngIf="hasHistory">
17         <thead>
18             <tr>
19                 <th>Request ID</th>
20                 <th>Blueprint</th>
21                 <th>Version</th>
22                 <th>Action</th>
23                 <th>Status</th>
24                 <th>Timestamp</th>
25             </tr>
26         </thead>
27         <tbody>
28             <tr *ngFor="let exec of executions"
29                 (click)="selectExecution(exec)"
30                 [class.table-active]="selectedExecution === exec"
31                 class="history-row">
32                 <td class="request-id">{{ exec.requestId }}</td>
33                 <td>{{ exec.blueprintName }}</td>
34                 <td>{{ exec.blueprintVersion }}</td>
35                 <td>{{ exec.actionName }}</td>
36                 <td>
37                     <span class="badge"
38                           [class.badge-success]="exec.status === 'success'"
39                           [class.badge-danger]="exec.status === 'failure'"
40                           [class.badge-warning]="exec.status === 'pending'">
41                         {{ exec.status }}
42                     </span>
43                 </td>
44                 <td>{{ exec.timestamp }}</td>
45             </tr>
46         </tbody>
47     </table>
48 </div>