Expand render graph playground editing

Amp-Thread-ID: https://ampcode.com/threads/T-01a033d4-0e44-708e-af0e-6166283416ff
Co-authored-by: Heaust Azure <heaust.azure@gmail.com>
This commit is contained in:
Amp
2026-08-25 05:18:14 +00:00
co-authored by heaust
parent d71da85307
commit e7546e4b78
20 changed files with 3058 additions and 303 deletions
+15 -1
View File
@@ -599,12 +599,26 @@ test("action requests, selection projections, menu results, and receipts are exa
protocol: PROTOCOL_VERSION,
type: "view.selection.host",
viewId,
projection: { nodeCount, linkCount, canRemove, mute: { enabled: false } },
projection: {
nodeIds: Array.from({ length: nodeCount }, (_, index) => `node-${index}`),
nodeCount,
linkCount,
canRemove,
mute: { enabled: false },
},
});
assert.equal(validWorkerMessage(selection(0, 0, false)), true);
assert.equal(validWorkerMessage(selection(1, 0, true)), true);
assert.equal(validWorkerMessage(selection(0, 0, true)), false);
assert.equal(validWorkerMessage(selection(1, 0, false)), false);
const mismatchedSelection = selection(1, 0, true);
assert.equal(
validWorkerMessage({
...mismatchedSelection,
projection: { ...mismatchedSelection.projection, nodeCount: 0 },
}),
false,
);
assert.equal(
validWorkerMessage({
protocol: PROTOCOL_VERSION,