feat: TUI improvements and consistency fixes
All checks were successful
CI/CD / Test (push) Successful in 1m14s
CI/CD / Lint (push) Successful in 1m23s
CI/CD / Build & Release (push) Successful in 3m10s

- Add product branding header to main menu (version + tagline)
- Fix backup success/error report formatting consistency
- Remove extra newline before error box in backup_exec
- Align backup and restore completion screens
This commit is contained in:
2026-01-17 16:26:00 +01:00
parent 0e050b2def
commit df1ab2f55b
3 changed files with 8 additions and 5 deletions

View File

@@ -4,8 +4,8 @@ This directory contains pre-compiled binaries for the DB Backup Tool across mult
## Build Information ## Build Information
- **Version**: 3.42.50 - **Version**: 3.42.50
- **Build Time**: 2026-01-17_12:41:47_UTC - **Build Time**: 2026-01-17_15:15:55_UTC
- **Git Commit**: 62d58c7 - **Git Commit**: 0e050b2
## Recent Updates (v1.1.0) ## Recent Updates (v1.1.0)
- ✅ Fixed TUI progress display with line-by-line output - ✅ Fixed TUI progress display with line-by-line output

View File

@@ -454,7 +454,6 @@ func (m BackupExecutionModel) View() string {
} else { } else {
// Show completion summary with detailed stats // Show completion summary with detailed stats
if m.err != nil { if m.err != nil {
s.WriteString("\n")
s.WriteString(errorStyle.Render("╔══════════════════════════════════════════════════════════════╗")) s.WriteString(errorStyle.Render("╔══════════════════════════════════════════════════════════════╗"))
s.WriteString("\n") s.WriteString("\n")
s.WriteString(errorStyle.Render("║ [FAIL] BACKUP FAILED ║")) s.WriteString(errorStyle.Render("║ [FAIL] BACKUP FAILED ║"))

View File

@@ -299,9 +299,13 @@ func (m *MenuModel) View() string {
var s string var s string
// Product branding header
brandLine := fmt.Sprintf("dbbackup v%s • Enterprise Database Backup & Recovery", m.config.Version)
s += "\n" + infoStyle.Render(brandLine) + "\n"
// Header // Header
header := titleStyle.Render("Database Backup Tool - Interactive Menu") header := titleStyle.Render("Interactive Menu")
s += fmt.Sprintf("\n%s\n\n", header) s += fmt.Sprintf("%s\n\n", header)
if len(m.dbTypes) > 0 { if len(m.dbTypes) > 0 {
options := make([]string, len(m.dbTypes)) options := make([]string, len(m.dbTypes))