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

Function statusColumns

packages/app-core/src/components/TasksKanban.tsx:109–125  ·  view source on GitHub ↗
(tasks: VaultTask[], today: Date)

Source from the content-addressed store, hash-verified

107}
108
109function statusColumns(tasks: VaultTask[], today: Date): Column[] {
110 const groups = groupTasks(tasks, today)
111 return [
112 {
113 id: 'today',
114 label: 'Today',
115 tasks: groups.today,
116 badge:
117 groups.overdueCount > 0
118 ? { kind: 'overdue', value: groups.overdueCount }
119 : undefined
120 },
121 { id: 'upcoming', label: 'Upcoming', tasks: groups.upcoming },
122 { id: 'waiting', label: 'Waiting', tasks: groups.waiting },
123 { id: 'done', label: 'Done', tasks: groups.done }
124 ]
125}
126
127function priorityColumns(tasks: VaultTask[]): Column[] {
128 const high: VaultTask[] = []

Callers 1

buildColumnsFunction · 0.85

Calls 1

groupTasksFunction · 0.90

Tested by

no test coverage detected