fix(polygon): unify dataset review workflow

This commit is contained in:
DCCONSTRUCTIONS
2026-07-25 19:54:22 +03:00
parent e97573e221
commit 13c35ff446
15 changed files with 568 additions and 509 deletions
@@ -290,7 +290,7 @@ function commandAcceptance(overrides = {}) {
};
}
test("Polygon stays visible while worker capability gates live actions", () => {
test("Polygon exposes one dataset surface and keeps legacy links compatible", () => {
assert.deepEqual(resolvePolygonRunRoute("?workspace=polygon-run"), {
active: true,
runId: null,
@@ -304,18 +304,27 @@ test("Polygon stays visible while worker capability gates live actions", () => {
error: null,
},
);
assert.deepEqual(resolvePolygonRunRoute("?workspace=polygon-datasets"), {
active: true,
runId: null,
error: null,
});
assert.equal(resolvePolygonRunRoute("?workspace=missions").active, false);
assert.match(
resolvePolygonRunRoute("?workspace=polygon-run&run=../../etc").error,
/некорректный/,
);
assert.equal(workspaceById("polygon-run").root, "polygon");
assert.equal(workspaceById("polygon-run"), null);
assert.equal(
workspacesForRoot("polygon").some(({ id }) => id === "polygon-run"),
true,
false,
);
assert.equal(workspaceById("polygon-datasets").root, "polygon");
assert.equal(workspaceById("polygon-datasets").kind, "polygon-datasets");
assert.deepEqual(
workspacesForRoot("polygon").map(({ id }) => id),
["polygon-datasets"],
);
assert.equal(
workspacesForRoot("system").some(({ id }) => id === "polygon-run"),
false,