MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / buildVisibleOrderLookup

Function buildVisibleOrderLookup

src/bases/sortOrderUtils.ts:248–255  ·  view source on GitHub ↗
(visibleTaskPaths?: string[])

Source from the content-addressed store, hash-verified

246}
247
248function buildVisibleOrderLookup(visibleTaskPaths?: string[]): Map<string, number> {
249 const lookup = new Map<string, number>();
250 if (!visibleTaskPaths) return lookup;
251 visibleTaskPaths.forEach((path, index) => {
252 lookup.set(path, index);
253 });
254 return lookup;
255}
256
257function getVisibleOrderedTasks(
258 columnTasks: TaskInfo[],

Callers 1

getGroupTasksFunction · 0.85

Calls 1

setMethod · 0.65

Tested by

no test coverage detected