(task: TaskInfo, plugin: TaskNotesPlugin)
| 188 | * Creates a click handler for project indicators. |
| 189 | */ |
| 190 | export function createProjectClickHandler(task: TaskInfo, plugin: TaskNotesPlugin): () => void { |
| 191 | return () => { |
| 192 | void (async () => { |
| 193 | const logger = getTaskCardActionLogger(plugin); |
| 194 | try { |
| 195 | await plugin.applyProjectSubtaskFilter(task); |
| 196 | } catch (error) { |
| 197 | logger.error("Error filtering project subtasks", { |
| 198 | category: "internal", |
| 199 | operation: "filter-project-subtasks", |
| 200 | details: { taskPath: task.path }, |
| 201 | error, |
| 202 | }); |
| 203 | new Notice("Failed to filter project subtasks"); |
| 204 | } |
| 205 | })(); |
| 206 | }; |
| 207 | } |
no test coverage detected