From 9934bf3180eb3311aedc632a08a3d95bcfd76536 Mon Sep 17 00:00:00 2001 From: functionstackx <47992694+functionstackx@users.noreply.github.com> Date: Mon, 26 Oct 2026 18:19:14 +0000 Subject: [PATCH] =?UTF-8?q?fix(charts):=20capitalize=20Deprecated=20in=20s?= =?UTF-8?q?ource=20attribution=20/=20=E6=9D=A5=E6=BA=90=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E5=A4=A7=E5=86=99=20D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use (Deprecated) in English source captions, exports, and documentation; keep Chinese labels unchanged. 中文:英文来源署名、导出和文档统一使用 (Deprecated),中文文案保持不变。 --- packages/app/cypress/e2e/inference-chart.cy.ts | 10 +++++----- packages/app/src/components/ui/result-context.test.tsx | 4 ++-- packages/app/src/components/ui/result-context.tsx | 2 +- packages/app/src/lib/views-api/docs/options.ts | 4 ++-- packages/skills/skills/inferencex-api/integrity.json | 2 +- .../inferencex-api/references/dashboard-views.md | 4 ++-- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/packages/app/cypress/e2e/inference-chart.cy.ts b/packages/app/cypress/e2e/inference-chart.cy.ts index 6568ef243..9e298c14c 100644 --- a/packages/app/cypress/e2e/inference-chart.cy.ts +++ b/packages/app/cypress/e2e/inference-chart.cy.ts @@ -412,7 +412,7 @@ describe('Deprecated model source attribution', () => { cy.get('#chart-0 svg[data-testid="d3-chart-svg"]').should('be.visible'); cy.get('#chart-0 [data-testid="result-context"]') .should('contain.text', 'Source: SemiAnalysis InferenceX™') - .and(deprecated ? 'contain.text' : 'not.contain.text', '(deprecated)'); + .and(deprecated ? 'contain.text' : 'not.contain.text', '(Deprecated)'); cy.get('.deprecated-watermark').should('not.exist'); } }); @@ -450,7 +450,7 @@ describe('Deprecated model source attribution', () => { }); cy.get('#chart-0 [data-testid="result-context"]').should( 'contain.text', - 'Source: SemiAnalysis InferenceX™ (deprecated)', + 'Source: SemiAnalysis InferenceX™ (Deprecated)', ); let exportedPng = ''; let exportedCaption = ''; @@ -471,7 +471,7 @@ describe('Deprecated model source attribution', () => { cy.get('[data-testid="export-png-button"]').click(); cy.window().should(() => { expect(exportedPng).to.match(/^data:image\/png;base64,/u); - expect(exportedCaption).to.contain('Source: SemiAnalysis InferenceX™ (deprecated)'); + expect(exportedCaption).to.contain('Source: SemiAnalysis InferenceX™ (Deprecated)'); }); cy.visit(`/inference/minimax-m3?i_seq=agentic-traces&unofficialrun=${OVERLAY_RUN_ID}`, { @@ -481,7 +481,7 @@ describe('Deprecated model source attribution', () => { cy.get('#chart-0 .unofficial-overlay-pt').should('have.length.greaterThan', 0); cy.get('#chart-0 [data-testid="result-context"]').should( 'contain.text', - 'Source: SemiAnalysis InferenceX™ + UNOFFICIAL overlays (deprecated)', + 'Source: SemiAnalysis InferenceX™ + UNOFFICIAL overlays (Deprecated)', ); cy.get('#chart-0 .unofficial-watermark-image').should('exist'); cy.get('.deprecated-watermark').should('not.exist'); @@ -489,7 +489,7 @@ describe('Deprecated model source attribution', () => { cy.get('#chart-0 .unofficial-overlay-pt').should('not.exist'); cy.get('#chart-0 [data-testid="result-context"]').should( 'contain.text', - 'Source: SemiAnalysis InferenceX™ (deprecated)', + 'Source: SemiAnalysis InferenceX™ (Deprecated)', ); cy.viewport(375, 900); diff --git a/packages/app/src/components/ui/result-context.test.tsx b/packages/app/src/components/ui/result-context.test.tsx index 97d000cce..eac19c106 100644 --- a/packages/app/src/components/ui/result-context.test.tsx +++ b/packages/app/src/components/ui/result-context.test.tsx @@ -28,12 +28,12 @@ function renderContext(locale: 'en' | 'zh') { describe('ResultContext', () => { it.each([ - ['en', 'SemiAnalysis InferenceX™', 'Source: SemiAnalysis InferenceX™ (deprecated)'], + ['en', 'SemiAnalysis InferenceX™', 'Source: SemiAnalysis InferenceX™ (Deprecated)'], ['zh', 'SemiAnalysis InferenceX™', '来源: SemiAnalysis InferenceX™ (已弃用)'], [ 'en', 'SemiAnalysis InferenceX™ + UNOFFICIAL overlays', - 'Source: SemiAnalysis InferenceX™ + UNOFFICIAL overlays (deprecated)', + 'Source: SemiAnalysis InferenceX™ + UNOFFICIAL overlays (Deprecated)', ], [ 'zh', diff --git a/packages/app/src/components/ui/result-context.tsx b/packages/app/src/components/ui/result-context.tsx index 88f8b01f7..b00113e66 100644 --- a/packages/app/src/components/ui/result-context.tsx +++ b/packages/app/src/components/ui/result-context.tsx @@ -208,7 +208,7 @@ export function ResultContext({
{labels.source}:
{' '}
{source} - {deprecated && (locale === 'zh' ? ' (已弃用)' : ' (deprecated)')} + {deprecated && (locale === 'zh' ? ' (已弃用)' : ' (Deprecated)')}
)} diff --git a/packages/app/src/lib/views-api/docs/options.ts b/packages/app/src/lib/views-api/docs/options.ts index 659183c83..550e0b612 100644 --- a/packages/app/src/lib/views-api/docs/options.ts +++ b/packages/app/src/lib/views-api/docs/options.ts @@ -239,8 +239,8 @@ export const operations: ApiOperation[] = [ path: '/api/v1/views/options', summary: text('Discover every views-API option domain', '获取 views API 的全部选项域'), description: text( - 'Static discovery endpoint for the views API: models (with DB keys, category and release date), sequences, precisions, hardware (with vendor, architecture, TDP and per-provider hourly cost), frameworks, speculative-decoding methods, percentiles, x-axis and scale modes, chart metrics (bilingual labels, unit, polarity), quick-filter domains, reliability ranges, and overview/calculator/fleet option sets — plus the defaults the dashboard itself uses. Values come from the same registries the dashboard renders its controls from, so this response is the authoritative input catalog for the other /api/v1/views endpoints. Inference charts for models with category deprecated append (deprecated) to the source attribution, including PNG exports and unofficial-run overlays, without deprecated background watermarks. This is presentation only and does not change view data. No database access.', - 'views API 的静态发现端点:模型(含数据库键、分类与发布日期)、序列、精度、硬件(含厂商、架构、TDP 及各供应商每小时成本)、推理框架、投机解码方法、百分位、x 轴与坐标缩放模式、图表指标(中英文标签、单位、极性)、快捷筛选域、可靠性时间范围,以及 overview/calculator/fleet 的选项集,并附仪表盘实际使用的默认值。所有取值直接来自仪表盘控件渲染所用的注册表,因此该响应是其余 /api/v1/views 端点的权威输入目录。分类为 deprecated 的模型会在推理图表的来源署名后添加 (已弃用),英文页面显示 (deprecated);PNG 导出和非官方 run overlay 中也保留该后缀,不再显示“已弃用”背景水印。此变更仅影响展示,不改变视图数据。不访问数据库。', + 'Static discovery endpoint for the views API: models (with DB keys, category and release date), sequences, precisions, hardware (with vendor, architecture, TDP and per-provider hourly cost), frameworks, speculative-decoding methods, percentiles, x-axis and scale modes, chart metrics (bilingual labels, unit, polarity), quick-filter domains, reliability ranges, and overview/calculator/fleet option sets — plus the defaults the dashboard itself uses. Values come from the same registries the dashboard renders its controls from, so this response is the authoritative input catalog for the other /api/v1/views endpoints. Inference charts for models with category deprecated append (Deprecated) to the source attribution, including PNG exports and unofficial-run overlays, without deprecated background watermarks. This is presentation only and does not change view data. No database access.', + 'views API 的静态发现端点:模型(含数据库键、分类与发布日期)、序列、精度、硬件(含厂商、架构、TDP 及各供应商每小时成本)、推理框架、投机解码方法、百分位、x 轴与坐标缩放模式、图表指标(中英文标签、单位、极性)、快捷筛选域、可靠性时间范围,以及 overview/calculator/fleet 的选项集,并附仪表盘实际使用的默认值。所有取值直接来自仪表盘控件渲染所用的注册表,因此该响应是其余 /api/v1/views 端点的权威输入目录。分类为 deprecated 的模型会在推理图表的来源署名后添加 (已弃用),英文页面显示 (Deprecated);PNG 导出和非官方 run overlay 中也保留该后缀,不再显示“已弃用”背景水印。此变更仅影响展示,不改变视图数据。不访问数据库。', ), audience: 'public', stability: 'beta', diff --git a/packages/skills/skills/inferencex-api/integrity.json b/packages/skills/skills/inferencex-api/integrity.json index 17b377872..2120929a7 100644 --- a/packages/skills/skills/inferencex-api/integrity.json +++ b/packages/skills/skills/inferencex-api/integrity.json @@ -9,7 +9,7 @@ "references/cli-contract.md": "4f070877eeefffad2860c58f79f68432fbe27aa21fc578a1c696f0309a3d7d7b", "references/cli.md": "11e1183f7ed70d669019e8435ac16a6a9f873de027507b8850a9943f6659bfd9", "references/collectivex.md": "f79cf8e2779a9289ab69f79f4a4b338e0b9a5f76a3750a3e969f33a744e726a1", - "references/dashboard-views.md": "cad0dfc02b105f91a333842328e674b8300fffa733600d6bdd9183dc160d1e97", + "references/dashboard-views.md": "2023f2c5d703a66917cd3f19053888c0402231d70e142fd2739be1b743d01474", "references/offline-exports.md": "95aa565dcd4c9e592159baa560a9a58217bc61e395de1c6daf0576795c7f4ec9", "references/pareto.md": "1b4d2d163f982e3f2d97addce310789eae9c1e5badd82dd7501708c9e0385027", "references/powerx.md": "5af5527d54a7e6191a5769080c122638b333b1ceb59e19fdee7df662a5cd3c8f", diff --git a/packages/skills/skills/inferencex-api/references/dashboard-views.md b/packages/skills/skills/inferencex-api/references/dashboard-views.md index 1cedbe485..ce81032aa 100644 --- a/packages/skills/skills/inferencex-api/references/dashboard-views.md +++ b/packages/skills/skills/inferencex-api/references/dashboard-views.md @@ -36,13 +36,13 @@ results or treat its interpolated values as separately measured operating points MiniMax M3 has `category=deprecated` in `options.models`; it remains selectable through explicit model parameters and overview `modelScope=all`. MiniMax M3.1 Flash remains in the default model group. - For models with `category=deprecated`, inference charts append `(deprecated)` + For models with `category=deprecated`, inference charts append `(Deprecated)` to the source attribution, or `(已弃用)` in Chinese. The suffix is also included in PNG exports and unofficial-run overlays; there are no deprecated background watermarks. This is presentation only: view API values and filters are unchanged. 中文:对于 `category=deprecated` 的模型,推理图表在来源署名后添加 `(已弃用)`, - 英文页面显示 `(deprecated)`。PNG 导出和非官方 run overlay 中也保留该后缀, + 英文页面显示 `(Deprecated)`。PNG 导出和非官方 run overlay 中也保留该后缀, 不再显示“已弃用”背景水印。此变更仅影响展示,不改变视图 API 的数值或筛选行为。 2. Build one public HTTPS GET URL using `URLSearchParams`, especially for JSON