Files

46 lines
2.3 KiB
Markdown
Raw Permalink 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.
# 执行记录
## 当前状态
在核查阿成、林境实际模板引用后,确认旧 BrandModule 启停/排序不会影响构建产物。该链路与已采用的模板包渲染架构冲突,任务按运行时视觉模块退役处理。
## 决策边界
- 退役视觉模块,不退役业务内容和 capability。
- BrandModule 是模板安装时生成、发布时打包、Admin 可开关排序的旧视觉模型;确认没有内容外键后删除。
- BrandFieldDefinition、TrustContent、Offering、InquiryForm、CapabilityInstallation 保持。
- 模板包声明的 pages 和视觉资源仍是小程序页面结构的来源。
## 验证记录
- 当前模板实际引用:阿成使用自有首页/列表/主理人组件,以及咨询、详情、记录、成功流程;林境使用自有页面和组件。
- runtime-tab-bar 已无文件和业务引用。
- brand-hero、founder-card、trust-proof、offering-list、trust-manifesto 在模板生产代码中零引用。
## 进度
- [x] 删除未使用小程序视觉组件和 registry。
- [x] 移除 BrandModule API/Admin/发布快照链路。
- [x] 生成并验证删除 BrandModule 的 Prisma migration。
- [x] 更新文档、任务状态并运行验证。
## 模板规模化门禁
`apps/miniapp/test/validate-visual-fixture.cjs` 不再读取固定的视觉 fixture,也不再检查阿成或林境的行业文案。测试会自动发现所有 `packages/template-*/template.json`,逐个调用 template compiler,并验证:
- manifest 声明的页面和编译产物完整;
- `app.json` 页面、原生 tabBar、图标资源一致;
- 页面 `usingComponents` 与相对 `require()` 可解析;
- 当前模板产物不引用其他模板的专属组件。
因此新增第 3 个或第 200 个模板时,不需要修改测试脚本;模板自身的 manifest 和产物就是测试输入。旧 `apps/miniapp/test/fixtures/*-visual.json` 仅保留为历史素材,不再作为通用门禁。
## 最后验证
- `pnpm --filter @personal-brand/miniapp test:visual-fixture`:2 个模板自动发现并通过(阿成 9 页面 / 5 tab,林境 7 页面 / 3 tab)。
- `pnpm --filter @personal-brand/miniapp test:fixture`:通过。
- `pnpm typecheck`:通过。
- `pnpm lint`:通过。
- `pnpm test:template-compiler`:5 项通过。
- `pnpm validate:templates`:2 个模板包通过。