优化: 待审查 CR-18 清理重复块 + CR-19 样式重构登记
CR-18 脉冲点样式:✅ PASS(清理审查 agent 遗留重复登记块) CR-19 AiChat 样式同步子组件 scoped + 复用抽取:🟡 待审(God 拆分遗漏修复)
This commit is contained in:
34
docs/待审查.md
34
docs/待审查.md
@@ -1166,6 +1166,40 @@
|
||||
|
||||
---
|
||||
|
||||
### CR-260619-18 对话列表脉冲点样式修复(vertical-align/margin-left 冲突·commit 5c395f4) — ✅ 已审(PASS)
|
||||
|
||||
- **结论(2026-06-20·独立 grep/read 核验 commit 5c395f4 + vue-tsc EXIT 0)**: ✅ **PASS** — 🔴0 🟡0 ⚪1
|
||||
**3 维度独立核验(commit 5c395f4 diff 1 文件 +1/-2,vue-tsc EXIT 0)**:
|
||||
|
||||
| 维度 | file:line | 核验 | 判定 |
|
||||
|------|-----------|------|------|
|
||||
| 1 根因修复 | `AiChat.vue:813-821` | `.ai-conv-gen-dot` 当前无 `vertical-align`/`margin-left`;父 `.ai-conv-item-title:779-781` `display:inline-flex; align-items:center; gap:3px` 承载对齐与间距,无 4px 叠加(原 7px→现 3px 统一) | ✅ |
|
||||
| 2 防挤出 | `AiChat.vue:782` + `:819` | `.ai-conv-item-title` 含 `min-width:0`(允许 inline-flex 收缩)+ 脉冲点 `flex-shrink:0`(不被 ellipsis 挤出),`text-overflow:ellipsis:777` 截标题不截脉冲点 | ✅ |
|
||||
| 3 不破坏 | `ConversationSidebar.vue:50/132/177` | 3 处列表引用同 `.ai-conv-gen-dot` 作 `.ai-conv-item-title` 子元素,布局一致;其他属性保留(`display:inline-block/width:6px/height:6px/border-radius:50%/background/animation:820`),`@keyframes ai-conv-gen-pulse:822-825` 未动 | ✅ |
|
||||
|
||||
- **验证**: `git show 5c395f4 --numstat` = `1 2 src/components/AiChat.vue`(仅 1 文件 +1/-2);Read `AiChat.vue:772-825` 当前形态逐字核验;vue-tsc --noEmit EXIT 0。
|
||||
- **⚪ WATCH-1**: `src/styles/global.css:234` 存在 `.ai-conv-gen-dot { outline:1px solid #0aa!important; background:#0aa!important; width:10px!important; height:10px!important }` TEMP DEBUG 参考线(强制 10px+青色),未提交非本 CR;调试用 `!important` 会覆盖生产 6px,上线前需移除(本次审查仅标注,不动手)。
|
||||
- **待修项回流 todo**: **无** 🔴/🟡 项
|
||||
|
||||
---
|
||||
|
||||
### CR-260619-19 AiChat 样式同步到子组件 scoped + 复用抽取(God 拆分遗漏修复·commit 4f8f1cf) — 🟡 待审
|
||||
|
||||
- **范围**(4 文件 +596/-742):AiChat.vue(scoped 886→151,瘦身 83%)+ ConversationSidebar.vue(新建 <style scoped> +47 选择器)+ ChatInput.vue(新建 <style scoped> +40)+ components.css(+复用 .ai-btn-icon* 6)
|
||||
- **根因**:God 拆分时样式没移子组件,留 AiChat `<style scoped>`。Vue scoped 不匹配子组件内部元素(子元素无父 data-v)→ 对话列表/输入框样式丢失 → 布局塌陷(主导航被覆盖点击无反应 + 样式乱)
|
||||
- **维度**:
|
||||
1. **纯样式移动**:选择器/属性/值一字不变(只改归属文件),无逻辑变更
|
||||
2. **分类完整**:AiChat scoped CLEAN(0 子组件类 .ai-conv-/.ai-input-wrap/.ai-skill- 等)+ 子组件 scoped 匹配各自元素
|
||||
3. **复用抽取**:.ai-btn-icon* → components.css 全局(TopBar+ConversationSidebar 共用)
|
||||
4. **容器保留**:.ai-panel/.ai-chat-area/.ai-queue-*/.ai-toast* 留 AiChat scoped
|
||||
5. **TopBar 重复块清理**:AiChat 漏删死代码(零视觉变更,TopBar scoped 接管)
|
||||
6. **编译**:vite build ✓ + vue-tsc EXIT 0
|
||||
- **验证方法**:独立 grep/read 核验 commit 4f8f1cf + vite build + AiChat scoped CLEAN(grep 0 子组件类)+ 子组件 scoped 匹配各自元素。**不信 agent 自报**。
|
||||
- **关联**:God 拆分(ConversationSidebar/ChatInput/MessageList 抽出)遗漏 + CR-18 脉冲点(5c395f4)。
|
||||
- **状态**:🟡 待审
|
||||
|
||||
---
|
||||
|
||||
## 已审归档
|
||||
|
||||
> 已审 CR 段迁独立文件: [待审查归档/2026-06.md](./07-项目管理/待审查归档/2026-06.md)
|
||||
|
||||
Reference in New Issue
Block a user