推进 INI 面板 workflow overview embedding mount DOM wrapper
This commit is contained in:
@@ -54,6 +54,7 @@ import {
|
||||
createIniPanelShellWorkflowOverviewEmbeddingMountDomContract,
|
||||
createIniPanelShellWorkflowOverviewEmbeddingMountDomReadiness,
|
||||
renderIniPanelShellWorkflowOverviewEmbeddingMountState,
|
||||
mountIniPanelShellWorkflowOverviewEmbeddingMountState,
|
||||
renderIniPanelShellSessionHandoffWorkflowState,
|
||||
mountIniPanelShellSessionHandoffWorkflow,
|
||||
renderIniPanelShellSessionHandoffMountState,
|
||||
@@ -385,6 +386,11 @@ outer shell needs to render a mount render-state into existing mount/status/rows
|
||||
nodes and receive a structured read-only render result. The workflow overview
|
||||
page also exposes
|
||||
`linuxCncIniPanelWorkflowOverviewApi.renderWorkflowOverviewEmbeddingMountState()`.
|
||||
Use `mountIniPanelShellWorkflowOverviewEmbeddingMountState()` or
|
||||
`linuxCncIniPanelLaunchApi.mountWorkflowOverviewEmbeddingMountState()` when an
|
||||
outer shell needs a non-throwing mount workflow result for the mount render-state
|
||||
DOM. The workflow overview page also exposes
|
||||
`linuxCncIniPanelWorkflowOverviewApi.mountWorkflowOverviewEmbeddingMountState()`.
|
||||
Use
|
||||
`renderIniPanelShellSessionHandoffMountState()` or
|
||||
`linuxCncIniPanelLaunchApi.renderShellSessionHandoffMountState()` when an outer
|
||||
|
||||
@@ -317,6 +317,11 @@
|
||||
renderWorkflowOverviewEmbeddingMountState: (renderState, options) => (
|
||||
shellViewModel.renderWorkflowOverviewEmbeddingMountState(renderState, options ?? { documentRef: document })
|
||||
),
|
||||
mountWorkflowOverviewEmbeddingMountState: (options) => (
|
||||
shellViewModel.mountWorkflowOverviewEmbeddingMountState(options ?? {
|
||||
documentRef: document,
|
||||
})
|
||||
),
|
||||
isSupportedShellSessionHandoffPackage: shellViewModel.isSupportedShellSessionHandoffPackage,
|
||||
getLauncherLinks: () => shellViewModel.launcherLinks,
|
||||
getControlPageApiMethods: () => shellViewModel.controlPage.browserApiMethods,
|
||||
|
||||
@@ -171,6 +171,7 @@ export function createIniPanelLaunchApiManifest(entries = getVisibleIniPanelEntr
|
||||
"getWorkflowOverviewEmbeddingMountDomContract",
|
||||
"getWorkflowOverviewEmbeddingMountDomReadiness",
|
||||
"renderWorkflowOverviewEmbeddingMountState",
|
||||
"mountWorkflowOverviewEmbeddingMountState",
|
||||
"isSupportedShellSessionHandoffPackage",
|
||||
"getLauncherLinks",
|
||||
"getControlPageApiMethods",
|
||||
@@ -2343,6 +2344,73 @@ export function renderIniPanelShellWorkflowOverviewEmbeddingMountState(
|
||||
};
|
||||
}
|
||||
|
||||
export function mountIniPanelShellWorkflowOverviewEmbeddingMountState({
|
||||
renderState = createIniPanelShellWorkflowOverviewEmbeddingMountRenderState(),
|
||||
rowDatasetPrefix = "workflowOverviewEmbeddingMount",
|
||||
contract = createIniPanelShellWorkflowOverviewEmbeddingMountDomContract({ rowDatasetPrefix }),
|
||||
documentRef = globalThis.document,
|
||||
mountNode = documentRef?.querySelector?.(contract.selectors.mount),
|
||||
statusNode = documentRef?.querySelector?.(contract.selectors.status),
|
||||
rowsNode = documentRef?.querySelector?.(contract.selectors.rows),
|
||||
} = {}) {
|
||||
const domReadiness = createIniPanelShellWorkflowOverviewEmbeddingMountDomReadiness({
|
||||
contract,
|
||||
documentRef,
|
||||
mountNode,
|
||||
statusNode,
|
||||
rowsNode,
|
||||
});
|
||||
if (!domReadiness.ready) {
|
||||
return {
|
||||
apiName: "ini-panel-shell-workflow-overview-embedding-mount-dom-mount",
|
||||
workflowVersion: 1,
|
||||
phase: "blocked",
|
||||
ready: false,
|
||||
statusLine: `Blocked: ${domReadiness.missing.join(", ")}`,
|
||||
contract,
|
||||
domReadiness,
|
||||
renderState,
|
||||
renderResult: null,
|
||||
error: null,
|
||||
};
|
||||
}
|
||||
|
||||
try {
|
||||
const renderResult = renderIniPanelShellWorkflowOverviewEmbeddingMountState(renderState, {
|
||||
contract,
|
||||
documentRef,
|
||||
mountNode,
|
||||
statusNode,
|
||||
rowsNode,
|
||||
});
|
||||
return {
|
||||
apiName: "ini-panel-shell-workflow-overview-embedding-mount-dom-mount",
|
||||
workflowVersion: 1,
|
||||
phase: renderState?.phase === "ready" ? "ready" : "blocked",
|
||||
ready: renderState?.ready === true,
|
||||
statusLine: renderResult.statusLine,
|
||||
contract,
|
||||
domReadiness,
|
||||
renderState,
|
||||
renderResult,
|
||||
error: null,
|
||||
};
|
||||
} catch (error) {
|
||||
return {
|
||||
apiName: "ini-panel-shell-workflow-overview-embedding-mount-dom-mount",
|
||||
workflowVersion: 1,
|
||||
phase: "blocked",
|
||||
ready: false,
|
||||
statusLine: `Blocked: ${error?.message ?? "workflow overview embedding mount DOM mount error"}`,
|
||||
contract,
|
||||
domReadiness,
|
||||
renderState,
|
||||
renderResult: null,
|
||||
error: error?.message ?? String(error),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export function createIniPanelShellViewModel(entries = getVisibleIniPanelEntries()) {
|
||||
const shellIntegrationManifest = createIniPanelShellIntegrationManifest(entries);
|
||||
const shellIntegrationReadiness = createIniPanelShellIntegrationReadiness(shellIntegrationManifest);
|
||||
@@ -2518,6 +2586,8 @@ export function createIniPanelShellViewModel(entries = getVisibleIniPanelEntries
|
||||
createIniPanelShellWorkflowOverviewEmbeddingMountDomReadiness,
|
||||
renderWorkflowOverviewEmbeddingMountState:
|
||||
renderIniPanelShellWorkflowOverviewEmbeddingMountState,
|
||||
mountWorkflowOverviewEmbeddingMountState:
|
||||
mountIniPanelShellWorkflowOverviewEmbeddingMountState,
|
||||
isSupportedShellSessionHandoffPackage: isSupportedIniPanelShellSessionHandoffPackage,
|
||||
controlPage: {
|
||||
browserApiSchema: createControlPageBrowserApiSchema(),
|
||||
|
||||
@@ -102,6 +102,7 @@
|
||||
createIniPanelShellWorkflowOverviewEmbeddingMountDomContract,
|
||||
createIniPanelShellWorkflowOverviewEmbeddingMountDomReadiness,
|
||||
renderIniPanelShellWorkflowOverviewEmbeddingMountState,
|
||||
mountIniPanelShellWorkflowOverviewEmbeddingMountState,
|
||||
renderIniPanelShellSessionHandoffWorkflowState,
|
||||
mountIniPanelShellSessionHandoffWorkflow,
|
||||
} from "./ui-shell.js";
|
||||
@@ -181,6 +182,11 @@
|
||||
renderWorkflowOverviewEmbeddingMountState: (renderState, options) => (
|
||||
renderIniPanelShellWorkflowOverviewEmbeddingMountState(renderState, options ?? { documentRef: document })
|
||||
),
|
||||
mountWorkflowOverviewEmbeddingMountState: (options) => (
|
||||
mountIniPanelShellWorkflowOverviewEmbeddingMountState(options ?? {
|
||||
documentRef: document,
|
||||
})
|
||||
),
|
||||
};
|
||||
</script>
|
||||
</body>
|
||||
|
||||
@@ -115,6 +115,7 @@
|
||||
!launchApi?.getWorkflowOverviewEmbeddingMountDomContract ||
|
||||
!launchApi?.getWorkflowOverviewEmbeddingMountDomReadiness ||
|
||||
!launchApi?.renderWorkflowOverviewEmbeddingMountState ||
|
||||
!launchApi?.mountWorkflowOverviewEmbeddingMountState ||
|
||||
!launchApi?.isSupportedShellSessionHandoffPackage ||
|
||||
!launchApi?.getLauncherLinks ||
|
||||
!launchApi?.getControlPageApiMethods
|
||||
@@ -651,7 +652,8 @@
|
||||
!workflowOverviewApi?.getWorkflowOverviewEmbeddingMountRenderState ||
|
||||
!workflowOverviewApi?.getWorkflowOverviewEmbeddingMountDomContract ||
|
||||
!workflowOverviewApi?.getWorkflowOverviewEmbeddingMountDomReadiness ||
|
||||
!workflowOverviewApi?.renderWorkflowOverviewEmbeddingMountState
|
||||
!workflowOverviewApi?.renderWorkflowOverviewEmbeddingMountState ||
|
||||
!workflowOverviewApi?.mountWorkflowOverviewEmbeddingMountState
|
||||
) {
|
||||
throw new Error("workflow overview API namespace did not expose shell helpers");
|
||||
}
|
||||
|
||||
@@ -121,6 +121,7 @@ TOOL_TABLE = browser-shell-tool.tbl
|
||||
!launchApi?.getWorkflowOverviewEmbeddingMountDomContract ||
|
||||
!launchApi?.getWorkflowOverviewEmbeddingMountDomReadiness ||
|
||||
!launchApi?.renderWorkflowOverviewEmbeddingMountState ||
|
||||
!launchApi?.mountWorkflowOverviewEmbeddingMountState ||
|
||||
!launchApi?.isSupportedShellSessionHandoffPackage
|
||||
) {
|
||||
throw new Error("launch API namespace did not expose shell integration helpers");
|
||||
@@ -355,6 +356,11 @@ TOOL_TABLE = browser-shell-tool.tbl
|
||||
contract: workflowOverviewEmbeddingMountDomContract,
|
||||
documentRef: document,
|
||||
});
|
||||
const workflowOverviewEmbeddingMountDomMount = launchApi.mountWorkflowOverviewEmbeddingMountState({
|
||||
renderState: workflowOverviewEmbeddingMountRenderState,
|
||||
contract: workflowOverviewEmbeddingMountDomContract,
|
||||
documentRef: document,
|
||||
});
|
||||
assertEqual(workflowOverviewReadiness.ready, true, "shell workflow overview iframe readiness");
|
||||
assertEqual(workflowOverviewReadiness.missing.join(","), "", "shell workflow overview iframe missing methods");
|
||||
assertEqual(workflowOverviewEmbedding.apiName, "ini-panel-shell-workflow-overview-embedding", "shell workflow overview embedding API");
|
||||
@@ -393,6 +399,10 @@ TOOL_TABLE = browser-shell-tool.tbl
|
||||
assertEqual(workflowOverviewEmbeddingMountDomContract.rowDatasetKeys.detail[0], "externalOverviewEmbeddingMountValue", "shell workflow overview embedding mount DOM detail key");
|
||||
assertEqual(workflowOverviewEmbeddingMountDomReadiness.ready, false, "shell workflow overview embedding mount DOM readiness");
|
||||
assertEqual(workflowOverviewEmbeddingMountDomReadiness.missing.join(","), "mount,status,rows", "shell workflow overview embedding mount DOM missing");
|
||||
assertEqual(workflowOverviewEmbeddingMountDomMount.apiName, "ini-panel-shell-workflow-overview-embedding-mount-dom-mount", "shell workflow overview embedding mount DOM mount API");
|
||||
assertEqual(workflowOverviewEmbeddingMountDomMount.ready, false, "shell workflow overview embedding mount DOM mount readiness");
|
||||
assertEqual(workflowOverviewEmbeddingMountDomMount.renderResult, null, "shell workflow overview embedding mount DOM mount render result");
|
||||
assertEqual(workflowOverviewEmbeddingMountDomMount.statusLine, "Blocked: mount, status, rows", "shell workflow overview embedding mount DOM mount status");
|
||||
|
||||
const controlDoc = await loadFrame(`../../runtime/ui/ini-panel/${controlTarget.href.slice(2)}`);
|
||||
const controlPageApi = controlDoc.defaultView.linuxCncIniPanelControlPageApi;
|
||||
|
||||
@@ -47,7 +47,8 @@
|
||||
!workflowApi?.getWorkflowOverviewEmbeddingMountRenderState ||
|
||||
!workflowApi?.getWorkflowOverviewEmbeddingMountDomContract ||
|
||||
!workflowApi?.getWorkflowOverviewEmbeddingMountDomReadiness ||
|
||||
!workflowApi?.renderWorkflowOverviewEmbeddingMountState
|
||||
!workflowApi?.renderWorkflowOverviewEmbeddingMountState ||
|
||||
!workflowApi?.mountWorkflowOverviewEmbeddingMountState
|
||||
) {
|
||||
throw new Error("workflow overview API namespace did not expose overview helpers");
|
||||
}
|
||||
@@ -146,11 +147,18 @@
|
||||
const embeddingMountRenderResult = workflowApi.renderWorkflowOverviewEmbeddingMountState(
|
||||
embeddingMountRenderState,
|
||||
);
|
||||
const embeddingMountDomMount = workflowApi.mountWorkflowOverviewEmbeddingMountState({
|
||||
renderState: embeddingMountRenderState,
|
||||
});
|
||||
assertEqual(embeddingMountDomReadinessReady.ready, true, "workflow overview embedding mount ready DOM readiness");
|
||||
assertEqual(embeddingMountDomReadinessReady.missing.join(","), "", "workflow overview embedding mount ready DOM missing");
|
||||
assertEqual(embeddingMountRenderResult.rendered, true, "workflow overview embedding mount render result");
|
||||
assertEqual(embeddingMountRenderResult.rowCount, 7, "workflow overview embedding mount render row count");
|
||||
assertEqual(embeddingMountRenderResult.dataset.handoffScope, "workflow-overview-embedding-mount", "workflow overview embedding mount render scope");
|
||||
assertEqual(embeddingMountDomMount.apiName, "ini-panel-shell-workflow-overview-embedding-mount-dom-mount", "workflow overview embedding mount DOM mount API");
|
||||
assertEqual(embeddingMountDomMount.ready, false, "workflow overview embedding mount DOM mount readiness");
|
||||
assertEqual(embeddingMountDomMount.renderResult.rowCount, 7, "workflow overview embedding mount DOM mount row count");
|
||||
assertEqual(embeddingMountDomMount.error, null, "workflow overview embedding mount DOM mount error");
|
||||
assertEqual(embeddingMountStatus.textContent, embeddingMountRenderState.statusLine, "workflow overview embedding mount rendered status");
|
||||
assertEqual(
|
||||
workflowDoc.querySelector("[data-handoff-workflow]").dataset.handoffScope,
|
||||
|
||||
@@ -52,6 +52,7 @@ import {
|
||||
createIniPanelShellWorkflowOverviewEmbeddingMountDomContract,
|
||||
createIniPanelShellWorkflowOverviewEmbeddingMountDomReadiness,
|
||||
renderIniPanelShellWorkflowOverviewEmbeddingMountState,
|
||||
mountIniPanelShellWorkflowOverviewEmbeddingMountState,
|
||||
renderIniPanelShellSessionHandoffWorkflowState,
|
||||
mountIniPanelShellSessionHandoffWorkflow,
|
||||
renderIniPanelShellSessionHandoffMountState,
|
||||
@@ -145,6 +146,7 @@ const requiredShellExports = [
|
||||
"createIniPanelShellWorkflowOverviewEmbeddingMountDomContract",
|
||||
"createIniPanelShellWorkflowOverviewEmbeddingMountDomReadiness",
|
||||
"renderIniPanelShellWorkflowOverviewEmbeddingMountState",
|
||||
"mountIniPanelShellWorkflowOverviewEmbeddingMountState",
|
||||
"renderIniPanelShellSessionHandoffWorkflowState",
|
||||
"mountIniPanelShellSessionHandoffWorkflow",
|
||||
"renderIniPanelShellSessionHandoffMountState",
|
||||
@@ -456,6 +458,7 @@ assert.match(shellText, /\bexport function createIniPanelShellWorkflowOverviewEm
|
||||
assert.match(shellText, /\bexport function createIniPanelShellWorkflowOverviewEmbeddingMountDomContract\b/);
|
||||
assert.match(shellText, /\bexport function createIniPanelShellWorkflowOverviewEmbeddingMountDomReadiness\b/);
|
||||
assert.match(shellText, /\bexport function renderIniPanelShellWorkflowOverviewEmbeddingMountState\b/);
|
||||
assert.match(shellText, /\bexport function mountIniPanelShellWorkflowOverviewEmbeddingMountState\b/);
|
||||
assert.match(shellText, /\bexport function isSupportedIniPanelControlPageApiManifest\b/);
|
||||
assert.match(shellText, /\bexport function isSupportedIniPanelLaunchApiManifest\b/);
|
||||
assert.match(shellText, /\bexport function isSupportedIniPanelShellIntegrationManifest\b/);
|
||||
@@ -496,6 +499,7 @@ assert.match(launchText, /\bgetWorkflowOverviewEmbeddingMountRenderState\b/);
|
||||
assert.match(launchText, /\bgetWorkflowOverviewEmbeddingMountDomContract\b/);
|
||||
assert.match(launchText, /\bgetWorkflowOverviewEmbeddingMountDomReadiness\b/);
|
||||
assert.match(launchText, /\brenderWorkflowOverviewEmbeddingMountState\b/);
|
||||
assert.match(launchText, /\bmountWorkflowOverviewEmbeddingMountState\b/);
|
||||
assert.match(launchText, /\bisSupportedShellSessionHandoffPackage\b/);
|
||||
assert.match(launchText, /\bdata-handoff-shell\b/);
|
||||
assert.match(launchText, /\bdata-handoff-status\b/);
|
||||
@@ -541,6 +545,7 @@ assert.match(docText, /\bcreateIniPanelShellWorkflowOverviewEmbeddingMountRender
|
||||
assert.match(docText, /\bcreateIniPanelShellWorkflowOverviewEmbeddingMountDomContract\b/);
|
||||
assert.match(docText, /\bcreateIniPanelShellWorkflowOverviewEmbeddingMountDomReadiness\b/);
|
||||
assert.match(docText, /\brenderIniPanelShellWorkflowOverviewEmbeddingMountState\b/);
|
||||
assert.match(docText, /\bmountIniPanelShellWorkflowOverviewEmbeddingMountState\b/);
|
||||
assert.match(docText, /\bisSupportedIniPanelControlPageApiManifest\b/);
|
||||
assert.match(docText, /\bisSupportedIniPanelLaunchApiManifest\b/);
|
||||
assert.match(docText, /\bisSupportedIniPanelShellIntegrationManifest\b/);
|
||||
@@ -576,6 +581,7 @@ assert.match(docText, /\blinuxCncIniPanelLaunchApi\.getWorkflowOverviewEmbedding
|
||||
assert.match(docText, /\blinuxCncIniPanelLaunchApi\.getWorkflowOverviewEmbeddingMountDomContract\b/);
|
||||
assert.match(docText, /\blinuxCncIniPanelLaunchApi\.getWorkflowOverviewEmbeddingMountDomReadiness\b/);
|
||||
assert.match(docText, /\blinuxCncIniPanelLaunchApi\.renderWorkflowOverviewEmbeddingMountState\b/);
|
||||
assert.match(docText, /\blinuxCncIniPanelLaunchApi\.mountWorkflowOverviewEmbeddingMountState\b/);
|
||||
assert.match(docText, /\blinuxCncIniPanelLaunchApi\.isSupportedShellSessionHandoffPackage\b/);
|
||||
assert.match(docText, /\bdata-handoff-shell\b/);
|
||||
assert.match(docText, /\bdata-handoff-status\b/);
|
||||
|
||||
@@ -91,6 +91,7 @@ assert.deepEqual(manifest, {
|
||||
"getWorkflowOverviewEmbeddingMountDomContract",
|
||||
"getWorkflowOverviewEmbeddingMountDomReadiness",
|
||||
"renderWorkflowOverviewEmbeddingMountState",
|
||||
"mountWorkflowOverviewEmbeddingMountState",
|
||||
"isSupportedShellSessionHandoffPackage",
|
||||
"getLauncherLinks",
|
||||
"getControlPageApiMethods",
|
||||
@@ -246,6 +247,7 @@ assert.match(launchText, /\bgetWorkflowOverviewEmbeddingMountRenderState\b/);
|
||||
assert.match(launchText, /\bgetWorkflowOverviewEmbeddingMountDomContract\b/);
|
||||
assert.match(launchText, /\bgetWorkflowOverviewEmbeddingMountDomReadiness\b/);
|
||||
assert.match(launchText, /\brenderWorkflowOverviewEmbeddingMountState\b/);
|
||||
assert.match(launchText, /\bmountWorkflowOverviewEmbeddingMountState\b/);
|
||||
assert.match(launchText, /\bisSupportedShellSessionHandoffPackage\b/);
|
||||
assert.match(launchText, /\bdata-handoff-workflow\b/);
|
||||
assert.match(launchText, /\bdata-handoff-workflow-status\b/);
|
||||
|
||||
@@ -48,6 +48,7 @@ import {
|
||||
createIniPanelShellWorkflowOverviewEmbeddingMountDomContract,
|
||||
createIniPanelShellWorkflowOverviewEmbeddingMountDomReadiness,
|
||||
renderIniPanelShellWorkflowOverviewEmbeddingMountState,
|
||||
mountIniPanelShellWorkflowOverviewEmbeddingMountState,
|
||||
renderIniPanelShellSessionHandoffWorkflowState,
|
||||
mountIniPanelShellSessionHandoffWorkflow,
|
||||
createIniPanelShellSessionHandoffPackageReport,
|
||||
@@ -176,7 +177,7 @@ assert.deepEqual(readiness, {
|
||||
counts: {
|
||||
pages: 3,
|
||||
launcherLinks: 3,
|
||||
launchMethods: 54,
|
||||
launchMethods: 55,
|
||||
controlPageMethods: 11,
|
||||
persistenceCapabilities: 3,
|
||||
},
|
||||
@@ -238,7 +239,7 @@ assert.deepEqual(handoffSummary, {
|
||||
counts: {
|
||||
pages: 3,
|
||||
launcherLinks: 3,
|
||||
launchMethods: 54,
|
||||
launchMethods: 55,
|
||||
controlPageMethods: 11,
|
||||
persistenceCapabilities: 3,
|
||||
},
|
||||
@@ -806,6 +807,7 @@ assert.equal(typeof createIniPanelShellWorkflowOverviewEmbeddingMountRenderState
|
||||
assert.equal(typeof createIniPanelShellWorkflowOverviewEmbeddingMountDomContract, "function");
|
||||
assert.equal(typeof createIniPanelShellWorkflowOverviewEmbeddingMountDomReadiness, "function");
|
||||
assert.equal(typeof renderIniPanelShellWorkflowOverviewEmbeddingMountState, "function");
|
||||
assert.equal(typeof mountIniPanelShellWorkflowOverviewEmbeddingMountState, "function");
|
||||
assert.deepEqual(
|
||||
createIniPanelShellWorkflowOverviewReadiness({
|
||||
overviewApi: {
|
||||
@@ -1234,7 +1236,7 @@ assert.deepEqual(createIniPanelShellIntegrationReadiness(blockedManifest), {
|
||||
counts: {
|
||||
pages: 3,
|
||||
launcherLinks: 3,
|
||||
launchMethods: 54,
|
||||
launchMethods: 55,
|
||||
controlPageMethods: 11,
|
||||
persistenceCapabilities: 3,
|
||||
},
|
||||
@@ -1428,6 +1430,7 @@ assert.match(shellText, /\bexport function createIniPanelShellWorkflowOverviewEm
|
||||
assert.match(shellText, /\bexport function createIniPanelShellWorkflowOverviewEmbeddingMountDomContract\b/);
|
||||
assert.match(shellText, /\bexport function createIniPanelShellWorkflowOverviewEmbeddingMountDomReadiness\b/);
|
||||
assert.match(shellText, /\bexport function renderIniPanelShellWorkflowOverviewEmbeddingMountState\b/);
|
||||
assert.match(shellText, /\bexport function mountIniPanelShellWorkflowOverviewEmbeddingMountState\b/);
|
||||
assert.match(shellText, /\bexport function createIniPanelShellSessionHandoffPackageRenderState\b/);
|
||||
assert.match(shellText, /\bexport function createIniPanelShellSessionHandoffPackageSchema\b/);
|
||||
assert.match(shellText, /\bexport function createIniPanelShellSessionHandoffRenderState\b/);
|
||||
@@ -1477,6 +1480,7 @@ assert.match(docText, /\bcreateIniPanelShellWorkflowOverviewEmbeddingMountRender
|
||||
assert.match(docText, /\bcreateIniPanelShellWorkflowOverviewEmbeddingMountDomContract\b/);
|
||||
assert.match(docText, /\bcreateIniPanelShellWorkflowOverviewEmbeddingMountDomReadiness\b/);
|
||||
assert.match(docText, /\brenderIniPanelShellWorkflowOverviewEmbeddingMountState\b/);
|
||||
assert.match(docText, /\bmountIniPanelShellWorkflowOverviewEmbeddingMountState\b/);
|
||||
assert.match(docText, /\bcreateIniPanelShellSessionHandoffPackageRenderState\b/);
|
||||
assert.match(docText, /\bcreateIniPanelShellSessionHandoffPackageSchema\b/);
|
||||
assert.match(docText, /\bcreateIniPanelShellSessionHandoffRenderState\b/);
|
||||
|
||||
@@ -48,6 +48,7 @@ import {
|
||||
createIniPanelShellWorkflowOverviewEmbeddingMountDomContract,
|
||||
createIniPanelShellWorkflowOverviewEmbeddingMountDomReadiness,
|
||||
renderIniPanelShellWorkflowOverviewEmbeddingMountState,
|
||||
mountIniPanelShellWorkflowOverviewEmbeddingMountState,
|
||||
renderIniPanelShellSessionHandoffWorkflowState,
|
||||
mountIniPanelShellSessionHandoffWorkflow,
|
||||
renderIniPanelShellSessionHandoffMountState,
|
||||
@@ -146,6 +147,7 @@ assert.equal(typeof createIniPanelShellWorkflowOverviewEmbeddingMountRenderState
|
||||
assert.equal(typeof createIniPanelShellWorkflowOverviewEmbeddingMountDomContract, "function");
|
||||
assert.equal(typeof createIniPanelShellWorkflowOverviewEmbeddingMountDomReadiness, "function");
|
||||
assert.equal(typeof renderIniPanelShellWorkflowOverviewEmbeddingMountState, "function");
|
||||
assert.equal(typeof mountIniPanelShellWorkflowOverviewEmbeddingMountState, "function");
|
||||
assert.equal(typeof renderIniPanelShellSessionHandoffWorkflowState, "function");
|
||||
assert.equal(typeof mountIniPanelShellSessionHandoffWorkflow, "function");
|
||||
assert.equal(typeof renderIniPanelShellSessionHandoffMountState, "function");
|
||||
@@ -859,6 +861,10 @@ assert.equal(
|
||||
shellViewModel.renderWorkflowOverviewEmbeddingMountState,
|
||||
renderIniPanelShellWorkflowOverviewEmbeddingMountState,
|
||||
);
|
||||
assert.equal(
|
||||
shellViewModel.mountWorkflowOverviewEmbeddingMountState,
|
||||
mountIniPanelShellWorkflowOverviewEmbeddingMountState,
|
||||
);
|
||||
assert.equal(shellViewModel.createShellSessionHandoffPackageReport, createIniPanelShellSessionHandoffPackageReport);
|
||||
assert.equal(shellViewModel.createShellSessionHandoffPackageSchema, createIniPanelShellSessionHandoffPackageSchema);
|
||||
assert.equal(shellViewModel.isSupportedShellSessionHandoffPackage, isSupportedIniPanelShellSessionHandoffPackage);
|
||||
@@ -1669,6 +1675,44 @@ assert.deepEqual(
|
||||
assert.equal(mountRowsNode.children[0].dataset.workflowOverviewEmbeddingMountRow, "mount-ready");
|
||||
assert.equal(mountRowsNode.children[1].dataset.workflowOverviewEmbeddingMountValue, "mount-ready");
|
||||
assert.equal(mountRowsNode.children[1].dataset.workflowOverviewEmbeddingMountStatus, "blocked");
|
||||
const workflowOverviewEmbeddingMountDomMount = mountIniPanelShellWorkflowOverviewEmbeddingMountState({
|
||||
renderState: createIniPanelShellWorkflowOverviewEmbeddingMountRenderState(
|
||||
createIniPanelShellWorkflowOverviewEmbeddingMountDisplayViewModel(workflowOverviewEmbeddingMountResult),
|
||||
),
|
||||
documentRef: mountDocument,
|
||||
mountNode,
|
||||
statusNode: mountStatusNode,
|
||||
rowsNode: mountRowsNode,
|
||||
});
|
||||
assert.equal(
|
||||
workflowOverviewEmbeddingMountDomMount.apiName,
|
||||
"ini-panel-shell-workflow-overview-embedding-mount-dom-mount",
|
||||
);
|
||||
assert.equal(workflowOverviewEmbeddingMountDomMount.workflowVersion, 1);
|
||||
assert.equal(workflowOverviewEmbeddingMountDomMount.phase, "blocked");
|
||||
assert.equal(workflowOverviewEmbeddingMountDomMount.ready, false);
|
||||
assert.equal(workflowOverviewEmbeddingMountDomMount.statusLine, "Blocked: mount:blocked");
|
||||
assert.equal(workflowOverviewEmbeddingMountDomMount.renderResult.rowCount, 7);
|
||||
assert.equal(
|
||||
workflowOverviewEmbeddingMountDomMount.renderResult.dataset.handoffScope,
|
||||
"workflow-overview-embedding-mount",
|
||||
);
|
||||
assert.equal(workflowOverviewEmbeddingMountDomMount.error, null);
|
||||
assert.deepEqual(
|
||||
mountIniPanelShellWorkflowOverviewEmbeddingMountState({ documentRef: null }),
|
||||
{
|
||||
apiName: "ini-panel-shell-workflow-overview-embedding-mount-dom-mount",
|
||||
workflowVersion: 1,
|
||||
phase: "blocked",
|
||||
ready: false,
|
||||
statusLine: "Blocked: document, mount, status, rows",
|
||||
contract: createIniPanelShellWorkflowOverviewEmbeddingMountDomContract(),
|
||||
domReadiness: createIniPanelShellWorkflowOverviewEmbeddingMountDomReadiness({ documentRef: null }),
|
||||
renderState: createIniPanelShellWorkflowOverviewEmbeddingMountRenderState(),
|
||||
renderResult: null,
|
||||
error: null,
|
||||
},
|
||||
);
|
||||
assert.deepEqual(
|
||||
mountIniPanelShellWorkflowOverviewEmbedding({ overviewApi: null }).readiness.missing,
|
||||
shellViewModel.shellWorkflowOverviewContract.methodNames,
|
||||
|
||||
Reference in New Issue
Block a user