-
{app.activeList?.title ?? "Tasks"}
-
+
+
{#if isWindows}
-
- {#if expandedTasks.has(task.id)}
- {#each app.getSubtasks(task.id) as subtask (subtask.id)}
-
-
-
- {/each}
- {/if}
{/each}
{#if app.pendingTasks.length === 0}
@@ -545,11 +559,6 @@
{#each app.completedTasks as task (task.id)}
- {#each app.getSubtasks(task.id).filter(s => s.status === "completed") as subtask (subtask.id)}
-
-
-
- {/each}
{/each}
{/if}
@@ -559,7 +568,7 @@
{ if (app.activeListId) newTaskState.open = true; }}
@@ -574,9 +583,20 @@
-
- {#if selectedTask}
-
+
+ {#if parentTask}
+ {#key parentTask.id}
+
+ {/key}
+ {/if}
+
+
+
+
+ {#if subtaskDetail}
+ {#key subtaskDetail.id}
+
+ {/key}
{/if}
@@ -619,3 +639,25 @@
+
+
+{#if confirmDeleteList}
+
(confirmDeleteList = false)}
+ />
+{/if}
+
+
+{#if confirmDeleteCompleted}
+ (confirmDeleteCompleted = false)}
+ />
+{/if}
diff --git a/apps/tauri/src/lib/stores/app.svelte.ts b/apps/tauri/src/lib/stores/app.svelte.ts
index 6b44dd8..9b35858 100644
--- a/apps/tauri/src/lib/stores/app.svelte.ts
+++ b/apps/tauri/src/lib/stores/app.svelte.ts
@@ -177,7 +177,7 @@ async function createTask(title: string, description?: string, parentId?: string
description: description ?? "",
parentId: parentId ?? null,
});
- tasks = [...tasks, task];
+ tasks = parentId ? [task, ...tasks] : [...tasks, task];
error = null;
return task;
} catch (e) {