diff --git a/app/Filament/Pages/Supporto/AggiornamentoLauncher.php b/app/Filament/Pages/Supporto/AggiornamentoLauncher.php new file mode 100644 index 0000000..5fbc048 --- /dev/null +++ b/app/Filament/Pages/Supporto/AggiornamentoLauncher.php @@ -0,0 +1,22 @@ +hasAnyRole(['super-admin', 'admin', 'amministratore']); } diff --git a/resources/views/filament/pages/supporto/aggiornamento-launcher.blade.php b/resources/views/filament/pages/supporto/aggiornamento-launcher.blade.php new file mode 100644 index 0000000..7f873d2 --- /dev/null +++ b/resources/views/filament/pages/supporto/aggiornamento-launcher.blade.php @@ -0,0 +1,174 @@ + + @php($supportUpdateAuthUser = auth()->user()) + @php($supportCanRunUpdate = $supportUpdateAuthUser && method_exists($supportUpdateAuthUser, 'hasAnyRole') && $supportUpdateAuthUser->hasAnyRole(['super-admin', 'admin', 'amministratore'])) + +
+
+
+
+
Launcher esterno per update e sync Git
+
+ Usa questa pagina per lanciare aggiornamenti senza restare dentro la pagina completa Modifiche mentre Livewire e i file vengono riallineati. +
+
+
+ + Apri Modifiche completo + + + Rileggi stato + +
+
+ @if(! $supportCanRunUpdate) +
+ I lanci update/sync sono abilitati solo per super-admin, admin e amministratore. +
+ @endif +
+ +
+
+
Sync Git da Gitea
+
Flusso consigliato per staging e nodi interni.
+ +
+ + + +
+ +
+ + Aggiorna staging da Gitea + + + Aggiorna avanzamento Git + +
+ + @if($this->gitSyncInProgress) +
+ @else +
+ @endif +
+ Avanzamento sync Git + {{ (int) $this->gitSyncProgressPercent }}% +
+
+
+
+
{{ $this->gitSyncProgressMessage }}
+ @if(filled($this->lastGitSyncIssue)) +
{{ $this->lastGitSyncIssue }}
+ @endif +
+
+ +
+
Stato nodo
+
+
Branch locale: {{ $this->gitCurrentBranch ?? '-' }}
+
Commit locale: {{ $this->gitCurrentCommit ?? '-' }}
+
Commit remoto: {{ $this->gitRemoteCommit ?? '-' }}
+
Tracking: {{ $this->gitAheadBehind }}
+
Working tree: {{ $this->gitWorkingTreeDirty ? 'sporco' : 'pulito' }}
+
Ultima sync Git: {{ $this->lastGitSyncAt ?? '-' }}
+
Ultimo update: {{ $this->lastUpdateAt ?? '-' }}
+
+
+
+ +
+
+
Aggiornamento distribution
+
Usare solo quando il manifest update sul server distribution e valido.
+ +
+ + + + +
+ +
+ + Lancia aggiornamento + + + Lancia aggiornamento (riserva) + + + Check connettivita update + + + optimize:clear + + + Rebuild view + +
+ + @if($this->updateInProgress) +
+ @else +
+ @endif +
+ Avanzamento aggiornamento + {{ (int) $this->updateProgressPercent }}% +
+
+
+
+
{{ $this->updateProgressMessage }}
+ @if(filled($this->lastUpdateIssue)) +
{{ $this->lastUpdateIssue }}
+ @endif +
+
+ +
+
Esito e backup
+
+
Exit update: {{ $this->lastUpdateExitCode !== null ? $this->lastUpdateExitCode : '-' }}
+
Exit sync Git: {{ $this->lastGitSyncExitCode !== null ? $this->lastGitSyncExitCode : '-' }}
+
Backup snapshot: {{ $this->latestBackupSummary['snapshot_id'] ?? '-' }}
+
Backup creato il: {{ $this->latestBackupSummary['created_at'] ?? '-' }}
+
+ + @if(filled($this->lastConnectivityCheckOutput)) +
+
Ultimo check connettivita
+
{{ $this->lastConnectivityCheckOutput }}
+
+ @endif +
+
+
+ \ No newline at end of file diff --git a/resources/views/filament/pages/supporto/modifiche.blade.php b/resources/views/filament/pages/supporto/modifiche.blade.php index d0bd3b0..6b615aa 100644 --- a/resources/views/filament/pages/supporto/modifiche.blade.php +++ b/resources/views/filament/pages/supporto/modifiche.blade.php @@ -17,6 +17,12 @@ Versione corrente: {{ $this->currentVersion }} fonte {{ $this->versionSource }}
+
+ Per sync Git e update piu sicuri usa il launcher esterno: + + Apri Aggiornamento Nodo + +