feat: compact token display and enhanced log detail view #135
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.
概述
优化 token 显示格式和增强日志详情视图功能。
主要更改
1. Token 显示优化
formatCompactNumber工具函数2. 日志详情视图增强
3. 后端支持
logs.rs新增详情查询接口,返回完整请求信息RequestLogDetail类型定义4. 代码质量
文件变更
crates/token_proxy_core/src/proxy/logs.rs- 后端详情查询src/features/logs/LogsPanel.tsx- 详情侧边栏组件src/features/logs/types.ts- 类型定义src/features/dashboard/format.ts- 紧凑数字格式化src/components/section-cards.tsx- 应用紧凑格式messages/en.json,messages/zh.json- i18n