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
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
@use 'variables';
@use 'colors';
@use 'mixins';

.empty-message.vertical {
display: flex;
Expand Down Expand Up @@ -52,10 +53,7 @@
}

.empty-message-header {
font-weight: 400;
line-height: 32px;
font-size: 24px;
color: colors.$on-surface;
@include mixins.headline-small;
}

.empty-message-main {
Expand Down
26 changes: 17 additions & 9 deletions modules/ui/src/app/pages/testrun/testrun.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,21 @@

<ng-template #empty>
<div class="progress-content-empty">
<ng-container
*ngTemplateOutlet="
startNewTestrunButton;
context: {
hasDevices: vm.hasDevices,
isAllDevicesOutdated: vm.isAllDevicesOutdated,
}
"></ng-container>
<div class="empty-content">
<p class="empty-content-heading">Testrun is ready!</p>
<p class="empty-content-info">
Click the button below to configure you testing task
</p>

<ng-container
*ngTemplateOutlet="
startNewTestrunButton;
context: {
hasDevices: vm.hasDevices,
isAllDevicesOutdated: vm.isAllDevicesOutdated,
}
"></ng-container>
</div>
</div>
</ng-template>

Expand All @@ -120,7 +127,8 @@
"
(click)="openTestRunModal(vm.testModules)"
mat-flat-button>
Start New Testrun
<mat-icon>add</mat-icon>
Start Testing
</button>
</ng-template>
</ng-container>
31 changes: 29 additions & 2 deletions modules/ui/src/app/pages/testrun/testrun.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,34 @@

.progress-content-empty {
@include mixins.content-empty;
background-image: url(/assets/icons/empty-testrun.svg);
background-size: contain;
background-repeat: no-repeat;
background-position: center;
}

.empty-content {
display: flex;
flex-direction: column;
align-items: center;

.empty-content-heading {
@include mixins.headline-small;
margin: 0;
}

.empty-content-info {
margin: 12px 0 32px;
font-size: 16px;
line-height: 24px;
font-family: variables.$font-text;
color: colors.$on-surface-variant;
background: colors.$white;
}

.start-button {
@include mixins.add-button;
}
}

.progress-toolbar {
Expand Down Expand Up @@ -116,8 +144,7 @@
}

.report-button,
.stop-button,
.start-button {
.stop-button {
letter-spacing: 0.25px;
padding: 0 24px;
}
Expand Down
66 changes: 66 additions & 0 deletions modules/ui/src/assets/icons/empty-testrun.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions modules/ui/src/theming/mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,12 @@
0px 1px 2px 0px rgba(0, 0, 0, 0.3),
0px 1px 3px 1px rgba(0, 0, 0, 0.15);
}

@mixin headline-small {
font-size: 24px;
line-height: 32px;
color: colors.$on-surface;
font-family: variables.$font-primary;
font-weight: 400;
letter-spacing: 0;
}
Loading