mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-23 00:19:28 +00:00
Address CodeRabbit review feedback
- Fix null-safe operator on currentTeam() call in Upgrade.php - Add --rm flag to docker run in upgrade.sh for cleanup consistency - Store beforeunload handler as named reference and clean up on success - Add clarifying comments for upgrade method calls - Add error state handling with close option in upgrade modal - Add step mapping documentation comment in upgrade-progress component 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,14 @@
|
||||
@props(['step' => 0])
|
||||
|
||||
{{--
|
||||
Step Mapping (Backend → UI):
|
||||
Backend steps 1-2 (config download, env update) → UI Step 1: Preparing
|
||||
Backend step 3 (pulling images) → UI Step 2: Helper + UI Step 3: Image
|
||||
Backend steps 4-5 (stop/start containers) → UI Step 4: Restart
|
||||
Backend step 6 (complete) → mapped in JS mapStepToUI() in upgrade.blade.php
|
||||
|
||||
The currentStep variable is inherited from parent Alpine component (upgradeModal).
|
||||
--}}
|
||||
<div class="w-full max-w-md mx-auto" x-data="{ activeStep: {{ $step }} }" x-effect="activeStep = $el.closest('[x-data]')?.__x?.$data?.currentStep ?? {{ $step }}">
|
||||
<div class="flex items-center justify-between">
|
||||
{{-- Step 1: Preparing --}}
|
||||
|
||||
Reference in New Issue
Block a user