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

Method syncGroupedDragMetadata

src/bases/TaskListView.ts:1109–1120  ·  view source on GitHub ↗
(items: TaskListRenderItem[])

Source from the content-addressed store, hash-verified

1107 }
1108
1109 private syncGroupedDragMetadata(items: TaskListRenderItem[]): void {
1110 this.taskGroupKeys.clear();
1111 const groupedPaths = new Map<string | null, string[]>();
1112 for (const item of items) {
1113 if (item.type !== "task") continue;
1114 this.taskGroupKeys.set(item.task.path, item.groupKey);
1115 const paths = groupedPaths.get(item.groupKey) || [];
1116 paths.push(item.task.path);
1117 groupedPaths.set(item.groupKey, paths);
1118 }
1119 this.setSortScopePaths(groupedPaths);
1120 }
1121
1122 private updateDropSlotPreview(slot: TaskListInsertionSlot): void {
1123 const { element, position } = slot;

Callers 3

renderGroupedVirtualMethod · 0.95
renderGroupedNormalMethod · 0.95
refreshGroupedViewMethod · 0.95

Calls 4

setSortScopePathsMethod · 0.95
setMethod · 0.65
getMethod · 0.65
clearMethod · 0.45

Tested by

no test coverage detected