Files
road-compiler/.trellis/tasks/archive/2026-08/08-26-workbench-selection-save-fix/prd.md

17 lines
737 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 修复工作台选择与保存回归
## Goal
道路选择只更新选择高亮,不重置地图数据或视图;保存修改后可靠保留并重新编译 overrides。
## Confirmed Cause
`MapCanvas` 使用 `[state, selected]` 更新全量 source 和 fit view选择道路会触发全图重载。Road override 的前后端 schema 一致,因此保存回归需在 UI 操作后验证其状态同步和编译调用。
## Acceptance Criteria
- 选择道路不会清空 source、重新 fit 地图或改变视图。
- 仅选择高亮 layer 更新;选择相关 OSM 线条样式仍刷新。
- 暂存、保存、重新编译的 overrides 正确发送并以服务端响应更新状态。
- 格式化、类型检查和构建通过。