Conversation
- 切号弹窗新增「预览一下」按钮:dryRun 模式统计将发生的对齐变更(定时任务归属 / 应用设置 / 用户数据 / 账号资料 / 我的文件 / 界面主题 / 瘦身抵消估算),不关 App、 不写库、不写凭据,预览零落盘 - 预览是「按当前勾选算」的一次性快照:任一影响结果的输入一变即标脏(不清空, 可对照差在哪),过期结果整块压暗并提示重新预览 - 结果分组呈现:总览一行(同步设置 N 项 / M 项要动)+ 色条分组(正常 / 注意 / 出错三档)+ 末行「以上是预览,还没真正执行」 - switch.rs `SwitchOptions` 增加 `dryRun` 字段,预览走 `align::preview_sync` (与真实执行 `post_close_sync` 同源,唯一分歧在主题:预览只给 planned 占位, 不写 leveldb 与云端) - 新增 align.rs / ui_theme.rs 模块;随带 automations.rs / oplog.rs / discover.rs / auth_file.rs(与先行 PR 同份代码,先合的生效,重复改动幂等)
wh-1
force-pushed
the
pr/switch-preview
branch
3 times, most recently
from
September 19, 2026 13:15
1b33ff7 to
f4a70ca
Compare
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.
做了什么
切号弹窗新增「预览一下」按钮:dryRun 模式统计将发生的对齐变更(定时任务归属 / 应用设置 / 用户数据 / 账号资料 / 我的文件 / 界面主题 / 瘦身抵消估算),不关 App、不写库、不写凭据,预览零落盘。
实现
switch.rsSwitchOptions增加dryRun字段,预览走align::preview_sync(与真实执行post_close_sync同源,唯一分歧在主题:预览只给 planned 占位,不写 leveldb 与云端)align.rs(数据对齐 L1/L4/L5)/ui_theme.rs(主题跟随)模块;随带automations.rs/oplog.rs/discover.rs/auth_file.rs(与 feat: 账号发现——识别本机未入册账号并一键补录 #65 / feat: 切号带走定时任务 #66 / feat: 切号同步设置与文件 #68 同份代码,先合的生效,重复改动幂等)reqwest增加blockingfeature(云端外观改写用)验证
cargo check(core + server)✅tsc --noEmit✅