MCPcopy
hub / github.com/callumalpass/tasknotes / showInAppNotice

Method showInAppNotice

src/ui/NotificationService.ts:413–429  ·  view source on GitHub ↗
(message: string, taskPath: string)

Source from the content-addressed store, hash-verified

411 }
412
413 private showInAppNotice(message: string, taskPath: string): void {
414 const notice = showNotice(message, 0); // 0 = persistent until clicked
415 const noticeEl = (notice as unknown as { noticeEl: HTMLElement }).noticeEl;
416
417 // Add click handler to open the task
418 noticeEl.addEventListener("click", () => {
419 void this.plugin.app.workspace.openLinkText(taskPath, "", false);
420 notice.hide();
421 });
422
423 // Add styling to make it clickable
424 noticeEl.classList.remove(
425 "tn-static-cursor-grab-dad79857",
426 "tn-static-cursor-pointer-2723efcc"
427 );
428 noticeEl.classList.add("tn-static-cursor-pointer-3b6a3a65");
429 }
430
431 private generateDefaultMessage(task: TaskInfo, reminder: Reminder): string {
432 if (reminder.type === "absolute") {

Callers 1

triggerNotificationMethod · 0.95

Calls 2

showNoticeFunction · 0.90
hideMethod · 0.45

Tested by

no test coverage detected