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

Function refreshWiki

deployments/desktop/static/desktop.js:4098–4115  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4096 }
4097
4098 async function refreshWiki() {
4099 const data = await api("/api/wiki/refresh", {
4100 method: "POST",
4101 body: JSON.stringify({ user_id: currentUser() })
4102 });
4103 await loadWiki();
4104 const daily = data.daily_notes || {};
4105 const noteCount = Array.isArray(daily.daily_notes) ? daily.daily_notes.length : 0;
4106 const errorCount = Array.isArray(daily.errors) ? daily.errors.length : 0;
4107 const detail = [
4108 ui().wiki.refreshDetail(daily, noteCount)
4109 ].join(" · ");
4110 showFeedbackToast(
4111 errorCount ? "warning" : "success",
4112 errorCount ? ui().wiki.refreshPartial : ui().wiki.refreshDone,
4113 errorCount ? `${detail} · ${daily.errors[0]}` : detail
4114 );
4115 }
4116
4117 function githubSyncSummary(data) {
4118 const labels = ui().wiki.githubSync;

Callers

nothing calls this directly

Calls 5

currentUserFunction · 0.85
loadWikiFunction · 0.85
uiFunction · 0.85
showFeedbackToastFunction · 0.85
apiFunction · 0.70

Tested by

no test coverage detected