Tidy: fix stale-dated sparkline test + gitignore agent worktrees #30
Reference in New Issue
Block a user
Delete Branch "tidy-sparkline-test-and-gitignore"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two small main-bound hygiene fixes (unrelated to any feature branch).
test(dashboard):
TestDashboard_HostRowSparklineRendersWithHistoryseeded history on hard-coded dates (2026-05-05/06) and asserted a<polyline>. The dashboard only pulls a rolling 30-day window (since = now-30d), so once the clock passed ~2026-06-05 those fixtures aged out of the window, the query returned nothing, and the sparkline fell back to its em-dash placeholder with no polyline. Switched to relative dates (now-2d / now-1d) so it can't age out again.chore(gitignore): ignore
/.claude/worktrees/— transient worktrees created by the agent harness.Test plan
go test ./internal/server/http/ -run TestDashboard_HostRowSparklinepasses (both render + empty-state)go vet ./...clean