编写四个内置种子模板包
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- yaml
- Domain
- backend
Research direction
Read #4 for the frozen schema definitions and #12 for the importer and validator. Create the four named YAML fixtures in seed/, each with the listed form, workflow, SLA, assignment, and view configuration; keep approval at the P0 single level and note the P2 workflow extension in its file header. Done when the fixtures pass the validator tests and each template can be submitted through the #17 flow.
Written by the indexing model from the issue text.
Description
Background
四个内置场景模板包是 TickFlow 的开箱体验,也是 schema / workflow / 渲染器的共享测试 fixtures。结构定义见 #4,导入机制见 #12。
Technical requirement
在 seed/ 目录编写四个 YAML(结构对齐 #4 的各 JSONB 定义):
- IT 报障(
it-support):字段含故障分类(select:硬件 / 软件 / 账号权限 / 其他)、影响范围(select:单人 / 部门 / 全员)、紧急程度、描述;workflow:待受理 → 处理中 → 已解决 → 已关闭; - 客户售后(
customer-care):字段含产品(select)、订单号、问题类型、是否在保修期(boolean)、附件;workflow:待受理 → 处理中 → 待客户确认 → 已关闭; - 设备维修(
device-repair):字段含设备编号、设备位置、故障分类、发生时间、现场照片(attachments);workflow:待受理 → 待上门 → 维修中 → 待验收 → 已关闭; - 行政审批(
approval):字段含申请类型(select:请假 / 报销 / 物品领用)、开始 / 结束时间、事由;P0 用单级审批状态机(待审批 → 审批中 → 已通过 / 已驳回),完整审批链是 P2 的 workflow 节点扩展,本包先跑通单级并在文件头注释注明。
每个包包含:form_schema、workflow、sla_policy、assignment、view_config(含门户标题 / 描述 / 成功文案、list_columns、detail_groups)。
写作要求:
- 字段 key 英文蛇形、label 中文;状态 key 英文蛇形、name 中文;
- YAML 通过 #12 校验器的测试加载(fixtures 即用例);
- 文案口语自然,无后置括号补充解释。
Expect
- 四个 YAML 通过校验器单测;
- 本地启动后新租户自动获得四个可用类型,可按 #17 的端到端流程各提交一单。
Potential TODO list
- it-support.yaml
- customer-care.yaml
- device-repair.yaml
- approval.yaml
- 接入校验器测试
依赖
#4 评审通过(结构冻结后即可编写,与 #12 并行,联调需 #12)。
- Dominant language
- No language data
- Stars
- 0
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from LinuxSuRen/tick-flow
-
项目门面:logo、README 与仓库 AboutPossibly taken @linuxsuren-fs claimed this 9 days ago. Opendocumentation good first issue help wanted P0
Difficulty 4/5 3-5 days Newbie friendliness 20/100
LinuxSuRen/tick-flow#20 ·
-
实现处理工作台前端:列表、详情与处理动作Possibly taken @linuxsuren-fs claimed this 9 days ago. Openhelp wanted P0
Difficulty 5/5 Over a week Newbie friendliness 25/100
LinuxSuRen/tick-flow#18 ·
-
实现提交门户前端:表单渲染器与我的工单Possibly taken @linuxsuren-fs claimed this 9 days ago. Openhelp wanted P0
Difficulty 4/5 3-5 days Newbie friendliness 25/100
LinuxSuRen/tick-flow#17 ·
-
实现站内通知与邮件通知Possibly taken @linuxsuren-fs claimed this 9 days ago. Openhelp wanted P0
Difficulty 4/5 3-5 days Newbie friendliness 25/100
LinuxSuRen/tick-flow#16 ·
-
实现附件上传与下载Possibly taken @linuxsuren-fs claimed this 9 days ago. Openhelp wanted P0
Difficulty 4/5 3-5 days Newbie friendliness 25/100
LinuxSuRen/tick-flow#15 ·
All issues in LinuxSuRen/tick-flow
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
vetro-protocol/vetro-monorepo#1262 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
ProyectoRespira/respira-webapp#334 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100