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

Function init

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

Source from the content-addressed store, hash-verified

5817 user_id: userId,
5818 natural_language: "",
5819 scholar_url: $("scholarUrl").value,
5820 homepage_url: $("homepageUrl").value,
5821 pdf_paths: pdfPaths,
5822 core_directions_text: $("profileDirectionsInput")?.value || "",
5823 topic_weights_text: $("profileTopicsInput")?.value || "",
5824 must_read_keywords: splitListValue($("profileKeywordsInput")?.value || ""),
5825 must_read_authors: splitListValue($("profileAuthorsInput")?.value || ""),
5826 must_read_institutions: splitListValue($("profileInstitutionsInput")?.value || ""),
5827 reset_existing: $("resetProfile").checked
5828 })
5829 });
5830 state.currentUser = userId;
5831 if (!state.users.some((user) => user.user_id === userId)) {
5832 state.users.push(normalizeUser(userId));
5833 await loadUsers();
5834 $("userSelect").value = userId;
5835 }
5836 renderProfileForm(data);

Callers

nothing calls this directly

Calls 12

loadReportCardHighlightsFunction · 0.85
applyLocaleFunction · 0.85
renderChatSourcesFunction · 0.85
loadHealthFunction · 0.85
loadWikiFunction · 0.85
loadSettingsFunction · 0.85
resumeDailyTaskFunction · 0.85
bindEventsFunction · 0.70
loadUsersFunction · 0.70
loadSourceOptionsFunction · 0.70
loadLatestPushFunction · 0.70
setViewFunction · 0.70

Tested by

no test coverage detected