8000 feat(quota): track the Fable weekly quota and price Opus 4.8 by InfinityPacer · Pull Request #6 · InfinityPacer/meterleaf · GitHub
[go: up one dir, main page]

Skip to content

feat(quota): track the Fable weekly quota and price Opus 4.8 - #6

Merged
InfinityPacer merged 1 commit into
mainfrom
feat/fable-quota
Sep 25, 2026
Merged

InfinityPacer merged 1 commit into
mainfrom
feat/fable-quota

Conversation

@InfinityPacer
Copy link
Copy Markdown
Owner

问题

  • Claude Code 对 Fable 单独计算周额度,Meterleaf 没有采集,账户页看不到这部分用量。
  • 价格表缺少 Claude Opus 4.8,相关请求保持未计价。
  • 额度窗口在首页和账户页样式不一致,窗口变多时 Tokens 与请求数被挤到下一行,桌面账户行出现错位。
  • 等待新周期时的文案「上游下次上报后更新」难以理解,进度条在等待时显示成满格。

变化

  • 采集器读取 Fable 周额度,作为独立的 seven-day-fable 窗口上报。周期费用和预估只统计 claude-fable-* 请求。升级顺序为先服务端后采集器,见 docs/collector.md。
  • 价格表加入 Opus 4.8 标准与快速模式费率,版本升至 2026-09-25.4。
  • 首页卡片和账户列表共用同一个额度窗口组件。桌面账户行中 5h、7d、Fable 每个额度占一行,左侧窗口与重置时间,中间进度条,右侧使用比例、费用和用量,各账户同列对齐。1001 至 1360px 宽度下额度窗口换到账户下方占满整行。手机仍为卡片堆叠。
  • 没有可显示窗口的账户,说明文字占满额度区域,不再在 1000px 宽度下溢出页面。
  • 等待状态改为「等待更新」「新周期数据到达后显示」,进度条保持空轨道。
  • 手机趋势提示使用缩写数字;总览标签改为居中的紧凑胶囊;视口加 minimum-scale=1.0,切换设备模式后页面不再停留在错误比例。
  • 演示数据加入含 Fable 用量的 Claude Code 账户。

验证

  • bun run build 通过,bun test tests 326 pass,所改文件 Prettier 与 git diff --check 通过。
  • bun run test:browser 通过。其中几处断言早于本次改动已经失效(总览 API 账户已改为累计用量、账户详情不再出现 N/A),一并按当前行为更新,演示数据计数同步调整。
  • tests/quota-pwa-layout.browser.ts 48 种状态通过,tests/global-layout.browser.ts 在 1440、1200、768、390、320px 通过。
  • tests/overview-account-usage.browser.ts 需要带真实数据的后端,本次未运行。
  • 采集器在本机真实 ~/.claude.json 上解析出 seven-day-fable 窗口。

🤖 Generated with Claude Code

Collect Claude Code's separately counted Fable weekly limit as the
seven-day-fable window, with cost and estimate limited to claude-fable-*
requests. Add Opus 4.8 standard and fast-mode rates.

Unify quota windows into one shared component. Desktop account rows now
stack 5h / 7d / Fable as aligned one-line rows; mobile keeps cards.
Also: abbreviated tooltip numbers, centered overview tabs, clearer
waiting copy, a Claude demo account, and a viewport fix for stuck zoom.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@InfinityPacer
InfinityPacer merged commit 116076f into main Sep 25, 2026
2 checks passed
@InfinityPacer
InfinityPacer deleted the feat/fable-quota branch September 25, 2026 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0