From c7fc0a271cbcc299a7c6391d5c2ee022f9f1a8e2 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Tue, 18 Nov 2025 10:19:04 +0100 Subject: [PATCH] feat(proxy): trigger version check after restart from UI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When a user restarts the proxy from the Navbar UI component, the system now automatically dispatches a version check job immediately after the restart completes. This provides immediate feedback about available Traefik updates without waiting for the weekly scheduled check. Changes: - Import CheckTraefikVersionForServerJob in Navbar component - After successful proxy restart, dispatch version check for Traefik servers - Version check only runs for servers using Traefik proxy This ensures users get up-to-date version information right after restarting their proxy infrastructure. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/Livewire/Server/Navbar.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/Livewire/Server/Navbar.php b/app/Livewire/Server/Navbar.php index 7827f02b8..7b250fa8f 100644 --- a/app/Livewire/Server/Navbar.php +++ b/app/Livewire/Server/Navbar.php @@ -6,6 +6,7 @@ use App\Actions\Proxy\StartProxy; use App\Actions\Proxy\StopProxy; use App\Enums\ProxyTypes; +use App\Jobs\CheckTraefikVersionForServerJob; use App\Models\Server; use App\Services\ProxyDashboardCacheService; use Illuminate\Foundation\Auth\Access\AuthorizesRequests; @@ -68,6 +69,11 @@ public function restart() $activity = StartProxy::run($this->server, force: true, restarting: true); $this->dispatch('activityMonitor', $activity->id); + + // Check Traefik version after restart to provide immediate feedback + if ($this->server->proxyType() === ProxyTypes::TRAEFIK->value) { + CheckTraefikVersionForServerJob::dispatch($this->server); + } } catch (\Throwable $e) { return handleError($e, $this); } @@ -137,9 +143,6 @@ public function showNotification() $this->dispatch('success', 'Proxy is running.'); } break; - case 'restarting': - $this->dispatch('info', 'Initiating proxy restart.'); - break; case 'exited': // Only show "Proxy has exited" notification when transitioning from running state // Don't show during normal stop/restart flows (stopping, restarting)