fix(web-probe): preserve taskBody/report fields in compactProjectManagementSample

The analyzer compact function dropped taskBodyVisible, taskBody,
reportLinkCount, reportPreviewVisible, reportPreview and
reportFullscreenVisible from project-management samples, causing
false mdtodo-task-body-not-visible and mdtodo-report-preview-missing
red findings even when the latest sample had taskBodyVisible=true.

Closes the analyzer/runner field mismatch surfaced by HWLAB#2216验收.
This commit is contained in:
Codex
2026-06-26 19:51:43 +00:00
parent f761aea250
commit 01ad090ec9
@@ -784,6 +784,12 @@ function compactProjectManagementSample(value) {
fileSelectVisible: value.fileSelectVisible === true,
sourceConfigVisible: value.sourceConfigVisible === true,
taskEditorVisible: value.taskEditorVisible === true,
taskBodyVisible: value.taskBodyVisible === true,
taskBody: value.taskBody ?? null,
reportLinkCount: value.reportLinkCount ?? 0,
reportPreviewVisible: value.reportPreviewVisible === true,
reportPreview: value.reportPreview ?? null,
reportFullscreenVisible: value.reportFullscreenVisible === true,
newTaskDraftVisible: value.newTaskDraftVisible === true,
taskStatusCounts: value.taskStatusCounts && typeof value.taskStatusCounts === "object" ? value.taskStatusCounts : {},
launchButtonVisible: value.launchButtonVisible === true,