MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / folderColumns

Function folderColumns

packages/app-core/src/components/TasksKanban.tsx:167–180  ·  view source on GitHub ↗
(tasks: VaultTask[])

Source from the content-addressed store, hash-verified

165}
166
167function folderColumns(tasks: VaultTask[]): Column[] {
168 const map = new Map<NoteFolder, VaultTask[]>()
169 for (const task of tasks) {
170 if (task.checked) continue
171 const list = map.get(task.noteFolder)
172 if (list) list.push(task)
173 else map.set(task.noteFolder, [task])
174 }
175 return FOLDER_ORDER.map((folder) => ({
176 id: folder,
177 label: FOLDER_LABEL[folder],
178 tasks: map.get(folder) ?? []
179 }))
180}
181
182function buildColumns(
183 groupBy: KanbanGroupBy,

Callers 1

buildColumnsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected