Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty tables improvements #388

Merged
merged 1 commit into from
Mar 8, 2024
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
7 changes: 2 additions & 5 deletions src/app/administration/api-token/api-keys.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,8 @@ <h6 class="card-header bg-transparent">API Keys <span class="inline-controller">
</thead>
<tbody>
<tr *ngIf="apiKeys.length === 0">
<td></td>
<td></td>
<td class="text-muted">No api tokens...</td>
<td></td>
<td></td>
<td colspan="5" class="text-muted text-center">Nothing here yet! Add your first api token.</td>

</tr>
<tr *ngFor="let _ of apiKeys">
<td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ <h6 class="card-header bg-transparent">Projects <span class="inline-controller">
</thead>
<tbody>
<tr *ngIf="projects.length === 0">
<td></td>
<td></td>
<td class="text-muted">No data...</td>
<td></td>
<td></td>
<td colspan="5" class="text-muted text-center">Nothing here yet! Add your first project.</td>
</tr>
<tr *ngFor="let _ of projects">
<td class="project-name">
Expand Down
2 changes: 1 addition & 1 deletion src/app/dashboard/dashboard.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ <h6 class="card-header bg-transparent">Recent Test Runs</h6>
</thead>
<tbody>
<tr *ngIf="!latestItems || latestItems.length === 0">
<td colspan="4" class="text-muted no-data">No Data...</td>
<td colspan="5" class="text-muted no-data">Nothing here yet! Upload some test reports. <span><a href="https://jtlreporter.site/docs/guides/manual-data-upload">Show me how!</a></span></td>
</tr>
<tr *ngFor="let _ of latestItems" (click)="open(_.projectName, _.name, _.id)">
<td class="ellipsis">
Expand Down
5 changes: 4 additions & 1 deletion src/app/project/project.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ <h6 class="card-header bg-transparent">Scenarios</h6>
</tr>
</thead>
<tbody>
<tr *ngFor="let _ of mf.data" (click)="open(_.name)">
<tr *ngIf="filteredScenarios.length === 0">
<td colspan="5" class="text-muted text-center">Nothing here yet! Add your first scenario.</td>
</tr>
<tr *ngFor="let _ of mf.data" (click)="open(_.name)">
<td>{{_.name}}</td>
<td>{{_.data[0].startDate | date:'d. L. yyyy H:mm'}}</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,8 @@ <h5 class="modal-title" id="modal-basic-title">External notifications</h5>
</thead>
<tbody *ngIf="notifications.length === 0">
<tr>
<td></td>
<td>
<div class="empty-table">No data found.</div>
</td>
<td></td>
<td colspan="4" class="text-muted text-center">Nothing here yet! Add your first notification.</td>

</tr>
</tbody>
<tbody *ngIf="notifications.length > 0">
Expand Down
10 changes: 1 addition & 9 deletions src/app/scenario/scenario.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,7 @@ <h6 class="card-header bg-transparent">Test Runs
</thead>
<tbody *ngIf="items.data.length === 0">
<tr>
<td></td>
<td></td>
<td></td>
<td>
<div class="empty-table">No test runs were uploaded yet.</div>
</td>
<td></td>
<td></td>
<td></td>
<td colspan="8" class="text-muted text-center">Nothing here yet! Please upload some test reports.</td>
</tr>
</tbody>
<tbody *ngIf="items.data.length > 0">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@ <h5 class="modal-title" id="modal-basic-title">Share Scenario</h5>
</thead>
<tbody *ngIf="scenarioShareTokens.length === 0">
<tr>
<td></td>
<td>
<div class="empty-table">No links created yet.</div>
</td>
<td></td>
<td colspan="4" class="text-muted text-center">Nothing here yet! Add your first share token.</td>
</tr>
</tbody>
<tbody *ngIf="scenarioShareTokens.length > 0">
Expand Down
Loading