feat(ui): improve deployment UI

- fix: show time details even if a deployment has failed
- feat: added back "finished x min ago" to make it easier to see how long ago a deployment was finished
This commit is contained in:
peaklabs-dev
2025-01-23 13:21:11 +01:00
parent cc640ad710
commit 1072a0c17c
4 changed files with 8 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
<div class="flex flex-col gap-2" x-data="{
<div class="flex flex-col gap-2" wire:poll.5000ms="refreshExecutions" x-data="{
init() {
let interval;
$wire.$watch('isPollingActive', value => {
@@ -48,6 +48,7 @@
@if(data_get($execution, 'status') !== 'running')
<br>Ended: {{ formatDateInServerTimezone(data_get($execution, 'finished_at'), $server) }}
<br>Duration: {{ calculateDuration(data_get($execution, 'created_at'), data_get($execution, 'finished_at')) }}
<br>Finished {{ \Carbon\Carbon::parse(data_get($execution, 'finished_at'))->diffForHumans() }}
@endif
</div>
</a>