feat: 将阿成信任内容迁移为品牌数据
This commit is contained in:
1 parent
55989a5dfe
commit
774ae2c8e3
19 files changed
+142
-35
No files matched your search
@@ -0,0 +1,15 @@
|
||||
# 执行记录
|
||||
|
||||
## 已完成
|
||||
|
||||
- 公开 workspace 新增 `trustItems`,仅从发布快照中的已发布信任内容生成,字段为 `type`、`title`、`summary`、`content`、`config`。
|
||||
- `RuntimeWorkspace`、api-client、空 workspace 响应和 API 集成测试已同步。
|
||||
- 阿成演示数据迁移到 `schedule`、`coverage`、`process`、`credential`、`case`、`promise` 六类通用类型。
|
||||
- 阿成首页、出摊服务、主理人页面消费 `trustItems`;无对应类型时不渲染区块。
|
||||
- `AGENTS.md` 固化模板 package 与品牌数据库的边界,禁止用全局 seed 承载模板集合。
|
||||
|
||||
## 验证
|
||||
|
||||
- API integration:37/37 通过。
|
||||
- miniapp fixture、visual fixture、template compiler:通过。
|
||||
- typecheck、lint:通过。
|
||||
@@ -0,0 +1,12 @@
|
||||
# 信任内容数据化
|
||||
|
||||
## 目标
|
||||
|
||||
将阿成模板页面中的行业文案迁移到品牌信任内容,公开 workspace 返回通用 `trustItems`,模板按内容类型展示;继续保留 `trustPresentation` 供林境等既有模板使用。
|
||||
|
||||
## 数据边界
|
||||
|
||||
- 模板 package 持有 manifest、视觉结构和 sample content。
|
||||
- 数据库只保存具体品牌的内容;示例内容只有管理员为该品牌显式导入后才落库。
|
||||
- `seed.ts` 只维护少量开发演示品牌 fixture,不是模板目录。
|
||||
- 本阶段采用方案 A:多行内容使用 `content` 换行表达,后台列表编辑器后续单独增强。
|
||||
@@ -0,0 +1,5 @@
|
||||
id,task,status,acceptance_criteria,validation_command,completed_at,retry_count,notes
|
||||
1,新增公开 trustItems 契约,DONE,公开 workspace 返回已发布信任条目且未发布条目不进入快照,pnpm --filter @personal-brand/api test:integration,2026-09-27,0,类型、api-client、集成测试同步
|
||||
2,迁移阿成演示内容,DONE,阿成 seed fixture 使用通用信任类型且不依赖模板 sampleContent,pnpm --filter @personal-brand/api test:integration,2026-09-27,0,模板示例仍由 package registry 管理
|
||||
3,改造阿成三个页面,DONE,首页、出摊服务、主理人页面按 trustItems 渲染且无数据时隐藏对应区块,pnpm --filter @personal-brand/miniapp test:visual-fixture,2026-09-27,0,多行 content 在 miniapp view model 拆分
|
||||
4,固化模板与数据库边界,DONE,AGENTS.md 明确禁止将所有模板 sample data 写入全局 seed,pnpm typecheck && pnpm lint,2026-09-27,0,规则已落盘
|
||||
|
Reference in new issue
Block a user