add feedback to tui

This commit is contained in:
Robin Olsen
2026-02-17 13:19:35 +01:00
parent 6ffcb5eb54
commit a5733bdaed
5 changed files with 87 additions and 28 deletions

View File

@@ -1,8 +1,8 @@
package dashboard
import (
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/bubbles/list"
tea "github.com/charmbracelet/bubbletea"
)
func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
@@ -22,6 +22,17 @@ func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
m.width = msg.Width
m.height = msg.Height
return m, nil
case ValidationFeedbackMsg:
m.currentFeedback = msg.Feedback
if msg.Feedback.Success {
m.showComplete = true
if m.quitChan != nil {
close(m.quitChan)
}
return m, tea.Quit
}
return m, m.listenForValidation()
}
cmd, changed := m.issueList.Update(msg)