From 74e5b75380e06ca5f01f0a06ff263b6622679f31 Mon Sep 17 00:00:00 2001 From: Steve Cliff Date: Mon, 15 Jun 2026 22:14:36 +0100 Subject: [PATCH 1/2] chore: gitignore .claude/worktrees (transient agent worktrees) --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index f525de3..5d70e1c 100644 --- a/.gitignore +++ b/.gitignore @@ -49,3 +49,6 @@ coverage.html # Local-only planning / scratch — never committed. /ask.md /docs/superpowers/ + +# Claude Code agent worktrees (transient, harness-created). +/.claude/worktrees/ From 239d55b65b2657ace3665c350dca2840c6fbe384 Mon Sep 17 00:00:00 2001 From: Steve Cliff Date: Mon, 15 Jun 2026 22:15:07 +0100 Subject: [PATCH 2/2] test(dashboard): use relative dates so sparkline test doesn't age out of the 30-day window --- internal/server/http/ui_dashboard_sparkline_test.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/internal/server/http/ui_dashboard_sparkline_test.go b/internal/server/http/ui_dashboard_sparkline_test.go index 748bfc5..fcad7cc 100644 --- a/internal/server/http/ui_dashboard_sparkline_test.go +++ b/internal/server/http/ui_dashboard_sparkline_test.go @@ -49,8 +49,14 @@ func TestDashboard_HostRowSparklineRendersWithHistory(t *testing.T) { hostID := makeHost(t, st, "h-spark") ctx := context.Background() - // Two history points → polyline must render. - for i, day := range []string{"2026-05-05", "2026-05-06"} { + // Two history points → polyline must render. Use dates relative to + // now so the points always fall inside the dashboard's rolling + // 30-day window (ui_handlers.go: since = now-30d); hard-coded dates + // silently age out of the window and break this test over time. + for i, day := range []string{ + time.Now().UTC().AddDate(0, 0, -2).Format("2006-01-02"), + time.Now().UTC().AddDate(0, 0, -1).Format("2006-01-02"), + } { v := int64(100 + i*50) if err := st.UpsertHostRepoStatsHistory(ctx, hostID, day, store.HostRepoStats{TotalSizeBytes: &v}, time.Now().UTC()); err != nil {