fix: make sentinel check titles user-facing
This commit is contained in:
@@ -654,8 +654,11 @@ function clamp(value, min, max) {
|
||||
}
|
||||
|
||||
function rootCauseText(item) {
|
||||
if (item?.rootCause) return `根因: ${item.rootCause}`;
|
||||
return item?.checkSummaryZh || item?.summary || item?.evidenceSummary || "尚未记录根因,等待下一次 OTel/报告归因。";
|
||||
if (item?.checkSummaryZh) return item.checkSummaryZh;
|
||||
if (item?.summary) return item.summary;
|
||||
if (item?.evidenceSummary) return item.evidenceSummary;
|
||||
if (item?.rootCause) return "已记录内部根因,见报告详情。";
|
||||
return "尚未记录用户可见问题摘要。";
|
||||
}
|
||||
|
||||
function findingTitle(item) {
|
||||
|
||||
Reference in New Issue
Block a user