An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
feat(ui): improve deployment UI
peaklabs-dev1072a0c17cc7
diff --git a/resources/views/livewire/project/application/deployment/index.blade.php b/resources/views/livewire/project/application/deployment/index.blade.phpindex ec5cf0f98b..b29b335c39 100644--- a/resources/views/livewire/project/application/deployment/index.blade.php+++ b/resources/views/livewire/project/application/deployment/index.blade.php@@ -60,9 +60,10 @@@if(data_get($deployment, 'status') !== 'queued')<div class="text-gray-600 dark:text-gray-400 text-sm">Started: {{ formatDateInServerTimezone(data_get($deployment, 'created_at'), data_get($application, 'destination.server')) }}- @if($deployment->status !== 'in_progress' && $deployment->status !== 'cancelled-by-user' && $deployment->status !== 'failed')+ @if($deployment->status !== 'in_progress' && $deployment->status !== 'cancelled-by-user')<br>Ended: {{ formatDateInServerTimezone(data_get($deployment, 'finished_at'), data_get($application, 'destination.server')) }}<br>Duration: {{ calculateDuration(data_get($deployment, 'created_at'), data_get($deployment, 'finished_at')) }}+ <br>Finished {{ \Carbon\Carbon::parse(data_get($deployment, 'finished_at'))->diffForHumans() }}@elseif($deployment->status === 'in_progress')<br>Running for: {{ calculateDuration(data_get($deployment, 'created_at'), now()) }}@endifdiff --git a/resources/views/livewire/project/database/backup-executions.blade.php b/resources/views/livewire/project/database/backup-executions.blade.phpindex 2f46a46577..d13f88e374 100644--- a/resources/views/livewire/project/database/backup-executions.blade.php+++ b/resources/views/livewire/project/database/backup-executions.blade.php@@ -4,7 +4,7 @@<h3 class="py-4">Executions</h3><x-forms.button wire:click='cleanupFailed'>Cleanup Failed Backups</x-forms.button></div>- <div class="flex flex-col gap-4">+ <div wire:poll.5000ms="refreshBackupExecutions" class="flex flex-col gap-4">@forelse($executions as $execution)<div wire:key="{{ data_get($execution, 'id') }}" @class(['flex flex-col border-l-2 transition-colors p-4 bg-white dark:bg-coolgray-100 text-black dark:text-white',@@ -40,6 +40,7 @@@if(data_get($execution, 'status') !== 'running')<br>Ended: {{ formatDateInServerTimezone(data_get($execution, 'finished_at'), $this->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><div class="text-gray-600 dark:text-gray-400 text-sm">diff --git a/resources/views/livewire/project/shared/scheduled-task/executions.blade.php b/resources/views/livewire/project/shared/scheduled-task/executions.blade.phpindex 63be05a2d4..13e8000f1b 100644--- a/resources/views/livewire/project/shared/scheduled-task/executions.blade.php+++ b/resources/views/livewire/project/shared/scheduled-task/executions.blade.php@@ -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'), data_get($task, 'application.destination.server') ?? data_get($task, 'service.destination.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>diff --git a/resources/views/livewire/server/docker-cleanup-executions.blade.php b/resources/views/livewire/server/docker-cleanup-executions.blade.phpindex 95460c62ca..72581cfb0e 100644--- a/resources/views/livewire/server/docker-cleanup-executions.blade.php+++ b/resources/views/livewire/server/docker-cleanup-executions.blade.php@@ -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>