推进 INI 面板 workflow overview embedding mount display
This commit is contained in:
@@ -49,6 +49,7 @@ import {
|
||||
mountIniPanelShellWorkflowOverviewEmbedding,
|
||||
renderIniPanelShellWorkflowOverviewEmbeddingState,
|
||||
mountIniPanelShellWorkflowOverviewEmbeddingState,
|
||||
createIniPanelShellWorkflowOverviewEmbeddingMountDisplayViewModel,
|
||||
renderIniPanelShellSessionHandoffWorkflowState,
|
||||
mountIniPanelShellSessionHandoffWorkflow,
|
||||
renderIniPanelShellSessionHandoffMountState,
|
||||
@@ -351,6 +352,12 @@ shell needs a non-throwing workflow result that combines embedding DOM
|
||||
readiness, render-state, render result, and any render error as structured
|
||||
data. The workflow overview page also exposes
|
||||
`linuxCncIniPanelWorkflowOverviewApi.mountWorkflowOverviewEmbeddingState()`.
|
||||
Use `createIniPanelShellWorkflowOverviewEmbeddingMountDisplayViewModel()` or
|
||||
`linuxCncIniPanelLaunchApi.getWorkflowOverviewEmbeddingMountDisplayViewModel()`
|
||||
when an outer shell needs that mount workflow result compressed into stable
|
||||
`title`, `statusText`, `detailText`, and read-only label/value rows. The
|
||||
workflow overview page also exposes
|
||||
`linuxCncIniPanelWorkflowOverviewApi.getWorkflowOverviewEmbeddingMountDisplayViewModel()`.
|
||||
Use
|
||||
`renderIniPanelShellSessionHandoffMountState()` or
|
||||
`linuxCncIniPanelLaunchApi.renderShellSessionHandoffMountState()` when an outer
|
||||
|
||||
@@ -302,6 +302,9 @@
|
||||
documentRef: document,
|
||||
})
|
||||
),
|
||||
getWorkflowOverviewEmbeddingMountDisplayViewModel: (mountResult) => (
|
||||
shellViewModel.createWorkflowOverviewEmbeddingMountDisplayViewModel(mountResult)
|
||||
),
|
||||
isSupportedShellSessionHandoffPackage: shellViewModel.isSupportedShellSessionHandoffPackage,
|
||||
getLauncherLinks: () => shellViewModel.launcherLinks,
|
||||
getControlPageApiMethods: () => shellViewModel.controlPage.browserApiMethods,
|
||||
|
||||
@@ -166,6 +166,7 @@ export function createIniPanelLaunchApiManifest(entries = getVisibleIniPanelEntr
|
||||
"getWorkflowOverviewEmbeddingDomReadiness",
|
||||
"renderWorkflowOverviewEmbeddingState",
|
||||
"mountWorkflowOverviewEmbeddingState",
|
||||
"getWorkflowOverviewEmbeddingMountDisplayViewModel",
|
||||
"isSupportedShellSessionHandoffPackage",
|
||||
"getLauncherLinks",
|
||||
"getControlPageApiMethods",
|
||||
@@ -2127,6 +2128,71 @@ export function mountIniPanelShellWorkflowOverviewEmbeddingState({
|
||||
}
|
||||
}
|
||||
|
||||
export function createIniPanelShellWorkflowOverviewEmbeddingMountDisplayViewModel(
|
||||
mountResult = mountIniPanelShellWorkflowOverviewEmbeddingState(),
|
||||
) {
|
||||
const domMissing = Array.isArray(mountResult?.domReadiness?.missing)
|
||||
? mountResult.domReadiness.missing
|
||||
: [];
|
||||
const renderResult = mountResult?.renderResult && typeof mountResult.renderResult === "object"
|
||||
? mountResult.renderResult
|
||||
: {};
|
||||
const renderState = mountResult?.renderState && typeof mountResult.renderState === "object"
|
||||
? mountResult.renderState
|
||||
: {};
|
||||
const error = mountResult?.error ?? null;
|
||||
const ready = mountResult?.ready === true;
|
||||
const problems = [
|
||||
...(ready ? [] : [`mount:${mountResult?.phase ?? "blocked"}`]),
|
||||
...domMissing.map((name) => `dom:${name}`),
|
||||
...(error ? [`error:${error}`] : []),
|
||||
];
|
||||
|
||||
return {
|
||||
phase: ready ? "ready" : "blocked",
|
||||
title: "Workflow overview embedding mount",
|
||||
statusText: ready ? "Ready" : "Blocked",
|
||||
detailText: problems.length === 0 ? "No blocking reasons" : problems.join(", "),
|
||||
rows: [
|
||||
{
|
||||
id: "mount-ready",
|
||||
label: "Mount readiness",
|
||||
value: ready ? "ready" : "blocked",
|
||||
},
|
||||
{
|
||||
id: "dom-readiness",
|
||||
label: "DOM readiness",
|
||||
value: mountResult?.domReadiness?.ready ? "ready" : "blocked",
|
||||
},
|
||||
{
|
||||
id: "missing-dom",
|
||||
label: "Missing DOM",
|
||||
value: domMissing.length === 0 ? "none" : domMissing.join(", "),
|
||||
},
|
||||
{
|
||||
id: "render-state",
|
||||
label: "Render state",
|
||||
value: renderState.statusLine ?? "missing",
|
||||
},
|
||||
{
|
||||
id: "render-result",
|
||||
label: "Render result",
|
||||
value: renderResult.rendered ? "rendered" : "missing",
|
||||
},
|
||||
{
|
||||
id: "render-row-count",
|
||||
label: "Render row count",
|
||||
value: Number.isFinite(renderResult.rowCount) ? String(renderResult.rowCount) : "0",
|
||||
},
|
||||
{
|
||||
id: "error",
|
||||
label: "Error",
|
||||
value: error ?? "none",
|
||||
},
|
||||
],
|
||||
};
|
||||
}
|
||||
|
||||
export function createIniPanelShellViewModel(entries = getVisibleIniPanelEntries()) {
|
||||
const shellIntegrationManifest = createIniPanelShellIntegrationManifest(entries);
|
||||
const shellIntegrationReadiness = createIniPanelShellIntegrationReadiness(shellIntegrationManifest);
|
||||
@@ -2292,6 +2358,8 @@ export function createIniPanelShellViewModel(entries = getVisibleIniPanelEntries
|
||||
createWorkflowOverviewEmbeddingDomReadiness: createIniPanelShellWorkflowOverviewEmbeddingDomReadiness,
|
||||
renderWorkflowOverviewEmbeddingState: renderIniPanelShellWorkflowOverviewEmbeddingState,
|
||||
mountWorkflowOverviewEmbeddingState: mountIniPanelShellWorkflowOverviewEmbeddingState,
|
||||
createWorkflowOverviewEmbeddingMountDisplayViewModel:
|
||||
createIniPanelShellWorkflowOverviewEmbeddingMountDisplayViewModel,
|
||||
isSupportedShellSessionHandoffPackage: isSupportedIniPanelShellSessionHandoffPackage,
|
||||
controlPage: {
|
||||
browserApiSchema: createControlPageBrowserApiSchema(),
|
||||
|
||||
@@ -97,6 +97,7 @@
|
||||
mountIniPanelShellWorkflowOverviewEmbedding,
|
||||
renderIniPanelShellWorkflowOverviewEmbeddingState,
|
||||
mountIniPanelShellWorkflowOverviewEmbeddingState,
|
||||
createIniPanelShellWorkflowOverviewEmbeddingMountDisplayViewModel,
|
||||
renderIniPanelShellSessionHandoffWorkflowState,
|
||||
mountIniPanelShellSessionHandoffWorkflow,
|
||||
} from "./ui-shell.js";
|
||||
@@ -161,6 +162,9 @@
|
||||
documentRef: document,
|
||||
})
|
||||
),
|
||||
getWorkflowOverviewEmbeddingMountDisplayViewModel: (mountResult) => (
|
||||
createIniPanelShellWorkflowOverviewEmbeddingMountDisplayViewModel(mountResult)
|
||||
),
|
||||
};
|
||||
</script>
|
||||
</body>
|
||||
|
||||
@@ -110,6 +110,7 @@
|
||||
!launchApi?.getWorkflowOverviewEmbeddingDomReadiness ||
|
||||
!launchApi?.renderWorkflowOverviewEmbeddingState ||
|
||||
!launchApi?.mountWorkflowOverviewEmbeddingState ||
|
||||
!launchApi?.getWorkflowOverviewEmbeddingMountDisplayViewModel ||
|
||||
!launchApi?.isSupportedShellSessionHandoffPackage ||
|
||||
!launchApi?.getLauncherLinks ||
|
||||
!launchApi?.getControlPageApiMethods
|
||||
@@ -641,7 +642,8 @@
|
||||
!workflowOverviewApi?.getWorkflowOverviewEmbeddingDomContract ||
|
||||
!workflowOverviewApi?.getWorkflowOverviewEmbeddingDomReadiness ||
|
||||
!workflowOverviewApi?.renderWorkflowOverviewEmbeddingState ||
|
||||
!workflowOverviewApi?.mountWorkflowOverviewEmbeddingState
|
||||
!workflowOverviewApi?.mountWorkflowOverviewEmbeddingState ||
|
||||
!workflowOverviewApi?.getWorkflowOverviewEmbeddingMountDisplayViewModel
|
||||
) {
|
||||
throw new Error("workflow overview API namespace did not expose shell helpers");
|
||||
}
|
||||
|
||||
@@ -116,6 +116,7 @@ TOOL_TABLE = browser-shell-tool.tbl
|
||||
!launchApi?.getWorkflowOverviewEmbeddingDomReadiness ||
|
||||
!launchApi?.renderWorkflowOverviewEmbeddingState ||
|
||||
!launchApi?.mountWorkflowOverviewEmbeddingState ||
|
||||
!launchApi?.getWorkflowOverviewEmbeddingMountDisplayViewModel ||
|
||||
!launchApi?.isSupportedShellSessionHandoffPackage
|
||||
) {
|
||||
throw new Error("launch API namespace did not expose shell integration helpers");
|
||||
@@ -332,6 +333,9 @@ TOOL_TABLE = browser-shell-tool.tbl
|
||||
contract: workflowOverviewEmbeddingDomContract,
|
||||
documentRef: document,
|
||||
});
|
||||
const workflowOverviewEmbeddingMountDisplay = launchApi.getWorkflowOverviewEmbeddingMountDisplayViewModel(
|
||||
workflowOverviewEmbeddingMountState,
|
||||
);
|
||||
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");
|
||||
@@ -361,6 +365,9 @@ TOOL_TABLE = browser-shell-tool.tbl
|
||||
assertEqual(workflowOverviewEmbeddingMountState.apiName, "ini-panel-shell-workflow-overview-embedding-dom-mount", "shell workflow overview embedding mount API");
|
||||
assertEqual(workflowOverviewEmbeddingMountState.ready, false, "shell workflow overview embedding mount readiness");
|
||||
assertEqual(workflowOverviewEmbeddingMountState.renderResult.rowCount, 6, "shell workflow overview embedding mount rows");
|
||||
assertEqual(workflowOverviewEmbeddingMountDisplay.title, "Workflow overview embedding mount", "shell workflow overview embedding mount display title");
|
||||
assertEqual(workflowOverviewEmbeddingMountDisplay.rows.length, 7, "shell workflow overview embedding mount display rows");
|
||||
assertEqual(workflowOverviewEmbeddingMountDisplay.detailText, "mount:blocked", "shell workflow overview embedding mount display detail");
|
||||
|
||||
const controlDoc = await loadFrame(`../../runtime/ui/ini-panel/${controlTarget.href.slice(2)}`);
|
||||
const controlPageApi = controlDoc.defaultView.linuxCncIniPanelControlPageApi;
|
||||
|
||||
@@ -42,7 +42,8 @@
|
||||
!workflowApi?.getWorkflowOverviewEmbeddingDomContract ||
|
||||
!workflowApi?.getWorkflowOverviewEmbeddingDomReadiness ||
|
||||
!workflowApi?.renderWorkflowOverviewEmbeddingState ||
|
||||
!workflowApi?.mountWorkflowOverviewEmbeddingState
|
||||
!workflowApi?.mountWorkflowOverviewEmbeddingState ||
|
||||
!workflowApi?.getWorkflowOverviewEmbeddingMountDisplayViewModel
|
||||
) {
|
||||
throw new Error("workflow overview API namespace did not expose overview helpers");
|
||||
}
|
||||
@@ -106,6 +107,9 @@
|
||||
const embeddingMountState = workflowApi.mountWorkflowOverviewEmbeddingState({
|
||||
renderState: embeddingRenderState,
|
||||
});
|
||||
const embeddingMountDisplay = workflowApi.getWorkflowOverviewEmbeddingMountDisplayViewModel(
|
||||
embeddingMountState,
|
||||
);
|
||||
assertEqual(embeddingRenderResult.rendered, true, "workflow overview embedding render result");
|
||||
assertEqual(embeddingRenderResult.rowCount, 6, "workflow overview embedding render row count");
|
||||
assertEqual(embeddingRenderResult.dataset.handoffScope, "workflow-overview-embedding", "workflow overview embedding render scope");
|
||||
@@ -113,6 +117,8 @@
|
||||
assertEqual(embeddingMountState.apiName, "ini-panel-shell-workflow-overview-embedding-dom-mount", "workflow overview embedding mount API");
|
||||
assertEqual(embeddingMountState.ready, false, "workflow overview embedding mount readiness");
|
||||
assertEqual(embeddingMountState.renderResult.rowCount, 6, "workflow overview embedding mount row count");
|
||||
assertEqual(embeddingMountDisplay.statusText, "Blocked", "workflow overview embedding mount display status");
|
||||
assertEqual(embeddingMountDisplay.rows.length, 7, "workflow overview embedding mount display rows");
|
||||
assertEqual(
|
||||
workflowDoc.querySelector("[data-handoff-workflow]").dataset.handoffScope,
|
||||
"workflow",
|
||||
|
||||
@@ -47,6 +47,7 @@ import {
|
||||
mountIniPanelShellWorkflowOverviewEmbedding,
|
||||
renderIniPanelShellWorkflowOverviewEmbeddingState,
|
||||
mountIniPanelShellWorkflowOverviewEmbeddingState,
|
||||
createIniPanelShellWorkflowOverviewEmbeddingMountDisplayViewModel,
|
||||
renderIniPanelShellSessionHandoffWorkflowState,
|
||||
mountIniPanelShellSessionHandoffWorkflow,
|
||||
renderIniPanelShellSessionHandoffMountState,
|
||||
@@ -135,6 +136,7 @@ const requiredShellExports = [
|
||||
"mountIniPanelShellWorkflowOverviewEmbedding",
|
||||
"renderIniPanelShellWorkflowOverviewEmbeddingState",
|
||||
"mountIniPanelShellWorkflowOverviewEmbeddingState",
|
||||
"createIniPanelShellWorkflowOverviewEmbeddingMountDisplayViewModel",
|
||||
"renderIniPanelShellSessionHandoffWorkflowState",
|
||||
"mountIniPanelShellSessionHandoffWorkflow",
|
||||
"renderIniPanelShellSessionHandoffMountState",
|
||||
@@ -441,6 +443,7 @@ assert.match(shellText, /\bexport function createIniPanelShellWorkflowOverviewEm
|
||||
assert.match(shellText, /\bexport function createIniPanelShellWorkflowOverviewEmbeddingDomReadiness\b/);
|
||||
assert.match(shellText, /\bexport function renderIniPanelShellWorkflowOverviewEmbeddingState\b/);
|
||||
assert.match(shellText, /\bexport function mountIniPanelShellWorkflowOverviewEmbeddingState\b/);
|
||||
assert.match(shellText, /\bexport function createIniPanelShellWorkflowOverviewEmbeddingMountDisplayViewModel\b/);
|
||||
assert.match(shellText, /\bexport function isSupportedIniPanelControlPageApiManifest\b/);
|
||||
assert.match(shellText, /\bexport function isSupportedIniPanelLaunchApiManifest\b/);
|
||||
assert.match(shellText, /\bexport function isSupportedIniPanelShellIntegrationManifest\b/);
|
||||
@@ -476,6 +479,7 @@ assert.match(launchText, /\bgetWorkflowOverviewEmbeddingDomContract\b/);
|
||||
assert.match(launchText, /\bgetWorkflowOverviewEmbeddingDomReadiness\b/);
|
||||
assert.match(launchText, /\brenderWorkflowOverviewEmbeddingState\b/);
|
||||
assert.match(launchText, /\bmountWorkflowOverviewEmbeddingState\b/);
|
||||
assert.match(launchText, /\bgetWorkflowOverviewEmbeddingMountDisplayViewModel\b/);
|
||||
assert.match(launchText, /\bisSupportedShellSessionHandoffPackage\b/);
|
||||
assert.match(launchText, /\bdata-handoff-shell\b/);
|
||||
assert.match(launchText, /\bdata-handoff-status\b/);
|
||||
@@ -516,6 +520,7 @@ assert.match(docText, /\bcreateIniPanelShellWorkflowOverviewEmbeddingDomContract
|
||||
assert.match(docText, /\bcreateIniPanelShellWorkflowOverviewEmbeddingDomReadiness\b/);
|
||||
assert.match(docText, /\brenderIniPanelShellWorkflowOverviewEmbeddingState\b/);
|
||||
assert.match(docText, /\bmountIniPanelShellWorkflowOverviewEmbeddingState\b/);
|
||||
assert.match(docText, /\bcreateIniPanelShellWorkflowOverviewEmbeddingMountDisplayViewModel\b/);
|
||||
assert.match(docText, /\bisSupportedIniPanelControlPageApiManifest\b/);
|
||||
assert.match(docText, /\bisSupportedIniPanelLaunchApiManifest\b/);
|
||||
assert.match(docText, /\bisSupportedIniPanelShellIntegrationManifest\b/);
|
||||
@@ -546,6 +551,7 @@ assert.match(docText, /\blinuxCncIniPanelLaunchApi\.getWorkflowOverviewEmbedding
|
||||
assert.match(docText, /\blinuxCncIniPanelLaunchApi\.getWorkflowOverviewEmbeddingDomReadiness\b/);
|
||||
assert.match(docText, /\blinuxCncIniPanelLaunchApi\.renderWorkflowOverviewEmbeddingState\b/);
|
||||
assert.match(docText, /\blinuxCncIniPanelLaunchApi\.mountWorkflowOverviewEmbeddingState\b/);
|
||||
assert.match(docText, /\blinuxCncIniPanelLaunchApi\.getWorkflowOverviewEmbeddingMountDisplayViewModel\b/);
|
||||
assert.match(docText, /\blinuxCncIniPanelLaunchApi\.isSupportedShellSessionHandoffPackage\b/);
|
||||
assert.match(docText, /\bdata-handoff-shell\b/);
|
||||
assert.match(docText, /\bdata-handoff-status\b/);
|
||||
|
||||
@@ -86,6 +86,7 @@ assert.deepEqual(manifest, {
|
||||
"getWorkflowOverviewEmbeddingDomReadiness",
|
||||
"renderWorkflowOverviewEmbeddingState",
|
||||
"mountWorkflowOverviewEmbeddingState",
|
||||
"getWorkflowOverviewEmbeddingMountDisplayViewModel",
|
||||
"isSupportedShellSessionHandoffPackage",
|
||||
"getLauncherLinks",
|
||||
"getControlPageApiMethods",
|
||||
@@ -236,6 +237,7 @@ assert.match(launchText, /\bgetWorkflowOverviewEmbeddingDomContract\b/);
|
||||
assert.match(launchText, /\bgetWorkflowOverviewEmbeddingDomReadiness\b/);
|
||||
assert.match(launchText, /\brenderWorkflowOverviewEmbeddingState\b/);
|
||||
assert.match(launchText, /\bmountWorkflowOverviewEmbeddingState\b/);
|
||||
assert.match(launchText, /\bgetWorkflowOverviewEmbeddingMountDisplayViewModel\b/);
|
||||
assert.match(launchText, /\bisSupportedShellSessionHandoffPackage\b/);
|
||||
assert.match(launchText, /\bdata-handoff-workflow\b/);
|
||||
assert.match(launchText, /\bdata-handoff-workflow-status\b/);
|
||||
|
||||
@@ -43,6 +43,7 @@ import {
|
||||
mountIniPanelShellWorkflowOverviewEmbedding,
|
||||
renderIniPanelShellWorkflowOverviewEmbeddingState,
|
||||
mountIniPanelShellWorkflowOverviewEmbeddingState,
|
||||
createIniPanelShellWorkflowOverviewEmbeddingMountDisplayViewModel,
|
||||
renderIniPanelShellSessionHandoffWorkflowState,
|
||||
mountIniPanelShellSessionHandoffWorkflow,
|
||||
createIniPanelShellSessionHandoffPackageReport,
|
||||
@@ -171,7 +172,7 @@ assert.deepEqual(readiness, {
|
||||
counts: {
|
||||
pages: 3,
|
||||
launcherLinks: 3,
|
||||
launchMethods: 49,
|
||||
launchMethods: 50,
|
||||
controlPageMethods: 11,
|
||||
persistenceCapabilities: 3,
|
||||
},
|
||||
@@ -233,7 +234,7 @@ assert.deepEqual(handoffSummary, {
|
||||
counts: {
|
||||
pages: 3,
|
||||
launcherLinks: 3,
|
||||
launchMethods: 49,
|
||||
launchMethods: 50,
|
||||
controlPageMethods: 11,
|
||||
persistenceCapabilities: 3,
|
||||
},
|
||||
@@ -796,6 +797,7 @@ assert.equal(
|
||||
assert.equal(createIniPanelShellWorkflowOverviewEmbeddingDomReadiness().ready, false);
|
||||
assert.equal(typeof renderIniPanelShellWorkflowOverviewEmbeddingState, "function");
|
||||
assert.equal(typeof mountIniPanelShellWorkflowOverviewEmbeddingState, "function");
|
||||
assert.equal(typeof createIniPanelShellWorkflowOverviewEmbeddingMountDisplayViewModel, "function");
|
||||
assert.deepEqual(
|
||||
createIniPanelShellWorkflowOverviewReadiness({
|
||||
overviewApi: {
|
||||
@@ -1224,7 +1226,7 @@ assert.deepEqual(createIniPanelShellIntegrationReadiness(blockedManifest), {
|
||||
counts: {
|
||||
pages: 3,
|
||||
launcherLinks: 3,
|
||||
launchMethods: 49,
|
||||
launchMethods: 50,
|
||||
controlPageMethods: 11,
|
||||
persistenceCapabilities: 3,
|
||||
},
|
||||
@@ -1413,6 +1415,7 @@ assert.match(shellText, /\bexport function createIniPanelShellWorkflowOverviewEm
|
||||
assert.match(shellText, /\bexport function createIniPanelShellWorkflowOverviewEmbeddingDomReadiness\b/);
|
||||
assert.match(shellText, /\bexport function renderIniPanelShellWorkflowOverviewEmbeddingState\b/);
|
||||
assert.match(shellText, /\bexport function mountIniPanelShellWorkflowOverviewEmbeddingState\b/);
|
||||
assert.match(shellText, /\bexport function createIniPanelShellWorkflowOverviewEmbeddingMountDisplayViewModel\b/);
|
||||
assert.match(shellText, /\bexport function createIniPanelShellSessionHandoffPackageRenderState\b/);
|
||||
assert.match(shellText, /\bexport function createIniPanelShellSessionHandoffPackageSchema\b/);
|
||||
assert.match(shellText, /\bexport function createIniPanelShellSessionHandoffRenderState\b/);
|
||||
@@ -1457,6 +1460,7 @@ assert.match(docText, /\bcreateIniPanelShellWorkflowOverviewEmbeddingDomContract
|
||||
assert.match(docText, /\bcreateIniPanelShellWorkflowOverviewEmbeddingDomReadiness\b/);
|
||||
assert.match(docText, /\brenderIniPanelShellWorkflowOverviewEmbeddingState\b/);
|
||||
assert.match(docText, /\bmountIniPanelShellWorkflowOverviewEmbeddingState\b/);
|
||||
assert.match(docText, /\bcreateIniPanelShellWorkflowOverviewEmbeddingMountDisplayViewModel\b/);
|
||||
assert.match(docText, /\bcreateIniPanelShellSessionHandoffPackageRenderState\b/);
|
||||
assert.match(docText, /\bcreateIniPanelShellSessionHandoffPackageSchema\b/);
|
||||
assert.match(docText, /\bcreateIniPanelShellSessionHandoffRenderState\b/);
|
||||
|
||||
@@ -43,6 +43,7 @@ import {
|
||||
mountIniPanelShellWorkflowOverviewEmbedding,
|
||||
renderIniPanelShellWorkflowOverviewEmbeddingState,
|
||||
mountIniPanelShellWorkflowOverviewEmbeddingState,
|
||||
createIniPanelShellWorkflowOverviewEmbeddingMountDisplayViewModel,
|
||||
renderIniPanelShellSessionHandoffWorkflowState,
|
||||
mountIniPanelShellSessionHandoffWorkflow,
|
||||
renderIniPanelShellSessionHandoffMountState,
|
||||
@@ -136,6 +137,7 @@ assert.equal(typeof createIniPanelShellWorkflowOverviewEmbeddingDomReadiness, "f
|
||||
assert.equal(typeof mountIniPanelShellWorkflowOverviewEmbedding, "function");
|
||||
assert.equal(typeof renderIniPanelShellWorkflowOverviewEmbeddingState, "function");
|
||||
assert.equal(typeof mountIniPanelShellWorkflowOverviewEmbeddingState, "function");
|
||||
assert.equal(typeof createIniPanelShellWorkflowOverviewEmbeddingMountDisplayViewModel, "function");
|
||||
assert.equal(typeof renderIniPanelShellSessionHandoffWorkflowState, "function");
|
||||
assert.equal(typeof mountIniPanelShellSessionHandoffWorkflow, "function");
|
||||
assert.equal(typeof renderIniPanelShellSessionHandoffMountState, "function");
|
||||
@@ -829,6 +831,10 @@ assert.equal(
|
||||
shellViewModel.mountWorkflowOverviewEmbeddingState,
|
||||
mountIniPanelShellWorkflowOverviewEmbeddingState,
|
||||
);
|
||||
assert.equal(
|
||||
shellViewModel.createWorkflowOverviewEmbeddingMountDisplayViewModel,
|
||||
createIniPanelShellWorkflowOverviewEmbeddingMountDisplayViewModel,
|
||||
);
|
||||
assert.equal(shellViewModel.createShellSessionHandoffPackageReport, createIniPanelShellSessionHandoffPackageReport);
|
||||
assert.equal(shellViewModel.createShellSessionHandoffPackageSchema, createIniPanelShellSessionHandoffPackageSchema);
|
||||
assert.equal(shellViewModel.isSupportedShellSessionHandoffPackage, isSupportedIniPanelShellSessionHandoffPackage);
|
||||
@@ -1422,6 +1428,62 @@ assert.deepEqual(
|
||||
mountIniPanelShellWorkflowOverviewEmbeddingState({ documentRef: null }).domReadiness.missing,
|
||||
["document", "mount", "status", "rows"],
|
||||
);
|
||||
assert.deepEqual(
|
||||
createIniPanelShellWorkflowOverviewEmbeddingMountDisplayViewModel(workflowOverviewEmbeddingMountResult),
|
||||
{
|
||||
phase: "blocked",
|
||||
title: "Workflow overview embedding mount",
|
||||
statusText: "Blocked",
|
||||
detailText: "mount:blocked",
|
||||
rows: [
|
||||
{
|
||||
id: "mount-ready",
|
||||
label: "Mount readiness",
|
||||
value: "blocked",
|
||||
},
|
||||
{
|
||||
id: "dom-readiness",
|
||||
label: "DOM readiness",
|
||||
value: "ready",
|
||||
},
|
||||
{
|
||||
id: "missing-dom",
|
||||
label: "Missing DOM",
|
||||
value: "none",
|
||||
},
|
||||
{
|
||||
id: "render-state",
|
||||
label: "Render state",
|
||||
value: "Blocked: embedding:blocked, mount:blocked",
|
||||
},
|
||||
{
|
||||
id: "render-result",
|
||||
label: "Render result",
|
||||
value: "rendered",
|
||||
},
|
||||
{
|
||||
id: "render-row-count",
|
||||
label: "Render row count",
|
||||
value: "6",
|
||||
},
|
||||
{
|
||||
id: "error",
|
||||
label: "Error",
|
||||
value: "none",
|
||||
},
|
||||
],
|
||||
},
|
||||
);
|
||||
assert.deepEqual(
|
||||
createIniPanelShellWorkflowOverviewEmbeddingMountDisplayViewModel(
|
||||
mountIniPanelShellWorkflowOverviewEmbeddingState({ documentRef: null }),
|
||||
).rows[2],
|
||||
{
|
||||
id: "missing-dom",
|
||||
label: "Missing DOM",
|
||||
value: "document, mount, status, rows",
|
||||
},
|
||||
);
|
||||
assert.deepEqual(
|
||||
mountIniPanelShellWorkflowOverviewEmbedding({ overviewApi: null }).readiness.missing,
|
||||
shellViewModel.shellWorkflowOverviewContract.methodNames,
|
||||
|
||||
Reference in New Issue
Block a user