commit 12134c63c97b4721f7f19f590054fbd410e93299
parent 93ccfafd1d43bd8e4089a65fe447b363299023d8
Author: Erik Loualiche <eloualic@umn.edu>
Date: Wed, 4 Mar 2026 06:45:17 -0600
feat: add cursor and expanded state to DashboardModel
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat:
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/internal/tui/dashboard.go b/internal/tui/dashboard.go
@@ -44,6 +44,8 @@ type DashboardModel struct {
filter string
filtering bool
offset int
+ cursor int // index into filtered events
+ expanded map[int]bool // keyed by index in unfiltered events slice
}
// ---------------------------------------------------------------------------
@@ -54,9 +56,10 @@ type DashboardModel struct {
// remote paths.
func NewDashboard(local, remote string) DashboardModel {
return DashboardModel{
- local: local,
- remote: remote,
- status: "watching",
+ local: local,
+ remote: remote,
+ status: "watching",
+ expanded: make(map[int]bool),
}
}