补齐 release artifact URL workflow summary

This commit is contained in:
2026-06-16 11:30:55 +08:00
parent 61779cad55
commit 4970d156c1
10 changed files with 112 additions and 14 deletions

View File

@@ -299,7 +299,8 @@ for external browser shells:
`workflow-overview.html`. Use
`loadIniPanelShellWorkflowOverviewReleaseReadinessArtifactUrl()` when a
browser or shell should fetch the artifact JSON URL, validate it, and
optionally mount the resulting render-state into caller-owned DOM.
optionally mount the resulting render-state into caller-owned DOM. The URL
workflow result includes `validationSummaryViewModel` for dashboards.
`createIniPanelShellWorkflowOverviewReleaseReadinessArtifactDisplayViewModel()`,
`createIniPanelShellWorkflowOverviewReleaseReadinessArtifactRenderState()`,
`createIniPanelShellWorkflowOverviewReleaseReadinessArtifactValidationSummaryViewModel()`,

View File

@@ -1956,6 +1956,7 @@ export async function loadIniPanelShellWorkflowOverviewReleaseReadinessArtifactU
missing,
error: null,
validation: null,
validationSummaryViewModel: null,
displayViewModel: null,
renderState: null,
mountResult: null,
@@ -1977,6 +1978,7 @@ export async function loadIniPanelShellWorkflowOverviewReleaseReadinessArtifactU
missing: ["artifact-url"],
error: `HTTP ${httpStatus ?? "error"}`,
validation: null,
validationSummaryViewModel: null,
displayViewModel: null,
renderState: null,
mountResult: null,
@@ -1986,6 +1988,10 @@ export async function loadIniPanelShellWorkflowOverviewReleaseReadinessArtifactU
const artifactJson = await response.text();
const validation = validateIniPanelShellWorkflowOverviewReleaseReadinessArtifactJson(artifactJson);
const validationSummaryViewModel =
createIniPanelShellWorkflowOverviewReleaseReadinessArtifactValidationSummaryViewModel(
validation,
);
const displayViewModel = createIniPanelShellWorkflowOverviewReleaseReadinessArtifactDisplayViewModel(
validation,
);
@@ -2016,6 +2022,7 @@ export async function loadIniPanelShellWorkflowOverviewReleaseReadinessArtifactU
missing: workflowMissing,
error: null,
validation,
validationSummaryViewModel,
displayViewModel,
renderState,
mountResult,
@@ -2032,6 +2039,7 @@ export async function loadIniPanelShellWorkflowOverviewReleaseReadinessArtifactU
missing: ["artifact-url"],
error: error?.message ?? String(error),
validation: null,
validationSummaryViewModel: null,
displayViewModel: null,
renderState: null,
mountResult: null,