Skip to content

Commit 709b41d

Browse files
committed
docs(ui): 修正低置信与捕获链路的过期注释
1 parent 473f11b commit 709b41d

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎app/src-tauri/src/commands_session.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ pub async fn delete_session(state: State<'_, AppState>, id: i64) -> Result<bool,
180180
Ok(ok)
181181
}
182182

183-
/// 追加转写段(实时捕获链路调用)。
183+
/// 追加转写段(**不是**实时捕获链路的调用点 —— 真实链路是 `live_session_persist.rs` 直呼 `db.add_segment`)。
184184
/// @ai-context 已依规格 §1 L5 行 31 从 IPC 撤下(批 7);实现保留供内部/未来接线,勿再注册。
185185
#[allow(dead_code)] // 批 7:已从 IPC 撤下(规格 §1 L5 行 31)⇒ lib 内暂无调用方,保留实现(同 db_colors.rs:42 先例)
186186
pub async fn add_session_segment(
@@ -211,7 +211,7 @@ pub async fn add_session_segment(
211211
state.db.add_segment(&new).map(|s| s.id).map_err(|e| e.to_string())
212212
}
213213

214-
/// 追加 OCR 块(实时捕获链路调用)。
214+
/// 追加 OCR 块(**不是**实时捕获链路的调用点 —— 真实链路是 `live_frame_process.rs` / `live_keyframes.rs` 直呼 `db.add_ocr_block`)。
215215
/// @ai-context 已依规格 §1 L5 行 31 从 IPC 撤下(批 7);实现保留供内部/未来接线,勿再注册。
216216
#[allow(dead_code)] // 批 7:已从 IPC 撤下(规格 §1 L5 行 31)⇒ lib 内暂无调用方,保留实现(同 db_colors.rs:42 先例)
217217
pub async fn add_session_ocr_block(

‎app/src/motion/env.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const LOW_CONFIDENCE_INK_AMPLITUDE = 0.02;
3838
*
3939
* 🔴 形状受 `ui/primitives/motion-coverage.test.ts` 的选择器域约束,**不得**改回旧的 `ed-low-confidence`
4040
* (那个名字不在任何基类域内,会被「未登记基类」判据拦下;要放行它就得改三条既有断言 = G16,
41-
* 控制方 R12.1 已裁定**不启用**)。生产调用点 = `components/structuredBlocks.ts` 的
41+
* 控制方 R12.1 已裁定**不启用**)。生产调用点 = `utils/lowConfidence.ts` 的
4242
* `lowConfidenceClass()`(`SessionSegment.confidence < 0.5` 的段);样式落点 = `ui/primitives/Text.css`。
4343
*/
4444
export const LOW_CONFIDENCE_CLASS = "ed-text--low-confidence";

‎app/src/ui/primitives/Text.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
⇒ 不进基类名单、只按「`animation` 声明逐字进名单」那条加进 `motion.css` 的 reduced-motion 块。
6060
`@keyframes` 在 `motion.css`(本层零 keyframes);幅度真源 = `app/src/motion/env.ts` 的
6161
`LOW_CONFIDENCE_INK_AMPLITUDE`(本文件只写两端极值,不写 0.02)。
62-
生产调用点 = `components/structuredBlocks.ts` 的 `lowConfidenceClass()`(`confidence < 0.5`)。 */
62+
生产调用点 = `utils/lowConfidence.ts` 的 `lowConfidenceClass()`(`confidence < 0.5`)。 */
6363
.ed-text--low-confidence {
6464
animation: ed-unconfirmed-breathe calc(var(--ed-dur-skeleton, 1200ms) * 4)
6565
var(--ed-ease-paper, cubic-bezier(0.215, 0.61, 0.355, 1)) infinite;

0 commit comments

Comments
 (0)