package tui import ( "albedo/cli/internal/daemon" "albedo/cli/internal/testutil/tuishots" ) func init() { tuishots.Register("chat", tuishots.State{Name: "queued-editing", View: func(w, h int) string { return renderChatShot(w, h, func(m *ChatModel) { shotRunning(m) m.pendingUsers = []PendingUserTurn{ {OperationID: "op-1", Text: "and check the narrow layout", At: 7, Queued: true}, {OperationID: "op-2", Text: "then commit it, not the stash", At: 8, Queued: true, Images: []daemon.ImageAttachment{{MimeType: "image/png", Width: 1, Height: 1}}}, } m.editing = &queuedEdit{id: "op-2", stash: editDraft{text: "a draft I was writing"}} m.TextArea.SetValue("then commit it [Image #1]") m.editing.loaded = m.TextArea.Value() }) }}, tuishots.State{Name: "queued-already-read", View: func(w, h int) string { return renderChatShot(w, h, func(m *ChatModel) { shotRunning(m) m.pendingUsers = []PendingUserTurn{{OperationID: "op-1", Text: "and check the narrow layout", At: 7, Queued: true}} m.TextArea.SetValue("and check it on phone too") m.AddNotice("The agent already read that message, so it goes as it was sent.") }) }}, ) }