Add task management: aggregated Tasks view (list + calendar) with inline due/priority, check off, set from row, and drag-to-reschedule (#62)

This commit is contained in:
Yuri Karamian
2026-06-08 02:34:19 +02:00
parent e2702bdd51
commit 26fa22afaa
9 changed files with 1130 additions and 8 deletions
+34
View File
@@ -13,6 +13,7 @@ import type {
ImportResult,
BackupEntry,
VersionEntry,
TaskItem,
} from "./types";
export async function openVault(path: string): Promise<void> {
@@ -331,6 +332,39 @@ export async function setBackupSettings(
});
}
// ── Tasks ──
export async function getTasks(): Promise<TaskItem[]> {
return invoke("get_tasks");
}
export async function setTaskDone(
notePath: string,
line: number,
rawLine: string,
done: boolean,
): Promise<void> {
return invoke("set_task_done", { notePath, line, rawLine, done });
}
export async function setTaskPriority(
notePath: string,
line: number,
rawLine: string,
priority: string | null,
): Promise<void> {
return invoke("set_task_priority", { notePath, line, rawLine, priority });
}
export async function setTaskDue(
notePath: string,
line: number,
rawLine: string,
due: string | null,
): Promise<void> {
return invoke("set_task_due", { notePath, line, rawLine, due });
}
// ── Sync (WebDAV) ──
export async function setSyncSettings(