summaryrefslogtreecommitdiffhomepage
path: root/src/features/surface-host/ui
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-06-21 14:32:36 +0900
committerAdam Malczewski <[email protected]>2026-06-21 14:32:36 +0900
commit857762099d458147bcc4ea4097357351164d3910 (patch)
tree9c4a44b1ef89b31a23e4dbc828e013665dd205b2 /src/features/surface-host/ui
parent42383e1e588201836e108c73afdd2df981ba5ff4 (diff)
downloaddispatch-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.svelte11
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>