diff --git a/app/Livewire/Upgrade.php b/app/Livewire/Upgrade.php
index 70723135f..37cc8ec28 100644
--- a/app/Livewire/Upgrade.php
+++ b/app/Livewire/Upgrade.php
@@ -55,7 +55,7 @@ public function upgrade()
public function getUpgradeStatus(): array
{
// Only root team members can view upgrade status
- if (auth()->user()?->currentTeam()->id !== 0) {
+ if (auth()->user()?->currentTeam()?->id !== 0) {
return ['status' => 'none'];
}
diff --git a/resources/views/components/upgrade-progress.blade.php b/resources/views/components/upgrade-progress.blade.php
index 13eca4f5b..d65273cce 100644
--- a/resources/views/components/upgrade-progress.blade.php
+++ b/resources/views/components/upgrade-progress.blade.php
@@ -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).
+--}}
{{-- Step 1: Preparing --}}
diff --git a/resources/views/livewire/upgrade.blade.php b/resources/views/livewire/upgrade.blade.php
index d9d717f44..dcc664e84 100644
--- a/resources/views/livewire/upgrade.blade.php
+++ b/resources/views/livewire/upgrade.blade.php
@@ -51,7 +51,7 @@ class="relative w-full py-6 border rounded-sm min-w-full lg:min-w-[36rem] max-w-
{{ $currentVersion }} → {{ $latestVersion }}
-