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

Function setWikiMapFocus

deployments/desktop/static/desktop.js:4045–4053  ·  view source on GitHub ↗
(nodeId = "architecture:core")

Source from the content-addressed store, hash-verified

4043 }
4044
4045 function setWikiMapFocus(nodeId = "architecture:core") {
4046 const focus = state.wikiMap?.byId?.[nodeId] || state.wikiMap?.nodes?.[0];
4047 if (!focus) {
4048 setWikiEntry(ui().wiki.architecture, ui().wiki.architectureFallbackBody, "", { renderRelations: false });
4049 renderWikiResultNodes([], ui().wiki.itemCount(0));
4050 return;
4051 }
4052 setWikiEntry(rawGraphTitle(focus), rawGraphBody(focus), graphId(focus), { editNodeId: focus.real_node_id || "" });
4053 }
4054
4055 async function loadWiki() {
4056 const stats = await api(`/api/wiki/stats?user_id=${encodeURIComponent(currentUser())}`);

Callers 1

loadWikiFunction · 0.85

Calls 6

setWikiEntryFunction · 0.85
uiFunction · 0.85
renderWikiResultNodesFunction · 0.85
rawGraphTitleFunction · 0.85
rawGraphBodyFunction · 0.85
graphIdFunction · 0.85

Tested by

no test coverage detected