diff --git a/CHANGELOG.md b/CHANGELOG.md index 5dc5b03..30e3c1c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,16 @@ getaggte Releases (Kanal `stable`, optional `beta`) — niemals Entwicklungs-Bui _Keine offenen Änderungen — der nächste Stand wird hier gesammelt und als `vX.Y.Z` getaggt._ +## [0.9.14] - 2026-06-19 + +### Geändert +- **Updates werden beim Öffnen der Seite automatisch geprüft** (System → Version & Releases). Bisher + zeigte nur das Badge eine neuere Version; der „Jetzt aktualisieren"-Knopf erschien erst nach Klick + auf „Nach Updates suchen". Die Seite prüft jetzt direkt beim Laden selbst (asynchron via + `wire:init`, blockiert das Rendern nicht) und zeigt ein verfügbares Update samt Knopf sofort an — + kein manuelles Suchen mehr. Während eines laufenden Updates wird der Auto-Check übersprungen, damit + er den „läuft"-Zustand nicht überschreibt. + ## [0.9.13] - 2026-06-19 ### Behoben diff --git a/app/Livewire/Versions/Index.php b/app/Livewire/Versions/Index.php index a70d1c8..88a4b10 100644 --- a/app/Livewire/Versions/Index.php +++ b/app/Livewire/Versions/Index.php @@ -124,6 +124,20 @@ class Index extends Component } } + /** + * Auto-check on page load (wire:init) so an available update + button appear without the + * operator clicking "check" first. No-op while an update is running, so it never clobbers the + * "läuft"/poll state. Async (wire:init), so it never blocks the initial render. + */ + public function autoCheck(): void + { + if ($this->updateRequested) { + return; + } + + $this->checkUpdates(); + } + /** * Honest update check: compare the installed version against the newest release * tag visible in the channel. No external server, no stars, no CVE feed. diff --git a/config/clusev.php b/config/clusev.php index d150f16..f35d46c 100644 --- a/config/clusev.php +++ b/config/clusev.php @@ -2,7 +2,7 @@ return [ // First tagged release is v0.1.0 (semantic, not -dev). - 'version' => '0.9.13', + 'version' => '0.9.14', // Deployed commit + branch. install.sh bakes these into .env from the host's .git (the prod // image ships no .git); the Versions page prefers them and falls back to a live .git read in diff --git a/resources/views/livewire/versions/index.blade.php b/resources/views/livewire/versions/index.blade.php index fe065f4..1e3fd74 100644 --- a/resources/views/livewire/versions/index.blade.php +++ b/resources/views/livewire/versions/index.blade.php @@ -22,7 +22,9 @@ $isUpdate = $updateState === 'update'; @endphp -