Free the right pane for the lead once its inbox empties or task merges

This commit is contained in:
Ian Gulliver
2026-10-15 10:26:26 -07:00
parent 40595d4c5a
commit a569cf94c7
5 changed files with 149 additions and 36 deletions
+12
View File
@@ -88,6 +88,18 @@ func TestLeadSignalsAndShow(t *testing.T) {
if f.Tab != api.TabInbox {
t.Fatalf("focus moved while the pane was focused: %+v", f)
}
err = e.store.WithdrawItem(e.ctx, created[len(created)-1].Payload["id"].(string))
if err != nil {
t.Fatalf("withdraw report: %v", err)
}
_, err = m.MessageLead(e.ctx, e.user, "Call the show tool with task_id "+e.task.Id+", tabs [\"changes\"] and tab \"changes\". Then say done.", "", nil)
if err != nil {
t.Fatalf("message lead: %v", err)
}
e.waitFor("show allowed on an emptied inbox", func(ev api.Event) bool {
return ev.Kind == "focus.updated" && ev.Actor == login+" (lead)" && ev.Payload["tab"] == string(api.TabChanges)
})
}
func TestFocusProject(t *testing.T) {