feat(experimental): translate the Statistics view into five shipped locales
This commit is contained in:
1 parent
120c717035
commit
ef0f768f06
4 files changed
+879
-896
No files matched your search
@@ -24,8 +24,8 @@
|
||||
en: e001601f2f9779b1
|
||||
zh: 077d3703b8c82774
|
||||
/deepseek-ai-dsh-experimental-client-ui-perf/understand-the-implementation:
|
||||
en: 80c2978c6b7ddd6b
|
||||
zh: bd4376c4227f70c1
|
||||
en: d02927ce3b537962
|
||||
zh: 4d0b9ba1ec299a1a
|
||||
/deepseek-ai-dsh-experimental-client-ui-perf/further-exploration:
|
||||
en: 285cfe1d7a99af34
|
||||
zh: fbcee76e0c2f20fb
|
||||
@@ -36,8 +36,8 @@
|
||||
en: 7605bb868f93b4a8
|
||||
zh: 184ca10ce6680499
|
||||
/deepseek-ai-dsh-experimental-client-ui-perf/known-limitations-and-deferred-work:
|
||||
en: e1dde4c057483bd0
|
||||
zh: ba1434160270c08a
|
||||
en: 24c5100faa25e5e2
|
||||
zh: 32eb34792b910607
|
||||
/deepseek-ai-dsh-experimental-client-ui-perf/known-limitations-and-deferred-work/dev-note:
|
||||
en: 3518dbaf30fb19a6
|
||||
zh: 73565f0bcc32a364
|
||||
@@ -60,7 +60,7 @@ Six Conversation Definitions fold the event window into nodes for one view targe
|
||||
| `src/client/perf-totals.ts` | Whole-session totals from the host stats and token-usage projections |
|
||||
| `src/client/perf-snapshot-builder.ts` | The `perf` view target builder |
|
||||
| `src/client/PerfView.tsx` | Scrollport with scroll-to-top paging, table, totals and event rows, time bars, step/tool/answer details, copy controls, and the prompt image pill with its preview and viewer |
|
||||
| `src/client/locales.ts` | Every visible string; Chinese and Japanese are translated, while German, Spanish, French, Portuguese, and Russian currently ship the English fallback |
|
||||
| `src/client/locales.ts` | Every visible string in all eight shipped languages |
|
||||
|
||||
The footer switches control the totals row, event rows, and the context basis, and the footer stays pinned above the composer while the table scrolls. `Show context delta` is off by default; when on, every turn and step shows its prompt-size change against the previous measured value in that scope, with negative deltas (for example after compaction) in the error colour. An expanded step row fills the Trigger column with its start timestamp (`MM-DD HH:MM:SS.mmm`; the tooltip carries the full `YYYY-MM-DD HH:MM:SS.mmm`) and any gap of at least one second since the previous step; sub-second scheduler noise is hidden. A step carrying a model answer is expandable: clicking its row opens a detail row that renders the answer as Markdown through the shared Chat primitive, capped at 16,000 characters with a truncation notice.
|
||||
|
||||
@@ -101,7 +101,6 @@ No effect. The package never constructs a model request and never mutates a prom
|
||||
- **Not mounted by the default product.** The Web bundle refuses experimental packages by rule; the optional Developer tools bundle (`@deepseek-ai/dsh-experimental-inspector-profile`) mounts this view, or a profile can add the row explicitly.
|
||||
- **Trimmed windows lose start times.** When the loaded window begins mid-step, first-token, model time, and total time cannot be derived; the row says `start unknown` instead of estimating.
|
||||
- **Code-Mode dispatches merge by root-call context.** Inner calls carry no turn or step, so each root call opens its own context keyed by the root call id, and the builder merges its dispatches into the step that owns the runner. A window that lost the dispatch start still merges the calls but cannot show their measured duration.
|
||||
- **Five shipped locales fall back to English.** German, Spanish, French, Portuguese, and Russian dictionaries and metadata ship now so shipped-language gates pass, but their strings are currently English copies.
|
||||
- **Older-page retries are explicit.** A page request reports `grew`, `exhausted`, or `retry`; when Chat or Trajectory owns the Session's in-flight page, the Statistics trigger stays visible instead of marking history exhausted or throwing.
|
||||
- **Known limitation: no whole-session wall projection.** The totals row substitutes model time + tool time because the host projections expose no whole-session wall clock. The tool segment sums paired call durations, so parallel calls can make that split look longer than a non-overlapping wall interval. This is recorded here; the view does not change host logic to fill the gap.
|
||||
- **Browser evidence is a test-only overlay.** Package tests cover folding, aggregation, formatting, and the jsdom table; `apps/web/tests/client-ui-perf-panel.e2e.ts` mounts the plugin through a test-only overlay over the shipped Web surface and compares a committed ARIA golden. No recorded-session scenario exists.
|
||||
|
||||
@@ -60,7 +60,7 @@ kind: "package-reference"
|
||||
| `src/client/perf-totals.ts` | 从宿主 stats 与 tokenUsage projection 生成全量合计 |
|
||||
| `src/client/perf-snapshot-builder.ts` | `perf` 视图目标的增量 builder |
|
||||
| `src/client/PerfView.tsx` | 表格、合计/事件行、时间条、步骤/工具/回答详情、复制按钮,以及提问图片标签、预览与看图器 |
|
||||
| `src/client/locales.ts` | 全部可见文案;中、日已翻译,德、西、法、葡、俄当前使用英文 fallback |
|
||||
| `src/client/locales.ts` | 全部可见文案,覆盖 8 种 shipped 语言 |
|
||||
|
||||
页脚的开关控制合计行、事件行与上下文口径,滚表格时页脚钉在输入框上方。「显示上下文增量」默认关闭;打开后每轮/每步显示相对同范围内上一个已测值的提示词大小变化,负增量(例如压缩后)用错误色显示。展开的步骤行在「触发」列显示该步开始时间戳(`MM-DD HH:MM:SS.mmm`,tooltip 为完整的 `YYYY-MM-DD HH:MM:SS.mmm`),以及距上一步至少一秒的空闲;亚秒级调度噪声不显示。带模型回答的步骤也可以展开:点击该行会打开详情行,通过共享的 Chat Markdown 原语渲染回答,最多保留 16,000 字符并提示截断。
|
||||
|
||||
@@ -101,7 +101,6 @@ kind: "package-reference"
|
||||
- **默认产品不挂载。** Web 包按规则拒绝引用 experimental 包;可选的「开发者工具」组合包(`@deepseek-ai/dsh-experimental-inspector-profile`)会挂载本视图,也可以由 profile 显式添加。
|
||||
- **窗口被截断时没有起始时刻。** 已加载窗口从半步中间开始时,首 token、模型用时和总用时都推导不出来;行上标「起止未知」,不估算。
|
||||
- **Code-Mode 内层调用按根调用上下文并回步骤。** 内层调用不带 turn/step,因此每个根调用各自开一个以 root call id 为键的上下文,由 builder 把它的派发并回持有 runner 的那一步。窗口里丢了派发起点时仍会合并调用,但无法给出它们各自的实测耗时。
|
||||
- **五种 shipped locale 仍使用英文 fallback。** 德、西、法、葡、俄的字典和 metadata 目前是英文副本,先满足 shipped-language 门禁;这些语言下的界面文案仍为英文。
|
||||
- **更早历史的加载结果显式区分重试。** 页面请求只返回 `grew`、`exhausted` 或 `retry`;如果 Chat 或轨迹视图正在加载同一个 Session 的页,统计视图会保留加载按钮,而不是误报历史已耗尽或抛出错误。
|
||||
- **已知限制:没有整段墙钟 projection。** 合计行的总用时用模型用时 + 工具用时替代,因为宿主 projection 没有整段墙钟;工具段是逐调用求和,并行调用会让这段显得比非重叠墙钟更长。这里作为已知限制记录,插件不为此改动宿主逻辑。
|
||||
- **浏览器证据是仅测试用的 overlay。** 包级测试覆盖折叠、汇总、格式化与 jsdom 表格;`apps/web/tests/client-ui-perf-panel.e2e.ts` 用仅测试用的 overlay 把插件挂到真实 Web 面上,并比对提交的 ARIA golden。由于还没有任何 shipped profile 挂载本包,暂无录制会话场景。
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user