(task: TaskInfo, target: HTMLElement)
| 2804 | } |
| 2805 | |
| 2806 | private async toggleBlockingTasks(task: TaskInfo, target: HTMLElement): Promise<void> { |
| 2807 | try { |
| 2808 | const expanded = target.classList.toggle("task-card__blocking-toggle--expanded"); |
| 2809 | |
| 2810 | // Find the card element and toggle blocking tasks display |
| 2811 | const card = target.closest<HTMLElement>(".task-card"); |
| 2812 | if (card) { |
| 2813 | const { toggleBlockingTasks } = await import("../ui/TaskCard"); |
| 2814 | await toggleBlockingTasks(card, task, this.plugin, expanded); |
| 2815 | } |
| 2816 | } catch (error) { |
| 2817 | tasknotesLogger.error("[TaskNotes][TaskListView] Failed to toggle blocking tasks", { |
| 2818 | category: "persistence", |
| 2819 | operation: "toggle-blocking-tasks", |
| 2820 | error: error, |
| 2821 | }); |
| 2822 | new Notice("Failed to toggle blocking tasks"); |
| 2823 | } |
| 2824 | } |
| 2825 | |
| 2826 | private arePathArraysEqual(taskNotes: TaskInfo[], previousPaths: string[]): boolean { |
| 2827 | if (taskNotes.length !== previousPaths.length) return false; |
no test coverage detected