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

Function getBlockedByTaskPaths

src/ui/taskCardRelationships.ts:90–108  ·  view source on GitHub ↗
(task: TaskInfo, app: App)

Source from the content-addressed store, hash-verified

88}
89
90export function getBlockedByTaskPaths(task: TaskInfo, app: App): string[] {
91 const entries = Array.isArray(task.blockedBy)
92 ? (task.blockedBy as Array<TaskDependency | string>)
93 : [];
94 const paths = new Set<string>();
95
96 for (const entry of entries) {
97 const normalized = normalizeDependencyEntry(entry);
98 if (!normalized) continue;
99
100 const resolved = resolveDependencyEntry(app, task.path, normalized);
101 const path = resolved?.path || normalized.uid;
102 if (path) {
103 paths.add(path);
104 }
105 }
106
107 return Array.from(paths);
108}

Callers 5

renderDependencyTogglesFunction · 0.90
updateBlockedByToggleFunction · 0.90

Calls 2

normalizeDependencyEntryFunction · 0.90
resolveDependencyEntryFunction · 0.90

Tested by

no test coverage detected