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

Function showFeedbackToast

deployments/desktop/static/desktop.js:1596–1609  ·  view source on GitHub ↗
(type, title, detail = "")

Source from the content-addressed store, hash-verified

1594 }
1595
1596 function showFeedbackToast(type, title, detail = "") {
1597 const toast = $("feedbackToast");
1598 if (!toast) return;
1599 window.clearTimeout(state.feedbackTimer);
1600 toast.className = `feedback-toast ${type || "success"}`;
1601 toast.innerHTML = `
1602 <strong>${escapeHtml(title)}</strong>
1603 ${detail ? `<span>${escapeHtml(detail)}</span>` : ""}
1604 `;
1605 toast.hidden = false;
1606 state.feedbackTimer = window.setTimeout(() => {
1607 toast.hidden = true;
1608 }, type === "error" ? 9000 : 6500);
1609 }
1610
1611 function showPaperFeedback(type, title, detail = "") {
1612 const target = $("paperFeedbackResult");

Callers 15

runActionFunction · 0.85
ensureLlmReadyForReadingFunction · 0.85
runDailyFunction · 0.85
resumeDailyTaskFunction · 0.85
showSubmitResultFunction · 0.85
submitFeedbackFunction · 0.85
deleteReportCardFunction · 0.85
pollReadingTaskFunction · 0.85
directReadFunction · 0.85
refreshWikiFunction · 0.85
syncGithubNotesFunction · 0.85

Calls 2

$Function · 0.70
escapeHtmlFunction · 0.70

Tested by

no test coverage detected