Save and load task notes

This commit is contained in:
2026-02-27 23:42:44 +01:00
parent deb8c86d0d
commit 13f6fe2c3f
5 changed files with 29 additions and 8 deletions
+5
View File
@@ -96,6 +96,7 @@ export function importTodoFromCsv(
const descriptionIndex = headers.indexOf("description");
const statusIndex = headers.indexOf("status");
const tagsIndex = headers.indexOf("tags");
const docIndex = headers.indexOf("doc");
if (titleIndex === -1) {
errors.push("CSV must have a 'Title' column");
@@ -145,6 +146,10 @@ export function importTodoFromCsv(
id: taskId,
title,
description: descriptionIndex !== -1 ? values[descriptionIndex] : "",
doc:
docIndex !== -1 && values[docIndex]
? JSON.parse(values[docIndex])
: undefined,
statusId,
tagIds,
createdAt: Date.now(),