From 394f1ed37ce860da6fdc385769bf29f9737105cd Mon Sep 17 00:00:00 2001
From: Adam Malczewski <github@tradam.dev>
Date: Thu, 4 Jun 2026 21:21:20 +0900
Subject: chore: genesis — remove all files to rebuild from scratch (arch
 rewrite)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../src/lib/components/TaskListPanel.svelte        | 80 ----------------------
 1 file changed, 80 deletions(-)
 delete mode 100644 packages/frontend/src/lib/components/TaskListPanel.svelte

(limited to 'packages/frontend/src/lib/components/TaskListPanel.svelte')

diff --git a/packages/frontend/src/lib/components/TaskListPanel.svelte b/packages/frontend/src/lib/components/TaskListPanel.svelte
deleted file mode 100644
index 1f84bb8..0000000
--- a/packages/frontend/src/lib/components/TaskListPanel.svelte
+++ /dev/null
@@ -1,80 +0,0 @@
-<script lang="ts">
-import type { TaskItem } from "../types.js";
-
-const { tasks }: { tasks: TaskItem[] } = $props();
-
-type Status = TaskItem["status"];
-
-const completedCount = $derived(tasks.filter((t) => t.status === "completed").length);
-const inProgressCount = $derived(tasks.filter((t) => t.status === "in_progress").length);
-const cancelledCount = $derived(tasks.filter((t) => t.status === "cancelled").length);
-// "Active" total excludes cancelled items, so progress reads as work that still counts.
-const activeTotal = $derived(tasks.length - cancelledCount);
-
-function checkboxClass(status: Status): string {
-	switch (status) {
-		case "pending":
-			return "checkbox checkbox-sm rounded-sm checkbox-secondary";
-		case "in_progress":
-			return "checkbox checkbox-sm rounded-sm checkbox-info";
-		case "completed":
-			return "checkbox checkbox-sm rounded-sm checkbox-success";
-		case "cancelled":
-			return "checkbox checkbox-sm rounded-sm checkbox-neutral";
-	}
-}
-
-function isChecked(status: Status): boolean {
-	return status === "completed";
-}
-
-function isIndeterminate(status: Status): boolean {
-	return status === "in_progress";
-}
-
-function rowClass(status: Status): string {
-	if (status === "completed") return "opacity-60";
-	if (status === "cancelled") return "opacity-40";
-	return "";
-}
-
-function textClass(status: Status): string {
-	switch (status) {
-		case "completed":
-			return "line-through text-base-content/50";
-		case "cancelled":
-			return "line-through text-base-content/40";
-		case "in_progress":
-			return "font-semibold";
-		default:
-			return "";
-	}
-}
-</script>
-
-<div class="flex flex-col gap-2">
-	{#if tasks.length === 0}
-		<p class="text-xs text-base-content/50">No tasks yet.</p>
-	{:else}
-		<p class="text-xs text-base-content/60">
-			{completedCount}/{activeTotal} completed{#if inProgressCount > 0}, {inProgressCount} in progress{/if}{#if cancelledCount > 0}, {cancelledCount} cancelled{/if}
-		</p>
-		<ul class="flex flex-col gap-0.5">
-			{#each tasks as task (task.id)}
-				<li class="flex items-start gap-2 rounded p-1.5 transition-colors {rowClass(task.status)}">
-					<input
-						type="checkbox"
-						class={checkboxClass(task.status)}
-						checked={isChecked(task.status)}
-						indeterminate={isIndeterminate(task.status)}
-						disabled
-						tabindex="-1"
-					/>
-					<span class="text-xs leading-tight min-w-0 {textClass(task.status)}">
-						{task.content}
-					</span>
-				</li>
-			{/each}
-		</ul>
-	{/if}
-</div>
-- 
cgit v1.2.3

