feat: enhance task persistence and implement centralized kanban board

This commit is contained in:
2026-04-28 21:55:37 +05:00
parent 7da3fc8ff4
commit 1f87f0d6e9
9 changed files with 425 additions and 45 deletions
+11
View File
@@ -47,9 +47,20 @@ export const useCanvas = () => {
width: n.width || 300,
height: n.height || 200,
text: n.text,
label: n.label,
file: n.file,
frontmatter: n.frontmatter,
state: n.state || 'pending',
priority: n.priority,
assigned_to: n.assigned_to,
alarm: n.alarm,
script_id: n.script_id,
prompt: n.prompt,
url: n.url,
method: n.method,
repo: n.repo,
branch: n.branch,
message: n.message,
style: n.style || {}
}))
+6
View File
@@ -10,8 +10,13 @@ export const useUnsavedChanges = () => {
if (lastSavedData.value && currentData.value !== lastSavedData.value) {
isDirty.value = true
console.log('[DEBUG Unsaved] Changed to dirty because data is different')
} else if (!lastSavedData.value) {
isDirty.value = true
console.log('[DEBUG Unsaved] Changed to dirty because no lastSavedData')
} else {
isDirty.value = false
console.log('[DEBUG Unsaved] Not dirty, data is identical')
}
}
@@ -20,6 +25,7 @@ export const useUnsavedChanges = () => {
lastSavedData.value = JSON.stringify(data)
currentData.value = lastSavedData.value
isDirty.value = false
console.log('[DEBUG Unsaved] Marked as saved, isDirty = false')
}
// Reset dirty state