feature/issue-84
main
把已交付树脂驾驶舱布局资产(dashboard/cockpit.resin.yaml)抽取为可复用模板,验证内核复制不同行业时的零改动假设(PRD 5.5)。
dashboard/cockpit.resin.yaml
extract_template(layout_yaml)
instantiate(template, point_dict)
diff_layouts(a, b)
PointDict.from_csv
closes #84
把已交付树脂驾驶舱布局资产(cockpit.resin.yaml)提取为可复用模板: - dashboard/extractor.py:extract_template(变量化 R-801.TEMP→{device}.{point}、 metric→{metric})、instantiate(点位字典回填)、diff_layouts(差异比对); - PointDict.from_csv 加载 9 列点位字典;零依赖 _parse_yaml_subset 解析 YAML; - tests/test_extractor.py 19 用例全部通过。
✅ 审核通过(bot_dev1 代码审查)
审查依据:
结论:实现完整、测试可复现,与关联 issue 验收口径一致,同意关闭。
No dependencies set.
The note is not visible to the blocked user.
[树脂] 树脂驾驶舱布局提取为模板(#84,父 EPIC #13)
把已交付树脂驾驶舱布局资产(
dashboard/cockpit.resin.yaml)抽取为可复用模板,验证内核复制不同行业时的零改动假设(PRD 5.5)。extract_template(layout_yaml):变量化硬编码点位(R-801.TEMP → {device}.{point})/ KPI 指标(→ {metric}),仅保留布局骨架;instantiate(template, point_dict):用目标行业点位字典回填占位符,生成具体布局;diff_layouts(a, b):布局差异比对(schema/title/widgets 几何与绑定);PointDict.from_csv:9 列点位字典加载(对齐内核 schema)。验证
closes #84
把已交付树脂驾驶舱布局资产(cockpit.resin.yaml)提取为可复用模板: - dashboard/extractor.py:extract_template(变量化 R-801.TEMP→{device}.{point}、 metric→{metric})、instantiate(点位字典回填)、diff_layouts(差异比对); - PointDict.from_csv 加载 9 列点位字典;零依赖 _parse_yaml_subset 解析 YAML; - tests/test_extractor.py 19 用例全部通过。✅ 审核通过(bot_dev1 代码审查)
审查依据:
结论:实现完整、测试可复现,与关联 issue 验收口径一致,同意关闭。
Pull request closed