diff --git a/.codex-tasks/visual-template-package-epic/PROGRESS.md b/.codex-tasks/visual-template-package-epic/PROGRESS.md index af06365..a8d3363 100644 --- a/.codex-tasks/visual-template-package-epic/PROGRESS.md +++ b/.codex-tasks/visual-template-package-epic/PROGRESS.md @@ -2,8 +2,8 @@ - 任务:小程序视觉模板包体系 - 形态:epic -- 进度:4/5 -- 当前:子任务 1-4 已完成,子任务 5 全量回归处理中 +- 进度:5/5 +- 当前:视觉模板包体系本轮完成 - 真相文件:`SUBTASKS.csv` ## 恢复信息 @@ -15,3 +15,5 @@ - 小程序 workspace 现在消费 `visualTemplateManifest`,将 manifest 页面模块解析为运行时模块和首页布局,并兼容旧版 `layout`。 - API workspace 返回完整视觉 manifest,API integration 28/28、Miniapp fixture 和 visual fixture 已通过。 - 模板安装快照现在包含行业模板、视觉 manifest 和能力依赖;现有示例内容导入流程保持幂等并纳入安装验收。 +- 全量门禁通过:`format:check`、`lint`、`typecheck`、`build`、API integration 28/28、Miniapp fixture 和 visual fixture。 +- lint 仅保留既有测试文件中的 6 个 `any` warning,无 error。 diff --git a/.codex-tasks/visual-template-package-epic/SUBTASKS.csv b/.codex-tasks/visual-template-package-epic/SUBTASKS.csv index b006354..481e74b 100644 --- a/.codex-tasks/visual-template-package-epic/SUBTASKS.csv +++ b/.codex-tasks/visual-template-package-epic/SUBTASKS.csv @@ -3,4 +3,4 @@ id,title,task_type,depends_on,status,task_dir,acceptance_criteria,validation_com 2,将林境静态设计映射为正式视觉模板,single-full,1,DONE,tasks/linjing-mapping,林境核心页面和资源数据映射到 manifest,pnpm --filter @personal-brand/config typecheck,7 个页面、模块变体、资源槽位、数据槽位和能力依赖已登记 3,改造小程序按 manifest 和 variant 渲染,single-full,1;2,DONE,tasks/miniapp-renderer,小程序不再依赖行业硬编码页面结构,pnpm --filter @personal-brand/miniapp test:fixture && pnpm --filter @personal-brand/miniapp test:visual-fixture,运行时解析 visualTemplateManifest,保留旧 workspace 兼容 4,初始数据导入与模板安装快照,single-full,1;2,DONE,tasks/installation,新品牌可安装模板并导入初始内容且生成快照,pnpm --filter @personal-brand/api test:integration,安装快照包含行业模板、视觉 manifest 和能力依赖;示例内容导入保持幂等 -5,视觉与全量回归,single-full,1;2;3;4,IN_PROGRESS,tasks/regression,接口、构建、fixture 和视觉回归全部通过,pnpm format:check && pnpm lint && pnpm typecheck && pnpm --filter @personal-brand/api test:integration,最终收口 +5,视觉与全量回归,single-full,1;2;3;4,DONE,tasks/regression,接口、构建、fixture 和视觉回归全部通过,pnpm format:check && pnpm lint && pnpm typecheck && pnpm --filter @personal-brand/api test:integration,全部门禁通过;lint 保留 6 个既有 any warning diff --git a/.codex-tasks/visual-template-package-epic/tasks/regression/PROGRESS.md b/.codex-tasks/visual-template-package-epic/tasks/regression/PROGRESS.md index 77d1981..a0537bc 100644 --- a/.codex-tasks/visual-template-package-epic/tasks/regression/PROGRESS.md +++ b/.codex-tasks/visual-template-package-epic/tasks/regression/PROGRESS.md @@ -1,4 +1,5 @@ # 回归验证 -- 状态:IN_PROGRESS +- 状态:DONE +- 验证:`pnpm format:check`、`pnpm lint`、`pnpm typecheck`、`pnpm build`、`pnpm --filter @personal-brand/api test:integration`、Miniapp fixture/visual fixture 全部通过。 - 依赖:前置实现全部完成 diff --git a/packages/api-client/src/index.ts b/packages/api-client/src/index.ts index 4f55548..b155fc8 100644 --- a/packages/api-client/src/index.ts +++ b/packages/api-client/src/index.ts @@ -464,7 +464,7 @@ export class ApiClient { updateAdminBrand(body: BrandUpdate): Promise { return this.request("/admin/config/brand", { method: "PATCH", body }); } - getPublicTemplate(key: "personal" | "food"): Promise { + getPublicTemplate(key: BrandTemplateKey): Promise { return this.request(`/public/templates/${key}`); } listPublicTemplates(): Promise<{