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 | 857762099d458147bcc4ea4097357351164d3910 (patch) | |
| tree | 9c4a44b1ef89b31a23e4dbc828e013665dd205b2 /src/features/surface-host/ui | |
| parent | 42383e1e588201836e108c73afdd2df981ba5ff4 (diff) | |
| download | dispatch-web-857762099d458147bcc4ea4097357351164d3910.tar.gz dispatch-web-857762099d458147bcc4ea4097357351164d3910.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> |
