Skip to content

Commit 99602da

Browse files
committed
chore(ui): 删 structuredBlocks 过时 AI 占位死文案
1 parent ef807bb commit 99602da

2 files changed

Lines changed: 2 additions & 11 deletions

File tree

‎app/src/components/structuredBlocks.test.ts‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
*/
66
import { describe, expect, it } from "vitest";
77
import {
8-
aiPlaceholderLabel,
98
lowConfidenceClass,
109
renderLatex,
1110
renderMarkdownTable,
@@ -79,7 +78,7 @@ describe("renderMarkdownTable", () => {
7978
});
8079
});
8180

82-
describe("lowConfidenceClass / aiPlaceholderLabel", () => {
81+
describe("lowConfidenceClass", () => {
8382
it("低置信(<0.5)返回标记类名,其余返回空串", () => {
8483
// Assert
8584
expect(lowConfidenceClass(0.3)).toBe("ed-low-confidence");
@@ -88,7 +87,4 @@ describe("lowConfidenceClass / aiPlaceholderLabel", () => {
8887
expect(lowConfidenceClass(undefined)).toBe("");
8988
});
9089

91-
it("AI 占位文案为诚实声明", () => {
92-
expect(aiPlaceholderLabel()).toBe("AI 增强待 V1.0");
93-
});
9490
});

‎app/src/components/structuredBlocks.ts‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* StructuredBlockRenderer — 结构化产物块渲染器(v0.5.0 M5/M7,REQ-053)。
33
*
44
* @ai-context: 渲染器升级:LaTeX(KaTeX 本地化,无 CDN)/ Markdown 表格 /
5-
* 图集 / 低置信样式(黄色虚线下划线)/ AI 占位样式("AI 增强待 V1.0")。
5+
* 图集 / 低置信样式(黄色虚线下划线)。
66
* @ai-context: KaTeX 经 npm 安装随 Vite bundle 打包(vendor 进产物,离线可渲染)。
77
*/
88
import katex from "katex";
@@ -57,8 +57,3 @@ export function renderMarkdownTable(md: string): string {
5757
export function lowConfidenceClass(confidence: number | null | undefined): string {
5858
return confidence != null && confidence < 0.5 ? "ed-low-confidence" : "";
5959
}
60-
61-
/** AI 占位标记(补缝式 AI V1.0 开放前的诚实占位,REQ-055) */
62-
export function aiPlaceholderLabel(): string {
63-
return "AI 增强待 V1.0";
64-
}

0 commit comments

Comments
 (0)