feat: extend agent-driven map workbench

This commit is contained in:
2026-07-20 19:57:35 +08:00
parent 86e9b08235
commit 7fbd8a5618
63 changed files with 4506 additions and 457 deletions
@@ -61,24 +61,22 @@ describe("drainage feature adapter", () => {
);
});
it("uses the promoted SCADA id for feature-state interactions", () => {
it("uses the promoted SCADA sensor id for feature-state interactions", () => {
const detail = toDetailFeature({
id: "4bfa834b-cbbb-5f35-9523-7487ac021ed2",
id: "SCADA-001",
sourceLayer: SOURCE_LAYERS.scada,
properties: {
scada_id: "4bfa834b-cbbb-5f35-9523-7487ac021ed2",
site_external_id: "36455",
name: "DY22东市南街环城南路西段交叉口",
external_id: "26825171",
kind: "water_quality"
sensor_id: "SCADA-001",
sensor_name: "DY22东市南街环城南路西段交叉口",
swmm_node: "J-1001"
}
} as unknown as MapGeoJSONFeature);
expect(detail).toMatchObject({
id: "4bfa834b-cbbb-5f35-9523-7487ac021ed2",
id: "SCADA-001",
layer: "scada",
title: "DY22东市南街环城南路西段交叉口",
subtitle: "water_quality · 设备 26825171"
subtitle: "综合监测点 · SWMM 节点 J-1001"
});
});
});