编写四个内置种子模板包

Open
#19 0 comments 0 reactions 0 assignees View on GitHub

@linuxsuren-fs is already working on this.

Since Nov 14, 2026.

  • #22 by @linuxsuren-fs — open

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

good first issue help wanted P0

Background

四个内置场景模板包是 TickFlow 的开箱体验,也是 schema / workflow / 渲染器的共享测试 fixtures。结构定义见 #4,导入机制见 #12。

Technical requirement

在 seed/ 目录编写四个 YAML(结构对齐 #4 的各 JSONB 定义):

  1. IT 报障(it-support):字段含故障分类(select:硬件 / 软件 / 账号权限 / 其他)、影响范围(select:单人 / 部门 / 全员)、紧急程度、描述;workflow:待受理 → 处理中 → 已解决 → 已关闭;
  2. 客户售后(customer-care):字段含产品(select)、订单号、问题类型、是否在保修期(boolean)、附件;workflow:待受理 → 处理中 → 待客户确认 → 已关闭;
  3. 设备维修(device-repair):字段含设备编号、设备位置、故障分类、发生时间、现场照片(attachments);workflow:待受理 → 待上门 → 维修中 → 待验收 → 已关闭;
  4. 行政审批(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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from LinuxSuRen/tick-flow

All issues in LinuxSuRen/tick-flow

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.