Skip to content

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.

Add loading overlay to runtime logs to prevent flicker during refresh

Andras Bacsaideb79cf0505e
diff --git a/resources/views/livewire/project/shared/get-logs.blade.php b/resources/views/livewire/project/shared/get-logs.blade.php
index 9fcd52cd73..138c8e5645 100644
--- a/resources/views/livewire/project/shared/get-logs.blade.php
+++ b/resources/views/livewire/project/shared/get-logs.blade.php
@@ -391,7 +391,7 @@
class="text-gray-500 dark:text-gray-400 py-2">
No matches found.
</div>
- @foreach ($displayLines as $line)
+ @foreach ($displayLines as $index => $line)
@php
// Parse timestamp from log line (ISO 8601 format: 2025-12-04T11:48:39.136764033Z)
$timestamp = '';
@@ -411,8 +411,10 @@
// Format: 2025-Dec-04 09:44:58.198879
$timestamp = "{$year}-{$monthName}-{$day} {$time}.{$microseconds}";
}
+ // Use timestamp for stable key (unique per log line)
+ $lineKey = $timestamp ?: 'line-' . $index;
@endphp
- <div data-log-line data-log-content="{{ $line }}" class="flex gap-2 log-line">
+ <div wire:key="{{ $lineKey }}" data-log-line data-log-content="{{ $line }}" class="flex gap-2 log-line">
@if ($timestamp && $showTimeStamps)
<span class="shrink-0 text-gray-500">{{ $timestamp }}</span>
@endif