Repository navigation
feat(overview): add Today time window and make it the default - #369
Merged
caigee-cmd merged 1 commit intoOct 23, 2026
Merged
Conversation
- Add a "Today" option to the shared stats window switcher: a calendar day from local midnight to now, sent as an explicit `from` (backend defaults `to` to now). Placed before 1h. - Overview page now defaults to the Today window on load (was 24h). - Rebuild embedded console assets (internal/webui/static).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
frontend/src/lib/statsWindow.ts:StatsWindow增加'today',statsQuery对'today'只下发from(本地零点 ISO)。后端Recorder.Stats在缺省to时默认取当前时刻,因此无需改动后端。//go:embed all:static打进二进制,已执行npm run sync重新生成internal/webui/static:index.html与新哈希 JS 一起替换,未保留旧index-*.js。Test plan
cd frontend && npm run build && npm run lint—tsc -b && vite build通过;oxlint0 error(35 条 warning 为既有)changelog/unreleased/overview-today-window.md(中英双语,release-notes.py validate通过)npm run sync已重新生成internal/webui/static,index.html与资产哈希一致go test ./.../go vet ./...— 本 PR 未改 Go 源码(仅内嵌静态产物替换);当前环境无 Go 工具链,交由 CI 兜底cd worker && npm test— 未涉及