From 8f40a4c9a31e8292b36b56078c27e81f3e436fed Mon Sep 17 00:00:00 2001 From: Robin Olsen Date: Wed, 11 Mar 2026 14:49:55 +0100 Subject: [PATCH 1/2] add section to show valiaton check feedback --- pkg/tui/components/modals.go | 15 +++++++++++++-- pkg/tui/styles/styles.go | 2 +- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/pkg/tui/components/modals.go b/pkg/tui/components/modals.go index b41e3bb..28cba57 100644 --- a/pkg/tui/components/modals.go +++ b/pkg/tui/components/modals.go @@ -220,7 +220,19 @@ func RenderFooter(width int, helpBar *HelpBar, feedback models.ValidationFeedbac feedbackStatus := feedback.Message // Ensure the feedback message does not exceed the total available width. - feedbackStatus = truncateToWidth(feedbackStatus, width) + if feedback.Message != "" { + feedbackStatus = truncateToWidth(feedbackStatus+" [Press Shift+S to re-submit]", width) + + if helpBar.IsExpanded() && feedbackStatus != "" { + for _, check := range feedback.Checks { + if check.Valid { + feedbackStatus += "\n✅ " + check.Message + } else { + feedbackStatus += "\n❌ " + check.Message + } + } + } + } if feedbackStatus == "" { return helpBar.View() @@ -234,4 +246,3 @@ func RenderFooter(width int, helpBar *HelpBar, feedback models.ValidationFeedbac helpBar.SetWidth(helpWidth) return lipgloss.JoinHorizontal(lipgloss.Left, helpBar.View(), feedbackStatus) } - diff --git a/pkg/tui/styles/styles.go b/pkg/tui/styles/styles.go index 53b3dfc..105aa55 100644 --- a/pkg/tui/styles/styles.go +++ b/pkg/tui/styles/styles.go @@ -21,7 +21,7 @@ var ( ) const ( - ListViewRatio = 70 // Percentage of total width allocated to the list view + ListViewRatio = 45 // Percentage of total width allocated to the list view LabelWidth = 14 MarginBottomSmall = 1 ) From 5fd9557637cce21def43b02283e5263a098f8150 Mon Sep 17 00:00:00 2001 From: Robin Olsen <129996395+Telikz@users.noreply.github.com> Date: Wed, 11 Mar 2026 15:33:45 +0100 Subject: [PATCH 2/2] Update pkg/tui/components/modals.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- pkg/tui/components/modals.go | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/pkg/tui/components/modals.go b/pkg/tui/components/modals.go index 28cba57..b2b5d75 100644 --- a/pkg/tui/components/modals.go +++ b/pkg/tui/components/modals.go @@ -225,11 +225,21 @@ func RenderFooter(width int, helpBar *HelpBar, feedback models.ValidationFeedbac if helpBar.IsExpanded() && feedbackStatus != "" { for _, check := range feedback.Checks { + var prefix string if check.Valid { - feedbackStatus += "\n✅ " + check.Message + prefix = "✅ " } else { - feedbackStatus += "\n❌ " + check.Message + prefix = "❌ " } + + // Ensure each check line does not exceed the available width. + remainingWidth := width - lipgloss.Width(prefix) + if remainingWidth < 0 { + remainingWidth = 0 + } + truncatedMsg := truncateToWidth(check.Message, remainingWidth) + + feedbackStatus += "\n" + prefix + truncatedMsg } } }