mirror of
https://github.com/tiennm99/coolify.git
synced 2026-05-03 22:21:53 +00:00
feat: add async prerequisite installation with retry logic and visual feedback
This commit enhances the boarding flow to handle prerequisite installation asynchronously with proper retry logic and user feedback: - Add retry mechanism with max 3 attempts for prerequisite installation - Display live installation logs via ActivityMonitor during boarding - Reset ActivityMonitor state when starting new activity to prevent stale event dispatching - Support dynamic header updates in ActivityMonitor - Add prerequisitesInstalled event handler to revalidate after installation completes - Extract validation logic into continueValidation() method for cleaner flow - Add unit tests for prerequisite installation logic This improves UX by showing users real-time progress during prerequisite installation and handles installation failures gracefully with automatic retries. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -132,7 +132,7 @@ class ValidateAndInstall extends Component
|
||||
$this->installationStep = 'Prerequisites';
|
||||
$activity = $this->server->installPrerequisites();
|
||||
$this->number_of_tries++;
|
||||
$this->dispatch('activityMonitor', $activity->id, 'init', $this->number_of_tries);
|
||||
$this->dispatch('activityMonitor', $activity->id, 'init', $this->number_of_tries, "{$this->installationStep} Installation Logs");
|
||||
}
|
||||
|
||||
return;
|
||||
@@ -168,7 +168,7 @@ class ValidateAndInstall extends Component
|
||||
$this->installationStep = 'Docker';
|
||||
$activity = $this->server->installDocker();
|
||||
$this->number_of_tries++;
|
||||
$this->dispatch('activityMonitor', $activity->id, 'init', $this->number_of_tries);
|
||||
$this->dispatch('activityMonitor', $activity->id, 'init', $this->number_of_tries, "{$this->installationStep} Installation Logs");
|
||||
}
|
||||
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user