Files
Jyotisha/frontend/src/lib/report-fact-table-display.ts
T
jesse-uxandClaude Code 1420471ab1
Independent Staging Quality Gate / validate (push) Successful in 10m34s
Independent Staging Quality Gate / publish (push) Successful in 3m36s
feat: add chart waiting states and report block exports
Add bounded chart loading, per-layer retry states, and shared SVG skeletons. Add report block downloads with SVG, localized metadata, and inline deletion.

Record verification and retain CRLF export, full-build, and controlled-device acceptance blockers. User authorized staging delivery with these gaps documented.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-09-24 12:33:09 +08:00

15 lines
650 B
TypeScript

import type { ReportFactTable } from "./report-fact-table-schema";
export const FACT_STATUS_LABELS = {
multi_system_consensus: "多系统共识",
single_system_inference: "单一系统推断",
parameter_sensitive: "参数敏感",
unclosed_divisional_chart: "分盘尚未核验完整",
user_history_verification_required: "需要过往经历核对",
blocked: "暂不可用",
} as const;
export function factCellText(cell: ReportFactTable["rows"][number]["cells"][number]): string {
return cell === null ? "—" : typeof cell === "boolean" ? (cell ? "是" : "否") : typeof cell === "number" ? String(Number(cell.toFixed(2))) : cell;
}