Make phone entry pane fully scrollable

This commit is contained in:
Joe Julian
2026-04-02 21:38:51 -07:00
parent c2a4fa4087
commit 3667fce5f4
2 changed files with 117 additions and 0 deletions
+32
View File
@@ -774,6 +774,38 @@ func TestUIPhoneGroupBrowserToggleDoesNotChangeCurrentGroupToolsState(t *testing
}
}
func TestUIPhoneListPanelWithExpandedGroupControlsAndEntriesDoesNotPanic(t *testing.T) {
t.Parallel()
u := newUIWithModel("phone", vault.Model{
Groups: [][]string{
{"Crew"},
{"Crew", "Internet"},
{"Crew", "eMail"},
},
Entries: []vault.Entry{
{ID: "amazon", Title: "Amazon", Username: "joe", Path: []string{"Crew", "Internet"}},
{ID: "mail", Title: "Mail", Username: "joe", Path: []string{"Crew", "eMail"}},
},
})
u.groupControlsHidden = false
u.setCurrentPath([]string{"Crew"})
u.filter()
ops := new(op.Ops)
gtx := layout.Context{
Ops: ops,
Constraints: layout.Exact(image.Pt(1080, 900)),
}
defer func() {
if r := recover(); r != nil {
t.Fatalf("listPanel() panicked on phone with groups, controls, and entries: %v", r)
}
}()
_ = u.listPanel(gtx)
}
func TestUIAPIAuditSectionShowsRecordedEvents(t *testing.T) {
t.Parallel()