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 @@
|
||||
# 进度
|
||||
|
||||
- 任务:Runtime Workspace 契约收敛
|
||||
- 形态:single-full
|
||||
- 进度:3/3
|
||||
- 当前:Runtime Workspace 契约收敛完成
|
||||
- 真相文件:`TODO.csv`
|
||||
|
||||
## 恢复信息
|
||||
|
||||
- 已完成:`RuntimeOffering` 明确声明共享类别、封面、价格和 `presentation`(行业标签、关键词、详情、媒体)。
|
||||
- 已完成:公开 Workspace 仅下发 Runtime Offering;不再以原始 Prisma `offerings` 或 `modules` 覆盖同名 Runtime 字段。
|
||||
- 已完成:小程序从 `presentation` 读取行业标签与详情首图;模块类型在 API 层归一为渲染组件类型。
|
||||
- 验证:全仓 typecheck、API integration `35/35`、Miniapp fixture、Miniapp visual fixture 通过;测试后已重跑 seed 恢复三品牌 demo 数据。
|
||||
@@ -0,0 +1,23 @@
|
||||
# Runtime Workspace 契约收敛
|
||||
|
||||
## 目标
|
||||
|
||||
让 `public/workspace` 只返回一套符合共享类型的业务提供项展示数据,消除原始 Prisma `offerings` 覆盖 `RuntimeWorkspace.offerings` 的重复响应。
|
||||
|
||||
## 范围
|
||||
|
||||
- 扩展 `RuntimeOffering`,承载小程序所需的共享展示数据与模板配置。
|
||||
- API 只下发投影后的 Runtime Workspace,不泄漏重复原始字段。
|
||||
- Miniapp 改为消费明确的 Runtime Offering 合约。
|
||||
- 补 API integration 和 Miniapp fixture 验证。
|
||||
|
||||
## 非目标
|
||||
|
||||
- 不新增行业字段、模板或插件。
|
||||
- 不保留旧的重复 `offerings` 响应兼容层。
|
||||
|
||||
## 验收
|
||||
|
||||
- `RuntimeWorkspace.offerings` 与实际 API 响应一致。
|
||||
- 三品牌展示数据、封面、行业标签与详情配置可被小程序读取。
|
||||
- API integration、Miniapp fixture、format、typecheck 通过。
|
||||
@@ -0,0 +1,4 @@
|
||||
id,task,status,acceptance_criteria,validation_command,completed_at,retry_count,notes
|
||||
1,审计并定义统一 RuntimeOffering 投影,DONE,共享类型覆盖小程序实际展示字段,pnpm --filter @personal-brand/types typecheck,2026-09-24,0,定义共享展示字段与 presentation 投影
|
||||
2,切换 API 与小程序至唯一契约,DONE,公开响应不再覆盖 runtime offerings,pnpm --filter @personal-brand/api test:integration,2026-09-24,0,移除 Prisma offerings/modules 覆盖并迁移消费者
|
||||
3,补齐回归与任务收口,DONE,三品牌和小程序 fixture 均验证,pnpm format:check && pnpm typecheck,2026-09-24,0,API 35/35 与 Miniapp fixture 均通过;测试后重跑 seed
|
||||
|
Reference in new issue
Block a user