Repository navigation
feat: 在当前用量页增加模型明细和独立额度卡片 - #6
Merged
Merged
Conversation
2 tasks done
Wangnov
requested changes
Oct 23, 2026
Wangnov
left a comment
Owner
There was a problem hiding this comment.
这轮按当前主线重新审核:普通 Codex 5 小时窗口在最新 a8b5a61 已恢复,#5 的过滤问题已修复;但此 PR 仍以旧版路由和界面为基础,当前无法合并。
需要先保留主线 53c3295 的新版 /settings/usage?tab=analytics 路由、官方图表增强及现有测试,再迁移模型拆分能力。当前 PR 的 shared/config.js 只识别旧 /codex/cloud/settings/analytics 与 /#settings/Analytics,不识别主线目前支持的新地址,直接接入会使入口失效。请补新地址、弹层交互与可选接口缺失的回归验证,并在迁移后验证模型数据接口仍返回所需字段。
已验证主线 27 项测试通过。保留本 PR,作为模型拆分功能的后续入口,不将它视为已经覆盖或完成。
This was referenced Oct 23, 2026
Open
Wangnov
approved these changes
Oct 23, 2026
Wangnov
left a comment
Owner
There was a problem hiding this comment.
前次路由阻塞已处理:保留主线 /settings/usage?tab=analytics、官方图表与当前数据范围逻辑,仅迁入模型汇总和独立额度卡片。依据当前官方标准速度费率刷新估值,并移除不能代表套餐内额度的模型周容量外推;未知费率保持未定价,覆盖率不再四舍五入掩盖缺项。导出窗口按真实时长命名。
32 项新旧测试、全部 JavaScript 语法/manifest、PR CI 均通过。明确标注的浏览器合成数据验证了普通/Spark 窗口隔离、模型明细和估值限制;可选模型接口不可用时保留现有报表。尚未发布商店或 Release,真实账号可用性仍待回测。
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,不能区分各模型的未缓存输入、缓存输入和输出;普通 Codex 与 Spark 的额度窗口也需要分开。本 PR 在保留主线
/settings/usage?tab=analytics路由和官方图表增强的基础上,增加模型明细表、缓存命中率和独立额度卡片。可选 workspace 模型明细接口不可用时保留现有报表;原始逐日模型明细不写入快照,只保留汇总。普通窗口按实际时长命名和选取,避免把 primary/secondary 槽位误当作周/5小时周期。
等值 Credits 使用 2026-10-23 官方标准速度费率,未知模型显示未定价并给出费率覆盖率。估值不含 Fast/Ultrafast 倍率,也不代表实际账单或套餐内额度;按官方当前说明,不再从模型估值和周百分比反推套餐周容量。保留当前主线既有报表计算方式。
验证:新旧 32 项 Node 测试通过,包括路由、图表分组、日期范围、缺失接口降级、模型 Token 统计、Spark 隔离、固定费率单位和按时长选择窗口;全部扩展 JavaScript 语法、manifest 解析通过。补充 PR CI 自动运行同一门禁。浏览器使用明确标注的合成数据检查界面,真实账号的可选接口可用性仍待回测。
未发布 Chrome Web Store 或新 Release,manifest 版本保持主线 0.3.2。#5 的额度能力由此 PR 一并承接。