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

Function topicBody

deployments/desktop/static/desktop.js:3463–3484  ·  view source on GitHub ↗
(entry, relatedPapers)

Source from the content-addressed store, hash-verified

3461 }
3462 const reportTitle = doc.title || doc.paper?.title || ui().reports.defaultTitle;
3463 const reportPath = doc.report_path || "";
3464 const warning = reports.feishu_warning || "";
3465 setDirectReadStatus(
3466 kind,
3467 warning ? "warning" : "success",
3468 warning ? ui().reports.generatedWarning : ui().reports.generatedTitle,
3469 `${reportTitle}${reportPath ? ` · ${reportPath}` : ""}${warning ? ` · ${warning}` : ""}`
3470 );
3471 showFeedbackToast(warning ? "warning" : "success", ui().reports.generatedToast, reportTitle);
3472 await openReport(doc.report_id);
3473 await loadWiki();
3474 } catch (error) {
3475 setDirectReadStatus(kind, "error", ui().reports.generationFailed, error.message || String(error));
3476 throw error;
3477 } finally {
3478 setDirectReadBusy(kind, false);
3479 }
3480 }
3481
3482 function graphId(node) {
3483 const source = node || {};
3484 return String(source.node_id || source.id || source.title || "node");
3485 }
3486
3487 const wikiEnglishTextMap = [

Callers 1

buildWikiMapFunction · 0.85

Calls 2

localizeWikiTextFunction · 0.85
graphTitleFunction · 0.85

Tested by

no test coverage detected