feat: 收口多品牌与模板构建基础

This commit is contained in:
que01 committed 2026-09-25 02:55:46 +08:00
1 parent 0425a1c672
commit 77224ea51f
317 files changed
+11290 -1158

No files matched your search

@@ -0,0 +1,18 @@
# 普通用户咨询表单配置
## 目标
让普通品牌使用者可以用业务语言配置咨询表单,而不需要理解字段 key、JSON 或内部提交协议。
## 边界
- 表单名称、用途和关联业务保留为业务概念。
- 字段只展示“要询问客户什么、回答方式、是否必填、可选内容”。
- 字段 key 自动生成并稳定保存在快照中。
- 后端继续负责字段校验、版本递增和提交快照,不在前端绕过校验。
## 完成条件
- 后台不显示英文 type、Key 或选项 JSON。
- 新增和编辑字段能生成符合 API 校验的快照。
- API integration、admin build、typecheck 和格式检查通过。
@@ -0,0 +1,20 @@
# 进度
- 任务:普通用户咨询表单配置
- 形态:epic
- 进度:3/3
- 当前:本轮已完成,后台表单编辑器面向普通用户收敛。
## 已完成
- 字段编辑改为中文业务表达:字段名称、回答方式、必填状态和可选内容。
- 内部字段 key 自动生成并隐藏,编辑已有表单时保持原 key。
- 选择类字段使用逐行或顿号分隔的普通文本,不再要求输入 JSON。
- 后端字段校验、版本递增和运行时提交链路保持不变。
## 验证
- `pnpm --filter @personal-brand/admin build`:通过。
- `pnpm --filter @personal-brand/api test:integration`:31/31 通过。
- `pnpm typecheck`:通过。
- `pnpm format:check`:通过。
@@ -0,0 +1,4 @@
id,title,task_type,depends_on,status,task_dir,acceptance_criteria,validation_command,notes
1,改造普通用户表单字段编辑器,single-full,,DONE,tasks/form-editor,字段使用中文业务表达且自动处理内部 key 和 options,pnpm --filter @personal-brand/admin build,已移除 Key、英文类型和选项 JSON 输入
2,验证表单运行时链路,single-full,1,DONE,tasks/runtime-regression,版本、校验和客户提交链路无回归,pnpm --filter @personal-brand/api test:integration,API 31/31 通过
3,落盘交付记录,single-full,1;2,DONE,tasks/delivery,进度和验证命令已记录,pnpm format:check && pnpm typecheck,format、typecheck 通过
1 id title task_type depends_on status task_dir acceptance_criteria validation_command notes
2 1 改造普通用户表单字段编辑器 single-full DONE tasks/form-editor 字段使用中文业务表达且自动处理内部 key 和 options pnpm --filter @personal-brand/admin build 已移除 Key、英文类型和选项 JSON 输入
3 2 验证表单运行时链路 single-full 1 DONE tasks/runtime-regression 版本、校验和客户提交链路无回归 pnpm --filter @personal-brand/api test:integration API 31/31 通过
4 3 落盘交付记录 single-full 1;2 DONE tasks/delivery 进度和验证命令已记录 pnpm format:check && pnpm typecheck format、typecheck 通过