From 5ca214e60dd4d78f4e1262a2e0b661b32a5cf286 Mon Sep 17 00:00:00 2001 From: Frederic Cabassut Date: Fri, 6 Mar 2026 21:18:30 +0100 Subject: [PATCH] feat: allow checking/unchecking checklist items directly from the note card MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Checkboxes in the card preview are now interactive — clicking one toggles the item without opening the editor. Uses stopPropagation to prevent the card click handler from firing. Co-Authored-By: Claude Opus 4.6 --- src/lib/components/NoteCard.svelte | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/src/lib/components/NoteCard.svelte b/src/lib/components/NoteCard.svelte index 1b67fdf..ac04af5 100644 --- a/src/lib/components/NoteCard.svelte +++ b/src/lib/components/NoteCard.svelte @@ -1,7 +1,7 @@
0}
    - {#each checklistItems.slice(0, 8) as item} + {#each checklistItems.slice(0, 8) as item, index}
  • - + { e.stopPropagation(); toggleChecklistItem(index); }} + class="h-3.5 w-3.5 rounded border-[var(--border-subtle)] text-[var(--primary)] cursor-pointer" + data-testid="card-checklist-checkbox" + /> {item.text}
  • {/each}