From 490a12f858e0c63778cdc5f396eb392c5de5e6e7 Mon Sep 17 00:00:00 2001 From: Alexander Renz Date: Sun, 18 Jan 2026 12:19:28 +0100 Subject: [PATCH] feat(tui): show resource profile and CPU workload on cluster restore preview - Displays current Resource Profile with parallelism settings - Shows CPU Workload type (balanced/cpu-intensive/io-intensive) - Shows Cluster Parallelism (number of concurrent database restores) This helps users understand what performance settings will be used before starting a cluster restore operation. --- bin/README.md | 4 ++-- internal/tui/restore_preview.go | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/bin/README.md b/bin/README.md index e9ca1cf..779413a 100644 --- a/bin/README.md +++ b/bin/README.md @@ -4,8 +4,8 @@ This directory contains pre-compiled binaries for the DB Backup Tool across mult ## Build Information - **Version**: 3.42.50 -- **Build Time**: 2026-01-18_10:48:22_UTC -- **Git Commit**: f6f8b04 +- **Build Time**: 2026-01-18_11:06:11_UTC +- **Git Commit**: ea4337e ## Recent Updates (v1.1.0) - ✅ Fixed TUI progress display with line-by-line output diff --git a/internal/tui/restore_preview.go b/internal/tui/restore_preview.go index 74b4e8d..379520e 100755 --- a/internal/tui/restore_preview.go +++ b/internal/tui/restore_preview.go @@ -402,6 +402,17 @@ func (m RestorePreviewModel) View() string { s.WriteString("\n") s.WriteString(fmt.Sprintf(" Host: %s:%d\n", m.config.Host, m.config.Port)) + // Show Resource Profile and CPU Workload settings + profile := m.config.GetCurrentProfile() + if profile != nil { + s.WriteString(fmt.Sprintf(" Resource Profile: %s (Parallel:%d, Jobs:%d)\n", + profile.Name, profile.ClusterParallelism, profile.Jobs)) + } else { + s.WriteString(fmt.Sprintf(" Resource Profile: %s\n", m.config.ResourceProfile)) + } + s.WriteString(fmt.Sprintf(" CPU Workload: %s\n", m.config.CPUWorkloadType)) + s.WriteString(fmt.Sprintf(" Cluster Parallelism: %d databases\n", m.config.ClusterParallelism)) + if m.existingDBError != "" { // Show warning when database listing failed - but still allow cleanup toggle s.WriteString(checkWarningStyle.Render(" Existing Databases: Detection failed\n"))