coolify/app/Livewire/Server
Andras Bacsai e110e32320 Fix Traefik warning persistence after proxy restart
When users updated Traefik configuration or version and restarted the proxy, the warning triangle icon showing outdated version info persisted until the weekly CheckTraefikVersionJob ran (Sundays at 00:00).

This was caused by the UI warning indicators reading from cached database columns (detected_traefik_version, traefik_outdated_info) that were only updated by the weekly scheduled job, not after proxy restarts.

Solution: Add version check to ProxyStatusChangedNotification listener that triggers automatically after proxy status changes to "running".

Changes:
- Add Traefik version check in ProxyStatusChangedNotification::handle()
- Triggers automatically when ProxyStatusChanged event fires with status="running"
- Removed duplicate version check from Navbar::restart() (now handled by event)
- Event fires after StartProxy/StopProxy actions complete via async jobs
- Gracefully handles missing versions.json data with warning log

Benefits:
- Version check happens AFTER proxy is confirmed running (more accurate)
- Reuses existing event infrastructure (ProxyStatusChanged)
- Works for all proxy restart scenarios (manual restart, config save + restart, etc.)
- No duplicate checks - single source of truth in event listener
- Async job runs in background (5-10 seconds) to update database
- User sees warning cleared after page refresh

Flow:
1. User updates config and restarts proxy (or manually restarts)
2. StartProxy action completes async, dispatches ProxyStatusChanged event
3. ProxyStatusChangedNotification listener receives event
4. Listener checks proxy status = "running", dispatches CheckTraefikVersionForServerJob
5. Job detects version via SSH, updates database columns
6. UI re-renders with cleared warnings

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-03 09:45:23 +01:00
..
CaCertificate refactor: replace direct SslCertificate queries with server relationship methods for consistency 2025-10-09 17:00:05 +02:00
CloudProviderToken improved hetzner features 2025-10-09 12:53:57 +02:00
New fix: update boarding flow logic to complete onboarding when server is created 2025-10-29 23:06:39 +01:00
PrivateKey feat(private-key-refresh): add refresh dispatch on private key update and connection check 2025-09-23 16:49:59 +02:00
Proxy fix: enhance validation for database names and filenames to prevent command injection 2025-11-27 14:51:23 +01:00
Security fix(security): implement authorization checks for terminal access management 2025-09-25 11:45:07 +02:00
Advanced.php refactor(dashboard): remove deployment loading logic and introduce DeploymentsIndicator component for better UI management 2025-09-30 11:43:30 +02:00
Charts.php Revert "rector: arrrrr" 2025-01-07 15:31:43 +01:00
CloudflareTunnel.php feat(auth): implement authorization checks for server updates across multiple components 2025-08-22 13:02:11 +02:00
Create.php improved hetzner features 2025-10-09 12:53:57 +02:00
Delete.php work work on hetzner integration 2025-10-09 16:54:13 +02:00
Destinations.php feat(auth): implement authorization for Docker and server management 2025-08-22 14:04:25 +02:00
DockerCleanup.php feat(auth): implement authorization checks for server updates across multiple components 2025-08-22 13:02:11 +02:00
DockerCleanupExecutions.php feat: Docker cleanup executions UI 2025-01-15 20:11:40 +01:00
Index.php Fix styling 2024-06-10 20:43:34 +00:00
LogDrains.php feat(auth): implement authorization checks for server updates across multiple components 2025-08-22 13:02:11 +02:00
Navbar.php Fix Traefik warning persistence after proxy restart 2025-12-03 09:45:23 +01:00
Proxy.php Merge branch 'next' into fix-traefik-startup 2025-11-28 17:54:48 +01:00
Resources.php Revert "rector: arrrrr" 2025-01-07 15:31:43 +01:00
Show.php fix: correct dispatch logic for Hetzner server status refresh in checkHetznerServerStatus method 2025-10-10 10:13:14 +02:00
ValidateAndInstall.php fix: resolve Docker validation race conditions and sudo prefix bug 2025-11-27 09:04:42 +01:00