Skip to content
This repository was archived by the owner on Jan 8, 2024. It is now read-only.

Commit 89ca985

Browse files
authored
Merge pull request #2036 from hashicorp/ui/ui-tweaks
UI: Change layout of status-row
2 parents 822845a + a307b2d commit 89ca985

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

Diff for: .changelog/2036.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:improvement
2+
ui: Improve design of status row on Build/Deployment/Release detail pages
3+
```

Diff for: ui/app/components/status-report-bar/index.hbs

+8-5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
{{#if this.statusReport}}
33
<div class="item">
44
<StatusReportIndicator @statusReport={{this.statusReport}} />
5+
{{#if this.statusReport.status.completeTime.seconds}}
6+
<div data-test-complete-time-status-report>
7+
Last checked {{date-format-distance-to-now this.statusReport.status.completeTime.seconds }}
8+
</div>
9+
{{/if}}
510
</div>
611
{{/if}}
712

@@ -14,13 +19,11 @@
1419
</div>
1520
{{/if}}
1621
{{yield}}
17-
{{#if this.statusReport.status.completeTime.seconds}}
18-
<div class="item" data-test-complete-time-status-report>
19-
Last checked {{date-format-distance-to-now this.statusReport.status.completeTime.seconds }}
20-
</div>
21-
{{/if}}
22+
23+
2224
{{#if this.statusReport}}
2325
<div class="item">
26+
2427
<Pds::Button @variant="ghost" @iconStart="refresh-default" disabled={{this.isRefreshRunning}} {{on "click" this.refreshHealthCheck}}>
2528
Re-run health check
2629
</Pds::Button>

Diff for: ui/app/styles/_layout.scss

+7-1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ ul.list {
8585
@include Typography.Interface(M);
8686

8787
.item {
88+
display: flex;
8889
a {
8990
text-decoration: none;
9091

@@ -93,8 +94,13 @@ ul.list {
9394
}
9495
}
9596

97+
.status-report-indicator__label,
98+
.operation-status-indicator__label {
99+
@include Typography.Interface(M);
100+
margin-right: scale.$lg-1;
101+
}
102+
96103
.badge {
97-
font-size: 0.75rem;
98104
padding: scale.$sm-3 scale.$sm-2;
99105
}
100106
}

0 commit comments

Comments
 (0)