MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / createProjectClickHandler

Function createProjectClickHandler

src/ui/taskCardActions.ts:190–207  ·  view source on GitHub ↗
(task: TaskInfo, plugin: TaskNotesPlugin)

Source from the content-addressed store, hash-verified

188 * Creates a click handler for project indicators.
189 */
190export 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}

Callers 3

renderProjectBadgesFunction · 0.90
updateProjectBadgesFunction · 0.90

Calls 3

getTaskCardActionLoggerFunction · 0.85
errorMethod · 0.80

Tested by

no test coverage detected