Repository navigation
fix(quota): keep a waiting weekly window after it resets for 0.12.3 - #51
Merged
Merged
Conversation
When the weekly window passed its reset and no new sample had arrived, the row dropped it entirely and the 7d estimate went N/A, which read as a fault. With an active five-hour window the weekly window now keeps a waiting placeholder, mirroring the five-hour rule, until a new sample or a week after the old period ended. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
问题
周额度到了重置时刻、新快照还没到时,账户卡片整行不显示 7d,「7d 预估」变成 N/A,看起来像故障。新快照要等这个账户再发出请求才会到。Pro 账户 5h 已用满时,要等到 5h 重置才能刷新,期间周额度会消失几个小时。5h 过期时已经有「等待更新」占位,周额度没有。
结果
visibleQuotaWindows(src/web/lib/quota-display.ts)在 5h 有效、周额度已过期时,追加一个不带旧百分比的 7d 等待占位,显示「等待更新」和重置时刻。验证
bun run typecheck通过,bun test tests549 个测试全部通过,bun run build成功。QuotaWindow的同一渲染分支,演示数据里 5h 等待占位的桌面与手机布局已检查过。🤖 Generated with Claude Code