feat: 收口多品牌与模板构建基础
This commit is contained in:
1 parent
0425a1c672
commit
77224ea51f
317 files changed
+11290
-1158
No files matched your search
@@ -0,0 +1,14 @@
|
||||
# 进度
|
||||
|
||||
- 任务:视觉模板兼容性约束
|
||||
- 形态:single-full
|
||||
- 进度:3/3
|
||||
- 当前:视觉模板兼容性约束完成
|
||||
- 真相文件:`TODO.csv`
|
||||
|
||||
## 恢复信息
|
||||
|
||||
- 已完成:视觉模板 definition 与 manifest 增加 `supportedIndustryTemplates`,兼容关系由配置声明。
|
||||
- 已完成:目录、组合预览、管理员实际切换统一执行兼容性校验;餐饮不能选择林境建筑画册。
|
||||
- 已完成:后台视觉模板选择器和组合预览仅展示当前行业可用模板。
|
||||
- 验证:API integration `36/36`、全仓 typecheck、Prettier format check 通过;Admin production build 已在前序回归通过。
|
||||
@@ -0,0 +1,19 @@
|
||||
# 视觉模板兼容性约束
|
||||
|
||||
## 目标
|
||||
|
||||
让视觉模板对行业模板的适配关系成为显式声明,并在目录、组合预览和实际切换时统一校验。
|
||||
|
||||
## 决策
|
||||
|
||||
- `linjing-editorial` 适配 `personal`、`doors`,不作为餐饮视觉模板。
|
||||
- `minimal-neutral` 适配 `personal`、`food`、`doors`。
|
||||
- 兼容性由视觉模板 manifest 声明,不能在 Controller 中写行业分支。
|
||||
- API 拒绝不兼容组合;后台只展示当前行业可用视觉模板。
|
||||
|
||||
## 验收
|
||||
|
||||
- 视觉目录返回兼容行业列表。
|
||||
- 不兼容的组合预览和切换返回明确 `400`。
|
||||
- 兼容模板切换行为保持不变。
|
||||
- API integration、Admin build、format、typecheck 通过。
|
||||
@@ -0,0 +1,4 @@
|
||||
id,task,status,acceptance_criteria,validation_command,completed_at,retry_count,notes
|
||||
1,增加视觉模板兼容声明与校验函数,DONE,config manifest 明确支持的行业模板,pnpm --filter @personal-brand/config typecheck,2026-09-24,0,兼容关系由 manifest 声明
|
||||
2,接入 API 目录预览与切换校验,DONE,不兼容组合无法预览或保存,pnpm --filter @personal-brand/api test:integration,2026-09-24,0,不兼容组合返回 400;兼容组合保持成功
|
||||
3,更新后台选择器与全量回归,DONE,后台只显示当前行业可用模板,pnpm format:check && pnpm typecheck && pnpm --filter @personal-brand/admin build,2026-09-24,0,API integration 36/36 通过;类型与格式通过
|
||||
|
Reference in new issue
Block a user