-
Notifications
You must be signed in to change notification settings - Fork 459
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
frontend: Make trials table support pagination/sorting/filtering (#2040)
* build: Update the COMMIT file * Update the COMMIT file. Signed-off-by: Elena Zioga <elena@arrikto.com> * frontend: Support paging/sorting/filtering in trials table (#1441) * Make trials table support paging, sorting and filtering. Signed-off-by: Elena Zioga <elena@arrikto.com> * frontend: Create unit tests for trials table (#1441) * Create unit tests for trials-table component. Signed-off-by: Elena Zioga <elena@arrikto.com> Signed-off-by: Elena Zioga <elena@arrikto.com>
- Loading branch information
Showing
7 changed files
with
274 additions
and
147 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1cca7b81 | ||
2b4cc42e |
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
74 changes: 10 additions & 64 deletions
74
...1beta1/frontend/src/app/pages/experiment-details/trials-table/trials-table.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,64 +1,10 @@ | ||
<table [dataSource]="data" class="wide" mat-table> | ||
<!--- Note that these columns can be defined in any order. | ||
The actual rendered columns are set as a property on the row definition" --> | ||
|
||
<!-- Position Column --> | ||
<ng-container | ||
*ngFor="let column of displayedColumns; let i = index" | ||
[matColumnDef]="column" | ||
> | ||
<th mat-header-cell *matHeaderCellDef> | ||
{{ column === 'Kfp run' ? '' : column }} | ||
</th> | ||
<td | ||
*matCellDef="let element" | ||
[ngClass]="{ cell: column === 'Trial name' }" | ||
mat-cell | ||
> | ||
<span | ||
*ngIf=" | ||
column !== 'Trial name' && column !== 'Status' && column !== 'Kfp run' | ||
" | ||
>{{ element[i] }} | ||
</span> | ||
|
||
<span | ||
(click)="openTrialDetails(element[i])" | ||
*ngIf="column === 'Trial name'" | ||
class="name" | ||
>{{ element[i] }} | ||
</span> | ||
|
||
<div *ngIf="column === 'Kfp run'" class="svg-color"> | ||
<mat-icon | ||
(click)="goToKfpRun(element[i])" | ||
[matTooltipDisabled]="!!element[i]" | ||
[ngClass]="{ 'icon-disable': !element[i] }" | ||
class="icon" | ||
matTooltip="No KFP run" | ||
svgIcon="pipeline-centered" | ||
></mat-icon> | ||
</div> | ||
|
||
<span | ||
*ngIf="column === 'Status'" | ||
[ngClass]="{ | ||
green: element[i] === 'Succeeded', | ||
red: element[i] === 'Failed' | ||
}" | ||
>{{ element[i] }}</span | ||
> | ||
</td> | ||
</ng-container> | ||
|
||
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr> | ||
<tr | ||
(mouseleave)="handleMouseLeave()" | ||
(mouseover)="handleMouseOver(row)" | ||
*matRowDef="let row; let i = index; columns: displayedColumns" | ||
[ngClass]="{ 'best-trail-row': bestTrialIndex === i }" | ||
mat-row | ||
> | ||
> | ||
</tr> | ||
</table> | ||
<div class="lib-content-wrapper"> | ||
<div class="page-padding lib-flex-grow lib-overflow-auto"> | ||
<lib-table | ||
[config]="config" | ||
[data]="processedData" | ||
[highlightedRow]="bestTrialRow" | ||
(actionsEmitter)="reactToAction($event)" | ||
></lib-table> | ||
</div> | ||
</div> |
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.