refactor: remove manual refresh and search controls
ci / gitleaks (push) Successful in 8s
ci / docker (push) Successful in 7m17s

This commit is contained in:
2026-09-19 21:15:23 +08:00
parent 0cf1c49094
commit 4973d56a64
29 changed files with 244 additions and 860 deletions
-12
View File
@@ -72,18 +72,6 @@ export function renderMarkdown(markdown = '') {
return markdownRenderer.render(markdown)
}
export function filterTasks<T extends MinimalTask>(tasks: T[], query: string) {
const q = query.trim().toLowerCase()
if (!q) return tasks
return tasks.filter((task) => {
const haystack = [
task.title,
task.description ?? '',
task.list_name ?? '',
].join(' ')
return haystack.toLowerCase().includes(q)
})
}
export function groupTaskTree<T extends MinimalTask>(tasks: T[]) {
const children = new Map<string, T[]>()