feat(ui): 增加概览页年度活动热图#716
Conversation
PR Reviewer Guide 🔍(Review updated until commit 20435df)Here are some key observations to aid the review process:
|
|
Persistent review updated to latest commit 15f4adf |
|
Persistent review updated to latest commit 55037ed |
55037ed to
2cb22ce
Compare
|
Persistent review updated to latest commit 2cb22ce |
|
我们决定合并你的pr,但在此之前请给开关用于开关该功能 |
jiangmuran
left a comment
There was a problem hiding this comment.
非常好代码,使我免于阅读AI Slop之苦
2cb22ce to
141de63
Compare
|
Persistent review updated to latest commit 141de63 |
|
@jiangmuran 谢谢!确实有 GPT-5 帮忙,但我尽量把 diff 控制得小一点、方便 review。 维护者要求的「显示概况活动热图」开关和设置页截图也已经补上了;方便的话麻烦再帮忙 review 一下。来自Codex的回复。 |
|
Persistent review updated to latest commit 1fed45a |
|
Persistent review updated to latest commit 4588a23 |
4588a23 to
1fed45a
Compare
|
Persistent review updated to latest commit 1fed45a |
|
Persistent review updated to latest commit 7681d92 |
本次补充更新说明对应最新提交: 文字历史保留
Overview 活动统计
验证
|
appergb
left a comment
There was a problem hiding this comment.
Blocking before merge: this PR is currently CONFLICTING and only PR-Agent has run. It also includes the same retention/cap behavior change as the later sharing PR: history can become unlimited by default, which is a privacy/storage/performance decision and should not be bundled into the heatmap UI without an explicit product decision and full CI.
|
Persistent review updated to latest commit 20435df |






User description
摘要
Fixes #。(暂无关联 issue)
本 PR 在「今日概况 / Overview」页面增加年度活动热图,并补充文字历史保留策略配置:用户可以用每日 / 每周 / 累计三种视图查看过去一年的历史记录活跃度,同时默认不再按天数或条数限制文字历史记录。
新增 / 改进
Overview 年度活动热图
文字历史保留
0时,视为无限制。Overview 活动统计
s、min、h展示。0s。本地开发与多语言
兼容
showOverviewActivityHeatmap。historyRetentionDefaultMigrated。listHistory。截图
浅色主题
深色主题
每周 / 累计
测试计划
npm run buildcargo check --manifest-path openless-all/app/src-tauri/Cargo.tomlcargo test append_with_no_max_entries_keeps_more_than_legacy_cap --target x86_64-pc-windows-msvc最新提交
7681d92205f9110d7f1de8ce778e5d6732f64d7cPR Type
Enhancement, Tests
Description
Add annual activity heatmap to Overview page with daily/weekly/cumulative views
Uncap history retention and max entries defaults to unlimited
Add toggle for heatmap under Settings > Appearance
Update duration formatting and i18n keys for all locales
File Walkthrough
8 files
Allow unlimited history count capMigrate legacy history retention defaultAdd history retention migration flag and heatmap prefUpdate history retention comments and add fieldsImplement annual activity heatmap componentRemove hard cap limits, add unlimited placeholderAdd heatmap toggle UIAdd activity cell-in animation keyframe5 files
Add heatmap and unlimited i18n keysAdd heatmap and unlimited i18n keysAdd heatmap and unlimited i18n keysAdd heatmap and unlimited i18n keysAdd heatmap and unlimited i18n keys2 files
Update mock history for yearly activityUpdate test prefs to match new defaults