From 9d0d8c6729f4da4a497840fbfc8a4fe901250623 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Fri, 24 Oct 2025 12:58:52 +0200 Subject: [PATCH] Fix loading icon showing during automatic status checks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The loading icon was appearing during automatic background status checks (every 10 seconds) even when users didn't click anything, which caused confusion and made it seem like something was running unexpectedly. Changes: - Added manualCheckStatus() method to Application, Database, and Service Heading components that wraps the checkStatus() call - Updated status component buttons to call manualCheckStatus() instead of checkStatus() - Added wire:target="manualCheckStatus" to loading directives so the loading icon only appears when users explicitly click the refresh button - Added delay.shortest to prevent flickering on fast operations The automatic wire:poll.10000ms="checkStatus" now runs silently in the background without showing the loading icon, while manual refreshes still provide visual feedback to the user. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/Livewire/Project/Application/Heading.php | 5 +++++ app/Livewire/Project/Database/Heading.php | 5 +++++ app/Livewire/Project/Service/Heading.php | 5 +++++ resources/views/components/status/index.blade.php | 4 ++-- resources/views/components/status/services.blade.php | 4 ++-- 5 files changed, 19 insertions(+), 4 deletions(-) diff --git a/app/Livewire/Project/Application/Heading.php b/app/Livewire/Project/Application/Heading.php index 62c93611ed..5231438e5c 100644 --- a/app/Livewire/Project/Application/Heading.php +++ b/app/Livewire/Project/Application/Heading.php @@ -58,6 +58,11 @@ class Heading extends Component } } + public function manualCheckStatus() + { + $this->checkStatus(); + } + public function force_deploy_without_cache() { $this->authorize('deploy', $this->application); diff --git a/app/Livewire/Project/Database/Heading.php b/app/Livewire/Project/Database/Heading.php index 6a287f8ccf..8d3d8e294d 100644 --- a/app/Livewire/Project/Database/Heading.php +++ b/app/Livewire/Project/Database/Heading.php @@ -62,6 +62,11 @@ class Heading extends Component } } + public function manualCheckStatus() + { + $this->checkStatus(); + } + public function mount() { $this->parameters = get_route_parameters(); diff --git a/app/Livewire/Project/Service/Heading.php b/app/Livewire/Project/Service/Heading.php index 3492da3246..c8a08d8f98 100644 --- a/app/Livewire/Project/Service/Heading.php +++ b/app/Livewire/Project/Service/Heading.php @@ -54,6 +54,11 @@ class Heading extends Component } } + public function manualCheckStatus() + { + $this->checkStatus(); + } + public function serviceChecked() { try { diff --git a/resources/views/components/status/index.blade.php b/resources/views/components/status/index.blade.php index 65beace65f..d592cff792 100644 --- a/resources/views/components/status/index.blade.php +++ b/resources/views/components/status/index.blade.php @@ -13,14 +13,14 @@ @endif @if (!str($resource->status)->contains('exited') && $showRefreshButton) - -