Post-deploy fixes (v0.12.7a)

This commit is contained in:
2026-02-18 11:03:56 +01:00
parent 6c1762141a
commit e4433f07b4
6 changed files with 152 additions and 752 deletions
+5 -10
View File
@@ -457,16 +457,11 @@ func (r *Router) backupSnapshots(w http.ResponseWriter, req *http.Request) {
return
}
// Filter by stack if requested — only return snapshots that include the app's HDD paths.
if stackName := req.URL.Query().Get("stack"); stackName != "" {
mounts := r.backupMgr.GetStackHDDMounts(stackName)
if len(mounts) > 0 {
// App has HDD data — filter to snapshots containing those paths
snapshots = filterSnapshotsByPaths(snapshots, mounts)
}
// Apps without HDD mounts: return all snapshots (they all contain
// the stacks dir + DB dumps which cover this app's config and database)
}
// All snapshots contain the stacks dir + DB dumps, so they're useful for
// any app (config + DB restore). Apps with HDD data get user data restored
// too — but only from snapshots that include those paths (post-v0.12.7).
// We don't filter here because older snapshots still allow config+DB restore,
// and the RestoreApp function extracts whatever paths are available.
if snapshots == nil {
snapshots = []backup.SnapshotInfo{}
+3 -3
View File
@@ -598,10 +598,10 @@ func (s *Server) buildAppBackupRows(
cfg, hasCfg := crossConfigs[app.StackName]
if !hasCfg || cfg == nil || !cfg.Enabled {
// HDD data but no cross-drive configured → RED
// HDD data backed up via nightly restic (mandatory), but no second copy
row.UserDataConfigured = false
row.Status = "red"
row.StatusText = "Felhasználói adatokról nincs mentés"
row.Status = "yellow"
row.StatusText = "Nincs második másolat (csak helyi mentés)"
} else {
row.UserDataConfigured = true
row.UserDataMethod = cfg.Method
@@ -312,7 +312,8 @@
Futtatás most</button>
</div>
{{else}}
<span class="layer-unconfigured">⚠ Nincs beállítva</span>
<span class="layer-auto-ok">✓ Helyi mentés auto</span>
<span class="layer-unconfigured">⚠ Nincs 2. másolat</span>
<a href="/stacks/{{.StackName}}/deploy" class="btn btn-xs">Beállítás →</a>
{{end}}
{{else}}
@@ -2561,6 +2561,11 @@ a.stat-card:hover {
font-size: .8rem;
margin-left: .25rem;
}
.layer-auto-ok {
color: var(--green);
font-size: .85rem;
margin-right: .5rem;
}
.layer-unconfigured {
color: var(--yellow);
font-weight: 500;