MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / loadReportContent

Function loadReportContent

deployments/desktop/static/reports.js:327–335  ·  view source on GitHub ↗
(reportId, silent = false)

Source from the content-addressed store, hash-verified

325 }
326
327 async function loadReportContent(reportId, silent = false) {
328 if (!reportId) throw new Error("report_id is required");
329 const data = await api(`/api/reports/content?report_id=${encodeURIComponent(reportId)}`);
330 const report = data.report || null;
331 renderList(uiState.reports, reportId);
332 if (report) renderViewer(report);
333 else renderEmpty("没有找到这篇报告。");
334 if (!silent) setStatus("报告已打开");
335 }
336
337 async function refreshReports(options = {}) {
338 ensureReportsDom();

Callers 4

refreshReportsFunction · 0.70
jumpToReportFunction · 0.70
bindReportsEventsFunction · 0.70
reports.jsFile · 0.70

Calls 5

renderListFunction · 0.85
renderViewerFunction · 0.85
renderEmptyFunction · 0.85
apiFunction · 0.70
setStatusFunction · 0.70

Tested by

no test coverage detected