Files
ai-platform/.trae/specs/full-module-independence/checklist.md
T
dongskandClaude Sonnet 4.6 noreply@anthropic.com> 8699798ea5 feat: 模组全维度独立,消除全局 DOM/Portal/存储污染
- jieya-ibp/welltrust-qap ThemeContext 改为作用域容器承载 CSS 变量与背景色,不再写 document
- 删除 order-cost CostCockpit 对 documentElement 的死变量写入
- bomx Drawer createPortal 挂载点内移到 .bomx-app,移除 document.body 兜底
- knowledge-graph 拖拽 cursor 改为根容器 ref
- 新增 check-module-independence 门禁并接入 build
- SOP 与融合技能文档补充「模组完全独立互不影响」章节

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com>
2026-10-19 09:10:30 +08:00

15 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Checklist
- [x] jieya-ibp/context/ThemeContext.tsx 不再写 document.documentElement / document.body,CSS 变量与背景/文字色由 ThemeProvider 作用域容器承载
- [x] welltrust-qap/context/ThemeContext.tsx 同上改造
- [x] order-cost-analysis CostCockpit 移除对 documentElement 的 --body-bg 死变量写入
- [x] bomx Drawer 的 createPortal 挂载点位于 .bomx-app 子树内,不再挂 document.body(portalMount 必传,无 document.body 兜底)
- [x] 浏览器验证:进入 jieya 后返回首页,首页背景与文字色未被模组主题覆盖(body style 串 before==during==after)
- [x] 浏览器验证:jieya 明暗主题切换正常(作用于 .jieya-root);welltrust 同构;bomx Drawer 当前未实例化
- [x] scripts/check-module-independence.mjs 存在,能检出全局 DOM 写入、head 注入、body Portal、无前缀 storage key,违规非零退出
- [x] package.json 含 check:independence,build 已接入 check:styles + check:independence 双门禁
- [x] npm run check:independence 退出码 0
- [x] npm run check:styles 退出码 0
- [x] npm run build 通过
- [x] docs/react-module-integration-sop.md 含「模组完全独立互不影响」完整规则与双门禁说明
- [x] .trae/skills/react-module-integration/SKILL.md 与 references 副本同步更新