From b78d1eaa512b8d5256af86caef97b28801d1bcc9 Mon Sep 17 00:00:00 2001 From: kris Date: Sun, 5 Apr 2026 03:37:52 +0800 Subject: [PATCH] chore: link integration setup --- web/storyforge-web-v4/assets/app.js | 1 + web/storyforge-web-v4/tests/workbench-pages.test.mjs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/web/storyforge-web-v4/assets/app.js b/web/storyforge-web-v4/assets/app.js index 416a5a0..4ca56fa 100644 --- a/web/storyforge-web-v4/assets/app.js +++ b/web/storyforge-web-v4/assets/app.js @@ -5031,6 +5031,7 @@ function resolveMainAgentLandingScreen(target) { "goto-intake": "intake", "goto-automation": "automation", "goto-playbook": "playbook", + "goto-admin-workbench": "admin-workbench", "goto-tracking": "tracking", "goto-production": "production", "goto-strategy": "strategy", diff --git a/web/storyforge-web-v4/tests/workbench-pages.test.mjs b/web/storyforge-web-v4/tests/workbench-pages.test.mjs index fd5ba78..30eaa89 100644 --- a/web/storyforge-web-v4/tests/workbench-pages.test.mjs +++ b/web/storyforge-web-v4/tests/workbench-pages.test.mjs @@ -810,6 +810,7 @@ test("admin override actions guard against missing governance targets", () => { test("main agent result rendering offers a direct route back into the recommended screen", () => { const execution = extractBetween(APP, "function renderOneLinerExecutionPayloadHtml(payload)", "function parseOneLinerActionPayloadValue(value)"); const lastAction = extractBetween(APP, "function renderLastActionCard()", "function getJobRecoveryCategory(job)"); + const landing = extractBetween(APP, "function resolveMainAgentLandingScreen(target)", "function captureMainAgentLandingContext(action, targetScreen)"); assert.match(execution, /recommended_action/); assert.match(execution, /result_sections/); assert.match(execution, /当前焦点/); @@ -819,6 +820,7 @@ test("main agent result rendering offers a direct route back into the recommende assert.match(execution, /data-action="\$\{escapeHtml\(payload\.recommended_action\.action\)\}"/); assert.match(lastAction, /open-oneliner-run-result/); assert.match(lastAction, /recommended_action/); + assert.match(landing, /"goto-admin-workbench": "admin-workbench"/); }); test("direct oneliner execution results preserve structured follow-up attrs", () => {