Repository navigation
fix(ledger): stabilize updates and quota estimates for 0.9.2 - #29
Merged
Merged
Conversation
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.
仅接收本机采集器推送时,页面在报表完成后不会持续发现新数据,更新时间入口也被隐藏。现在页面通过轻量账本状态发现变化,只有版本变化才重读报表,并提供更新时间与暂停页面自动更新。
周额度预估改为同周期多段消费变化的中位数。早期优先参考上一周期,没有可用历史时保留加权粗估;账户详情说明依据,金额不增加前缀符号。仅额度快照或收件状态变化时,两份用量索引不再重复写检查点。桌面 Tokens 摘要补充每次请求平均用量,移动端保留紧凑三列与下方输出量。
版本更新为 0.9.2,不修改事实数据库结构。
验证
bun test tests通过,414 项。随后金额展示专项 13 项与移动摘要专项 18 项通过。bun run build、所改文件 Prettier 与git diff --check通过。tests/collector-live-updates.browser.ts使用真实隔离服务、SQLite 和合成推送验证三页刷新、重复批次、暂停恢复及模拟隐藏恢复。原生后台标签状态在测试环境中不可用,未将模拟结果视作原生行为验收。tests/quota-estimate.browser.ts验证历史参考、粗估、多段估值、桌面与移动端减少动态效果模式,以及最终金额无前缀。以下截图仅使用演示数据。