Repository navigation
feat(Dashboard): 趋势页签更名为「Requests」「Token / Vendor」「Token / Model」 - #323
Merged
Merged
Conversation
页签文案由「请求量」「Token(按供应商)」「Token(Vendor / 模型)」改为英文,页签条总宽由 378px 收到 316px:390px 视口仍折成两行,其余视口单行且不出横向滚动。 更名后页签行矮了 2px(38px 到 36px),页签文字与右侧「近 N 天」的基线错开 1px。行高为 normal 时含汉字的标签行盒 18px,纯拉丁标签只有 16px,页签行高跟着文案语言变。给 .trend-tab 钉 line-height: 18px:390 到 1440 的 7 个视口宽度下,改前改后的页签行高与基线位置逐项一致,测试钉住这条声明。文档的图表表同步改名。 🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist) Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
截图改用 Playwright 自带的 headless-shell 加本地字体快照,两次截图逐字节一致,尺寸仍为 2880×2538。与改前页面在同一环境下的截图相比,差异只在页签文字与选中下划线的长度(8,076 像素,包围盒 x 114–804、y 1730–1783)。 与入库首图相比,除页签外还有 JetBrains Mono 文字的差异(24,051 像素,字形略粗)。换浏览器内核或字体格式都复现不出入库图的字形,应是 11-28 截图时取到的字体文件不同;页面其余部分逐像素一致。 🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist) Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5a89934 重拍的首图里 JetBrains Mono 加载成功,数值与名称的字形随之变了,这不属于页签更名。旧首图是在 JetBrains Mono 没加载上时截的,等宽文字走系统回退的 monospace:给改前页面拦掉 Google Fonts 请求重截,与旧首图逐字节相同(2880×2538,0 像素差异)。本次首图按同一口径重截,与旧首图相比只有页签文字与选中下划线的长度不同(8,076 像素,包围盒 x 114–804、y 1730–1783),其余逐像素一致。 5a89934 提交信息里「旧图的字体文件版本不同、复现不了」的说明有误,以本提交为准;历史按规约不改写。 🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist) Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Dec 1, 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.
变更摘要
Overview 趋势图位的三个页签更名:「请求量」改为 Requests,「Token(按供应商)」改为 Token / Vendor,「Token(Vendor / 模型)」改为 Token / Model。只改页签文案,图表数据、交互与读屏摘要不动。
改动
src/coding/proxy/server/dashboard.py:三个页签按钮的文案。同时给.trend-tab钉line-height: 18px:行高为 normal 时含汉字的标签行盒是 18px,纯英文标签只有 16px,更名后页签行会从 38px 缩到 36px,页签文字与右侧「近 N 天」的基线也会错开 1px,钉住后两项都与更名前一致。tests/test_dashboard_overview.py:页签文案锚点_TREND_TABS同步;test_overview_css_constraints增加.trend-tab行高断言。docs/guide/dashboard.md:图表表里的三个名称同步,并按新的内容宽度重排列宽。assets/dashboard/overview.png:README 首图重拍,页签处可见新名称。验证
风险点
data-trend与 ARIA 引用都没变,键盘切换不受影响。🤖 Generated with Claude Code