fix(web): show used quota for unlimited API keys - #6224
Merged
Calcium-Ion merged 2 commits intoJul 20, 2026
Conversation
Contributor
WalkthroughUnlimited-quota API keys now use a shared badge that displays formatted usage in a translated popover across desktop and mobile quota views. ChangesAPI key quota badge
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Merged
12 tasks
JacksonsY
added a commit
to JacksonsY/new-api
that referenced
this pull request
Jul 22, 2026
同步上游 10 个提交(至 1721144),重点整合: - QuantumNous#6329 鉴权重构:dashboard 会话全面改为无状态 token(access/refresh + 版本栅栏 + 会话管理),gin session 全部移除。fork 侧适配: - turnstile 一次性消费改为按 token 键控内存缓存(兼容发码+注册两步流) - TRUSTED_PROXY_CIDRS 作为 TRUSTED_PROXIES 的兼容别名保留 - UserBase/ToBaseUser 保留 ParentId(子号计费),补 AuthVersion/CacheSchema - OAuth 绑定改 flow_token 流,保留 GitHub 账号年龄门禁(消费 flow 后校验) - RecordUserIP 反欺诈埋点移入 setupLoginAtAuthVersion - 子号/代理鉴权门(SubPermission/RejectSubAccount/AgentAuth)原样保留 - profile 嫁接上游 LoginSessionsCard(会话管理 UI),绑定卡接入 popup+postMessage 新绑定机制 - 2FA/OAuth/微信登录后 redirect 目标经 handleLoginSuccess 传递恢复 - web/default → web/ 扁平化 + 删除 classic 主题:fork 全部前端定制 (agent/supplier/detector/sub-account 等 180+ 文件)迁移至新路径, 保留 fork 的 i18n 按需加载、每表分页记忆、主题调校与设计系统 - QuantumNous#6157 渠道代理客户端重构(别名缓存+失效清理),保留 fork 全局代理 与 RELAY_DISABLE_HTTP2;QuantumNous#6074 suno CAS 防重复退款;QuantumNous#6163 playground 自动分组;QuantumNous#6224 无限额度密钥显示已用量;QuantumNous#6032 realtime GA 去 beta 头 - 语言文件三方合并:fork ~6280 键 + 上游新增 55 键鉴权文案 - fork 刻意删除的组件与 workflows 维持删除(上次合并曾误恢复) 验证:go build/test 全绿,前端 tsgo 类型检查与 rsbuild 构建通过。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
JacksonsY
added a commit
to JacksonsY/new-api
that referenced
this pull request
Jul 22, 2026
- turnstile:后端退回上游纯校验版(删除 token 复用缓存,多实例安全); 前端在登录/注册/发码/找回密码/签到每次消费 token 后重置 widget 换新 token(Cloudflare token 单次有效),两步流程不再依赖后端状态 - trusted_proxies.go 删除 TRUSTED_PROXY_CIDRS 兼容回退,与上游逐字节 一致;部署环境如设置过旧变量名需改为 TRUSTED_PROXIES - 移动端 ApiKeyCard 无限额度改用 UnlimitedQuotaBadge,点击可见已用量 (补齐上游 QuantumNous#6224 在自制移动卡片上的缺口) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
zhaodechao2008
pushed a commit
to zhaodechao2008/new-api
that referenced
this pull request
Jul 27, 2026
lizhongyi1209
pushed a commit
to lizhongyi1209/new-api
that referenced
this pull request
Jul 28, 2026
Jaykebc1
added a commit
to wrouter/wrouter
that referenced
this pull request
Jul 30, 2026
Bring aurora to parity with three rc.22 web/ frontend changes, additively — no aurora customizations altered: - Keys: unlimited-quota API keys now surface used quota. New UnlimitedQuotaBadge (Unlimited badge + popover showing Used: <amount>) replaces the bare label in the key columns and the mobile card list (QuantumNous#6224). - Channels: add Codex (type 57) to the fetch-upstream-models set (QuantumNous#6184); update the type-23 key prompt to mention TokenHub (QuantumNous#6232). Advanced-custom model fetch (QuantumNous#5971, type 58) intentionally NOT wired — aurora's custom advanced-custom editor has no model-list-route concept, so it needs a separate design discussion rather than a forced fit. - Models: fix the model edit drawer resetting the form when system options refetch mid-edit — read modelSettings via a ref and key the load effect on a hasModelSettings boolean instead of the object reference. i18n zh+en (zh-TW regenerated). aurora build + typecheck clean (6 pre-existing, no new). Verified only aurora/ files changed.
330079598
pushed a commit
to 330079598/new-api
that referenced
this pull request
Aug 19, 2026
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.
📝 变更描述 / Description
显示了无限额度key的已用额度,对齐旧版行为
🚀 变更类型 / Type of change
🔗 关联任务 / Related Issue
✅ 提交前检查项 / Checklist
Bug fix,我已提交或关联对应 Issue,且不会将设计取舍、预期不一致或理解偏差直接归类为 bug。📸 运行证明 / Proof of Work
Summary by CodeRabbit