diff options
| author | Adam Malczewski <[email protected]> | 2026-06-21 14:32:36 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-21 14:32:36 +0900 |
| commit | 90ab92626555bb6a764a3c15fc03ac3e36966226 (patch) | |
| tree | 1cfcd0127281cefb3476b102cad5f4ddfcd53927 /src/features/surface-host/ui | |
| parent | b12acb26276fa8539d312b575218d2fcb6e9024e (diff) | |
| download | dispatch-web-90ab92626555bb6a764a3c15fc03ac3e36966226.tar.gz dispatch-web-90ab92626555bb6a764a3c15fc03ac3e36966226.zip | |
refactor(todo): drop priority field — keep the tool simple
Backend removed priority from TodoItem; FE parser + renderer updated to
match (status-only: pending/in_progress/completed/cancelled).
Diffstat (limited to 'src/features/surface-host/ui')
| -rw-r--r-- | src/features/surface-host/ui/TodoList.svelte | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/features/surface-host/ui/TodoList.svelte b/src/features/surface-host/ui/TodoList.svelte index ca49f34..b7b2183 100644 --- a/src/features/surface-host/ui/TodoList.svelte +++ b/src/features/surface-host/ui/TodoList.svelte @@ -1,15 +1,9 @@ <script lang="ts"> - import { parseTodoPayload, type TodoPriority, type TodoStatus } from "../logic/todo"; + import { parseTodoPayload } from "../logic/todo"; let { payload }: { readonly payload: unknown } = $props(); const data = $derived(parseTodoPayload(payload)); - - const priorityDot: Record<TodoPriority, string> = { - high: "bg-error", - medium: "bg-warning", - low: "bg-base-content/30", - }; </script> {#if data !== null && data.todos.length > 0} @@ -61,9 +55,6 @@ > {todo.content} </span> - - <!-- Priority dot --> - <span class="mt-1 h-2 w-2 shrink-0 rounded-full {priorityDot[todo.priority]}"></span> </li> {/each} </ul> |
