feat: expand intelligent investigation workspace
Generic Container CI/CD / test-build-publish (push) Successful in 1m52s
Frontend CI/CD / build-test-publish-and-deploy (push) Successful in 1m52s

This commit is contained in:
2026-10-30 17:30:19 +08:00
parent ddd03dbff6
commit c0e4231b83
223 changed files with 13155 additions and 5304 deletions
@@ -7,8 +7,19 @@ import {
showFlowOverlay
} from "./flow-overlay";
import { WorkbenchMapController } from "./workbench-map-controller";
import { PRESENTATION_FEATURE_SOURCE } from "./presentation-highlight-style";
describe("WorkbenchMapController", () => {
it("tags presentation geometry with its verified source without changing manual state or cached features", async () => {
const map = createMap();
const controller = createController(map, pointCollection);
const data = await controller.queryPresentationFeatures("junctions", ["J-1"], new AbortController().signal);
expect(data.features[0].properties).toEqual({ id: "J-1", [PRESENTATION_FEATURE_SOURCE]: "junctions" });
expect(pointCollection.features[0].properties).toEqual({ id: "J-1" });
expect(map.setFeatureState).not.toHaveBeenCalled();
expect(map.easeTo).not.toHaveBeenCalled();
expect(controller.getSnapshot().targets).toEqual([]);
});
it("clears every controller overlay, preserves layer styles, and invalidates pending analysis", async () => {
const map = createMap();
map.getLayer.mockReturnValue({} as never);