feat(panel): upgrade consumption rankings, pointer-following breakdown popovers, full session search, sortable steps, and settings backup

This commit is contained in:
fish
2026-11-21 13:45:29 +09:00
parent 0401868be0
commit 328e8cd74e
33 changed files with 6765 additions and 736 deletions
+32
View File
@@ -32,6 +32,10 @@ export const I18N_MESSAGES_EN_US = Object.freeze({
'header.statusQuotaCached': 'Quota Cached',
'header.statusQuotaOffline': 'Quota Offline',
'header.statusLive': 'Monitoring',
'header.searchSessionPlaceholder': 'Search sessions by title or ID…',
'select.searchPlaceholder': 'Filter options…',
'select.noMatches': 'No matching items',
'select.clearSearch': 'Clear search',
// Formatters & Common Labels
'fmt.pending': 'N/A',
@@ -253,6 +257,26 @@ export const I18N_MESSAGES_EN_US = Object.freeze({
'cons.footOutput': 'Out ',
'cons.footThinking': 'Think ',
'cons.footCalls': 'Calls ',
'cons.rankTabAria': 'Switch ranking view',
'cons.rankTabModelsCount': 'Models ({count})',
'cons.rankTabSessions': 'Sessions',
'cons.rankTabSessionsCount': 'Sessions ({count})',
'cons.topConvsEmpty': 'No session usage in this range',
'cons.topConvsSortAria': 'Sort sessions ranking',
'cons.topConvsSortCost': 'Cost',
'cons.topConvsSortTokens': 'Tokens',
'cons.topConvCacheMeta': 'Cache {pct}%',
'cons.topConvJumpTip': 'Click to inspect this session in Steps',
'cons.modelsSortAria': 'Sort models ranking',
'cons.modelsSortTokens': 'Tokens',
'cons.modelsSortCost': 'Cost',
'cons.modelsSortSpeed': 'Speed',
'cons.modelsSortCalls': 'Calls',
'cons.modelUnitCost': 'Eff. {cost}/1M',
'cons.speedRelTip': 'Speed relative to fastest model in this range',
'cons.focusTtft': 'TTFT {ttft}',
'cons.focusSpeedMeta': 'TTFT {ttft} · Cache {cache}% · Out {out}',
'cons.focusCallsMeta': 'Avg {avgTok}/call · Cost {cost}',
// Steps Detail View & Step Column Registry
'steps.title': 'Step Records',
@@ -337,6 +361,7 @@ export const I18N_MESSAGES_EN_US = Object.freeze({
'steps.anomalySummaryMeta': '{count} retries/errors ({steps} steps)',
'steps.anomalyFilterLabel': 'Anomalies Only ({count})',
'steps.anomalyFilterAll': 'Show All Steps',
'steps.sortClickTip': 'Click to sort by {col}',
// Step Table Columns (Headers & Option Labels)
'stepCol.step.th': 'Step',
@@ -606,6 +631,13 @@ export const I18N_MESSAGES_EN_US = Object.freeze({
'settings.oth.resetConfirmBtn': 'Click Again to Confirm',
'settings.oth.resettingBtn': 'Resetting…',
'settings.oth.resetAllDone': 'All preferences restored to defaults',
'settings.oth.backupLabel': 'Preferences Backup & Restore',
'settings.oth.backupDesc': 'Export or import portable UI, capsule, and table preferences as JSON (excludes credentials)',
'settings.oth.exportJsonBtn': 'Export JSON',
'settings.oth.importJsonBtn': 'Import JSON',
'settings.oth.exportDone': 'Preferences JSON exported',
'settings.oth.importDone': 'Restored {count} preference settings',
'settings.oth.importInvalid': 'Import failed: invalid JSON or no recognized settings',
// Structured Live Activity Actions
'live.act.run_command': 'Run Command',
+32
View File
@@ -32,6 +32,10 @@ export const I18N_MESSAGES_ZH_CN = Object.freeze({
'header.statusQuotaCached': '额度缓存',
'header.statusQuotaOffline': '额度离线',
'header.statusLive': '监控中',
'header.searchSessionPlaceholder': '搜索会话标题或 ID…',
'select.searchPlaceholder': '输入关键词筛选…',
'select.noMatches': '没有匹配的选项',
'select.clearSearch': '清空搜索',
// Formatters & Common Labels
'fmt.pending': '待定',
@@ -253,6 +257,26 @@ export const I18N_MESSAGES_ZH_CN = Object.freeze({
'cons.footOutput': '输出 ',
'cons.footThinking': '思考 ',
'cons.footCalls': '调用 ',
'cons.rankTabAria': '排行视图切换',
'cons.rankTabModelsCount': '模型排行 ({count})',
'cons.rankTabSessions': '会话排行',
'cons.rankTabSessionsCount': '会话排行 ({count})',
'cons.topConvsEmpty': '当前时间范围暂无会话消耗记录',
'cons.topConvsSortAria': '会话排行排序方式',
'cons.topConvsSortCost': '费用',
'cons.topConvsSortTokens': 'Token',
'cons.topConvCacheMeta': '缓存 {pct}%',
'cons.topConvJumpTip': '点击跳转到该会话调用记录',
'cons.modelsSortAria': '模型排行排序方式',
'cons.modelsSortTokens': 'Token',
'cons.modelsSortCost': '费用',
'cons.modelsSortSpeed': '均速',
'cons.modelsSortCalls': '调用',
'cons.modelUnitCost': '均价 {cost}/1M',
'cons.speedRelTip': '相对本时段最快模型的均速比例',
'cons.focusTtft': '首字 {ttft}',
'cons.focusSpeedMeta': '首字 {ttft} · 缓存 {cache}% · 输出 {out}',
'cons.focusCallsMeta': '单次均耗 {avgTok} · 费用 {cost}',
// Steps Detail View & Step Column Registry
'steps.title': '调用记录',
@@ -337,6 +361,7 @@ export const I18N_MESSAGES_ZH_CN = Object.freeze({
'steps.anomalySummaryMeta': '异常 {count} 次({steps} 步)',
'steps.anomalyFilterLabel': '仅看异常 ({count})',
'steps.anomalyFilterAll': '返回全部步骤',
'steps.sortClickTip': '点击按「{col}」排序',
// Step Table Columns (Headers & Option Labels)
'stepCol.step.th': '步序',
@@ -606,6 +631,13 @@ export const I18N_MESSAGES_ZH_CN = Object.freeze({
'settings.oth.resetConfirmBtn': '再次点击确认重置',
'settings.oth.resettingBtn': '重置中…',
'settings.oth.resetAllDone': '已恢复全部默认设置',
'settings.oth.backupLabel': '配置备份及恢复',
'settings.oth.backupDesc': '导出或导入外观、胶囊、列配置等便携偏好 JSON(不含账号凭证)',
'settings.oth.exportJsonBtn': '导出 JSON',
'settings.oth.importJsonBtn': '导入 JSON',
'settings.oth.exportDone': '配置 JSON 已导出',
'settings.oth.importDone': '已恢复 {count} 项偏好设置',
'settings.oth.importInvalid': '导入失败:JSON 无效或未包含可识别的偏好项',
// Structured Live Activity Actions
'live.act.run_command': '执行命令',