From 7d66a8f6fc617e56d1ddd0155be7bfa76aa5c58c Mon Sep 17 00:00:00 2001 From: Thomas Richter Date: Thu, 29 Jan 2026 11:11:41 +0100 Subject: [PATCH] feat(02-03): add expand/collapse and inline editing to EntryCard - Add expanded state for expand/collapse toggle - Implement inline editing for title, content, and type - Add 400ms debounced auto-save using fetch to ?/update - Show 'Saving...' indicator during save - Add delete button with confirmation dialog - Use Svelte slide transition for smooth expand/collapse - Fix button nesting by restructuring layout --- src/lib/components/EntryCard.svelte | 203 +++++++++++++++++++++++++--- 1 file changed, 181 insertions(+), 22 deletions(-) diff --git a/src/lib/components/EntryCard.svelte b/src/lib/components/EntryCard.svelte index cb120d6..47b2360 100644 --- a/src/lib/components/EntryCard.svelte +++ b/src/lib/components/EntryCard.svelte @@ -1,26 +1,88 @@ -
+
+
{#if entry.type === 'task'} -
+
+
+ + + {#if expanded} +
+
+ + +
+ +
+ + +
+ +
+
+ + +
+ +
+ + +
+
+
+ {/if}