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