编写四个内置种子模板包

Abierto
#19 0 comentarios 0 reacciones 0 asignados Ver en GitHub

@linuxsuren-fs ya está trabajando en esto.

Desde el 14/11/2026.

  • #22 de @linuxsuren-fs — abierto

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
yaml
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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)。

Lenguaje dominante
Sin datos de lenguaje
Estrellas
0
Forks
1
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de LinuxSuRen/tick-flow

Todos los issues de LinuxSuRen/tick-flow

Issues similares

Más issues de Backend & API Design

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.