Add audit issue navigation and task-button normalization to Self-Serve Studio. Implement node ID resolution, audit visualization logic, and reusable task button helpers. Extend E2E and unit tests.

This commit is contained in:
Jeppe Bundgaard
2026-04-29 09:51:09 +02:00
parent a658fe7863
commit de2fa57c63
14 changed files with 3008 additions and 339 deletions
+2 -2
View File
@@ -191,7 +191,7 @@ describe("SelfServeTryModal", () => {
mocks.activeTasks.value = [
{
id: 1,
buttons: [0, 2, 2, -1, 99],
buttons: ["reset", 0, 2, 2, "start", -1, 99],
dynamic_images_vehicle_type: 5,
},
];
@@ -221,7 +221,7 @@ describe("SelfServeTryModal", () => {
expect(imageUrl.searchParams.get("current_step")).toBe("0");
expect(imageUrl.searchParams.get("vehicle_type")).toBe("3");
expect(imageUrl.searchParams.get("thumb_position")).toBe("5");
expect(JSON.parse(imageUrl.searchParams.get("buttons"))).toEqual([0, 2]);
expect(JSON.parse(imageUrl.searchParams.get("buttons"))).toEqual(["reset", 0, 2, "start"]);
});
it("does not render dynamic image preview without dynamic-image context", async () => {