feat: filter only open todo items
All checks were successful
CI / verify (push) Successful in 1m2s

This commit is contained in:
Julien Calixte
2026-06-14 21:00:41 +02:00
parent cef5873c95
commit 2c3ce18e4d

View File

@@ -111,7 +111,7 @@ const activePriorities = ref<Set<string | "none">>(new Set())
// XOR: either "open" only, "done" only, or "all" (no status filter). // XOR: either "open" only, "done" only, or "all" (no status filter).
type StatusFilter = "all" | "open" | "done" type StatusFilter = "all" | "open" | "done"
const statusFilter = ref<StatusFilter>("all") const statusFilter = ref<StatusFilter>("open")
const setStatusFilter = (next: Exclude<StatusFilter, "all">) => { const setStatusFilter = (next: Exclude<StatusFilter, "all">) => {
statusFilter.value = statusFilter.value === next ? "all" : next statusFilter.value = statusFilter.value === next ? "all" : next
} }