MCPcopy Create free account
hub / github.com/basecamp/hey-cli / fetchBoxes

Method fetchBoxes

internal/tui/mail.go:338–354  ·  view source on GitHub ↗

--- Fetch commands ---

()

Source from the content-addressed store, hash-verified

336 requests requestLane[mailRequestKind]
337 sourceRequestID uint64
338 folderDiscoveryErr string
339 collectionDiscoveryErr string
340
341 liveRequestID uint64 // identifies the only live re-read allowed to update the list
342 liveRefreshDue bool // a re-read is already on its way
343 moreRequestID uint64 // identifies the only page-below read allowed to grow the list
344 searchMoreID uint64 // the same, for the search results
345 bundleMoreID uint64 // the same, for an open bundle's threads
346 seenMoreID uint64 // the same, for the Previously Seen screen
347}
348
349func newMailView(vc *viewContext) *mailView {
350 view := &mailView{
351 vc: vc,
352 topicViewport: viewport.New(viewport.WithWidth(0), viewport.WithHeight(0)),
353 searchList: contentList{hideSeenState: true},
354 bundleList: contentList{hideSeenState: true},
355 seenList: contentList{hideSeenState: true},
356 selectedLink: -1,
357 }

Callers 1

InitMethod · 0.95

Calls 2

sdkBoxToModelFunction · 0.85
boxesLoadedMsgTypeAlias · 0.85

Tested by

no test coverage detected