feat(ui): configurable session time windows, default 3 days #163
No reviewers
Labels
No labels
backend
bug
chore
duplication
effort:complex
effort:medium
effort:trivial
enhancement
follow-up
frontend
fullstack
priority:high
ready-for-agent
refactor
security
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dries/ocman!163
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/configurable-session-time-windows"
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?
Summary
Makes the two session time windows user-configurable under Settings → Sessions, both defaulting to 3 days (72h).
dashboardTimeRangeDefault(default 72h); the time-range buttons still override per-view via the?t=URL param.SIDEBAR_RECENT_HOURS = 72constant, so it went empty when viewing a session older than that window. Now reads a configurablesidebarRecentHours(default 72h).Both settings live in the existing persisted
uiStore(localStorage), mirroringautoApproveDelayMs. No backend changes, no migration — these are pure client-side display preferences. Store version bumped to v6; absent keys fall back to defaults.Testing
pnpm exec tsc -b— cleanpnpm lint— clean (incl. platform-branching check)pnpm test— 1289 passing; added uiStore tests for the new setters (clamp min/max, rounding, non-finite fallback, 72h default)go build ./...— clean (no Go changes)Closes #141
Closes #142
Coverage ratchet: ✅ pass
Tolerance: -0.1%. Baseline stored on
gh-pages.5afa5d7e38dcfe6d39fe