Merge remote-tracking branch 'origin/main' into WIP-LPM-79

This commit is contained in:
Robin Olsen
2026-03-06 16:02:50 +01:00
45 changed files with 2385 additions and 212 deletions

View File

@@ -18,8 +18,8 @@ type RootModel struct {
hasSize bool
}
func NewRootView(app *app.App, feedbackChan chan models.ValidationFeedback, quitChan chan bool) *RootModel {
initialView := dashboard.NewDashboard(app, feedbackChan, quitChan)
func NewRootView(app *app.App, feedbackChan chan models.ValidationFeedback, quitChan chan bool, submitChan chan<- struct{}) *RootModel {
initialView := dashboard.NewDashboard(app, feedbackChan, quitChan, submitChan)
return &RootModel{
currentView: initialView,
app: app,
@@ -44,7 +44,7 @@ func (r *RootModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
return r, cmd
case msgs.SwitchToDashboardMsg:
// switch back to dashboard 1 and apply the last known size.
r.currentView = dashboard.NewDashboard(r.app, r.feedbackChan, r.quitChan)
r.currentView = dashboard.NewDashboard(r.app, r.feedbackChan, r.quitChan, r.app.SubmitChan)
var cmds []tea.Cmd
if r.hasSize {
// check if there is a size, and then update it