Browse Source

chore(ui): 注释掉输入框的测试用 MOCK 按钮组

用户要求(附截图)把输入框右侧那排测试按钮注释掉:
资料 / 问卷 / 流测 / 回放 / 打字 / Scope / 测试输入。

按项目约定用注释而非删除(「原代码注释掉,不要直接删除」):
BusinessAssistantMobileInputShell.vue 的 mock-stream-test-actions 整块用 <!-- --> 包住。
该组件 PC 与移动端共用,一处即覆盖两端;注释里写明了如何恢复。

保留未动:开关 showTestActions(= MODE === 'development')、7 个事件、
以及 PC/Mobile 里的处理函数 —— 恢复时只需取消注释。

验证:npm run build 通过;生产产物里「流测」「回放」「测试输入」出现次数为 0
(对照「参考资料」2 次、「说出您的需求」1 次);verify-answer-stream 150/150、
validate-harness 通过。

顺带记录(未处理):showMockStreamTestButton 这个 prop 一路传到本组件但模板从未使用,
是历史遗留的死链路。

Co-Authored-By: Claude Code <noreply@anthropic.com>
gongtianxiao 2 hours ago
parent
commit
69d5b1319e
2 changed files with 30 additions and 0 deletions
  1. 23 0
      harness/progress.md
  2. 7 0
      src/components/BusinessAssistantMobileInputShell.vue

+ 23 - 0
harness/progress.md

@@ -3335,3 +3335,26 @@ DMS 主机(`121.43.55.7:10081`)是纯 API、根路径 404,没有登录页
 
 **仍要给后端提的需求(方案 ②)**:把 `cipa` 放进 `summary`(或 `answer_end`)——
 那样连 CIPA 类问题也能一次按正确顺序发完,**不再需要那次整块重排**。
+
+### 续 12:注释掉输入框的测试用 MOCK 按钮组(用户要求)
+
+**用户要求**(附截图):把输入框右侧那排测试按钮(资料 / 问卷 / 流测 / 回放 / 打字 / Scope / 测试输入)注释掉。
+
+**做法(按项目约定:原代码注释掉,不直接删)**:
+`src/components/BusinessAssistantMobileInputShell.vue` 的 `mock-stream-test-actions` 整块用
+`<!-- -->` 包住。这是 PC 与移动端**共用**的组件(`BusinessAssistantComposer` 传 `variant`),
+一处即覆盖两端。注释里写清了怎么恢复。
+
+**保留未动**:开关 `showTestActions`(= `MODE === 'development'`)、7 个事件、
+以及 PC/Mobile 里的处理函数(`sendChatStreamReplayTestMessage` / `sendTypewriterTestMessage` /
+`sendScopeMergeStreamTestMessage` / `sendDocumentLineStreamTestMessage` /
+`sendRefLinksStreamTestMessage` / `sendQuestionCardTestMessage`)—— 恢复时只需取消注释。
+
+**运行过的验证**:
+- `npm run build` 通过
+- 生产产物里 `流测` / `回放` / `测试输入` 出现次数 **0**(对照:`参考资料` 2 次、
+  `说出您的需求` 1 次)—— 按钮确实不再进产物
+- 回归:`verify-answer-stream` 150/150、`validate-harness` 通过
+
+> 顺带发现(未处理):`showMockStreamTestButton` 这个 prop 一路从 PC/Mobile 传到本组件,
+> 但模板里**从未使用** —— 是历史上「单个 mock 流按钮」留下的死链路,可择机清理。

+ 7 - 0
src/components/BusinessAssistantMobileInputShell.vue

@@ -62,6 +62,12 @@
         <div class="actions-right">
           <!-- <DeepseekButton v-model="deepThinkValue" /> -->
 
+          <!-- [已停用] 测试用 MOCK 按钮组(资料 / 问卷 / 流测 / 回放 / 打字 / Scope / 测试输入)——
+               用户 2026-09-21 要求注释掉。要恢复只需取消本段注释:
+               事件(testRefLinks / testQuestionCard / testMockStream / testReplay / testTypewriter /
+               testScopeMerge / testInput)与处理函数(sendRefLinksStreamTestMessage 等)**都还在**,
+              连同 `showTestActions`(= `MODE === 'development'`)这条开关也没动。 -->
+          <!--
           <div v-if="showTestActions" class="mock-stream-test-actions">
             <button type="button" class="mock-stream-test-action" :disabled="isGenerating"
               @click="emit('testRefLinks')">
@@ -90,6 +96,7 @@
               测试输入
             </button>
           </div>
+          -->
           <button type="button" class="send-btn" :class="{
             active: modelValue.trim().length > 0 && !isGenerating,
             'is-generating': isGenerating,