feat(tui): status debounce, scroll indicator, drawer label, card grouping

Status messages now use a sequence counter so rapid actions don't
cause premature clearing. Detail pane shows scroll position and
supports pgup/pgdown/g/G. Capture drawer border includes inline
label. Cards view groups by intent (pinned/grab/read/fill) with
gutter labels matching the stream view's date grouping pattern.
This commit is contained in:
2026-05-20 11:49:11 -04:00
parent cb10d1e93d
commit c26e2d2022
5 changed files with 191 additions and 62 deletions
+3 -3
View File
@@ -58,7 +58,7 @@ type tagsLoadedMsg struct {
tags []db.TagCount
}
type statusClearMsg struct{}
type statusClearMsg struct{ seq int }
type editorFinishedMsg struct {
err error
@@ -270,8 +270,8 @@ func copyResolved(store *db.Store, entityID string, resolved string) tea.Cmd {
}
}
func clearStatusAfter(d time.Duration) tea.Cmd {
func clearStatusAfter(d time.Duration, seq int) tea.Cmd {
return tea.Tick(d, func(time.Time) tea.Msg {
return statusClearMsg{}
return statusClearMsg{seq: seq}
})
}